1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16088 from aabadie/pr/boards/sensebox_samd21_enh

boards/sensebox_samd21: refactor to use stdio over the USB port
This commit is contained in:
Francisco 2021-02-25 11:08:40 +01:00 committed by GitHub
commit eaabcac205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 9 deletions

View File

@ -19,3 +19,4 @@ config BOARD_SENSEBOX_SAMD21
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO

View File

@ -1,3 +1,5 @@
MODULE = board
DIRS = $(RIOTBOARD)/common/samdx1-arduino-bootloader
include $(RIOTBASE)/Makefile.base

View File

@ -1,3 +1,6 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
# setup the samd21 arduino bootloader related dependencies
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.dep

View File

@ -10,3 +10,6 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio

View File

@ -3,14 +3,16 @@
PROGRAMMER ?= bossa
PROGRAMMERS_SUPPORTED += bossa
# setup the flash tool used
ifeq ($(PROGRAMMER),jlink)
# in case J-Link is attached to SWD pins, use a plain CPU memory model
JLINK_DEVICE = atsamd21
else ifeq ($(PROGRAMMER),bossa)
# in case J-Link is attached to SWD pins, use a plain CPU memory model
JLINK_DEVICE = atsamd21
ifeq ($(PROGRAMMER),bossa)
# ROM_OFFSET skips the space taken by the pre-flashed Arduino bootloader.
ROM_OFFSET ?= 0x2000
endif
# setup the boards dependencies
include $(RIOTBOARD)/sensebox_samd21/Makefile.dep
# Include all definitions for flashing with bossa over USB
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
# Include handling of serial and non-bossa programmers (if selected by user)
include $(RIOTMAKE)/boards/sam0.inc.mk

View File

@ -26,8 +26,11 @@ SenseBox board is based on the Atmel SAMD21G18A microcontroller. See
### Accessing STDIO via UART
To access the STDIO of RIOT, a FTDI to USB converted needs to be plugged to
the UART/Serial 1 pins on the board.
STDIO of RIOT is directly available over the USB port.
The `TERM_DELAY` environment variable can be used to add a delay (in second)
before opening the serial terminal. The default value is 2s which should be
enough in most of the situation.
### On I2C port
I2C port is enabled by default. To disable it use ```I2C_DISABLE```. To

View File

@ -55,6 +55,7 @@ LOW_MEMORY_BOARDS += \
opencm904 \
saml10-xpro \
saml11-xpro \
sensebox_samd21 \
serpente \
sodaq-autonomo \
sodaq-explorer \