mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
cpu/cortexm: set VTOR for selected M0+ CPUs
This commit is contained in:
parent
12a9c5e3b4
commit
fd981dff22
@ -41,7 +41,8 @@ void cortexm_init(void)
|
|||||||
|
|
||||||
/* configure the vector table location to internal flash */
|
/* configure the vector table location to internal flash */
|
||||||
#if defined(CPU_ARCH_CORTEX_M3) || defined(CPU_ARCH_CORTEX_M4) || \
|
#if defined(CPU_ARCH_CORTEX_M3) || defined(CPU_ARCH_CORTEX_M4) || \
|
||||||
defined(CPU_ARCH_CORTEX_M4F) || defined(CPU_ARCH_CORTEX_M7)
|
defined(CPU_ARCH_CORTEX_M4F) || defined(CPU_ARCH_CORTEX_M7) || \
|
||||||
|
(defined(CPU_ARCH_CORTEX_M0PLUS) && (__VTOR_PRESENT == 1))
|
||||||
SCB->VTOR = (uint32_t)&_isr_vectors;
|
SCB->VTOR = (uint32_t)&_isr_vectors;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user