projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewrite urls in docbook format
[fw/altos]
/
src
/
ao_teledongle.c
diff --git
a/src/ao_teledongle.c
b/src/ao_teledongle.c
index 567751c6097f3f9f17bdf8dc2165e6041dbc97e2..505dc0cbfb0497c9ac67f4a2d98de96d923c4f02 100644
(file)
--- a/
src/ao_teledongle.c
+++ b/
src/ao_teledongle.c
@@
-15,19
+15,15
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#define AO_NO_SERIAL_ISR 1
-#define AO_NO_ADC_ISR 1
#include "ao.h"
void
main(void)
{
#include "ao.h"
void
main(void)
{
- CLKCON = 0;
- while (!(SLEEP & SLEEP_XOSC_STB))
- ;
+ ao_clock_init();
/* Turn on the LED until the system is stable */
/* Turn on the LED until the system is stable */
- ao_led_init(
AO_LED_RED|AO_LED_GREEN
);
+ ao_led_init(
LEDS_AVAILABLE
);
ao_led_on(AO_LED_RED);
ao_timer_init();
ao_cmd_init();
ao_led_on(AO_LED_RED);
ao_timer_init();
ao_cmd_init();
@@
-35,7
+31,11
@@
main(void)
ao_monitor_init(AO_LED_GREEN, TRUE);
ao_rssi_init(AO_LED_RED);
ao_radio_init();
ao_monitor_init(AO_LED_GREEN, TRUE);
ao_rssi_init(AO_LED_RED);
ao_radio_init();
+ ao_packet_slave_init();
+ ao_packet_master_init();
+#if HAS_DBG
ao_dbg_init();
ao_dbg_init();
+#endif
ao_config_init();
ao_start_scheduler();
}
ao_config_init();
ao_start_scheduler();
}