More fixes for Cortex-M0/Cortex-M3/Cortex-M4 implementations.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-02-08 12:22:16 +09:00
parent 2832104263
commit cfcdeebb78
4 changed files with 109 additions and 120 deletions

View File

@@ -31,8 +31,6 @@ reset (void)
}
extern uint8_t __main_stack_end__;
extern void preempt (void);
extern void chx_timer_handler (void);
extern void chx_handle_intr (void);
static void nmi (void)
@@ -84,8 +82,8 @@ handler vector[] __attribute__ ((section(".vectors"))) = {
none, /* SVCall */
none, /* Debug */
none, /* reserved */
preempt, /* PendSV */
chx_timer_handler, /* SysTick */
none, /* PendSV */
chx_handle_intr, /* SysTick */
/* 0x40 */
chx_handle_intr /* WWDG */, chx_handle_intr /* PVD */,
chx_handle_intr /* TAMPER */, chx_handle_intr /* RTC */,