...
Right-click on the project,
sparrow (in .STM32CubeIDE)
and select Properties.Unfold the C/C++ General menu.
Select Paths and Symbols.
Select the # Symbols tab.
Select “GNU C” from the Languages column
Click Add....
Enter “CURRENT_BOARD” in the Name field.
Enter the value from the following table that corresponds to your hardware in the Value field.
Board |
---|
...
Board
Name |
|
---|---|
Nucleo | 0 |
Sparrow v1.0 | 1 |
Sparrow v1.1 | 2 |
Select the Add to all configurations checkbox
Select the Add to all languages checkbox
Click OK
Click Apply and Close
...