The application provides a RT-THREAD resident
system based on D1-H, which comprises a user module and a
BIOS module, wherein the
BIOS module comprises a
hardware abstraction layer, an RTOS layer, and an API layer; the RTOS layer comprises an RT-Thread kernel, a
thread management unit, a synchronization and
communication unit, a
clock management unit, and a
memory management unit; the
hardware abstraction layer comprises a driver construction, a
software component, and a BootLoader; and the API layer comprises a driver component interface, a
software component interface, and an RTOS service calling interface.The application has the advantages of reducing the
programming threshold, improving the portability of application programs, and improving the compiling speed; the starting process after the RT-Thread is resident is analyzed, a resident test experiment is designed taking the synchronization and communication as an example, and the test result proves the feasibility of the RT-Thread resident.