mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b/c/particle-mesh: Switch default stdio to USB
The ttyUSB0 defaults are inapplicable here, and the default values should work for CDC-ACM.
This commit is contained in:
parent
bf7c697c8d
commit
9c08017dea
@ -13,5 +13,6 @@ config BOARD_COMMON_PARTICLE_MESH
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -7,5 +7,7 @@ ifeq (1,$(PARTICLE_MONOFIRMWARE))
|
||||
USEMODULE += usb_board_reset
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/makefiles/stdio_cdc_acm.dep.mk
|
||||
|
||||
# include common nrf52 dependencies
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.dep
|
||||
|
@ -9,4 +9,6 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
|
||||
# Various other features (if any)
|
||||
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -2,10 +2,6 @@
|
||||
BOARD_NRFANTENNA_DEFAULT ?= BUILTIN
|
||||
CFLAGS += -DBOARD_NRFANTENNA_DEFAULT=BOARD_NRFANTENNA_$(BOARD_NRFANTENNA_DEFAULT)
|
||||
|
||||
# set default port depending on operating system
|
||||
PORT_LINUX ?= /dev/ttyUSB0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/common/particle-mesh/include
|
||||
|
||||
|
@ -75,12 +75,14 @@ the `reset` target with `make`:
|
||||
make BOARD=<board name> -C examples/hello-world reset
|
||||
```
|
||||
|
||||
### Accessing STDIO via UART
|
||||
### STDIO configuration
|
||||
|
||||
The STDIO is not accessible via the USB port.
|
||||
By default, the board uses USB to expose a serial terminal.
|
||||
Other stdio options can be enabled as modules to replace that.
|
||||
|
||||
To access the STDIO of RIOT, a FTDI to USB converter needs to be plugged to
|
||||
the RX/TX pins on the board.
|
||||
When the `stdio_uart` module is used,
|
||||
it defaults to using UART0,
|
||||
which is configured for the board's RX/TX pin pair.
|
||||
|
||||
### nRF antenna selection
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user