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

Merge pull request #14736 from gschorcht/boards/feather_m0/split_wifi_version

boards/feather-m0: separate directory for the wifi version
This commit is contained in:
benpicco 2020-08-09 20:58:10 +02:00 committed by GitHub
commit 0064397fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 50 additions and 12 deletions

View File

@ -0,0 +1,23 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config BOARD
default "feather-m0-wifi" if BOARD_FEATHER_M0_WIFI
config BOARD_FEATHER_M0_WIFI
bool
default y
select CPU_MODEL_SAMD21G18A
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_BOOTLOADER_ARDUINO

View File

@ -0,0 +1,2 @@
DIRS = $(RIOTBOARD)/feather-m0
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,5 @@
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += atwinc15x0
endif
include $(RIOTBOARD)/feather-m0/Makefile.dep

View File

@ -0,0 +1 @@
include $(RIOTBOARD)/feather-m0/Makefile.features

View File

@ -0,0 +1,2 @@
INCLUDES += -I$(RIOTBOARD)/feather-m0/include
include $(RIOTBOARD)/feather-m0/Makefile.include

View File

@ -0,0 +1,12 @@
/**
@defgroup boards_feather-m0-wifi Adafruit Feather M0 WiFi
@ingroup boards
@brief Support for the Adafruit Feather M0 WiFi.
### General information
The board is a variant of the @ref boards_feather-m0 board with
a WiFi interface on board. Please see @ref boards_feather-m0 for detailed
information about the board and how to flash it.
*/

View File

@ -2,12 +2,6 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
ifneq (,$(filter feather-m0-wifi,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += atwinc15x0
endif
endif
# use arduino-bootloader only if no other stdio_% other than stdio_cdc_acm
# is requested
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_% slipdev_stdio,$(USEMODULE))))

View File

@ -1,5 +1,3 @@
PSEUDOMODULES += feather-m0-wifi
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))

View File

@ -55,12 +55,11 @@ Example with `hello-world` application:
### Using the WiFi interface
To enable the WiFi interface of the Feather M0 WiFi variant of the board
automatically for networking applications, add `USEMODULE=atwin1x0` to
the `make` command and define the required parameters, for example:
automatically for networking applications, use `feather-m0-wifi` as board
and define the required WiFi parameters, for example:
```
USEMODULE='feather-m0-wifi' \
CFLAGS='-DWIFI_SSID=\"<ssid>\" -DWIFI_PASS=\"<pass>\"' \
make BOARD=feather-m0 -C examples/gnrc_networking
make BOARD=feather-m0-wifi -C examples/gnrc_networking
```
For detailed information about the parameters, see section

View File

@ -19,6 +19,7 @@ BOARD_INSUFFICIENT_MEMORY := \
esp8266-olimex-mod \
esp8266-sparkfun-thing \
feather-m0 \
feather-m0-wifi \
firefly \
hamilton \
i-nucleo-lrwan1 \

View File

@ -24,6 +24,7 @@ LOW_MEMORY_BOARDS += \
cc2650stk \
derfmega128 \
feather-m0 \
feather-m0-wifi \
hifive1 \
hifive1b \
i-nucleo-lrwan1 \