Hi.
I'm implementing some libraries for different STM32F4xx devices, and I want to know exactly, which device is currently used, so I can do different preprocessor stuff.
Exactly, I'm working leds and button library for STM32F4xx Discovery boards and want to know which board is used, when you select device in new project in Keil.
STM32F429ZI: (for STM32F429 Discovery board) STM32F407VG: (for STM32F4 Discovery board) STM32F401RE: (for Nucleo F401-RE board) STM32F401VC: (for STM32F401 Discovery board)
Is there a way, to get these MCU values in preprocessor?
Something like #if DEVICE == STM32F429ZI //DO stuff #elif DEVICE == STM32F407VG // #endif
Indeed!
But, in this case, how about the $D Key Sequence: http://www.keil.com/support/man/docs/uv4/uv4_ut_keysequence.htm