1 /*
2  * Copyright (c) 2018 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief
10  *   This file includes the platform-specific initializers.
11  */
12 
13 #include <zephyr/kernel.h>
14 #include <openthread/instance.h>
15 #include <openthread/tasklet.h>
16 
17 #include "platform-zephyr.h"
18 
otSysInit(int argc,char * argv[])19 void otSysInit(int argc, char *argv[])
20 {
21 	ARG_UNUSED(argc);
22 	ARG_UNUSED(argv);
23 
24 	platformRadioInit();
25 	platformAlarmInit();
26 }
27 
otSysProcessDrivers(otInstance * aInstance)28 void otSysProcessDrivers(otInstance *aInstance)
29 {
30 	platformRadioProcess(aInstance);
31 	platformAlarmProcess(aInstance);
32 
33 	if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR)) {
34 		platformUartProcess(aInstance);
35 	}
36 }
37