4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-22 05:55:22 +08:00

[src][irq] 添加 WEAK 修饰,中断嵌套数可由外部提供。

This commit is contained in:
tangyuxin 2019-07-12 11:15:20 +08:00
parent b94e84b9fc
commit df3a9e573f

View File

@ -105,7 +105,7 @@ RTM_EXPORT(rt_interrupt_leave);
* *
* @return the number of nested interrupts. * @return the number of nested interrupts.
*/ */
rt_uint8_t rt_interrupt_get_nest(void) RT_WEAK rt_uint8_t rt_interrupt_get_nest(void)
{ {
rt_uint8_t ret; rt_uint8_t ret;
rt_base_t level; rt_base_t level;