未验证 提交 0cf3bcf4 编写于 作者: 杭州_燕十三's avatar 杭州_燕十三 提交者: GitHub

[bsp]fix esp32_c3 compile error (#7107)

* fix rt_hw_interrupt_install return value

* add __rt_rvstack
上级 adf17c42
......@@ -113,6 +113,7 @@ index d6670bf759..1d51ffeea0 100644
+ __stack_cpu0 = .;
+ __stack_end__ = .;
+ } > dram0_0_seg
+ PROVIDE( __rt_rvstack = __stack_end__);
+
+ .heap :
+ {
......
......@@ -41,21 +41,26 @@ rt_weak void rt_hw_interrupt_init(void)
* @param handler Break-in function requiring binding
* @param param NULL
* @param name NULL
* @return NULL
* @return old handler
*/
rt_weak rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
void *param, const char *name)
{
rt_isr_handler_t old_handler = RT_NULL;
void *user_param = param;
char *user_name = name;
if(vector < ISR_NUMBER)
{
old_handler = rv32irq_table[vector].handler;
if (handler != RT_NULL)
{
rv32irq_table[vector].handler = (rt_isr_handler_t)handler;
rv32irq_table[vector].param = param;
}
}
return old_handler;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册