RT-Thread RTOS  1.2.0
An open source embedded real-time operating system
System Initialization

Functions

void rt_system_timer_init (void)
 
void rt_system_timer_thread_init (void)
 
void rt_application_init ()
 
void rt_system_heap_init (void *begin_addr, void *end_addr)
 

Detailed Description

System initialization procedure.

When RT-Thread operating system starts up, the basic operating system facility initialization routines must be invoked.

The suggested initialization sequence is:

User can put the low level hardware initialization in this function, such as DDR memory setting, pinmux setting, console device setting etc.

Function Documentation

◆ rt_system_timer_init()

void rt_system_timer_init ( void  )

This function will initialize system timer.

◆ rt_system_timer_thread_init()

void rt_system_timer_thread_init ( void  )

This function will initialize system timer thread.

◆ rt_application_init()

void rt_application_init ( )

This function will initialize user application.

This function will be invoked when system initialization and system scheduler has not started. User can allocate memory, create thread, semaphore etc. However, user shall not suspend 'current' thread.

◆ rt_system_heap_init()

void rt_system_heap_init ( void *  begin_addr,
void *  end_addr 
)

This function will init system heap. User can override this API to complete other works, like heap sanitizer initialization.

Parameters
begin_addrthe beginning address of system page.
end_addrthe end address of system page.