From d1951f4f9e61484835c2a5c7b2729d31de0d0ef2 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 11 Feb 2016 17:16:24 +0200 Subject: [PATCH] cc2520: Move the device init to application level This is needed because in the microkernel, the system clock is not yet running and the cc2520 driver needs that. By moving the device initialization later, the clock gets to run and the cc2520 driver works both in nanokernel and microkernel. See also related commit 3c66686a43ffa78932aaa6b1e2338c2f3d347a13 for details. Change-Id: Idc5530398b4cff2bb3e0955c8ab57c5f03344079 Signed-off-by: Jukka Rissanen --- drivers/802.15.4/cc2520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/802.15.4/cc2520.c b/drivers/802.15.4/cc2520.c index 2492999df73..5cd20319cb0 100644 --- a/drivers/802.15.4/cc2520.c +++ b/drivers/802.15.4/cc2520.c @@ -1254,4 +1254,4 @@ static int cc2520_init(struct device *dev) DEVICE_INIT(cc2520, CONFIG_CC2520_DRV_NAME, cc2520_init, NULL, &cc2520_config, - NANOKERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); + APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);