tests: Build test for nsim uart.
Change-Id: Iacfee9cc21b4f4e58d525bde11cdf6feb5a79d30 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
fc59e5b584
commit
9b131c7f2d
6 changed files with 45 additions and 0 deletions
5
tests/drivers/nsim_uart/Makefile
Normal file
5
tests/drivers/nsim_uart/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
KERNEL_TYPE = nano
|
||||||
|
BOARD ?= arduino_101_sss
|
||||||
|
CONF_FILE = prj.conf
|
||||||
|
|
||||||
|
include ${ZEPHYR_BASE}/Makefile.inc
|
1
tests/drivers/nsim_uart/README.txt
Normal file
1
tests/drivers/nsim_uart/README.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This is simply to build the nsim uart driver to catch build breakage.
|
2
tests/drivers/nsim_uart/prj.conf
Normal file
2
tests/drivers/nsim_uart/prj.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
CONFIG_NSIM=y
|
||||||
|
CONFIG_UART_NSIM=y
|
1
tests/drivers/nsim_uart/src/Makefile
Normal file
1
tests/drivers/nsim_uart/src/Makefile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
obj-y += main.o
|
32
tests/drivers/nsim_uart/src/main.c
Normal file
32
tests/drivers/nsim_uart/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/nsim_uart/testcase.ini
Normal file
4
tests/drivers/nsim_uart/testcase.ini
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[test_pinmux_dev]
|
||||||
|
build_only = true
|
||||||
|
tags = drivers
|
||||||
|
platform_whitelist = arduino_101_sss
|
Loading…
Add table
Add a link
Reference in a new issue