I looked at this open source bootloader and I saw this line of code. What happens on the last line? Is it some kind of pointer to a function with a cast to an address?
uint8_t ret = init_api(); uint16_t ptr; ptr = PGM_READ_WORD(JUMP_TABLE_INDEX(6)); ret = ( (uint8_t(*)(uint32_t, uint8_t *, uint8_t)) ptr )(addr, data, erase);
source share