diff options
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r-- | firmware/target/coldfire/iaudio/x5/power-x5.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/power-x5.c b/firmware/target/coldfire/iaudio/x5/power-x5.c index 4199993637..253c904588 100644 --- a/firmware/target/coldfire/iaudio/x5/power-x5.c +++ b/firmware/target/coldfire/iaudio/x5/power-x5.c | |||
@@ -64,20 +64,6 @@ void power_off(void) | |||
64 | yield(); | 64 | yield(); |
65 | } | 65 | } |
66 | 66 | ||
67 | static bool powered = false; | ||
68 | |||
69 | bool radio_powered() | ||
70 | { | ||
71 | return powered; | ||
72 | } | ||
73 | |||
74 | bool radio_power(bool status) | ||
75 | { | ||
76 | bool old_status = powered; | ||
77 | powered = status; | ||
78 | return old_status; | ||
79 | } | ||
80 | |||
81 | #else | 67 | #else |
82 | 68 | ||
83 | bool charger_inserted(void) | 69 | bool charger_inserted(void) |
@@ -100,3 +86,17 @@ void ide_power_enable(bool on) | |||
100 | } | 86 | } |
101 | 87 | ||
102 | #endif /* SIMULATOR */ | 88 | #endif /* SIMULATOR */ |
89 | |||
90 | static bool powered = false; | ||
91 | |||
92 | bool radio_powered() | ||
93 | { | ||
94 | return powered; | ||
95 | } | ||
96 | |||
97 | bool radio_power(bool status) | ||
98 | { | ||
99 | bool old_status = powered; | ||
100 | powered = status; | ||
101 | return old_status; | ||
102 | } | ||