Skip to content

Commit

Permalink
Add SCB_CCSELR register
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Pierre Dudey <[email protected]>
  • Loading branch information
jeandudey committed Jul 21, 2021
1 parent 8ccf71e commit ef88196
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/reg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ reg::tokens! {
/// System control block.
pub mod SCB {
CPUID; ICSR; VTOR; AIRCR; SCR; CCR; SHPR1; SHPR2; SHPR3; SHCSR; MMFSR;
BFSR; UFSR; HFSR; DFSR; MMFAR; BFAR; AFSR; DEMCR;
BFSR; UFSR; HFSR; DFSR; MMFAR; BFAR; AFSR; DEMCR; CSSELR;
}

/// SysTick timer.
Expand Down
17 changes: 17 additions & 0 deletions src/map/reg/scb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,20 @@ reg! {
};
};
}

reg! {
/// Cache Size Selection Register
pub SCB CSSELR => {
address => 0xE000_ED84;
size => 0x20;
reset => 0x0000_0000;
traits => { RReg WReg };
fields => {
/// Cache level of required cache. Permitted values are from `0b000`,
/// indicating Level 1 cache, to `0b110` indicating Level 7 cache.
Level => { offset => 1; width => 3; traits => { RRRegField } };
/// Instruction not data bit.
InD => { offset => 0; width => 1; traits => { RRRegField WWRegField } };
};
};
}

0 comments on commit ef88196

Please sign in to comment.