sdk: rename to timer0_irq_handler

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/4/head
liangkangnan 2021-08-19 10:22:18 +08:00
parent 4ac826a398
commit 1218a1ef4b
3 changed files with 12 additions and 7 deletions

View File

@ -16,10 +16,11 @@ vector_table:
.word store_misaligned_handler .word store_misaligned_handler
.word handle_exception_unknown .word handle_exception_unknown
.word handle_exception_unknown .word handle_exception_unknown
.word timer_irq_handler .word timer0_irq_handler
.word uart0_irq_handler .word uart0_irq_handler
.word gpio0_irq_handler .word gpio0_irq_handler
.word gpio1_irq_handler .word gpio1_irq_handler
.word i2c0_irq_handler
/* add your ISR here */ /* add your ISR here */
.weak illegal_instruction_handler .weak illegal_instruction_handler
@ -29,10 +30,11 @@ vector_table:
.weak load_misaligned_handler .weak load_misaligned_handler
.weak store_misaligned_handler .weak store_misaligned_handler
.weak handle_exception_unknown .weak handle_exception_unknown
.weak timer_irq_handler .weak timer0_irq_handler
.weak uart0_irq_handler .weak uart0_irq_handler
.weak gpio0_irq_handler .weak gpio0_irq_handler
.weak gpio1_irq_handler .weak gpio1_irq_handler
.weak i2c0_irq_handler
handle_exception_unknown: handle_exception_unknown:
j handle_exception_unknown j handle_exception_unknown
@ -61,8 +63,8 @@ load_misaligned_handler:
store_misaligned_handler: store_misaligned_handler:
j store_misaligned_handler j store_misaligned_handler
timer_irq_handler: timer0_irq_handler:
j timer_irq_handler j timer0_irq_handler
uart0_irq_handler: uart0_irq_handler:
j uart0_irq_handler j uart0_irq_handler
@ -73,6 +75,9 @@ gpio0_irq_handler:
gpio1_irq_handler: gpio1_irq_handler:
j gpio1_irq_handler j gpio1_irq_handler
i2c0_irq_handler:
j i2c0_irq_handler
/* 异常和中断总入口 */ /* 异常和中断总入口 */
trap_entry: trap_entry:
addi sp, sp, -32*17 addi sp, sp, -32*17

View File

@ -80,7 +80,7 @@ specific version of freertos_risc_v_chip_specific_extensions.h. See the notes
at the top of this file. */ at the top of this file. */
#define portCONTEXT_SIZE ( 28 * portWORD_SIZE ) #define portCONTEXT_SIZE ( 28 * portWORD_SIZE )
.global timer_irq_handler .global timer0_irq_handler
.global ecall_handler .global ecall_handler
.global xPortStartFirstTask .global xPortStartFirstTask
.global freertos_risc_v_trap_handler .global freertos_risc_v_trap_handler
@ -172,7 +172,7 @@ freertos_risc_v_trap_handler:
.align 3 .align 3
.func .func
timer_irq_handler: timer0_irq_handler:
addi s1, ra, 0 /* save return address */ addi s1, ra, 0 /* save return address */
load_x t0, pxCurrentTCB /* Load pxCurrentTCB. */ load_x t0, pxCurrentTCB /* Load pxCurrentTCB. */

View File

@ -55,7 +55,7 @@ int main()
#endif #endif
} }
void timer_irq_handler() void timer0_irq_handler()
{ {
count++; count++;