summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c')
-rw-r--r--FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c
index c3b5255a7..eadb0fb89 100644
--- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c
+++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/shutdown.c
@@ -4,19 +4,19 @@
#include <metal/machine.h>
#include <metal/shutdown.h>
-extern __inline__ void __metal_shutdown_exit(const struct __metal_shutdown *sd, int code);
+extern __inline__ void __metal_shutdown_exit(const struct __metal_shutdown *sd,
+ int code);
#if defined(__METAL_DT_SHUTDOWN_HANDLE)
-void metal_shutdown(int code)
-{
+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)
-{
+#pragma message( \
+ "There is no defined shutdown mechanism, metal_shutdown() will spin.")
+void metal_shutdown(int code) {
while (1) {
- __asm__ volatile ("nop");
+ __asm__ volatile("nop");
}
}
#endif