2011-05-20 22:53:09 +00:00
|
|
|
#include <sysinit.h>
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-20 23:12:09 +00:00
|
|
|
#include "basic/basic.h"
|
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
#include "lcd/render.h"
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
#include "pmu/pmu.h"
|
|
|
|
#include "eeprom/eeprom.h"
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
void ReinvokeISP(void);
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
/**************************************************************************/
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-21 10:05:48 +00:00
|
|
|
void wrapper(void);
|
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
int main(void) {
|
|
|
|
// Configure cpu and mandatory peripherals
|
|
|
|
systemInit();
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
//enable clocks to adc and watchdog
|
|
|
|
pmuInit();
|
2011-05-12 00:24:35 +00:00
|
|
|
|
2011-05-20 22:53:09 +00:00
|
|
|
// initialise basic badge functions
|
|
|
|
rbInit();
|
|
|
|
|
2011-05-20 23:12:09 +00:00
|
|
|
lcdInit(); // display
|
2011-05-20 22:53:09 +00:00
|
|
|
|
|
|
|
adcInit();
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-21 01:05:57 +00:00
|
|
|
lcdFill(0);
|
2011-05-20 23:12:09 +00:00
|
|
|
lcdDisplay(0);
|
2011-05-11 21:24:05 +00:00
|
|
|
|
2011-05-21 10:05:48 +00:00
|
|
|
wrapper(); // see module/ subdirectory
|
2011-05-11 21:24:05 +00:00
|
|
|
}
|