[riot-notifications] [RIOT-OS/RIOT] b/c/particle-mesh: Switch default stdio to USB (#15394)

benpicco notifications at github.com
Fri Nov 6 15:41:31 CET 2020


@benpicco commented on this pull request.



> @@ -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
 

@maribu had a nice idea for the AVR boards, you can do

```make
# PROGRAMMER defaults to dfu-util which uses the particle bootloader
PROGRAMMER_PARTICLE_BORON ?= dfu-util
PROGRAMMER ?= $(PROGRAMMER_PARTICLE_BORON)
```

that way you can set `PROGRAMMER_PARTICLE_BORON` to something else in your `.bashrc` if you removed the bootloader, but users who just got the board don't have to do any additional configuration. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15394#discussion_r518793774
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201106/b5c9f69e/attachment.htm>


More information about the notifications mailing list