Skip to content

Commit 8c77af3

Browse files
committed
rename associated consts to 'PTR'
1 parent 51880c9 commit 8c77af3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/peripheral/mod.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl CBP {
238238
}
239239

240240
/// Pointer to the register block
241-
pub const CBP_PTR: *const self::cbp::RegisterBlock = 0xE000_EF50 as *const _;
241+
pub const PTR: *const self::cbp::RegisterBlock = 0xE000_EF50 as *const _;
242242

243243
/// Returns a pointer to the register block (to be deprecated in 0.7)
244244
#[inline(always)]
@@ -266,7 +266,7 @@ unsafe impl Send for CPUID {}
266266

267267
impl CPUID {
268268
/// Pointer to the register block
269-
pub const CPUID_PTR: *const self::cpuid::RegisterBlock = 0xE000_ED00 as *const _;
269+
pub const PTR: *const self::cpuid::RegisterBlock = 0xE000_ED00 as *const _;
270270

271271
/// Returns a pointer to the register block (to be deprecated in 0.7)
272272
#[inline(always)]
@@ -293,7 +293,7 @@ unsafe impl Send for DCB {}
293293

294294
impl DCB {
295295
/// Pointer to the register block
296-
pub const DCB_PTR: *const dcb::RegisterBlock = 0xE000_EDF0 as *const _;
296+
pub const PTR: *const dcb::RegisterBlock = 0xE000_EDF0 as *const _;
297297

298298
/// Returns a pointer to the register block (to be deprecated in 0.7)
299299
#[inline(always)]
@@ -320,7 +320,7 @@ unsafe impl Send for DWT {}
320320

321321
impl DWT {
322322
/// Pointer to the register block
323-
pub const DWT_PTR: *const dwt::RegisterBlock = 0xE000_1000 as *const _;
323+
pub const PTR: *const dwt::RegisterBlock = 0xE000_1000 as *const _;
324324

325325
/// Returns a pointer to the register block (to be deprecated in 0.7)
326326
#[inline(always)]
@@ -348,7 +348,7 @@ unsafe impl Send for FPB {}
348348
#[cfg(not(armv6m))]
349349
impl FPB {
350350
/// Pointer to the register block
351-
pub const FPB_PTR: *const fpb::RegisterBlock = 0xE000_2000 as *const _;
351+
pub const PTR: *const fpb::RegisterBlock = 0xE000_2000 as *const _;
352352

353353
/// Returns a pointer to the register block (to be deprecated in 0.7)
354354
#[inline(always)]
@@ -377,7 +377,7 @@ unsafe impl Send for FPU {}
377377
#[cfg(any(has_fpu, target_arch = "x86_64"))]
378378
impl FPU {
379379
/// Pointer to the register block
380-
pub const FPU_PTR: *const fpu::RegisterBlock = 0xE000_EF30 as *const _;
380+
pub const PTR: *const fpu::RegisterBlock = 0xE000_EF30 as *const _;
381381

382382
/// Returns a pointer to the register block (to be deprecated in 0.7)
383383
#[inline(always)]
@@ -410,7 +410,7 @@ unsafe impl Send for ICB {}
410410

411411
impl ICB {
412412
/// Pointer to the register block
413-
pub const ICB_PTR: *mut icb::RegisterBlock = 0xE000_E004 as *mut _;
413+
pub const PTR: *mut icb::RegisterBlock = 0xE000_E004 as *mut _;
414414

415415
/// Returns a pointer to the register block (to be deprecated in 0.7)
416416
#[inline(always)]
@@ -445,7 +445,7 @@ unsafe impl Send for ITM {}
445445
#[cfg(all(not(armv6m), not(armv8m_base)))]
446446
impl ITM {
447447
/// Pointer to the register block
448-
pub const ITM_PTR: *mut itm::RegisterBlock = 0xE000_0000 as *mut _;
448+
pub const PTR: *mut itm::RegisterBlock = 0xE000_0000 as *mut _;
449449

450450
/// Returns a pointer to the register block (to be deprecated in 0.7)
451451
#[inline(always)]
@@ -481,7 +481,7 @@ unsafe impl Send for MPU {}
481481

482482
impl MPU {
483483
/// Pointer to the register block
484-
pub const MPU_PTR: *const mpu::RegisterBlock = 0xE000_ED90 as *const _;
484+
pub const PTR: *const mpu::RegisterBlock = 0xE000_ED90 as *const _;
485485

486486
/// Returns a pointer to the register block (to be deprecated in 0.7)
487487
#[inline(always)]
@@ -508,7 +508,7 @@ unsafe impl Send for NVIC {}
508508

509509
impl NVIC {
510510
/// Pointer to the register block
511-
pub const NVIC_PTR: *const nvic::RegisterBlock = 0xE000_E100 as *const _;
511+
pub const PTR: *const nvic::RegisterBlock = 0xE000_E100 as *const _;
512512

513513
/// Returns a pointer to the register block (to be deprecated in 0.7)
514514
#[inline(always)]
@@ -536,7 +536,7 @@ unsafe impl Send for SAU {}
536536
#[cfg(armv8m)]
537537
impl SAU {
538538
/// Pointer to the register block
539-
pub const SAU_PTR: *const sau::RegisterBlock = 0xE000_EDD0 as *const _;
539+
pub const PTR: *const sau::RegisterBlock = 0xE000_EDD0 as *const _;
540540

541541
/// Returns a pointer to the register block (to be deprecated in 0.7)
542542
#[inline(always)]
@@ -564,7 +564,7 @@ unsafe impl Send for SCB {}
564564

565565
impl SCB {
566566
/// Pointer to the register block
567-
pub const SCB_PTR: *const scb::RegisterBlock = 0xE000_ED04 as *const _;
567+
pub const PTR: *const scb::RegisterBlock = 0xE000_ED04 as *const _;
568568

569569
/// Returns a pointer to the register block (to be deprecated in 0.7)
570570
#[inline(always)]
@@ -591,7 +591,7 @@ unsafe impl Send for SYST {}
591591

592592
impl SYST {
593593
/// Pointer to the register block
594-
pub const SYST_PTR: *const syst::RegisterBlock = 0xE000_E010 as *const _;
594+
pub const PTR: *const syst::RegisterBlock = 0xE000_E010 as *const _;
595595

596596
/// Returns a pointer to the register block (to be deprecated in 0.7)
597597
#[inline(always)]
@@ -619,7 +619,7 @@ unsafe impl Send for TPIU {}
619619
#[cfg(not(armv6m))]
620620
impl TPIU {
621621
/// Pointer to the register block
622-
pub const TPIU_PTR: *const tpiu::RegisterBlock = 0xE004_0000 as *const _;
622+
pub const PTR: *const tpiu::RegisterBlock = 0xE004_0000 as *const _;
623623

624624
/// Returns a pointer to the register block (to be deprecated in 0.7)
625625
#[inline(always)]

0 commit comments

Comments
 (0)