void function(void) { printf("test"); } const uint16_t addr = (uint16_t)function;
Why MDK(ARM) report an error: initializer element is not a compile-time constant ?
My MCU flash is only 64K. I want to create a very large list of callback functions. If I use 32-bit address, obviously the upper 16 bits are meaningless.