RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
函数 | |
rt_weak void | rt_interrupt_enter (void) |
RTM_EXPORT (rt_interrupt_enter) | |
rt_weak void | rt_interrupt_leave (void) |
RTM_EXPORT (rt_interrupt_leave) | |
rt_weak rt_uint8_t | rt_interrupt_get_nest (void) |
RTM_EXPORT (rt_interrupt_get_nest) | |
RTM_EXPORT (rt_hw_interrupt_disable) | |
RTM_EXPORT (rt_hw_interrupt_enable) | |
rt_weak rt_bool_t | rt_hw_interrupt_is_disabled (void) |
RTM_EXPORT (rt_hw_interrupt_is_disabled) | |
变量 | |
volatile rt_atomic_t | rt_interrupt_nest = 0 |
The Kernel APIs are the core APIs of RT-Thread, which supports the following features:
rt_weak void rt_interrupt_enter | ( | void | ) |
This function will be invoked by BSP, when enter interrupt service routine
引用了 LOG_D, rt_atomic_add, rt_atomic_load, rt_interrupt_nest , 以及 RT_OBJECT_HOOK_CALL.
RTM_EXPORT | ( | rt_interrupt_enter | ) |
rt_weak void rt_interrupt_leave | ( | void | ) |
This function will be invoked by BSP, when leave interrupt service routine
引用了 LOG_D, rt_atomic_load, rt_atomic_sub, rt_interrupt_nest , 以及 RT_OBJECT_HOOK_CALL.
RTM_EXPORT | ( | rt_interrupt_leave | ) |
rt_weak rt_uint8_t rt_interrupt_get_nest | ( | void | ) |
This function will return the nest of interrupt.
User application can invoke this function to get whether current context is interrupt context.
引用了 rt_atomic_load, rt_hw_local_irq_disable, rt_hw_local_irq_enable , 以及 rt_interrupt_nest.
RTM_EXPORT | ( | rt_interrupt_get_nest | ) |
RTM_EXPORT | ( | rt_hw_interrupt_disable | ) |
RTM_EXPORT | ( | rt_hw_interrupt_enable | ) |
rt_weak rt_bool_t rt_hw_interrupt_is_disabled | ( | void | ) |
RTM_EXPORT | ( | rt_hw_interrupt_is_disabled | ) |
volatile rt_atomic_t rt_interrupt_nest = 0 |