When NCP starts-up some of the initialisation functions of a regular OpenThread device do not need to be called, because they get triggered by wpantund via UART. Instead NCP initialisation needs to be called. A small typo has been fixed as well. Also initialisation for raw link packet interface has been added. Can be used for picking up 802.15.4 frames and interpreting them in the application. Signed-off-by: Markus Becker <markus.becker@tridonic.com>
37 lines
628 B
C
37 lines
628 B
C
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief
|
|
* This file includes the platform-specific initializers.
|
|
*/
|
|
|
|
#include <kernel.h>
|
|
#include <openthread/instance.h>
|
|
#include <openthread/tasklet.h>
|
|
|
|
#include "platform-zephyr.h"
|
|
|
|
void otSysInit(int argc, char *argv[])
|
|
{
|
|
ARG_UNUSED(argc);
|
|
ARG_UNUSED(argv);
|
|
|
|
platformAlarmInit();
|
|
platformRadioInit();
|
|
}
|
|
|
|
void otSysProcessDrivers(otInstance *aInstance)
|
|
{
|
|
platformRadioProcess(aInstance);
|
|
platformAlarmProcess(aInstance);
|
|
|
|
if (IS_ENABLED(CONFIG_OPENTHREAD_NCP)) {
|
|
platformUartProcess(aInstance);
|
|
}
|
|
}
|