zephyr/subsys/net/lib/openthread/platform/platform.c
Martin Turon 6410a16adb openthread: Update openthread version to latest upstream/master.
Update zephyr integration of openthread to latest api as of 2018-12-17:

2a75d30684

Both echo_server and echo_client compile and are operational.

Signed-off-by: Martin Turon <mturon@google.com>
2018-12-20 12:24:51 +01:00

34 lines
549 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);
}