RT-Thread RTOS  1.0.0
An open source embedded real-time operating system
RT-Thread Kernel API

Modules

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

Functions

void rt_interrupt_enter (void)
void rt_interrupt_leave (void)
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

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
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

This function will return the nest of interrupt.

User application can invoke this function to get whenther current context is interrupt context.

Returns:
the number of nested interrupts.
 All Data Structures Variables