system_internal.c 350 B

1234567891011121314151617
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. /*
  9. * "inner" restart function on POSIX/Linux just exits.
  10. */
  11. void esp_restart_noos(void)
  12. {
  13. printf("restart triggered on Linux, hence exiting\n");
  14. exit(0); // TODO: other exit value?
  15. }