mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 12:43:09 +00:00
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>
38 lines
725 B
C
38 lines
725 B
C
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <zephyr/sys/reboot.h>
|
|
#include <openthread/instance.h>
|
|
#include <openthread/platform/misc.h>
|
|
|
|
#include "platform-zephyr.h"
|
|
|
|
void otPlatReset(otInstance *aInstance)
|
|
{
|
|
ARG_UNUSED(aInstance);
|
|
|
|
/* This function does nothing on the Posix platform. */
|
|
sys_reboot(SYS_REBOOT_WARM);
|
|
}
|
|
|
|
otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
|
{
|
|
ARG_UNUSED(aInstance);
|
|
|
|
return OT_PLAT_RESET_REASON_POWER_ON;
|
|
}
|
|
|
|
void otPlatWakeHost(void)
|
|
{
|
|
/* TODO */
|
|
}
|
|
|
|
void otPlatAssertFail(const char *aFilename, int aLineNumber)
|
|
{
|
|
__ASSERT(false, "OpenThread ASSERT @ %s:%d", aFilename, aLineNumber);
|
|
}
|