[riot-notifications] [RIOT] New Zolertia Re-Mote platform (CC2538 + CC1120) (#3062)

Hauke Petersen notifications at github.com
Mon Jun 1 11:10:38 CEST 2015


> @@ -0,0 +1,51 @@
> +# Define the cpu used by the Re-mote board
> +export CPU       =  cc2538
> +export CPU_MODEL ?= cc2538sf53
> +
> +# Define the default port depending on the host OS
> +OS := $(shell uname)
> +ifeq ($(OS),Linux)
> +  PORT ?= /dev/ttyUSB1
> +else ifeq ($(OS),Darwin)
> +  PORT ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1)
> +else
> +  $(info CAUTION: No flash tool for your host system found!)
> +  # TODO: add support for windows as host platform
> +endif
> +export PORT

You can simplify this section with 
```
PORT_LINUX ?= /dev/ttyUSB1
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1)
```
have a look at e.g. the `boards/stm32f4discovery/Makefile.include`...

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3062/files#r31409928
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150601/cde02f1d/attachment.html>


More information about the notifications mailing list