2020-11-23 21:48:35 -05:00
|
|
|
/* boot.c -- entry point at reset
|
2021-03-03 02:17:56 -05:00
|
|
|
** Copyright (c) 2020-2021 Renaud Fivet
|
2020-11-23 21:48:35 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Memory locations defined by linker script */
|
2021-03-03 02:17:56 -05:00
|
|
|
void __StackTop( void) ; /* __StackTop points after end of stack */
|
2020-11-23 21:48:35 -05:00
|
|
|
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"))) = {
|
2021-03-03 02:17:56 -05:00
|
|
|
__StackTop,
|
2020-11-23 21:48:35 -05:00
|
|
|
/* System Exceptions */
|
|
|
|
Reset_Handler
|
|
|
|
} ;
|
|
|
|
|
|
|
|
void Reset_Handler( void) {
|
|
|
|
for( ;;) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* end of boot.c */
|