How I place a global variable at a compile-time known address?
I’m writing code for a specific stm32 chip with memory mapped peripherals. I happen to know that one of the GPIO ports, GPIOA
, is controlled by several 32 bit ints located starting at address 0x40018000
. How can I express this information at compile time?