arm: cortex-m: clean up some more hard-coded constants in swap_helper
Clean up a few more hard-coded constants in swap_helper.S and replace them with CMSIS-like defines in cpu.h. No behavioral changes in this commit. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
03c4bcd920
commit
a8d6c14d30
2 changed files with 17 additions and 6 deletions
|
@ -10,12 +10,21 @@
|
|||
#ifdef _ASMLANGUAGE
|
||||
|
||||
#define _SCS_BASE_ADDR _PPB_INT_SCS
|
||||
|
||||
/* ICSR defines */
|
||||
#define _SCS_ICSR (_SCS_BASE_ADDR + 0xd04)
|
||||
#define _SCS_ICSR_PENDSV (1 << 28)
|
||||
#define _SCS_ICSR_UNPENDSV (1 << 27)
|
||||
#define _SCS_ICSR_RETTOBASE (1 << 11)
|
||||
|
||||
#define _SCS_MPU_CTRL (_SCS_BASE_ADDR + 0xd94)
|
||||
|
||||
/* CONTROL defines */
|
||||
#define _CONTROL_FPCA_Msk (1 << 2)
|
||||
|
||||
/* EXC_RETURN defines */
|
||||
#define _EXC_RETURN_SPSEL_Msk (1 << 2)
|
||||
#define _EXC_RETURN_FTYPE_Msk (1 << 4)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue