aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripheral/mod.rs')
-rw-r--r--src/peripheral/mod.rs92
1 files changed, 1 insertions, 91 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index d1e119f..af922b1 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -50,7 +50,7 @@
//! } // all the peripheral singletons are destroyed here
//!
//! // actually safe because this is an atomic read with no side effects
-//! let cyccnt = unsafe { (*DWT::ptr()).cyccnt.read() };
+//! let cyccnt = unsafe { (*DWT::PTR).cyccnt.read() };
//! ```
//!
//! # References
@@ -244,12 +244,6 @@ unsafe impl Send for AC {}
impl AC {
/// Pointer to the register block
pub const PTR: *const self::ac::RegisterBlock = 0xE000_EF90 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const self::ac::RegisterBlock {
- Self::PTR
- }
}
/// Cache and branch predictor maintenance operations
@@ -271,12 +265,6 @@ impl CBP {
/// Pointer to the register block
pub const PTR: *const self::cbp::RegisterBlock = 0xE000_EF50 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const self::cbp::RegisterBlock {
- Self::PTR
- }
}
#[cfg(not(armv6m))]
@@ -300,12 +288,6 @@ unsafe impl Send for CPUID {}
impl CPUID {
/// Pointer to the register block
pub const PTR: *const self::cpuid::RegisterBlock = 0xE000_ED00 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const self::cpuid::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for CPUID {
@@ -328,12 +310,6 @@ unsafe impl Send for DCB {}
impl DCB {
/// Pointer to the register block
pub const PTR: *const dcb::RegisterBlock = 0xE000_EDF0 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const dcb::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for DCB {
@@ -356,12 +332,6 @@ unsafe impl Send for DWT {}
impl DWT {
/// Pointer to the register block
pub const PTR: *const dwt::RegisterBlock = 0xE000_1000 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const dwt::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for DWT {
@@ -385,12 +355,6 @@ unsafe impl Send for FPB {}
impl FPB {
/// Pointer to the register block
pub const PTR: *const fpb::RegisterBlock = 0xE000_2000 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const fpb::RegisterBlock {
- Self::PTR
- }
}
#[cfg(not(armv6m))]
@@ -415,12 +379,6 @@ unsafe impl Send for FPU {}
impl FPU {
/// Pointer to the register block
pub const PTR: *const fpu::RegisterBlock = 0xE000_EF30 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const fpu::RegisterBlock {
- Self::PTR
- }
}
#[cfg(any(has_fpu, native))]
@@ -449,12 +407,6 @@ unsafe impl Send for ICB {}
impl ICB {
/// Pointer to the register block
pub const PTR: *mut icb::RegisterBlock = 0xE000_E004 as *mut _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *mut icb::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for ICB {
@@ -485,12 +437,6 @@ unsafe impl Send for ITM {}
impl ITM {
/// Pointer to the register block
pub const PTR: *mut itm::RegisterBlock = 0xE000_0000 as *mut _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *mut itm::RegisterBlock {
- Self::PTR
- }
}
#[cfg(all(not(armv6m), not(armv8m_base)))]
@@ -522,12 +468,6 @@ unsafe impl Send for MPU {}
impl MPU {
/// Pointer to the register block
pub const PTR: *const mpu::RegisterBlock = 0xE000_ED90 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const mpu::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for MPU {
@@ -550,12 +490,6 @@ unsafe impl Send for NVIC {}
impl NVIC {
/// Pointer to the register block
pub const PTR: *const nvic::RegisterBlock = 0xE000_E100 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const nvic::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for NVIC {
@@ -579,12 +513,6 @@ unsafe impl Send for SAU {}
impl SAU {
/// Pointer to the register block
pub const PTR: *const sau::RegisterBlock = 0xE000_EDD0 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const sau::RegisterBlock {
- Self::PTR
- }
}
#[cfg(armv8m)]
@@ -608,12 +536,6 @@ unsafe impl Send for SCB {}
impl SCB {
/// Pointer to the register block
pub const PTR: *const scb::RegisterBlock = 0xE000_ED04 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const scb::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for SCB {
@@ -636,12 +558,6 @@ unsafe impl Send for SYST {}
impl SYST {
/// Pointer to the register block
pub const PTR: *const syst::RegisterBlock = 0xE000_E010 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const syst::RegisterBlock {
- Self::PTR
- }
}
impl ops::Deref for SYST {
@@ -665,12 +581,6 @@ unsafe impl Send for TPIU {}
impl TPIU {
/// Pointer to the register block
pub const PTR: *const tpiu::RegisterBlock = 0xE004_0000 as *const _;
-
- /// Returns a pointer to the register block (to be deprecated in 0.7)
- #[inline(always)]
- pub const fn ptr() -> *const tpiu::RegisterBlock {
- Self::PTR
- }
}
#[cfg(not(armv6m))]
h='13' height='13' alt='Gravatar' /> Jarred Sumner 1-1/+1 2022-03-17optimize blob.text()Gravatar Jarred Sumner 1-83/+185 2022-03-17query_string_map -> urlGravatar Jarred Sumner 30-28/+405 2022-03-16Fix crash from checking if something is an object when it is undefinedbun-v0.0.72Gravatar Jarred Sumner 4-12/+12 2022-03-16Fix setTimeout on LinuxGravatar Jarred SUmner 1-5/+12 2022-03-16Increase from 4ms -> 40ms for timeoutGravatar Jarred SUmner 1-1/+1 2022-03-16Update README.mdGravatar Jarred Sumner 1-0/+1 2022-03-16llvm-stirp not workingGravatar Jarred Sumner 1-1/+0 2022-03-16Update MakefileGravatar Jarred Sumner 1-1/+1 2022-03-16Update Dockerfile.baseGravatar Jarred Sumner 1-0/+1 2022-03-16Update MakefileGravatar Jarred Sumner 1-2/+23 2022-03-16cleanup error printingGravatar Jarred Sumner 7-105/+193 2022-03-16Revert "Unlimited arguments in process.nextTick"Gravatar Jarred Sumner 1-38/+48 This reverts commit aff9d232b1e7dfbac5fa1b18631aba18ed5f27e7. 2022-03-16bun.lockbGravatar Jarred Sumner 3-0/+0 2022-03-16Update feature_flags.zigGravatar Jarred Sumner 1-0/+1 2022-03-16[bun.js] Bun.unsafe test should check the gcGravatar Jarred Sumner 1-4/+14 2022-03-16Update work_pool.zigGravatar Jarred Sumner 1-21/+28 2022-03-16Add a way to run serial tasks on a different threadGravatar Jarred Sumner 1-3/+65 2022-03-16fix crash when SyntaxError is thrown and we did not receive an ErrorInstance?Gravatar Jarred Sumner 1-18/+25 2022-03-16[bun.js] Fix release-mode test failures in HeadersGravatar Jarred Sumner 1-47/+42 2022-03-16Update ref_count.zigGravatar Jarred Sumner 1-2/+0 2022-03-15file is too bigjarred/replGravatar Jarred Sumner 1-113827/+0 2022-03-15Update Dockerfile.baseGravatar Jarred Sumner 1-1/+1 2022-03-15Add rust and lolhtml to dockerfileGravatar Jarred Sumner 2-0/+20 2022-03-15bump webkitGravatar Jarred Sumner 1-1/+1 2022-03-15Update WebKitGravatar Jarred Sumner 1-0/+0 2022-03-15:camera:Gravatar Jarred Sumner 60-799/+859 2022-03-15Fix test failureGravatar Jarred Sumner 1-15/+17 2022-03-15[bun:error] handle errors without a name or messageGravatar Jarred Sumner 1-6/+11 2022-03-15Update pool.zigGravatar Jarred Sumner 1-0/+1 2022-03-15Load .env by defaultGravatar Jarred Sumner 2-0/+8 2022-03-15mimalloc interpose is buggyGravatar Jarred Sumner 1-2/+25 2022-03-15higher max http requests for bun.jsGravatar Jarred Sumner 1-0/+29 2022-03-15zero copyGravatar Jarred Sumner 1-21/+15 2022-03-15Update javascript.zigGravatar Jarred Sumner 1-2/+0 2022-03-15[bun.js] utf8 console.{time, count, timeEnd, profile, profileEnd, count, ↵Gravatar Jarred Sumner 1-16/+16 countReset}