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
@@ -245,8 +245,9 @@ impl AC {
245245 /// Pointer to the register block
246246 pub const PTR : * const self :: ac:: RegisterBlock = 0xE000_EF90 as * const _ ;
247247
248- /// Returns a pointer to the register block (to be deprecated in 0.7)
248+ /// Returns a pointer to the register block
249249 #[ inline( always) ]
250+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
250251 pub const fn ptr ( ) -> * const self :: ac:: RegisterBlock {
251252 Self :: PTR
252253 }
@@ -271,8 +272,9 @@ impl CBP {
271272 /// Pointer to the register block
272273 pub const PTR : * const self :: cbp:: RegisterBlock = 0xE000_EF50 as * const _ ;
273274
274- /// Returns a pointer to the register block (to be deprecated in 0.7)
275+ /// Returns a pointer to the register block
275276 #[ inline( always) ]
277+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
276278 pub const fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
277279 Self :: PTR
278280 }
@@ -299,8 +301,9 @@ impl CPUID {
299301 /// Pointer to the register block
300302 pub const PTR : * const self :: cpuid:: RegisterBlock = 0xE000_ED00 as * const _ ;
301303
302- /// Returns a pointer to the register block (to be deprecated in 0.7)
304+ /// Returns a pointer to the register block
303305 #[ inline( always) ]
306+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
304307 pub const fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
305308 Self :: PTR
306309 }
@@ -326,8 +329,9 @@ impl DCB {
326329 /// Pointer to the register block
327330 pub const PTR : * const dcb:: RegisterBlock = 0xE000_EDF0 as * const _ ;
328331
329- /// Returns a pointer to the register block (to be deprecated in 0.7)
332+ /// Returns a pointer to the register block
330333 #[ inline( always) ]
334+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
331335 pub const fn ptr ( ) -> * const dcb:: RegisterBlock {
332336 Self :: PTR
333337 }
@@ -353,8 +357,9 @@ impl DWT {
353357 /// Pointer to the register block
354358 pub const PTR : * const dwt:: RegisterBlock = 0xE000_1000 as * const _ ;
355359
356- /// Returns a pointer to the register block (to be deprecated in 0.7)
360+ /// Returns a pointer to the register block
357361 #[ inline( always) ]
362+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
358363 pub const fn ptr ( ) -> * const dwt:: RegisterBlock {
359364 Self :: PTR
360365 }
@@ -381,8 +386,9 @@ impl FPB {
381386 /// Pointer to the register block
382387 pub const PTR : * const fpb:: RegisterBlock = 0xE000_2000 as * const _ ;
383388
384- /// Returns a pointer to the register block (to be deprecated in 0.7)
389+ /// Returns a pointer to the register block
385390 #[ inline( always) ]
391+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
386392 pub const fn ptr ( ) -> * const fpb:: RegisterBlock {
387393 Self :: PTR
388394 }
@@ -410,8 +416,9 @@ impl FPU {
410416 /// Pointer to the register block
411417 pub const PTR : * const fpu:: RegisterBlock = 0xE000_EF30 as * const _ ;
412418
413- /// Returns a pointer to the register block (to be deprecated in 0.7)
419+ /// Returns a pointer to the register block
414420 #[ inline( always) ]
421+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
415422 pub const fn ptr ( ) -> * const fpu:: RegisterBlock {
416423 Self :: PTR
417424 }
@@ -443,8 +450,9 @@ impl ICB {
443450 /// Pointer to the register block
444451 pub const PTR : * mut icb:: RegisterBlock = 0xE000_E004 as * mut _ ;
445452
446- /// Returns a pointer to the register block (to be deprecated in 0.7)
453+ /// Returns a pointer to the register block
447454 #[ inline( always) ]
455+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
448456 pub const fn ptr ( ) -> * mut icb:: RegisterBlock {
449457 Self :: PTR
450458 }
@@ -478,8 +486,9 @@ impl ITM {
478486 /// Pointer to the register block
479487 pub const PTR : * mut itm:: RegisterBlock = 0xE000_0000 as * mut _ ;
480488
481- /// Returns a pointer to the register block (to be deprecated in 0.7)
489+ /// Returns a pointer to the register block
482490 #[ inline( always) ]
491+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
483492 pub const fn ptr ( ) -> * mut itm:: RegisterBlock {
484493 Self :: PTR
485494 }
@@ -514,8 +523,9 @@ impl MPU {
514523 /// Pointer to the register block
515524 pub const PTR : * const mpu:: RegisterBlock = 0xE000_ED90 as * const _ ;
516525
517- /// Returns a pointer to the register block (to be deprecated in 0.7)
526+ /// Returns a pointer to the register block
518527 #[ inline( always) ]
528+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
519529 pub const fn ptr ( ) -> * const mpu:: RegisterBlock {
520530 Self :: PTR
521531 }
@@ -541,8 +551,9 @@ impl NVIC {
541551 /// Pointer to the register block
542552 pub const PTR : * const nvic:: RegisterBlock = 0xE000_E100 as * const _ ;
543553
544- /// Returns a pointer to the register block (to be deprecated in 0.7)
554+ /// Returns a pointer to the register block
545555 #[ inline( always) ]
556+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
546557 pub const fn ptr ( ) -> * const nvic:: RegisterBlock {
547558 Self :: PTR
548559 }
@@ -569,8 +580,9 @@ impl SAU {
569580 /// Pointer to the register block
570581 pub const PTR : * const sau:: RegisterBlock = 0xE000_EDD0 as * const _ ;
571582
572- /// Returns a pointer to the register block (to be deprecated in 0.7)
583+ /// Returns a pointer to the register block
573584 #[ inline( always) ]
585+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
574586 pub const fn ptr ( ) -> * const sau:: RegisterBlock {
575587 Self :: PTR
576588 }
@@ -597,8 +609,9 @@ impl SCB {
597609 /// Pointer to the register block
598610 pub const PTR : * const scb:: RegisterBlock = 0xE000_ED04 as * const _ ;
599611
600- /// Returns a pointer to the register block (to be deprecated in 0.7)
612+ /// Returns a pointer to the register block
601613 #[ inline( always) ]
614+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
602615 pub const fn ptr ( ) -> * const scb:: RegisterBlock {
603616 Self :: PTR
604617 }
@@ -624,8 +637,9 @@ impl SYST {
624637 /// Pointer to the register block
625638 pub const PTR : * const syst:: RegisterBlock = 0xE000_E010 as * const _ ;
626639
627- /// Returns a pointer to the register block (to be deprecated in 0.7)
640+ /// Returns a pointer to the register block
628641 #[ inline( always) ]
642+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
629643 pub const fn ptr ( ) -> * const syst:: RegisterBlock {
630644 Self :: PTR
631645 }
@@ -652,8 +666,9 @@ impl TPIU {
652666 /// Pointer to the register block
653667 pub const PTR : * const tpiu:: RegisterBlock = 0xE004_0000 as * const _ ;
654668
655- /// Returns a pointer to the register block (to be deprecated in 0.7)
669+ /// Returns a pointer to the register block
656670 #[ inline( always) ]
671+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
657672 pub const fn ptr ( ) -> * const tpiu:: RegisterBlock {
658673 Self :: PTR
659674 }
0 commit comments