-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: combine similar network driver tests #5286
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
06236aa
tests: remove individual network driver test applications
kaspar030 1f53f64
tests: introduce shared network driver test application
kaspar030 74e43a7
squash: add encx24j600 to driver_netdev
kaspar030 74d783e
squash: remove driver_encx24j600
kaspar030 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
APPLICATION = driver_netdev | ||
|
||
include ../Makefile.tests_common | ||
|
||
USEMODULE += shell | ||
USEMODULE += shell_commands | ||
USEMODULE += ps | ||
|
||
# include specific driver makefiles in order to test compilation | ||
# in order to make the test application work, comment all but one | ||
include Makefile.enc28j60 | ||
include Makefile.encx24j600 | ||
include Makefile.kw2xrf | ||
include Makefile.xbee | ||
|
||
# test if multiple drivers are compiled in | ||
ifneq (x,$(DRIVERS)) | ||
CFLAGS += -DMULTIPLE_DRIVERS | ||
BOARD_INSUFFICIENT_MEMORY += airfy-beacon nrf6310 pca10005 yunjia-nrf51822 | ||
endif | ||
|
||
# make sure local parameter headers can be found | ||
CFLAGS += -I$(CURDIR) | ||
|
||
# lower pktbuf size | ||
CFLAGS += -DGNRC_PKTBUF_SIZE=2048 | ||
|
||
include $(RIOTBASE)/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FEATURES_REQUIRED += periph_spi periph_gpio | ||
|
||
BOARD_INSUFFICIENT_MEMORY += msb-430h nucleo-f334 stm32f0discovery weio z1 | ||
|
||
USEMODULE += enc28j60 | ||
USEMODULE += gnrc_netdev2 | ||
USEMODULE += gnrc_netdev_default | ||
USEMODULE += auto_init_gnrc_netif | ||
USEMODULE += gnrc_ipv6_router_default | ||
|
||
# set board specific peripheral configurations | ||
ifneq (,$(filter stm32f4discovery,$(BOARD))) | ||
ENC28_SPI ?= SPI_1 | ||
ENC28_CS ?= GPIO_PIN\(PORT_B,12\) | ||
ENC28_INT ?= GPIO_PIN\(PORT_B,11\) | ||
ENC28_RST ?= GPIO_PIN\(PORT_B,10\) | ||
endif | ||
|
||
# fallback: set SPI bus and pins to default values | ||
ENC28_SPI ?= SPI_0 | ||
ENC28_CS ?= GPIO_PIN\(0,0\) | ||
ENC28_INT ?= GPIO_PIN\(0,1\) | ||
ENC28_RST ?= GPIO_PIN\(0,2\) | ||
|
||
# export SPI and pins | ||
CFLAGS += -DENC28J60_PARAM_SPI=$(ENC28_SPI) | ||
CFLAGS += -DENC28J60_PARAM_CS=$(ENC28_CS) | ||
CFLAGS += -DENC28J60_PARAM_INT=$(ENC28_INT) | ||
CFLAGS += -DENC28J60_PARAM_RESET=$(ENC28_RST) | ||
|
||
DRIVERS += x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FEATURES_REQUIRED += periph_spi periph_gpio | ||
|
||
BOARD_INSUFFICIENT_MEMORY += msb-430h stm32f0discovery weio z1 | ||
|
||
USEMODULE += encx24j600 | ||
USEMODULE += gnrc_netdev2 | ||
USEMODULE += gnrc_netdev_default | ||
USEMODULE += auto_init_gnrc_netif | ||
USEMODULE += gnrc_ipv6_router_default | ||
USEMODULE += gnrc_icmpv6_echo | ||
USEMODULE += shell | ||
USEMODULE += shell_commands | ||
USEMODULE += ps | ||
|
||
# set board specific peripheral configurations | ||
ifneq (,$(filter nucleo-f334,$(BOARD))) | ||
# these settings are probably valid for PoEll-i on most nucleo boards, but | ||
# tested only on nucleo-f334 | ||
ENCX24_SPI ?= SPI_0 | ||
ENCX24_CS ?= GPIO_PIN\(PORT_C,10\) | ||
ENCX24_INT ?= GPIO_PIN\(PORT_D,2\) | ||
endif | ||
|
||
# fallback: set SPI bus and pins to default values | ||
ENCX24_SPI ?= SPI_0 | ||
ENCX24_CS ?= GPIO_PIN\(0,0\) | ||
ENCX24_INT ?= GPIO_PIN\(0,1\) | ||
# export SPI and pins | ||
CFLAGS += -DENCX24J600_SPI=$(ENCX24_SPI) | ||
CFLAGS += -DENCX24J600_CS=$(ENCX24_CS) | ||
CFLAGS += -DENCX24J600_INT=$(ENCX24_INT) | ||
|
||
DRIVERS += x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
USEMODULE += xbee | ||
|
||
FEATURES_REQUIRED += periph_uart periph_gpio | ||
BOARD_INSUFFICIENT_MEMORY += stm32f0discovery weio | ||
|
||
USEMODULE += gnrc_netif | ||
USEMODULE += auto_init_gnrc_netif | ||
USEMODULE += gnrc_nomac | ||
|
||
# set default UART to use in case none was defined | ||
XBEE_UART ?= "UART_NUMOF-1" | ||
|
||
# export UART to params file | ||
CFLAGS += -DXBEE_UART=$(XBEE_UART) | ||
|
||
DRIVERS += x |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This always seem to be the case, when I parse the included makefiles correctly. Please explain.