*/
/* fuses:
- * avrdude -p atmega1284p -P usb -c avrispmkii -U lfuse:w:0xff:m -U hfuse:w:0x99:m -U efuse:w:0xff:m
+ * avrdude -p atmega1284p -P usb -c avrispmkii -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xff:m
*/
#include <aversive.h>
#include <rdline.h>
#include <timer.h>
+#include "eeprom_config.h"
#include "beep.h"
#include "main.h"
val += 512;
spi_servo_set(0, val);
break;
- }
+ }
case RC_PROTO_TYPE_RANGE: {
struct rc_proto_range *rcr =
(struct rc_proto_range *) recvframe->data;
fprintf(stderr, "cannot register default channel\n");
return -1;
}
-
sei();
+ eeprom_load_config();
xbee_mainloop();
return 0;
}