From: Philipp K. K. <pk...@sp...> - 2006-03-28 11:18:06
|
Jesus Calvino-Fraga wrote: > Something along this lines may work: > > void MINOR_VERSION (void) _naked > { > _asm > .area MY_VERSION (ABS) > .org 0xaffe > .db 0x01 > _endasm; > } Thanks; it works (when at the end of the file, otherwise everything in the file is at 0xaffe), but changes the type of MY_VERSION from uint8_t to void(* )(void). I want to access MY_VERSION from both inside my code (where I'd prefer it to have the type uint8_t) and from a peripheral, which can access the memory (which is why I need the fixed location). Philipp |