mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
37 lines
746 B
C
37 lines
746 B
C
|
/*
|
||
|
* Copyright (C) Baptiste Clenet
|
||
|
*
|
||
|
* This file is subject to the terms and conditions of the GNU Lesser
|
||
|
* General Public License v2.1. See the file LICENSE in the top level
|
||
|
* directory for more details.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @{
|
||
|
* @ingroup net
|
||
|
* @file
|
||
|
* @brief Implementation of OpenThread misc platform abstraction
|
||
|
*
|
||
|
* @author Baptiste Clenet <bapclenet@gmail.com>
|
||
|
* @}
|
||
|
*/
|
||
|
|
||
|
|
||
|
#include "openthread/types.h"
|
||
|
#include "openthread/platform/misc.h"
|
||
|
#include "periph/pm.h"
|
||
|
|
||
|
void otPlatReset(otInstance *aInstance)
|
||
|
{
|
||
|
(void)aInstance;
|
||
|
printf("reboot...\n");
|
||
|
pm_reboot();
|
||
|
}
|
||
|
|
||
|
otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||
|
{
|
||
|
(void)aInstance;
|
||
|
/* TODO: Write me! */
|
||
|
return kPlatResetReason_PowerOn;
|
||
|
}
|