5050//! } // all the peripheral singletons are destroyed here
5151//!
5252//! // actually safe because this is an atomic read with no side effects
53- //! let cyccnt = unsafe { (*DWT::ptr() ).cyccnt.read() };
53+ //! let cyccnt = unsafe { (*DWT::PTR ).cyccnt.read() };
5454//! ```
5555//!
5656//! # References
@@ -244,12 +244,6 @@ unsafe impl Send for AC {}
244244impl AC {
245245 /// Pointer to the register block
246246 pub const PTR : * const self :: ac:: RegisterBlock = 0xE000_EF90 as * const _ ;
247-
248- /// Returns a pointer to the register block (to be deprecated in 0.7)
249- #[ inline( always) ]
250- pub const fn ptr ( ) -> * const self :: ac:: RegisterBlock {
251- Self :: PTR
252- }
253247}
254248
255249/// Cache and branch predictor maintenance operations
@@ -271,12 +265,6 @@ impl CBP {
271265
272266 /// Pointer to the register block
273267 pub const PTR : * const self :: cbp:: RegisterBlock = 0xE000_EF50 as * const _ ;
274-
275- /// Returns a pointer to the register block (to be deprecated in 0.7)
276- #[ inline( always) ]
277- pub const fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
278- Self :: PTR
279- }
280268}
281269
282270#[ cfg( not( armv6m) ) ]
@@ -300,12 +288,6 @@ unsafe impl Send for CPUID {}
300288impl CPUID {
301289 /// Pointer to the register block
302290 pub const PTR : * const self :: cpuid:: RegisterBlock = 0xE000_ED00 as * const _ ;
303-
304- /// Returns a pointer to the register block (to be deprecated in 0.7)
305- #[ inline( always) ]
306- pub const fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
307- Self :: PTR
308- }
309291}
310292
311293impl ops:: Deref for CPUID {
@@ -328,12 +310,6 @@ unsafe impl Send for DCB {}
328310impl DCB {
329311 /// Pointer to the register block
330312 pub const PTR : * const dcb:: RegisterBlock = 0xE000_EDF0 as * const _ ;
331-
332- /// Returns a pointer to the register block (to be deprecated in 0.7)
333- #[ inline( always) ]
334- pub const fn ptr ( ) -> * const dcb:: RegisterBlock {
335- Self :: PTR
336- }
337313}
338314
339315impl ops:: Deref for DCB {
@@ -356,12 +332,6 @@ unsafe impl Send for DWT {}
356332impl DWT {
357333 /// Pointer to the register block
358334 pub const PTR : * const dwt:: RegisterBlock = 0xE000_1000 as * const _ ;
359-
360- /// Returns a pointer to the register block (to be deprecated in 0.7)
361- #[ inline( always) ]
362- pub const fn ptr ( ) -> * const dwt:: RegisterBlock {
363- Self :: PTR
364- }
365335}
366336
367337impl ops:: Deref for DWT {
@@ -385,12 +355,6 @@ unsafe impl Send for FPB {}
385355impl FPB {
386356 /// Pointer to the register block
387357 pub const PTR : * const fpb:: RegisterBlock = 0xE000_2000 as * const _ ;
388-
389- /// Returns a pointer to the register block (to be deprecated in 0.7)
390- #[ inline( always) ]
391- pub const fn ptr ( ) -> * const fpb:: RegisterBlock {
392- Self :: PTR
393- }
394358}
395359
396360#[ cfg( not( armv6m) ) ]
@@ -415,12 +379,6 @@ unsafe impl Send for FPU {}
415379impl FPU {
416380 /// Pointer to the register block
417381 pub const PTR : * const fpu:: RegisterBlock = 0xE000_EF30 as * const _ ;
418-
419- /// Returns a pointer to the register block (to be deprecated in 0.7)
420- #[ inline( always) ]
421- pub const fn ptr ( ) -> * const fpu:: RegisterBlock {
422- Self :: PTR
423- }
424382}
425383
426384#[ cfg( any( has_fpu, native) ) ]
@@ -449,12 +407,6 @@ unsafe impl Send for ICB {}
449407impl ICB {
450408 /// Pointer to the register block
451409 pub const PTR : * mut icb:: RegisterBlock = 0xE000_E004 as * mut _ ;
452-
453- /// Returns a pointer to the register block (to be deprecated in 0.7)
454- #[ inline( always) ]
455- pub const fn ptr ( ) -> * mut icb:: RegisterBlock {
456- Self :: PTR
457- }
458410}
459411
460412impl ops:: Deref for ICB {
@@ -485,12 +437,6 @@ unsafe impl Send for ITM {}
485437impl ITM {
486438 /// Pointer to the register block
487439 pub const PTR : * mut itm:: RegisterBlock = 0xE000_0000 as * mut _ ;
488-
489- /// Returns a pointer to the register block (to be deprecated in 0.7)
490- #[ inline( always) ]
491- pub const fn ptr ( ) -> * mut itm:: RegisterBlock {
492- Self :: PTR
493- }
494440}
495441
496442#[ cfg( all( not( armv6m) , not( armv8m_base) ) ) ]
@@ -522,12 +468,6 @@ unsafe impl Send for MPU {}
522468impl MPU {
523469 /// Pointer to the register block
524470 pub const PTR : * const mpu:: RegisterBlock = 0xE000_ED90 as * const _ ;
525-
526- /// Returns a pointer to the register block (to be deprecated in 0.7)
527- #[ inline( always) ]
528- pub const fn ptr ( ) -> * const mpu:: RegisterBlock {
529- Self :: PTR
530- }
531471}
532472
533473impl ops:: Deref for MPU {
@@ -550,12 +490,6 @@ unsafe impl Send for NVIC {}
550490impl NVIC {
551491 /// Pointer to the register block
552492 pub const PTR : * const nvic:: RegisterBlock = 0xE000_E100 as * const _ ;
553-
554- /// Returns a pointer to the register block (to be deprecated in 0.7)
555- #[ inline( always) ]
556- pub const fn ptr ( ) -> * const nvic:: RegisterBlock {
557- Self :: PTR
558- }
559493}
560494
561495impl ops:: Deref for NVIC {
@@ -579,12 +513,6 @@ unsafe impl Send for SAU {}
579513impl SAU {
580514 /// Pointer to the register block
581515 pub const PTR : * const sau:: RegisterBlock = 0xE000_EDD0 as * const _ ;
582-
583- /// Returns a pointer to the register block (to be deprecated in 0.7)
584- #[ inline( always) ]
585- pub const fn ptr ( ) -> * const sau:: RegisterBlock {
586- Self :: PTR
587- }
588516}
589517
590518#[ cfg( armv8m) ]
@@ -608,12 +536,6 @@ unsafe impl Send for SCB {}
608536impl SCB {
609537 /// Pointer to the register block
610538 pub const PTR : * const scb:: RegisterBlock = 0xE000_ED04 as * const _ ;
611-
612- /// Returns a pointer to the register block (to be deprecated in 0.7)
613- #[ inline( always) ]
614- pub const fn ptr ( ) -> * const scb:: RegisterBlock {
615- Self :: PTR
616- }
617539}
618540
619541impl ops:: Deref for SCB {
@@ -636,12 +558,6 @@ unsafe impl Send for SYST {}
636558impl SYST {
637559 /// Pointer to the register block
638560 pub const PTR : * const syst:: RegisterBlock = 0xE000_E010 as * const _ ;
639-
640- /// Returns a pointer to the register block (to be deprecated in 0.7)
641- #[ inline( always) ]
642- pub const fn ptr ( ) -> * const syst:: RegisterBlock {
643- Self :: PTR
644- }
645561}
646562
647563impl ops:: Deref for SYST {
@@ -665,12 +581,6 @@ unsafe impl Send for TPIU {}
665581impl TPIU {
666582 /// Pointer to the register block
667583 pub const PTR : * const tpiu:: RegisterBlock = 0xE004_0000 as * const _ ;
668-
669- /// Returns a pointer to the register block (to be deprecated in 0.7)
670- #[ inline( always) ]
671- pub const fn ptr ( ) -> * const tpiu:: RegisterBlock {
672- Self :: PTR
673- }
674584}
675585
676586#[ cfg( not( armv6m) ) ]
0 commit comments