ESP32 freertos
时间: 2023-08-19 21:06:52 浏览: 190
ESP32使用的是FreeRTOS,它是一个适用于多任务的小型嵌入式系统,为裸机程序提供多任务功能的库。每一种编译器和处理器的组合被称为FreeRTOS端口。在FreeRTOS中,任务管理是非常重要的,通过xTaskCreate函数可以创建任务并进行任务管理。该函数的原型是`BaseType_t xTaskCreate(TaskFunction_t pvTaskCode, const char * const pcName, const uint32_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pvCreatedTask)`。其中,pvTaskCode是任务函数,pcName是任务名称,usStackDepth是任务堆栈大小,pvParameters是传递给任务函数的参数,uxPriority是任务优先级,pvCreatedTask是任务句柄。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【ESP32学习-3】FreeRTOS](https://blog.csdn.net/csdndulala/article/details/126095135)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [ESP32之FreeRTOS--任务的创建和运行](https://blog.csdn.net/qq_53144843/article/details/121497346)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文