2017-04-06 19:11:36 -06:00
|
|
|
#ifdef STM32F4
|
|
|
|
#define PANDA
|
|
|
|
#include "stm32f4xx.h"
|
|
|
|
#else
|
|
|
|
#include "stm32f2xx.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "early.h"
|
2017-04-17 14:57:34 -06:00
|
|
|
#include "libc.h"
|
2017-04-06 19:11:36 -06:00
|
|
|
|
|
|
|
void __initialize_hardware_early() {
|
|
|
|
early();
|
|
|
|
}
|
|
|
|
|
|
|
|
int main() {
|
2017-04-17 14:57:34 -06:00
|
|
|
clock_init();
|
|
|
|
|
|
|
|
// TODO: do signature check
|
|
|
|
|
|
|
|
// jump to flash
|
|
|
|
((void(*)()) _app_start[1])();
|
2017-04-06 19:11:36 -06:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|