[FreeRTOS learning plan] section 4 definition of tasks and implementation of task switching

Objectives of this section This section is the foundation of the foundation. You must learn to create tasks and focus on how to switch tasks. Because the task switching in FreeRTOS is completed by assembly code, the code looks difficult to understand. Let's look at it patiently. In this sectionUTF-8...

Posted by stone on Mon, 21 Feb 2022 14:40:03 +1030

FreeRTOS task management

Task function The task is realized by C language function. The only special thing is the function prototype of the task, which must return void with a void pointer parameter. void ATaskFunction( void *pvParameters ); Each task itself is a small program. It has an entry point and usually runs fUTF-8...

Posted by jdh on Thu, 24 Feb 2022 02:05:13 +1030

FreeRTOS learning Chapter 2 - FreeRTOS task creation

Statement: This is a learning chapter for bloggers. You are welcome to point out mistakes and learn together The most important part of FreeRTOS is the task. Everything in FreeRTOS basically exists for the task. In FreeRTOS, there are two forms of creating tasks: dynamic creation and static creUTF-8...

Posted by FraXTC on Sat, 26 Feb 2022 13:13:31 +1030

[FreeRTOS learning plan] section 7 supports multi priority

Objectives of this section Prior to this section, FreeRTOS did not support multi priority and only supported switching between two tasks. Starting from this chapter, we began to add priority function to tasks. In FreeRTOS, the smaller the digital priority, the smaller the logical priority, whicUTF-8...

Posted by saito on Tue, 01 Mar 2022 18:37:22 +1030

FreeRTOS -- system beat of task management

In the front, you can create a task, start the scheduler and control the task. Next, you can start to analyze the arrival of a Tick, FreeRTOS What behavior is about to happen; When the scheduler is started, SysTick has been configured. As the heartbeat of the OS, SysTick comes every fixed cyclUTF-8...

Posted by gilbertwang on Sun, 06 Mar 2022 02:22:31 +1030

FreeRTOS -- task switching of task management

Now create tasks (xtask create), start scheduler (vtask startscheduler), task control (xtask delay), and Tick interrupt (xPortSysTickHandler), the analysis is completed, SysTick and PendSV interrupts have been enabled, and the first task can run freely; Wait for the next SysTick (1ms later), aUTF-8...

Posted by SnakeO on Sun, 06 Mar 2022 18:38:38 +1030

FreeRTOS learning notes -- Application of binary semaphore (serial port data transceiver)

1, Overview Binary semaphores are very similar to mutually exclusive semaphores. The difference is that mutually exclusive semaphores have priority inheritance mechanism, while binary semaphores do not. Therefore, binary semaphores are more suitable for synchronization (task to task or task to UTF-8...

Posted by ailgup on Fri, 18 Mar 2022 03:31:18 +1030

[freertos] 005 start scheduler analysis

preface This section mainly explains how to start the scheduler. These are related to hardware, so they will be divided into two lines: posix and cortex m3. Original text: Li Zhuming's blog: https://www.cnblogs.com/lizhuming/p/16076476.html 5.1 basic concept of scheduler 5.1.1 dispatcher The scUTF-8...

Posted by scrubbicus on Wed, 30 Mar 2022 14:22:21 +1030

FreeRTOS synchronization and mutual exclusion: event groups

Note: This article is excerpted from Wei Dongshan's "FreeRTOS Complete Development Manual", if there is any infringement, please inform The concept of synchronization and mutual exclusion: Synchronization: A waits for B to do something Mutual exclusion: a resource can only be accessed by one usUTF-8...

Posted by Valkrin on Tue, 04 Oct 2022 14:47:16 +1030