zephyr/modules/openthread/platform/platform.c
Robert Lubos 815ebc316e net: openthread: Move glue code into module directory
Move OpenThread's glue code along with the Kconfig files that configure
OpenThread stack itself into module directory.

Update the maintainers file to reflect this change.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-07-11 11:00:12 +02:00

37 lines
643 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief
* This file includes the platform-specific initializers.
*/
#include <zephyr/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);
platformRadioInit();
platformAlarmInit();
}
void otSysProcessDrivers(otInstance *aInstance)
{
platformRadioProcess(aInstance);
platformAlarmProcess(aInstance);
if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR)) {
platformUartProcess(aInstance);
}
}