Skip to content

Commit aa17958

Browse files
committed
allow clippy::upper_case_acronyms
1 parent 02853a4 commit aa17958

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/peripheral/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ impl Peripherals {
220220
}
221221

222222
/// Cache and branch predictor maintenance operations
223+
#[allow(clippy::upper_case_acronyms)]
223224
pub struct CBP {
224225
_marker: PhantomData<*const ()>,
225226
}
@@ -256,6 +257,7 @@ impl ops::Deref for CBP {
256257
}
257258

258259
/// CPUID
260+
#[allow(clippy::upper_case_acronyms)]
259261
pub struct CPUID {
260262
_marker: PhantomData<*const ()>,
261263
}
@@ -283,6 +285,7 @@ impl ops::Deref for CPUID {
283285
}
284286

285287
/// Debug Control Block
288+
#[allow(clippy::upper_case_acronyms)]
286289
pub struct DCB {
287290
_marker: PhantomData<*const ()>,
288291
}
@@ -310,6 +313,7 @@ impl ops::Deref for DCB {
310313
}
311314

312315
/// Data Watchpoint and Trace unit
316+
#[allow(clippy::upper_case_acronyms)]
313317
pub struct DWT {
314318
_marker: PhantomData<*const ()>,
315319
}
@@ -337,6 +341,7 @@ impl ops::Deref for DWT {
337341
}
338342

339343
/// Flash Patch and Breakpoint unit
344+
#[allow(clippy::upper_case_acronyms)]
340345
pub struct FPB {
341346
_marker: PhantomData<*const ()>,
342347
}
@@ -366,6 +371,7 @@ impl ops::Deref for FPB {
366371
}
367372

368373
/// Floating Point Unit
374+
#[allow(clippy::upper_case_acronyms)]
369375
pub struct FPU {
370376
_marker: PhantomData<*const ()>,
371377
}
@@ -400,6 +406,7 @@ impl ops::Deref for FPU {
400406
/// `actlr`. It's called the "implementation control block" in the ARMv8-M
401407
/// standard, but earlier standards contained the registers, just without a
402408
/// name.
409+
#[allow(clippy::upper_case_acronyms)]
403410
pub struct ICB {
404411
_marker: PhantomData<*const ()>,
405412
}
@@ -434,6 +441,7 @@ impl ops::DerefMut for ICB {
434441
}
435442

436443
/// Instrumentation Trace Macrocell
444+
#[allow(clippy::upper_case_acronyms)]
437445
pub struct ITM {
438446
_marker: PhantomData<*const ()>,
439447
}
@@ -471,6 +479,7 @@ impl ops::DerefMut for ITM {
471479
}
472480

473481
/// Memory Protection Unit
482+
#[allow(clippy::upper_case_acronyms)]
474483
pub struct MPU {
475484
_marker: PhantomData<*const ()>,
476485
}
@@ -498,6 +507,7 @@ impl ops::Deref for MPU {
498507
}
499508

500509
/// Nested Vector Interrupt Controller
510+
#[allow(clippy::upper_case_acronyms)]
501511
pub struct NVIC {
502512
_marker: PhantomData<*const ()>,
503513
}
@@ -525,6 +535,7 @@ impl ops::Deref for NVIC {
525535
}
526536

527537
/// Security Attribution Unit
538+
#[allow(clippy::upper_case_acronyms)]
528539
pub struct SAU {
529540
_marker: PhantomData<*const ()>,
530541
}
@@ -554,6 +565,7 @@ impl ops::Deref for SAU {
554565
}
555566

556567
/// System Control Block
568+
#[allow(clippy::upper_case_acronyms)]
557569
pub struct SCB {
558570
_marker: PhantomData<*const ()>,
559571
}
@@ -581,6 +593,7 @@ impl ops::Deref for SCB {
581593
}
582594

583595
/// SysTick: System Timer
596+
#[allow(clippy::upper_case_acronyms)]
584597
pub struct SYST {
585598
_marker: PhantomData<*const ()>,
586599
}
@@ -608,6 +621,7 @@ impl ops::Deref for SYST {
608621
}
609622

610623
/// Trace Port Interface Unit
624+
#[allow(clippy::upper_case_acronyms)]
611625
pub struct TPIU {
612626
_marker: PhantomData<*const ()>,
613627
}

0 commit comments

Comments
 (0)