blob: 8484c22c877740c89055af7a317c2f345d99d119 [file] [log] [blame]
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <power/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;
}