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

How to override BSP_LONG_PUSH_TIMEOUT_MS in locked file bsp.h?

I want to change the macro BSP_LONG_PUSH_TIMEOUT_MS to a different value. But the bsp.h file is locked. Now I could unlock the file, but then pack updates would break my setup, not to mention how brittle that would be. I'm using Keil, since I need to use mergehex on Windows in order to build DFU packages.

I thought I could just #undef and then #define BSP_LONG_PUSH_TIMEOUT_MS in a file that is included after bsp.h, but the old value is still being used.

Related