X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FRISC-V_RV32_SiFive_HiFive1_FreedomStudio%2Ffreedom-metal%2Fsrc%2Fshutdown.c;fp=FreeRTOS%2FDemo%2FRISC-V_RV32_SiFive_HiFive1_FreedomStudio%2Ffreedom-metal%2Fsrc%2Fshutdown.c;h=0000000000000000000000000000000000000000;hb=d38142e468c2f407c9cbbb271f487fc35879bdef;hp=c3b5255a7a39661892ee7259f46aa9e8ff8d744e;hpb=3bcd0c8a9d1b399c59475115322cbb93484e66d2;p=freertos diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/shutdown.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/shutdown.c deleted file mode 100644 index c3b5255a7..000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/shutdown.c +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright 2018 SiFive, Inc */ -/* SPDX-License-Identifier: Apache-2.0 */ - -#include -#include - -extern __inline__ void __metal_shutdown_exit(const struct __metal_shutdown *sd, int code); - -#if defined(__METAL_DT_SHUTDOWN_HANDLE) -void metal_shutdown(int code) -{ - __metal_shutdown_exit(__METAL_DT_SHUTDOWN_HANDLE, code); -} -#else -#pragma message("There is no defined shutdown mechanism, metal_shutdown() will spin.") -void metal_shutdown(int code) -{ - while (1) { - __asm__ volatile ("nop"); - } -} -#endif