tests: Add build test for enc28j60 SPI standalone ethernet driver.
Change-Id: Ieba53e625b2231ef9c492dbe6bfb8b01a5371226 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
3316cb3898
commit
bf49fee348
6 changed files with 52 additions and 0 deletions
5
tests/drivers/enc28j60/Makefile
Normal file
5
tests/drivers/enc28j60/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
|||
KERNEL_TYPE = nano
|
||||
BOARD ?= arduino_101
|
||||
CONF_FILE = prj.conf
|
||||
|
||||
include ${ZEPHYR_BASE}/Makefile.inc
|
2
tests/drivers/enc28j60/README.txt
Normal file
2
tests/drivers/enc28j60/README.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Build test for:
|
||||
en28j60 standalone SPI ethernet driver.
|
8
tests/drivers/enc28j60/prj.conf
Normal file
8
tests/drivers/enc28j60/prj.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
CONFIG_SPI=y
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_ETHERNET=y
|
||||
CONFIG_ETH_ENC28J60=y
|
||||
CONFIG_ETH_ENC28J60_0=y
|
||||
CONFIG_ETH_ENC28J60_0_MAC2=0x02
|
||||
CONFIG_ETH_ENC28J60_0_MAC3=0xde
|
||||
CONFIG_ETH_ENC28J60_0_MAC4=0xad
|
1
tests/drivers/enc28j60/src/Makefile
Normal file
1
tests/drivers/enc28j60/src/Makefile
Normal file
|
@ -0,0 +1 @@
|
|||
obj-y += main.o
|
32
tests/drivers/enc28j60/src/main.c
Normal file
32
tests/drivers/enc28j60/src/main.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2014 Wind River Systems, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <misc/printk.h>
|
||||
|
||||
|
||||
/*
|
||||
* @file
|
||||
* @brief Hello World demo
|
||||
* Nanokernel version of hello world demo
|
||||
*/
|
||||
|
||||
|
||||
void main(void)
|
||||
{
|
||||
printk("Hello World!\n");
|
||||
}
|
||||
|
4
tests/drivers/enc28j60/testcase.ini
Normal file
4
tests/drivers/enc28j60/testcase.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[test_enc28j60_build]
|
||||
build_only = true
|
||||
tags = drivers
|
||||
platform_whitelist = arduino_101
|
Loading…
Add table
Add a link
Reference in a new issue