1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Replaced non-functional 'STATIC_ASSERT' in 'system_stm32f7xx.c'.

This commit is contained in:
mikeller 2018-08-20 11:36:18 +12:00
parent 37568a7078
commit b0ccb7ee47

View file

@ -338,7 +338,10 @@ void SystemInit(void)
const uint32_t vtorOffset = (uint32_t) &isr_vector_table_base;
#define VTOR_OFFSET_ALIGNMENT 0x200
#define VTOR_OFFSET_MASK (VTOR_OFFSET_ALIGNMENT - 1)
STATIC_ASSERT((vtorOffset % VTOR_OFFSET_MASK) == 0, isr_vector_table_base_is_not_512_byte_aligned);
if (vtorOffset % VTOR_OFFSET_MASK != 0) {
// ISR vector table base is not 512 byte aligned
while (1);
}
SCB->VTOR = vtorOffset;
#undef VTOR_OFFSET_MASK
#undef VTOR_OFFSET_ALIGNMENT