[TM4C123] CMSIS header includes
Posted: Thu Feb 28, 2019 1:53 pm
Hey,
I noticed, that a lot of stm32 modules refer to the "SCB" struct from the CMSIS. However, the corresponding header is not included.
e.g. in pybthread.h:
In the port I'm currently making, I copy the stm32 modules and modify them. I always have to add the CMSIS header or it won't compile, but the stm32 compiled just fine. How does this work?
The same goes for the NVIC_SetPriority* functions.
Thanks,
- ExXec
I noticed, that a lot of stm32 modules refer to the "SCB" struct from the CMSIS. However, the corresponding header is not included.
e.g. in pybthread.h:
Code: Select all
static inline void pyb_thread_yield(void) {
if (pyb_thread_cur->run_next == pyb_thread_cur) {
__WFI();
} else {
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;
}
}
In the port I'm currently making, I copy the stm32 modules and modify them. I always have to add the CMSIS header or it won't compile, but the stm32 compiled just fine. How does this work?
The same goes for the NVIC_SetPriority* functions.
Thanks,
- ExXec