Skip to content

Commit a2c74f7

Browse files
committed
Add new ST targets to HAL Blink example
1 parent c46d14c commit a2c74f7

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

examples/stm32cube-hal-blink/platformio.ini

+24
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ framework = stm32cube
4949
board = nucleo_f746zg
5050
build_flags = -DF7
5151

52+
[env:nucleo_g071rb]
53+
platform = ststm32
54+
framework = stm32cube
55+
board = nucleo_g071rb
56+
build_flags = -DG0
57+
58+
[env:nucleo_g474re]
59+
platform = ststm32
60+
framework = stm32cube
61+
board = nucleo_g474re
62+
build_flags = -DG4
63+
64+
[env:nucleo_h743zi]
65+
platform = ststm32
66+
framework = stm32cube
67+
board = nucleo_h743zi
68+
build_flags = -DH7
69+
5270
[env:nucleo_l053r8]
5371
platform = ststm32
5472
framework = stm32cube
@@ -78,3 +96,9 @@ platform = ststm32
7896
framework = stm32cube
7997
board = cloud_jam_l4
8098
build_flags = -DL4
99+
100+
[env:nucleo_l552ze_q]
101+
platform = ststm32
102+
framework = stm32cube
103+
board = nucleo_l552ze_q
104+
build_flags = -DL5

examples/stm32cube-hal-blink/src/main.c

+10
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@
1010
#include "stm32f4xx_hal.h"
1111
#elif F7
1212
#include "stm32f7xx_hal.h"
13+
#elif H7
14+
#include "stm32h7xx_hal.h"
15+
#elif G0
16+
#include "stm32g0xx_hal.h"
17+
#elif G4
18+
#include "stm32g4xx_hal.h"
19+
#elif H7
20+
#include "stm32f7xx_hal.h"
1321
#elif L0
1422
#include "stm32l0xx_hal.h"
1523
#elif L1
1624
#include "stm32l1xx_hal.h"
1725
#elif L4
1826
#include "stm32l4xx_hal.h"
27+
#elif L5
28+
#include "stm32l5xx_hal.h"
1929
#else
2030
#error "Unsupported STM32 Family"
2131
#endif

0 commit comments

Comments
 (0)