Merge pull request #14845 from fjmolinas/pr_driver_netdev_common
tests/driver_netdev_common: add netdev_default
This commit is contained in:
commit
b6a542668b
@ -3,7 +3,7 @@ ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|||||||
USEMODULE += atmega_pcint1
|
USEMODULE += atmega_pcint1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_netdev_default netdev_default,$(USEMODULE)))
|
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
||||||
USEMODULE += at86rfa1
|
USEMODULE += at86rfa1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ ifneq (,$(filter atmega_pcint,$(USEMODULE)))
|
|||||||
USEMODULE += atmega_pcint1
|
USEMODULE += atmega_pcint1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter gnrc_netdev_default netdev_default,$(USEMODULE)))
|
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
||||||
USEMODULE += at86rfr2
|
USEMODULE += at86rfr2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
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
|
USEMODULE += esp_eth
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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.
|
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
|
USEMODULE += esp_eth
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
|||||||
@ -29,7 +29,7 @@ ifneq (,$(filter esp_wifi_enterprise,$(USEMODULE)))
|
|||||||
USEMODULE += esp_wifi
|
USEMODULE += esp_wifi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
||||||
ifneq (,$(filter lwip,$(USEMODULE)))
|
ifneq (,$(filter lwip,$(USEMODULE)))
|
||||||
# for lwip, use esp_wifi as default netdev if no other netdev is enabled
|
# for lwip, use esp_wifi as default netdev if no other netdev is enabled
|
||||||
ifeq (,$(filter esp_eth,$(USEMODULE)))
|
ifeq (,$(filter esp_eth,$(USEMODULE)))
|
||||||
|
|||||||
@ -3,4 +3,4 @@ BOARD ?= openmote-b
|
|||||||
# the radio driver to test
|
# the radio driver to test
|
||||||
USEMODULE += at86rf215
|
USEMODULE += at86rf215
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
@ -4,4 +4,4 @@ USEMODULE = atwinc15x0
|
|||||||
# msp430-gcc doesn't support -Wno-discarded-qualifiers
|
# msp430-gcc doesn't support -Wno-discarded-qualifiers
|
||||||
FEATURES_BLACKLIST += arch_msp430
|
FEATURES_BLACKLIST += arch_msp430
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# the driver to test
|
# the driver to test
|
||||||
USEMODULE = dose
|
USEMODULE = dose
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# the radio driver to test
|
# the radio driver to test
|
||||||
USEMODULE = mrf24j40md
|
USEMODULE = mrf24j40md
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
@ -1,28 +1,4 @@
|
|||||||
include ../Makefile.tests_common
|
# use the default network interface for the board
|
||||||
|
USEMODULE += gnrc_netdev_default
|
||||||
|
|
||||||
# Modules to include:
|
include Makefile.netdev.mk
|
||||||
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
|
|
||||||
|
|||||||
28
tests/driver_netdev_common/Makefile.netdev.mk
Normal file
28
tests/driver_netdev_common/Makefile.netdev.mk
Normal 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
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# the driver to test
|
# the driver to test
|
||||||
USEMODULE = w5100
|
USEMODULE = w5100
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
@ -3,4 +3,4 @@ USEMODULE += xbee
|
|||||||
# No need of big buffer for this test
|
# No need of big buffer for this test
|
||||||
GNRC_PKTBUF_SIZE=512
|
GNRC_PKTBUF_SIZE=512
|
||||||
|
|
||||||
include ../driver_netdev_common/Makefile
|
include ../driver_netdev_common/Makefile.netdev.mk
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user