1
0
mirror of https://github.com/rfivet/stm32bringup.git synced 2024-12-21 16:26:35 -05:00
stm32bringup/boot.c

26 lines
622 B
C
Raw Normal View History

/* boot.c -- entry point at reset
** Copyright (c) 2020 Renaud Fivet
*/
/* Memory locations defined by linker script */
extern long __StackTop ; /* &__StackTop points after end of stack */
void Reset_Handler( void) ; /* Entry point for execution */
/* Interrupt vector table:
* 1 Stack Pointer reset value
* 15 System Exceptions
* NN Device specific Interrupts
*/
typedef void (*isr_p)( void) ;
isr_p const isr_vector[ 2] __attribute__((section(".isr_vector"))) = {
(isr_p) &__StackTop,
/* System Exceptions */
Reset_Handler
} ;
void Reset_Handler( void) {
for( ;;) ;
}
/* end of boot.c */