X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Fstm32f407.c;h=10ec8f463df142c69b744b3305f6621e33d30728;hp=f59967af96fde1017899bd7b5d2bce7e59b40be0;hb=60c3c89f25870849e5c64dd415429822f483bc3f;hpb=b58937eb83447c1c3d073ed6343f5ac062f9f969 diff --git a/firmware/lib/stm32f407.c b/firmware/lib/stm32f407.c index f59967a..10ec8f4 100644 --- a/firmware/lib/stm32f407.c +++ b/firmware/lib/stm32f407.c @@ -47,3 +47,21 @@ void setbaud1(unsigned char rate){ } +//Declarations +void nmi_handler(void); +void hardfault_handler(void); +int main(void); + +//From min.s +void Reset_Handler(void); + + + +// Define the vector table +unsigned int * myvectors[50] + __attribute__ ((section("vectors")))= { + (unsigned int *) 0x20000800, // stack pointer + (unsigned int *) Reset_Handler, // code entry point + (unsigned int *) main, // NMI handler (not really) + (unsigned int *) main, // hard fault handler (let's hope not) +};