This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Blinking LEDs - setting board in Keil

I'm struggling to get started using Keil with an NRF51822 mounted on a custom board that I have cobbled together.

I have opened the blinky/pca10031 example as a starting point because I would like to similarly test the indicator LEDs on my board, but my LEDs are connected to different pins, so I will need to use a custom_board.h file to define the LED pin numbers. The problem is, I don't understand how to tell Keil to include the custom_board.h file, rather than the pca10031.h file.

I can see that the pca10031.h file is included because BOARD_PCA10031 has been defined, but cannot find where this has been done.

Apologies if this is a dumb question - forgive me, I'm new to developing with nrf/Keil.

Thanks in advance for any advice

Related