diff options
author | 2018-10-03 20:17:54 +0000 | |
---|---|---|
committer | 2018-10-03 20:17:54 +0000 | |
commit | e3b7357002f0fa739253c78623f825e0e8a7f1ab (patch) | |
tree | 2ca71df33c77a5a431381ac53168add2d9725ee0 /src/lib.rs | |
parent | 062147bf5787c3c624fbf9d2f113afa549628635 (diff) | |
parent | 2cb6f4ba35b40337d6406acf5b565ccd0fb652c0 (diff) | |
download | cortex-m-e3b7357002f0fa739253c78623f825e0e8a7f1ab.tar.gz cortex-m-e3b7357002f0fa739253c78623f825e0e8a7f1ab.tar.zst cortex-m-e3b7357002f0fa739253c78623f825e0e8a7f1ab.zip |
Merge #116
116: Add SysTick flags r=adamgreig a=qwerty19106
CMSIS core headers contains SCB_ICSR_PENDSVSET_*** and SCB_ICSR_PENDSTSET_*** definitions, which I need in my projects. In CMSIS it is used to check, set and clear this flags (rtx_core_cm.h and os_systick.c).
I suggest adding it to scb.rs. I put initial commit, but I need help to add compiler barriers where its are needed.
For details, see CMSIS:
[CMSIS_5/CMSIS/Core/Include/core_cm3.h](https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/Core/Include/core_cm3.h) (or other core_cm{X}.h)
[CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_core_cm.h)](https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/RTOS2/RTX/Source/rtx_core_cm.h)
[CMSIS_5/CMSIS/RTOS2/Source/os_systick.c)](https://github.com/ARM-software/CMSIS_5/blob/develop/CMSIS/RTOS2/Source/os_systick.c)
FIX: I have not seen that PENDSV is already added. I review PENDST code to be like PENDSV.
Co-authored-by: qwerty19106 <qwerty19106@gmail.com>
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions