From e91231aa0e33ae002c68e90c2be534df36e13d49 Mon Sep 17 00:00:00 2001 From: mikeller Date: Mon, 20 Aug 2018 23:40:47 +1200 Subject: [PATCH] Fixed wedging test in 'system_stm32f7xx.c'. --- src/main/target/system_stm32f7xx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/target/system_stm32f7xx.c b/src/main/target/system_stm32f7xx.c index 6597bc6ce..cd9c38a88 100644 --- a/src/main/target/system_stm32f7xx.c +++ b/src/main/target/system_stm32f7xx.c @@ -337,14 +337,11 @@ void SystemInit(void) extern uint8_t isr_vector_table_base; const uint32_t vtorOffset = (uint32_t) &isr_vector_table_base; #define VTOR_OFFSET_ALIGNMENT 0x200 -#define VTOR_OFFSET_MASK (VTOR_OFFSET_ALIGNMENT - 1) - if (vtorOffset % VTOR_OFFSET_MASK != 0) { + if (vtorOffset % VTOR_OFFSET_ALIGNMENT != 0) { // ISR vector table base is not 512 byte aligned while (1); } SCB->VTOR = vtorOffset; -#undef VTOR_OFFSET_MASK -#undef VTOR_OFFSET_ALIGNMENT /* Enable I-Cache */ if (INSTRUCTION_CACHE_ENABLE) {