crashtest-r0ket/firmware/main.c
Stefan `Sec` Zehl 535b635b0e First draft of the new global config system
Sorry if your display is mirrored again %)
2011-07-27 00:57:36 +02:00

34 lines
870 B
C

#include <sysinit.h>
#include "core/cpu/cpu.h"
#include "core/pmu/pmu.h"
#include "basic/basic.h"
#include "lcd/render.h"
/**************************************************************************/
void wrapper(void);
int main(void) {
// Configure cpu and mandatory peripherals
cpuInit(); // Configure the CPU
// we do it later
// systickInit(CFG_SYSTICK_DELAY_IN_MS); // Start systick timer
// cpuInit already calls this
// gpioInit(); // Enable GPIO
pmuInit(); // Configure power management
adcInit(); // Config adc pins to save power
// initialise basic badge functions
rbInit();
fsInit();
lcdInit(); // display
lcdFill(0);
lcdDisplay();
wrapper(); // see module/ subdirectory
}