Skip to content

Commit ef88196

Browse files
committed
Add SCB_CCSELR register
Signed-off-by: Jean Pierre Dudey <[email protected]>
1 parent 8ccf71e commit ef88196

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/map/reg/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ reg::tokens! {
4040
/// System control block.
4141
pub mod SCB {
4242
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;
4444
}
4545

4646
/// SysTick timer.

src/map/reg/scb.rs

+17
Original file line numberDiff line numberDiff line change
@@ -464,3 +464,20 @@ reg! {
464464
};
465465
};
466466
}
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+
}

0 commit comments

Comments
 (0)