@@ -231,15 +231,15 @@ unsafe impl Send for CBP {}
231
231
#[ cfg( not( armv6m) ) ]
232
232
impl CBP {
233
233
#[ inline( always) ]
234
- pub ( crate ) unsafe fn new ( ) -> Self {
234
+ pub ( crate ) const unsafe fn new ( ) -> Self {
235
235
CBP {
236
236
_marker : PhantomData ,
237
237
}
238
238
}
239
239
240
240
/// Returns a pointer to the register block
241
241
#[ inline( always) ]
242
- pub fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
242
+ pub const fn ptr ( ) -> * const self :: cbp:: RegisterBlock {
243
243
0xE000_EF50 as * const _
244
244
}
245
245
}
@@ -264,7 +264,7 @@ unsafe impl Send for CPUID {}
264
264
impl CPUID {
265
265
/// Returns a pointer to the register block
266
266
#[ inline( always) ]
267
- pub fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
267
+ pub const fn ptr ( ) -> * const self :: cpuid:: RegisterBlock {
268
268
0xE000_ED00 as * const _
269
269
}
270
270
}
@@ -288,7 +288,7 @@ unsafe impl Send for DCB {}
288
288
impl DCB {
289
289
/// Returns a pointer to the register block
290
290
#[ inline( always) ]
291
- pub fn ptr ( ) -> * const dcb:: RegisterBlock {
291
+ pub const fn ptr ( ) -> * const dcb:: RegisterBlock {
292
292
0xE000_EDF0 as * const _
293
293
}
294
294
}
@@ -312,7 +312,7 @@ unsafe impl Send for DWT {}
312
312
impl DWT {
313
313
/// Returns a pointer to the register block
314
314
#[ inline( always) ]
315
- pub fn ptr ( ) -> * const dwt:: RegisterBlock {
315
+ pub const fn ptr ( ) -> * const dwt:: RegisterBlock {
316
316
0xE000_1000 as * const _
317
317
}
318
318
}
@@ -337,7 +337,7 @@ unsafe impl Send for FPB {}
337
337
impl FPB {
338
338
/// Returns a pointer to the register block
339
339
#[ inline( always) ]
340
- pub fn ptr ( ) -> * const fpb:: RegisterBlock {
340
+ pub const fn ptr ( ) -> * const fpb:: RegisterBlock {
341
341
0xE000_2000 as * const _
342
342
}
343
343
}
@@ -363,7 +363,7 @@ unsafe impl Send for FPU {}
363
363
impl FPU {
364
364
/// Returns a pointer to the register block
365
365
#[ inline( always) ]
366
- pub fn ptr ( ) -> * const fpu:: RegisterBlock {
366
+ pub const fn ptr ( ) -> * const fpu:: RegisterBlock {
367
367
0xE000_EF30 as * const _
368
368
}
369
369
}
@@ -393,7 +393,7 @@ unsafe impl Send for ICB {}
393
393
impl ICB {
394
394
/// Returns a pointer to the register block
395
395
#[ inline( always) ]
396
- pub fn ptr ( ) -> * mut icb:: RegisterBlock {
396
+ pub const fn ptr ( ) -> * mut icb:: RegisterBlock {
397
397
0xE000_E004 as * mut _
398
398
}
399
399
}
@@ -425,7 +425,7 @@ unsafe impl Send for ITM {}
425
425
impl ITM {
426
426
/// Returns a pointer to the register block
427
427
#[ inline( always) ]
428
- pub fn ptr ( ) -> * mut itm:: RegisterBlock {
428
+ pub const fn ptr ( ) -> * mut itm:: RegisterBlock {
429
429
0xE000_0000 as * mut _
430
430
}
431
431
}
@@ -458,7 +458,7 @@ unsafe impl Send for MPU {}
458
458
impl MPU {
459
459
/// Returns a pointer to the register block
460
460
#[ inline( always) ]
461
- pub fn ptr ( ) -> * const mpu:: RegisterBlock {
461
+ pub const fn ptr ( ) -> * const mpu:: RegisterBlock {
462
462
0xE000_ED90 as * const _
463
463
}
464
464
}
@@ -482,7 +482,7 @@ unsafe impl Send for NVIC {}
482
482
impl NVIC {
483
483
/// Returns a pointer to the register block
484
484
#[ inline( always) ]
485
- pub fn ptr ( ) -> * const nvic:: RegisterBlock {
485
+ pub const fn ptr ( ) -> * const nvic:: RegisterBlock {
486
486
0xE000_E100 as * const _
487
487
}
488
488
}
@@ -507,7 +507,7 @@ unsafe impl Send for SAU {}
507
507
impl SAU {
508
508
/// Returns a pointer to the register block
509
509
#[ inline( always) ]
510
- pub fn ptr ( ) -> * const sau:: RegisterBlock {
510
+ pub const fn ptr ( ) -> * const sau:: RegisterBlock {
511
511
0xE000_EDD0 as * const _
512
512
}
513
513
}
@@ -532,7 +532,7 @@ unsafe impl Send for SCB {}
532
532
impl SCB {
533
533
/// Returns a pointer to the register block
534
534
#[ inline( always) ]
535
- pub fn ptr ( ) -> * const scb:: RegisterBlock {
535
+ pub const fn ptr ( ) -> * const scb:: RegisterBlock {
536
536
0xE000_ED04 as * const _
537
537
}
538
538
}
@@ -556,7 +556,7 @@ unsafe impl Send for SYST {}
556
556
impl SYST {
557
557
/// Returns a pointer to the register block
558
558
#[ inline( always) ]
559
- pub fn ptr ( ) -> * const syst:: RegisterBlock {
559
+ pub const fn ptr ( ) -> * const syst:: RegisterBlock {
560
560
0xE000_E010 as * const _
561
561
}
562
562
}
@@ -581,7 +581,7 @@ unsafe impl Send for TPIU {}
581
581
impl TPIU {
582
582
/// Returns a pointer to the register block
583
583
#[ inline( always) ]
584
- pub fn ptr ( ) -> * const tpiu:: RegisterBlock {
584
+ pub const fn ptr ( ) -> * const tpiu:: RegisterBlock {
585
585
0xE004_0000 as * const _
586
586
}
587
587
}
0 commit comments