50
50
//! } // all the peripheral singletons are destroyed here
51
51
//!
52
52
//! // 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() };
54
54
//! ```
55
55
//!
56
56
//! # References
@@ -245,8 +245,9 @@ impl AC {
245
245
/// Pointer to the register block
246
246
pub const PTR : * const self :: ac:: RegisterBlock = 0xE000_EF90 as * const _ ;
247
247
248
- /// Returns a pointer to the register block (to be deprecated in 0.7)
248
+ /// Returns a pointer to the register block
249
249
#[ inline( always) ]
250
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
250
251
pub const fn ptr ( ) -> * const self :: ac:: RegisterBlock {
251
252
Self :: PTR
252
253
}
@@ -271,8 +272,9 @@ impl CBP {
271
272
/// Pointer to the register block
272
273
pub const PTR : * const self :: cbp:: RegisterBlock = 0xE000_EF50 as * const _ ;
273
274
274
- /// Returns a pointer to the register block (to be deprecated in 0.7)
275
+ /// Returns a pointer to the register block
275
276
#[ inline( always) ]
277
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
276
278
pub const fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
277
279
Self :: PTR
278
280
}
@@ -299,8 +301,9 @@ impl CPUID {
299
301
/// Pointer to the register block
300
302
pub const PTR : * const self :: cpuid:: RegisterBlock = 0xE000_ED00 as * const _ ;
301
303
302
- /// Returns a pointer to the register block (to be deprecated in 0.7)
304
+ /// Returns a pointer to the register block
303
305
#[ inline( always) ]
306
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
304
307
pub const fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
305
308
Self :: PTR
306
309
}
@@ -326,8 +329,9 @@ impl DCB {
326
329
/// Pointer to the register block
327
330
pub const PTR : * const dcb:: RegisterBlock = 0xE000_EDF0 as * const _ ;
328
331
329
- /// Returns a pointer to the register block (to be deprecated in 0.7)
332
+ /// Returns a pointer to the register block
330
333
#[ inline( always) ]
334
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
331
335
pub const fn ptr ( ) -> * const dcb:: RegisterBlock {
332
336
Self :: PTR
333
337
}
@@ -353,8 +357,9 @@ impl DWT {
353
357
/// Pointer to the register block
354
358
pub const PTR : * const dwt:: RegisterBlock = 0xE000_1000 as * const _ ;
355
359
356
- /// Returns a pointer to the register block (to be deprecated in 0.7)
360
+ /// Returns a pointer to the register block
357
361
#[ inline( always) ]
362
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
358
363
pub const fn ptr ( ) -> * const dwt:: RegisterBlock {
359
364
Self :: PTR
360
365
}
@@ -381,8 +386,9 @@ impl FPB {
381
386
/// Pointer to the register block
382
387
pub const PTR : * const fpb:: RegisterBlock = 0xE000_2000 as * const _ ;
383
388
384
- /// Returns a pointer to the register block (to be deprecated in 0.7)
389
+ /// Returns a pointer to the register block
385
390
#[ inline( always) ]
391
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
386
392
pub const fn ptr ( ) -> * const fpb:: RegisterBlock {
387
393
Self :: PTR
388
394
}
@@ -410,8 +416,9 @@ impl FPU {
410
416
/// Pointer to the register block
411
417
pub const PTR : * const fpu:: RegisterBlock = 0xE000_EF30 as * const _ ;
412
418
413
- /// Returns a pointer to the register block (to be deprecated in 0.7)
419
+ /// Returns a pointer to the register block
414
420
#[ inline( always) ]
421
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
415
422
pub const fn ptr ( ) -> * const fpu:: RegisterBlock {
416
423
Self :: PTR
417
424
}
@@ -443,8 +450,9 @@ impl ICB {
443
450
/// Pointer to the register block
444
451
pub const PTR : * mut icb:: RegisterBlock = 0xE000_E004 as * mut _ ;
445
452
446
- /// Returns a pointer to the register block (to be deprecated in 0.7)
453
+ /// Returns a pointer to the register block
447
454
#[ inline( always) ]
455
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
448
456
pub const fn ptr ( ) -> * mut icb:: RegisterBlock {
449
457
Self :: PTR
450
458
}
@@ -478,8 +486,9 @@ impl ITM {
478
486
/// Pointer to the register block
479
487
pub const PTR : * mut itm:: RegisterBlock = 0xE000_0000 as * mut _ ;
480
488
481
- /// Returns a pointer to the register block (to be deprecated in 0.7)
489
+ /// Returns a pointer to the register block
482
490
#[ inline( always) ]
491
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
483
492
pub const fn ptr ( ) -> * mut itm:: RegisterBlock {
484
493
Self :: PTR
485
494
}
@@ -514,8 +523,9 @@ impl MPU {
514
523
/// Pointer to the register block
515
524
pub const PTR : * const mpu:: RegisterBlock = 0xE000_ED90 as * const _ ;
516
525
517
- /// Returns a pointer to the register block (to be deprecated in 0.7)
526
+ /// Returns a pointer to the register block
518
527
#[ inline( always) ]
528
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
519
529
pub const fn ptr ( ) -> * const mpu:: RegisterBlock {
520
530
Self :: PTR
521
531
}
@@ -541,8 +551,9 @@ impl NVIC {
541
551
/// Pointer to the register block
542
552
pub const PTR : * const nvic:: RegisterBlock = 0xE000_E100 as * const _ ;
543
553
544
- /// Returns a pointer to the register block (to be deprecated in 0.7)
554
+ /// Returns a pointer to the register block
545
555
#[ inline( always) ]
556
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
546
557
pub const fn ptr ( ) -> * const nvic:: RegisterBlock {
547
558
Self :: PTR
548
559
}
@@ -569,8 +580,9 @@ impl SAU {
569
580
/// Pointer to the register block
570
581
pub const PTR : * const sau:: RegisterBlock = 0xE000_EDD0 as * const _ ;
571
582
572
- /// Returns a pointer to the register block (to be deprecated in 0.7)
583
+ /// Returns a pointer to the register block
573
584
#[ inline( always) ]
585
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
574
586
pub const fn ptr ( ) -> * const sau:: RegisterBlock {
575
587
Self :: PTR
576
588
}
@@ -597,8 +609,9 @@ impl SCB {
597
609
/// Pointer to the register block
598
610
pub const PTR : * const scb:: RegisterBlock = 0xE000_ED04 as * const _ ;
599
611
600
- /// Returns a pointer to the register block (to be deprecated in 0.7)
612
+ /// Returns a pointer to the register block
601
613
#[ inline( always) ]
614
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
602
615
pub const fn ptr ( ) -> * const scb:: RegisterBlock {
603
616
Self :: PTR
604
617
}
@@ -624,8 +637,9 @@ impl SYST {
624
637
/// Pointer to the register block
625
638
pub const PTR : * const syst:: RegisterBlock = 0xE000_E010 as * const _ ;
626
639
627
- /// Returns a pointer to the register block (to be deprecated in 0.7)
640
+ /// Returns a pointer to the register block
628
641
#[ inline( always) ]
642
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
629
643
pub const fn ptr ( ) -> * const syst:: RegisterBlock {
630
644
Self :: PTR
631
645
}
@@ -652,8 +666,9 @@ impl TPIU {
652
666
/// Pointer to the register block
653
667
pub const PTR : * const tpiu:: RegisterBlock = 0xE004_0000 as * const _ ;
654
668
655
- /// Returns a pointer to the register block (to be deprecated in 0.7)
669
+ /// Returns a pointer to the register block
656
670
#[ inline( always) ]
671
+ #[ deprecated( since = "0.7.5" , note = "Use the associated constant `PTR` instead" ) ]
657
672
pub const fn ptr ( ) -> * const tpiu:: RegisterBlock {
658
673
Self :: PTR
659
674
}
0 commit comments