summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/ypr0/system-ypr0.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/ypr0/system-ypr0.c')
-rw-r--r--firmware/target/hosted/ypr0/system-ypr0.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/target/hosted/ypr0/system-ypr0.c b/firmware/target/hosted/ypr0/system-ypr0.c
index 3a2b30339f..bf3b1cd4c9 100644
--- a/firmware/target/hosted/ypr0/system-ypr0.c
+++ b/firmware/target/hosted/ypr0/system-ypr0.c
@@ -32,16 +32,11 @@
32 32
33#include "ascodec-target.h" 33#include "ascodec-target.h"
34 34
35void sim_do_exit(void) 35void power_off(void)
36{
37 exit(EXIT_SUCCESS);
38}
39
40void shutdown_hw(void)
41{ 36{
42 /* Something that we need to do before exit on our platform YPR0 */ 37 /* Something that we need to do before exit on our platform YPR0 */
43 ascodec_close(); 38 ascodec_close();
44 sim_do_exit(); 39 exit(EXIT_SUCCESS);
45} 40}
46 41
47uintptr_t *stackbegin; 42uintptr_t *stackbegin;
@@ -62,7 +57,7 @@ void system_init(void)
62 57
63void system_reboot(void) 58void system_reboot(void)
64{ 59{
65 sim_do_exit(); 60 power_off();
66} 61}
67 62
68void system_exception_wait(void) 63void system_exception_wait(void)