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
@@ -244,12 +244,6 @@ unsafe impl Send for AC {}
244
244
impl AC {
245
245
/// Pointer to the register block
246
246
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
- }
253
247
}
254
248
255
249
/// Cache and branch predictor maintenance operations
@@ -271,12 +265,6 @@ impl CBP {
271
265
272
266
/// Pointer to the register block
273
267
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
- }
280
268
}
281
269
282
270
#[ cfg( not( armv6m) ) ]
@@ -300,12 +288,6 @@ unsafe impl Send for CPUID {}
300
288
impl CPUID {
301
289
/// Pointer to the register block
302
290
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
- }
309
291
}
310
292
311
293
impl ops:: Deref for CPUID {
@@ -328,12 +310,6 @@ unsafe impl Send for DCB {}
328
310
impl DCB {
329
311
/// Pointer to the register block
330
312
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
- }
337
313
}
338
314
339
315
impl ops:: Deref for DCB {
@@ -356,12 +332,6 @@ unsafe impl Send for DWT {}
356
332
impl DWT {
357
333
/// Pointer to the register block
358
334
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
- }
365
335
}
366
336
367
337
impl ops:: Deref for DWT {
@@ -385,12 +355,6 @@ unsafe impl Send for FPB {}
385
355
impl FPB {
386
356
/// Pointer to the register block
387
357
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
- }
394
358
}
395
359
396
360
#[ cfg( not( armv6m) ) ]
@@ -415,12 +379,6 @@ unsafe impl Send for FPU {}
415
379
impl FPU {
416
380
/// Pointer to the register block
417
381
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
- }
424
382
}
425
383
426
384
#[ cfg( any( has_fpu, native) ) ]
@@ -449,12 +407,6 @@ unsafe impl Send for ICB {}
449
407
impl ICB {
450
408
/// Pointer to the register block
451
409
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
- }
458
410
}
459
411
460
412
impl ops:: Deref for ICB {
@@ -485,12 +437,6 @@ unsafe impl Send for ITM {}
485
437
impl ITM {
486
438
/// Pointer to the register block
487
439
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
- }
494
440
}
495
441
496
442
#[ cfg( all( not( armv6m) , not( armv8m_base) ) ) ]
@@ -522,12 +468,6 @@ unsafe impl Send for MPU {}
522
468
impl MPU {
523
469
/// Pointer to the register block
524
470
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
- }
531
471
}
532
472
533
473
impl ops:: Deref for MPU {
@@ -550,12 +490,6 @@ unsafe impl Send for NVIC {}
550
490
impl NVIC {
551
491
/// Pointer to the register block
552
492
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
- }
559
493
}
560
494
561
495
impl ops:: Deref for NVIC {
@@ -579,12 +513,6 @@ unsafe impl Send for SAU {}
579
513
impl SAU {
580
514
/// Pointer to the register block
581
515
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
- }
588
516
}
589
517
590
518
#[ cfg( armv8m) ]
@@ -608,12 +536,6 @@ unsafe impl Send for SCB {}
608
536
impl SCB {
609
537
/// Pointer to the register block
610
538
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
- }
617
539
}
618
540
619
541
impl ops:: Deref for SCB {
@@ -636,12 +558,6 @@ unsafe impl Send for SYST {}
636
558
impl SYST {
637
559
/// Pointer to the register block
638
560
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
- }
645
561
}
646
562
647
563
impl ops:: Deref for SYST {
@@ -665,12 +581,6 @@ unsafe impl Send for TPIU {}
665
581
impl TPIU {
666
582
/// Pointer to the register block
667
583
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
- }
674
584
}
675
585
676
586
#[ cfg( not( armv6m) ) ]
0 commit comments