如何修改FreeRTOS的configTICK_RATE_HZ

totwoto
Posts: 1
Joined: Fri Apr 14, 2023 10:55 pm

如何修改FreeRTOS的configTICK_RATE_HZ

Postby totwoto » Fri Apr 14, 2023 11:02 pm

如题,小弟想用vTaskDelayUnity()让一个任务每5ms运行一次,但是滴答默认是“CONFIG_FREERTOS_HZ”(100),所以直接修改为“200”显示报错。
环境是ESP-IDF 5.01 VSCode
报错信息:
[{
"resource": "/c:/Users/30571/esp/esp-idf/components/freertos/esp_additions/include/freertos/FreeRTOSConfig.h",
"owner": "cpp",
"severity": 8,
"message": "expected identifier or '(' before numeric constant",
"startLineNumber": 104,
"startColumn": 57,
"endLineNumber": 104,
"endColumn": 57
}]

Who is online

Users browsing this forum: No registered users and 91 guests