如何修改FreeRTOS的configTICK_RATE_HZ
Posted: 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
}]
环境是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
}]