【RT-Thread Reading Notes】Reading Notes for Chapters 1~4[Copy link]
Notes for Chapters 1 to 4 Off-topic: Due to work reasons, I rarely use embedded systems, so I have never had a detailed understanding of various embedded systems. When I encounter them, they are based on other people's code. I can understand the code about RTOS by looking it up, but I can't build it from scratch. Recently, I have been developing a small thing for ESP8266 as a hobby. I use the SDK of RTOS. This SDK uses freeRTOS. After developing it for a while, I think RTOS is really interesting, so I took this opportunity to learn about the domestic RT_Thread and compare what is the same between the two. In addition, RT_Thread can be often encountered in various open source activities, and the community is also very active. I have long wanted to understand it. Notes: 1. Threads that use a pre-set running stack are static threads; threads with dynamically allocated running stacks are dynamic threads; the running space of static threads has been created when the executable file is completed, so it cannot be released. 2. Adjust the system delay or actively suspend in the thread in time ---> give up the CPU 3. The entry in the thread control block is the entry function of the thread 4. The first entry function of the entire system is $Sub$$main, and this function only calls the rttherad_startup() function, so this parameter is the unified entry point of the system. This content is created by EEWORLD forum user IC Crawler. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source