esp32-----定时器_vtaskdelay(5000 / porttick_period_ms);_被大佬糊弄的只会点灯的小菜鸡的博客-CSDN博客

网站介绍:一、周期性定时任务#include <stdio.h>#include "esp_types.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "freertos/queue.h"#include "soc/timer_group_struct.h"#include "driver/periph_ctrl.h"#include "driver/timer.h"#define GPIO_L_vtaskdelay(5000 / porttick_period_ms);