Skip to content

Commit 92a0621

Browse files
committed
Add busio support, cleanup
1 parent 9761672 commit 92a0621

File tree

28 files changed

+175
-4094
lines changed

28 files changed

+175
-4094
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ jobs:
189189
- "mini_sam_m4"
190190
- "monster_m4sk"
191191
- "ndgarage_ndbit6"
192+
- "nucleo_f767zi"
192193
- "nucleo_h743zi_2"
193194
- "ohs2020_badge"
194195
- "openbook_m4"

ports/stm/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
# Select the board to build for.
2727
ifeq ($(BOARD),)
28-
$(error You must provide a BOARD parameter)
28+
$(error You must provide a BOARD parameter)
2929
else
30-
ifeq ($(wildcard boards/$(BOARD)/.),)
31-
$(error Invalid BOARD specified)
32-
endif
30+
ifeq ($(wildcard boards/$(BOARD)/.),)
31+
$(error Invalid BOARD specified)
32+
endif
3333
endif
3434

3535
# If the build directory is not given, make it reflect the board name.
@@ -193,7 +193,13 @@ SRC_STM32 = $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES_LOWER)xx_,\
193193
ll_exti.c \
194194
)
195195

196-
SRC_STM32 += system_stm32$(MCU_SERIES_LOWER)xx.c
196+
# Need this to avoid UART linker problems. TODO: rewrite to use registered callbacks.
197+
# Does not exist for F4 and lower
198+
ifeq ($(MCU_VARIANT),$(filter $(MCU_VARIANT),STM32F765xx STM32F767xx STM32F769xx STM32H743xx))
199+
SRC_STM32 += $(HAL_DIR)/Src/stm32$(MCU_SERIES_LOWER)xx_hal_uart_ex.c
200+
endif
201+
202+
SRC_STM32 += boards/system_stm32$(MCU_SERIES_LOWER)xx.c
197203

198204
SRC_C += \
199205
background.c \

ports/stm/boards/STM32H743ZITx_FLASH.ld

Lines changed: 0 additions & 193 deletions
This file was deleted.

ports/stm/boards/nucleo_h743zi_2/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2323
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PD14) },
2424
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PB05) },
2525
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA06) },
26-
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA07) },
26+
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA05) },
2727
{ MP_ROM_QSTR(MP_QSTR_D14), MP_ROM_PTR(&pin_PB09) },
2828
{ MP_ROM_QSTR(MP_QSTR_D15), MP_ROM_PTR(&pin_PB08) },
2929
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_PC06) },

0 commit comments

Comments
 (0)