mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-11-15 17:15:57 -05:00
26 lines
622 B
C
26 lines
622 B
C
/* 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 */
|