summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iaudio/x5/power-x5.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iaudio/x5/power-x5.c')
-rw-r--r--firmware/target/coldfire/iaudio/x5/power-x5.c28
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
67static bool powered = false;
68
69bool radio_powered()
70{
71 return powered;
72}
73
74bool 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
83bool charger_inserted(void) 69bool charger_inserted(void)
@@ -100,3 +86,17 @@ void ide_power_enable(bool on)
100} 86}
101 87
102#endif /* SIMULATOR */ 88#endif /* SIMULATOR */
89
90static bool powered = false;
91
92bool radio_powered()
93{
94 return powered;
95}
96
97bool radio_power(bool status)
98{
99 bool old_status = powered;
100 powered = status;
101 return old_status;
102}