1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

boards/im880b: refactor code

Using the common STM32 board makefile provides all supported
programmers for STM32 boards. This allows e.g. to flash with
stm32flash via `make BOARD=im880b PROGRAMMER=stm32flash flash`.
This commit is contained in:
Marian Buschsieweke 2022-08-12 19:16:43 +02:00
parent 50e4498c84
commit 2cc8176f1d
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -1,16 +1,8 @@
# this board uses shared STM32 configuration snippets # this board uses shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include INCLUDES += -I$(RIOTBOARD)/common/stm32/include
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
CFLAGS+=-DSX127X_TX_SWITCH CFLAGS+=-DSX127X_TX_SWITCH
CFLAGS+=-DSX127X_RX_SWITCH CFLAGS+=-DSX127X_RX_SWITCH
# this board uses openocd # Setup of programmer and serial is shared between STM32 based boards
PROGRAMMER ?= openocd include $(RIOTMAKE)/boards/stm32.inc.mk
# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd
OPENOCD_DEBUG_ADAPTER ?= stlink