OpenThread requires platform definition with standarized API so we have to add wrappers to make it compatible with Zephyr. OpenThread is based on autoconf, this requires more specific CMakeLists.txt which allows to clone specific commit or point to local copy of openthread. Signed-off-by: Kamil Sroka <kamil.sroka@nordicsemi.no>
34 lines
557 B
C
34 lines
557 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/openthread.h>
|
|
#include <openthread/tasklet.h>
|
|
|
|
#include "platform-zephyr.h"
|
|
|
|
void PlatformInit(int argc, char *argv[])
|
|
{
|
|
ARG_UNUSED(argc);
|
|
ARG_UNUSED(argv);
|
|
|
|
platformAlarmInit();
|
|
platformRadioInit();
|
|
}
|
|
|
|
void PlatformProcessDrivers(otInstance *aInstance)
|
|
{
|
|
platformRadioProcess(aInstance);
|
|
platformAlarmProcess(aInstance);
|
|
}
|
|
|