File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ reg::tokens! {
40
40
/// System control block.
41
41
pub mod SCB {
42
42
CPUID ; ICSR ; VTOR ; AIRCR ; SCR ; CCR ; SHPR1 ; SHPR2 ; SHPR3 ; SHCSR ; MMFSR ;
43
- BFSR ; UFSR ; HFSR ; DFSR ; MMFAR ; BFAR ; AFSR ; DEMCR ;
43
+ BFSR ; UFSR ; HFSR ; DFSR ; MMFAR ; BFAR ; AFSR ; DEMCR ; CSSELR ;
44
44
}
45
45
46
46
/// SysTick timer.
Original file line number Diff line number Diff line change @@ -464,3 +464,20 @@ reg! {
464
464
} ;
465
465
} ;
466
466
}
467
+
468
+ reg ! {
469
+ /// Cache Size Selection Register
470
+ pub SCB CSSELR => {
471
+ address => 0xE000_ED84 ;
472
+ size => 0x20 ;
473
+ reset => 0x0000_0000 ;
474
+ traits => { RReg WReg } ;
475
+ fields => {
476
+ /// Cache level of required cache. Permitted values are from `0b000`,
477
+ /// indicating Level 1 cache, to `0b110` indicating Level 7 cache.
478
+ Level => { offset => 1 ; width => 3 ; traits => { RRRegField } } ;
479
+ /// Instruction not data bit.
480
+ InD => { offset => 0 ; width => 1 ; traits => { RRRegField WWRegField } } ;
481
+ } ;
482
+ } ;
483
+ }
You can’t perform that action at this time.
0 commit comments