In C the header file chip.h which include such things as adc15xx.h sets up the addresses for all the peripheral registers.
When writing a function in assembler, is there a way of accessing this information?
example: C knows that ADC->CTRL refers to the control register of the ADC converter and compiles the correct value for the address of this register, but can I access that information from assember, by writing something similar to LDR R3,=ADC->CTRL instead of first having to look up its address in the manual and define ADC_CTRL again as .equ ADC_CTRL, 0x40000000 ?