Skip to content

Commit

Permalink
Add new ST targets to HAL Blink example
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Jan 29, 2025
1 parent c46d14c commit a2c74f7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/stm32cube-hal-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ framework = stm32cube
board = nucleo_f746zg
build_flags = -DF7

[env:nucleo_g071rb]
platform = ststm32
framework = stm32cube
board = nucleo_g071rb
build_flags = -DG0

[env:nucleo_g474re]
platform = ststm32
framework = stm32cube
board = nucleo_g474re
build_flags = -DG4

[env:nucleo_h743zi]
platform = ststm32
framework = stm32cube
board = nucleo_h743zi
build_flags = -DH7

[env:nucleo_l053r8]
platform = ststm32
framework = stm32cube
Expand Down Expand Up @@ -78,3 +96,9 @@ platform = ststm32
framework = stm32cube
board = cloud_jam_l4
build_flags = -DL4

[env:nucleo_l552ze_q]
platform = ststm32
framework = stm32cube
board = nucleo_l552ze_q
build_flags = -DL5
10 changes: 10 additions & 0 deletions examples/stm32cube-hal-blink/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@
#include "stm32f4xx_hal.h"
#elif F7
#include "stm32f7xx_hal.h"
#elif H7
#include "stm32h7xx_hal.h"
#elif G0
#include "stm32g0xx_hal.h"
#elif G4
#include "stm32g4xx_hal.h"
#elif H7
#include "stm32f7xx_hal.h"
#elif L0
#include "stm32l0xx_hal.h"
#elif L1
#include "stm32l1xx_hal.h"
#elif L4
#include "stm32l4xx_hal.h"
#elif L5
#include "stm32l5xx_hal.h"
#else
#error "Unsupported STM32 Family"
#endif
Expand Down

0 comments on commit a2c74f7

Please sign in to comment.