first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / kernel / ao_forward.c
index 2a937183f309466cd975341bc59a625969d5d498..6f664b60578add2e8c579f0ce198ddf571e67c0a 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,11 +23,11 @@ static void
 ao_monitor_forward(void)
 {
        uint32_t                                        recv_radio_setting;
-       static __xdata struct ao_telemetry_all_recv     packet;
+       static struct ao_telemetry_all_recv     packet;
 
        for (;;) {
                while (ao_monitoring)
-                       ao_sleep(DATA_TO_XDATA(&ao_monitoring));
+                       ao_sleep(&ao_monitoring);
 
                if (!ao_radio_recv(&packet, sizeof(packet), 0))
                        continue;
@@ -39,10 +40,10 @@ ao_monitor_forward(void)
        }
 }
 
-static __xdata struct ao_task ao_monitor_forward_task;
+static struct ao_task ao_monitor_forward_task;
 
 void
-ao_monitor_forward_init(void) __reentrant
+ao_monitor_forward_init(void) 
 {
        ao_add_task(&ao_monitor_forward_task, ao_monitor_forward, "monitor_forward");
 }