sensors: magn_polling: convert to and build with unified kernel
Change-Id: Ib0c364c1e9faa95adf8e7a5dde8d6aa1214d9771 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
159b27f3c5
commit
1dc946bda1
|
@ -1,4 +1,4 @@
|
|||
KERNEL_TYPE = nano
|
||||
KERNEL_TYPE = unified
|
||||
BOARD ?= arduino_101_sss
|
||||
CONF_FILE = prj.conf
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
CONFIG_STDOUT_CONSOLE=y
|
||||
CONFIG_I2C=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_NANO_TIMEOUTS=y
|
||||
CONFIG_SENSOR=y
|
||||
CONFIG_BMC150_MAGN=y
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <nanokernel.h>
|
||||
#include <device.h>
|
||||
#include <sensor.h>
|
||||
#include <misc/printk.h>
|
||||
|
@ -38,7 +37,7 @@ static void do_main(struct device *dev)
|
|||
ret = sensor_channel_get(dev, SENSOR_CHAN_MAGN_Z, &value_z);
|
||||
printf("( x y z ) = ( %f %f %f )\n", value_x.dval, value_y.dval, value_z.dval);
|
||||
|
||||
task_sleep(sys_clock_ticks_per_sec/20);
|
||||
k_sleep(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[test]
|
||||
kernel = nano
|
||||
kernel = unified
|
||||
build_only = true
|
||||
tags = samples
|
||||
platform_whitelist = quark_d2000_crb
|
||||
|
|
Loading…
Reference in a new issue