I'm trying to understand the general structure of .h files.
nrf.h
contains an #ifdef
for NRF52.
I cannot find a #define NRF52
anywhere.
Any help appreciated.
Thanks,Tom
I'm trying to understand the general structure of .h files.
nrf.h
contains an #ifdef
for NRF52.
I cannot find a #define NRF52
anywhere.
Any help appreciated.
Thanks,Tom
You'll not find it defined any of the .c or .h files, NRF52 is a conditional, i.e. you'll find it under CFLAGS in the Makefile.
-Bjørn
If you use Keil you can go on "Target Options" and then "C/C++" tab and it should be on the Preprocessor Symbols-> Define. It should be one NRF51 or NRF52.
Jorge .. Thanks but I'm using gcc .. Trying to break away from Keil.