samples: aio_comparator: use unified kernel

Use unified kernel for AIO comparator sample app.

Change-Id: Id6a9016a9c00d7400395dfbc431d7438804ffe37
Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
This commit is contained in:
Sergio Rodriguez 2016-11-02 15:41:31 -07:00 committed by Anas Nashif
parent 24a2fb19f9
commit fdf77e56bc
3 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
BOARD ?= quark_se_c1000_devboard
KERNEL_TYPE = nano
KERNEL_TYPE = unified
CONF_FILE = prj.conf
include ${ZEPHYR_BASE}/Makefile.inc

View File

@ -40,8 +40,8 @@
#include <device.h>
#include <aio_comparator.h>
/* specify delay between greetings (in ms); compute equivalent in ticks */
#define SLEEPTIME SECONDS(5)
/* specify delay between greetings (in ms) */
#define SLEEPTIME 5000
struct cb_data_t {
uint8_t ain_idx;
@ -81,10 +81,6 @@ void main(void)
struct device *aio_cmp_dev;
int i, ret;
int cnt = 0;
uint32_t timer_data[2] = {0, 0};
struct nano_timer timer;
nano_timer_init(&timer, timer_data);
aio_cmp_dev = device_get_binding("AIO_CMP_0");
@ -104,8 +100,7 @@ void main(void)
printf("... waiting for event! (%d)\n", ++cnt);
/* wait a while */
nano_task_timer_start(&timer, SLEEPTIME);
nano_task_timer_test(&timer, TICKS_UNLIMITED);
k_sleep(SLEEPTIME);
}
}

View File

@ -1,6 +1,6 @@
[test]
build_only = true
tags = drivers
kernel = unified
arch_whitelist = x86
platform_whitelist = arduino_101