crashtest-r0ket/main.c
Stefan `Sec` Zehl 617a6f5720 Add new modules/ support infrastructure. Hope you like it.
add modules/$(USERNAME).c for your coding

use "make MODULE=foo" to build a specific module
2011-05-21 12:05:48 +02:00

36 lines
619 B
C

#include <sysinit.h>
#include "basic/basic.h"
#include "lcd/render.h"
#include "lcd/smallfonts.h"
#include "lcd/ubuntu18.h"
#include "pmu/pmu.h"
#include "eeprom/eeprom.h"
void ReinvokeISP(void);
/**************************************************************************/
void wrapper(void);
int main(void) {
// Configure cpu and mandatory peripherals
systemInit();
//enable clocks to adc and watchdog
pmuInit();
// initialise basic badge functions
rbInit();
lcdInit(); // display
adcInit();
lcdFill(0);
lcdDisplay(0);
wrapper(); // see module/ subdirectory
}