I have cheap STM32 boards from ebay with STM32F103 and STM32F030 chips. The popular name for the STM32F103 boards is "Blue Pill". But I can't seem to find any name for the STM32F030 boards. They just have the ST logo and "STM32F030 DEMO BOARD V1.1" on the back.
I would like to use conditionals in my STM32 libraries when there is a difference between these boards.
For example:
/* Turn LED on/off
* in: zero = off, non-zero = on
*/
void board_led(int on)
{
#ifdef BLUE_PILL
if (on)
GPIOC->ODR &= 0xdfff;
else
GPIOC->ODR |= 0x2000;
#endif
}
Is there any popular name for the cheap STM32F030 "demo" boards? Any suggestions on a good name to use in #define and #ifdef conditionals?
"F030_DEMO" maybe? Or something with the word "PILL"?
Thanks!