Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't override bsp.h

I would like to add events for button release and button long push to my application. I also want to keep the SDK folder unmodified for easy upgrades.

To do this I copied bsp.h to my project directory and added BSP_EVENT_KEY_0_RELEASE to the enum. I also modified the Makefile so my modified bsp.h is at the top of the INC_FOLDERS array.

However, when I compile my modified bsp.h is being ignored in favor of the original bsp.h. The only way to get my bsp.h to compile is to move/delete the original bsp.h.

Is there a way to get my custom bsp.h to be used without modifiying the SDK?

Thanks

Related