Merge pull request #14845 from fjmolinas/pr_driver_netdev_common

tests/driver_netdev_common: add netdev_default
This commit is contained in:
benpicco 2020-08-27 17:01:50 +02:00 committed by GitHub
commit b6a542668b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 42 additions and 38 deletions

View File

@ -3,7 +3,7 @@ ifneq (,$(filter atmega_pcint,$(USEMODULE)))
USEMODULE += atmega_pcint1
endif
ifneq (,$(filter gnrc_netdev_default netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += at86rfa1
endif

View File

@ -3,7 +3,7 @@ ifneq (,$(filter atmega_pcint,$(USEMODULE)))
USEMODULE += atmega_pcint1
endif
ifneq (,$(filter gnrc_netdev_default netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += at86rfr2
endif

View File

@ -1145,7 +1145,7 @@ The RIOT port for ESP32 realizes with module ```esp_eth``` a ```netdev``` driver
If the board has one of the supported PHY layer chips connected to the ESP32, the ```esp_eth``` module should be enabled by default in board's ```Makefile.dep``` when module ```netdev_default``` is used.
```
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += esp_eth
endif
```

View File

@ -22,7 +22,7 @@ The RIOT port for ESP32 realizes with module ```esp_eth``` a ```netdev``` driver
If the board has one of the supported PHY layer chips connected to the ESP32, the ```esp_eth``` module should be enabled by default in board's ```Makefile.dep``` when module ```netdev_default``` is used.
```
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += esp_eth
endif
```

View File

@ -29,7 +29,7 @@ ifneq (,$(filter esp_wifi_enterprise,$(USEMODULE)))
USEMODULE += esp_wifi
endif
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
ifneq (,$(filter lwip,$(USEMODULE)))
# for lwip, use esp_wifi as default netdev if no other netdev is enabled
ifeq (,$(filter esp_eth,$(USEMODULE)))

View File

@ -3,4 +3,4 @@ BOARD ?= openmote-b
# the radio driver to test
USEMODULE += at86rf215
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk

View File

@ -4,4 +4,4 @@ USEMODULE = atwinc15x0
# msp430-gcc doesn't support -Wno-discarded-qualifiers
FEATURES_BLACKLIST += arch_msp430
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk

View File

@ -1,4 +1,4 @@
# the driver to test
USEMODULE = dose
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk

View File

@ -1,4 +1,4 @@
# the radio driver to test
USEMODULE = mrf24j40md
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk

View File

@ -1,28 +1,4 @@
include ../Makefile.tests_common
# use the default network interface for the board
USEMODULE += gnrc_netdev_default
# Modules to include:
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
# allow to use a smaller packet buffer in low-PDU drivers
ifdef GNRC_PKTBUF_SIZE
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=$(GNRC_PKTBUF_SIZE)
endif
# gnrc is a meta module including all required, basic gnrc networking modules
USEMODULE += gnrc
# automatically initialize the network interface
USEMODULE += auto_init_gnrc_netif
# shell command to send L2 packets with a simple string
USEMODULE += gnrc_txtsnd
# the application dumps received packets to stdout
USEMODULE += gnrc_pktdump
include $(RIOTBASE)/Makefile.include
# Set a custom channel if needed
include $(RIOTMAKE)/default-radio-settings.inc.mk
include Makefile.netdev.mk

View File

@ -0,0 +1,28 @@
include ../Makefile.tests_common
# Modules to include:
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
# allow to use a smaller packet buffer in low-PDU drivers
ifdef GNRC_PKTBUF_SIZE
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=$(GNRC_PKTBUF_SIZE)
endif
# gnrc is a meta module including all required, basic gnrc networking modules
USEMODULE += gnrc
# automatically initialize the network interface
USEMODULE += auto_init_gnrc_netif
# shell command to send L2 packets with a simple string
USEMODULE += gnrc_txtsnd
# the application dumps received packets to stdout
USEMODULE += gnrc_pktdump
include $(RIOTBASE)/Makefile.include
# Set a custom channel if needed
include $(RIOTMAKE)/default-radio-settings.inc.mk

View File

@ -1,4 +1,4 @@
# the driver to test
USEMODULE = w5100
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk

View File

@ -3,4 +3,4 @@ USEMODULE += xbee
# No need of big buffer for this test
GNRC_PKTBUF_SIZE=512
include ../driver_netdev_common/Makefile
include ../driver_netdev_common/Makefile.netdev.mk