Skip to content

Commit

Permalink
lpc176x PIO ini
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Jul 29, 2022
1 parent 3e7927d commit b4edad0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extra_configs =
uCNC/src/hal/boards/samd21/samd21.ini
uCNC/src/hal/boards/stm32/stm32.ini
uCNC/src/hal/boards/esp8266/esp8266.ini
uCNC/src/hal/boards/esp8266/lpc176x.ini
uCNC/src/hal/boards/lpc176x/lpc176x.ini
; uCNC/src/hal/mcus/virtual/virtual.ini

[common]
Expand Down
6 changes: 3 additions & 3 deletions uCNC/src/hal/boards/esp8266/esp8266.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################
# STM32 Boards #
################
##################
# ESP8266 Boards #
##################

[env:d1]
platform = espressif8266
Expand Down
15 changes: 15 additions & 0 deletions uCNC/src/hal/boards/lpc176x/lpc176x.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
##################
# LPC176X Boards #
##################

[common_lpc176x]
platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
platform_packages = Paciente8159/framework-arduino-lpc176x @ https://github.com/Paciente8159/pio-framework-arduino-lpc176x/archive/0.2.10.zip
lib_ldf_mode = off
lib_compat_mode = strict
build_flags = ${common.build_flags} -D NXP_LPC17xx

[env:re_arm]
extends = common_lpc176x
board = nxp_lpc1768
build_flags = ${common_lpc176x.build_flags} -D BOARD=BOARD_RE_ARM -D INTERFACE=1
3 changes: 0 additions & 3 deletions uCNC/src/hal/boards/stm32/stm32.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ build_flags = ${common.build_flags} -D HAL_TIM_MODULE_DISABLED -D HAL_EXTI_MODUL

[env:bluepill_f103c8]
extends = common_stm32
platform = ststm32
board = bluepill_f103c8
build_flags = ${common_stm32.build_flags} -D BOARD=BOARD_BLUEPILL -D INTERFACE=1

[env:bluepill_f103c8_clone]
extends = common_stm32
platform = ststm32
board = bluepill_f103c8
build_flags = ${common_stm32.build_flags} -D BOARD=BOARD_BLUEPILL -D INTERFACE=1
; uncomment if it's a bluepill clone
upload_flags = -c set CPUTAPID 0x2ba01477

[env:blackpill_f401cc]
extends = common_stm32
platform = ststm32
board = blackpill_f401cc
build_flags = ${common_stm32.build_flags} -D BOARD=BOARD_BLACKPILL -D INTERFACE=1

0 comments on commit b4edad0

Please sign in to comment.