RT-Thread RTOS  1.2.0
An open source embedded real-time operating system
RT-Thread Kernel API
+ Collaboration diagram for RT-Thread Kernel API:

Modules

 Thread Management
 
 Clock and Timer Management
 
 Kernel Object Management
 
 Inter-Thread Communication
 
 Signal
 
 Memory Management
 
 Device System
 
 Runtime Trace and Record
 
 Other useful kernel service
 
 Error Code
 

Functions

rt_weak void rt_interrupt_enter (void)
 
rt_weak void rt_interrupt_leave (void)
 
rt_weak rt_uint8_t rt_interrupt_get_nest (void)
 

Detailed Description

The Kernel APIs are the core APIs of RT-Thread, which supports the following features:

Function Documentation

◆ rt_interrupt_enter()

rt_weak void rt_interrupt_enter ( void  )

This function will be invoked by BSP, when enter interrupt service routine.

Note
Please don't invoke this routine in application
See also
rt_interrupt_leave

◆ rt_interrupt_leave()

rt_weak void rt_interrupt_leave ( void  )

This function will be invoked by BSP, when leave interrupt service routine.

Note
Please don't invoke this routine in application
See also
rt_interrupt_enter

◆ rt_interrupt_get_nest()

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.

Returns
the number of nested interrupts.