@@ -237,7 +237,10 @@ impl CBP {
237
237
}
238
238
}
239
239
240
- /// Returns a pointer to the register block
240
+ /// Pointer to the register block
241
+ pub const CBP_PTR : * const self :: cbp:: RegisterBlock = 0xE000_EF50 as * const _ ;
242
+
243
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
241
244
#[ inline( always) ]
242
245
pub const fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
243
246
0xE000_EF50 as * const _
@@ -262,7 +265,10 @@ pub struct CPUID {
262
265
unsafe impl Send for CPUID { }
263
266
264
267
impl CPUID {
265
- /// Returns a pointer to the register block
268
+ /// Pointer to the register block
269
+ pub const CPUID_PTR : * const self :: cpuid:: RegisterBlock = 0xE000_ED00 as * const _ ;
270
+
271
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
266
272
#[ inline( always) ]
267
273
pub const fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
268
274
0xE000_ED00 as * const _
@@ -286,7 +292,10 @@ pub struct DCB {
286
292
unsafe impl Send for DCB { }
287
293
288
294
impl DCB {
289
- /// Returns a pointer to the register block
295
+ /// Pointer to the register block
296
+ pub const DCB_PTR : * const dcb:: RegisterBlock = 0xE000_EDF0 as * const _ ;
297
+
298
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
290
299
#[ inline( always) ]
291
300
pub const fn ptr ( ) -> * const dcb:: RegisterBlock {
292
301
0xE000_EDF0 as * const _
@@ -310,7 +319,10 @@ pub struct DWT {
310
319
unsafe impl Send for DWT { }
311
320
312
321
impl DWT {
313
- /// Returns a pointer to the register block
322
+ /// Pointer to the register block
323
+ pub const DWT_PTR : * const dwt:: RegisterBlock = 0xE000_1000 as * const _ ;
324
+
325
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
314
326
#[ inline( always) ]
315
327
pub const fn ptr ( ) -> * const dwt:: RegisterBlock {
316
328
0xE000_1000 as * const _
@@ -335,7 +347,10 @@ unsafe impl Send for FPB {}
335
347
336
348
#[ cfg( not( armv6m) ) ]
337
349
impl FPB {
338
- /// Returns a pointer to the register block
350
+ /// Pointer to the register block
351
+ pub const FPB_PTR : * const fpb:: RegisterBlock = 0xE000_2000 as * const _ ;
352
+
353
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
339
354
#[ inline( always) ]
340
355
pub const fn ptr ( ) -> * const fpb:: RegisterBlock {
341
356
0xE000_2000 as * const _
@@ -361,7 +376,10 @@ unsafe impl Send for FPU {}
361
376
362
377
#[ cfg( any( has_fpu, target_arch = "x86_64" ) ) ]
363
378
impl FPU {
364
- /// Returns a pointer to the register block
379
+ /// Pointer to the register block
380
+ pub const FPU_PTR : * const fpu:: RegisterBlock = 0xE000_EF30 as * const _ ;
381
+
382
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
365
383
#[ inline( always) ]
366
384
pub const fn ptr ( ) -> * const fpu:: RegisterBlock {
367
385
0xE000_EF30 as * const _
@@ -391,7 +409,10 @@ pub struct ICB {
391
409
unsafe impl Send for ICB { }
392
410
393
411
impl ICB {
394
- /// Returns a pointer to the register block
412
+ /// Pointer to the register block
413
+ pub const ICB_PTR : * mut icb:: RegisterBlock = 0xE000_E004 as * mut _ ;
414
+
415
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
395
416
#[ inline( always) ]
396
417
pub const fn ptr ( ) -> * mut icb:: RegisterBlock {
397
418
0xE000_E004 as * mut _
@@ -423,7 +444,10 @@ unsafe impl Send for ITM {}
423
444
424
445
#[ cfg( all( not( armv6m) , not( armv8m_base) ) ) ]
425
446
impl ITM {
426
- /// Returns a pointer to the register block
447
+ /// Pointer to the register block
448
+ pub const ITM_PTR : * mut itm:: RegisterBlock = 0xE000_0000 as * mut _ ;
449
+
450
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
427
451
#[ inline( always) ]
428
452
pub const fn ptr ( ) -> * mut itm:: RegisterBlock {
429
453
0xE000_0000 as * mut _
@@ -456,7 +480,10 @@ pub struct MPU {
456
480
unsafe impl Send for MPU { }
457
481
458
482
impl MPU {
459
- /// Returns a pointer to the register block
483
+ /// Pointer to the register block
484
+ pub const MPU_PTR : * const mpu:: RegisterBlock = 0xE000_ED90 as * const _ ;
485
+
486
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
460
487
#[ inline( always) ]
461
488
pub const fn ptr ( ) -> * const mpu:: RegisterBlock {
462
489
0xE000_ED90 as * const _
@@ -480,7 +507,10 @@ pub struct NVIC {
480
507
unsafe impl Send for NVIC { }
481
508
482
509
impl NVIC {
483
- /// Returns a pointer to the register block
510
+ /// Pointer to the register block
511
+ pub const NVIC_PTR : * const nvic:: RegisterBlock = 0xE000_E100 as * const _ ;
512
+
513
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
484
514
#[ inline( always) ]
485
515
pub const fn ptr ( ) -> * const nvic:: RegisterBlock {
486
516
0xE000_E100 as * const _
@@ -505,7 +535,10 @@ unsafe impl Send for SAU {}
505
535
506
536
#[ cfg( armv8m) ]
507
537
impl SAU {
508
- /// Returns a pointer to the register block
538
+ /// Pointer to the register block
539
+ pub const SAU_PTR : * const sau:: RegisterBlock = 0xE000_EDD0 as * const _ ;
540
+
541
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
509
542
#[ inline( always) ]
510
543
pub const fn ptr ( ) -> * const sau:: RegisterBlock {
511
544
0xE000_EDD0 as * const _
@@ -530,7 +563,10 @@ pub struct SCB {
530
563
unsafe impl Send for SCB { }
531
564
532
565
impl SCB {
533
- /// Returns a pointer to the register block
566
+ /// Pointer to the register block
567
+ pub const SCB_PTR : * const scb:: RegisterBlock = 0xE000_ED04 as * const _ ;
568
+
569
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
534
570
#[ inline( always) ]
535
571
pub const fn ptr ( ) -> * const scb:: RegisterBlock {
536
572
0xE000_ED04 as * const _
@@ -554,7 +590,10 @@ pub struct SYST {
554
590
unsafe impl Send for SYST { }
555
591
556
592
impl SYST {
557
- /// Returns a pointer to the register block
593
+ /// Pointer to the register block
594
+ pub const SYST_PTR : * const syst:: RegisterBlock = 0xE000_E010 as * const _ ;
595
+
596
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
558
597
#[ inline( always) ]
559
598
pub const fn ptr ( ) -> * const syst:: RegisterBlock {
560
599
0xE000_E010 as * const _
@@ -579,7 +618,10 @@ unsafe impl Send for TPIU {}
579
618
580
619
#[ cfg( not( armv6m) ) ]
581
620
impl TPIU {
582
- /// Returns a pointer to the register block
621
+ /// Pointer to the register block
622
+ pub const TPIU_PTR : * const tpiu:: RegisterBlock = 0xE004_0000 as * const _ ;
623
+
624
+ /// Returns a pointer to the register block (to be deprecated in 0.7)
583
625
#[ inline( always) ]
584
626
pub const fn ptr ( ) -> * const tpiu:: RegisterBlock {
585
627
0xE004_0000 as * const _
0 commit comments