diff options
Diffstat (limited to 'firmware/target/hosted/ypr0/system-ypr0.c')
-rw-r--r-- | firmware/target/hosted/ypr0/system-ypr0.c | 11 |
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 | ||
35 | void sim_do_exit(void) | 35 | void power_off(void) |
36 | { | ||
37 | exit(EXIT_SUCCESS); | ||
38 | } | ||
39 | |||
40 | void 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 | ||
47 | uintptr_t *stackbegin; | 42 | uintptr_t *stackbegin; |
@@ -62,7 +57,7 @@ void system_init(void) | |||
62 | 57 | ||
63 | void system_reboot(void) | 58 | void system_reboot(void) |
64 | { | 59 | { |
65 | sim_do_exit(); | 60 | power_off(); |
66 | } | 61 | } |
67 | 62 | ||
68 | void system_exception_wait(void) | 63 | void system_exception_wait(void) |