mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
18 lines
350 B
C
18 lines
350 B
C
/*
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
* "inner" restart function on POSIX/Linux just exits.
|
|
*/
|
|
void esp_restart_noos(void)
|
|
{
|
|
printf("restart triggered on Linux, hence exiting\n");
|
|
exit(0); // TODO: other exit value?
|
|
}
|