2054 views|0 replies

58

Posts

0

Resources
The OP
 

RT-Thread Reading Notes] RT-Thread Study Chapter 5-6 Reading Notes [Copy link]

 
Chapter 5
Main content:
1. When programming the system on bare metal, first initialize the relevant hardware, and then let the main program loop continuously in an infinite loop, doing various things in sequence.
2. The foreground and background systems add interrupts on the basis of the polling system. The response to external events is completed in the interrupt, and the event processing is still completed in the polling system. We call the interrupt the foreground here, and the infinite loop in the main function is called the background.
Question 1: The program in the interrupt is called the foreground, and the sequence is called the background. It seems that this has nothing to do with the system. Ordinary microcontrollers also have interrupts, right? 3. file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg Question 2: What is the difference between a thread and a main program? Aren’t threads executed sequentially? Chapter 6 1. In a multi-threaded system, we divide the entire system into independent functions that cannot return according to their functions. We call these functions threads. Note 1: This book describes the source code rtdef.h. This header file defines several basic data types. file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image004.jpg
Question 1: The thread definition in the book is different from that on the website. I followed the website's instructions in my own project.
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image006.jpg
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image008.jpg
2.
This content is originally created by EEWORLD forum user Tianming Fengliu. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

 

Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list