FreeRTOS Real Time Kernel Practical Guide

FreeRTOS is an open source real-time operating system designed specifically for microcontrollers. It is small, fast and free.


FreeRTOS Real Time Kernel Practical Guide - cover page
Brand
FreeRTOS
Category
Programming
Document type
Programming Manual
Language
Chinese
Pages
147
File format
PDF
File size
3.4 MB
Published
16 November, 2023
Updated
16 November, 2023
MD5 checksum
7CD6E77FCED9F3DE3F507CB7CC4E1CD9

About this manual

This document is a Chinese translation of "Using the FreeRTOS Real Time Kernel: A Practical Guide" by Richard Barry, available via FreeRTOS.org. It introduces task management in small multitasking embedded systems.

It explains task functions, top-level task states, and task creation with xTaskCreate(), including parameters such as stack depth, priority, and task name length. This manual is written in Chinese.

What's inside

  • Task Management
  • Overview
  • Task Functions
  • Top-Level Task States
  • Creating Tasks
  • xTaskCreate() API Function
  • xTaskCreate() Parameters and Return Value

Specifications

Task priority range0 to configMAX_PRIORITIES - 1
Stack depth unitwords, not bytes
Task name maximum lengthdefined by config_MAX_TASK_NAME_LEN, including the null terminator

Frequently asked questions

What is a task in FreeRTOS?

In FreeRTOS, each execution thread is called a task.

What is the prototype of a FreeRTOS task function?

It must return void and take a void pointer parameter.

Can a FreeRTOS task return from its implementation function?

No; tasks must not return in any way and must be deleted explicitly if no longer needed.

What API function creates a task in FreeRTOS?

Tasks are created using the xTaskCreate() API function.

Download PDF (3.4 MB)

More FreeRTOS Manuals


View all FreeRTOS manuals →