2018-03-07 23:01:27 +00:00
|
|
|
/*
|
|
|
|
* Startup code for the STM32F103-based blue pill board.
|
|
|
|
*
|
|
|
|
* TODO: revisit stack pointer
|
|
|
|
* TODO: is the IRQv buffer actually needed right now?
|
|
|
|
*/
|
|
|
|
|
|
|
|
.globl vectors
|
2018-03-07 23:55:54 +00:00
|
|
|
vectors:
|
2018-03-07 23:01:27 +00:00
|
|
|
.align 2
|
|
|
|
.long 0x100 /* best guess at stack pointer */
|
|
|
|
.long reset_handler /* reset handler */
|
|
|
|
.long 0 /* NMI handler */
|
|
|
|
.long 0 /* hard_fault_handler */
|
|
|
|
.long 0 /* memory management handler */
|
|
|
|
.long 0 /* bus fault handler */
|
|
|
|
.long 0 /* usage fault handler */
|
|
|
|
.skip 0x20 /* reserved */
|
|
|
|
.long 0 /* svcall handler */
|
|
|
|
.long 0 /* debug handler */
|
|
|
|
.skip 4 /* reserved */
|
|
|
|
.long 0 /* pendsv handler */
|
|
|
|
.long 0 /* systick handler */
|
2018-03-07 23:55:54 +00:00
|
|
|
.skip 0xf4 /* remaining / IRQ vectors */
|
2018-03-07 23:01:27 +00:00
|
|
|
|
|
|
|
.globl reset_handler
|
|
|
|
reset_handler:
|
|
|
|
bl main
|