OS-Kernel/include/freertos/portable.h:59,
from D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:71,
from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.h:4,
from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:1:
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:141:58: error: expected ')' before numeric constant
141 | #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
| ^~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:6:7: note: in expansion of macro 'portTICK_PERIOD_MS'
6 | float portTICK_PERIOD_MS = 1.0f; // 榛樿鍊硷紝瀹為檯浣跨敤鍓嶅簲鏍″噯
| ^~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c: In function 'timer_calibrate':
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:19:24: error: lvalue required as left operand of assignment
19 | portTICK_PERIOD_MS = (real_duration_us / 1000.0f) / elapsed_ticks;
| ^
In file included from D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:2:
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
|
^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI'
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
|
^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI'
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:1: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=]
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^ ~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI'
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:1: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=]
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^ ~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI'
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:265:27: warning: format '%f' expects argument of type 'double', but argument 6 has type 'long unsigned int' [-Wformat=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
|
^~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
D:/CxhData/EspData/esp/v5.1.5/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
D:/CxhData/test/2/24_0222_RGBMatrix/LedRGBMatrix/LedRGBMatrix_Single/main/Fun/countdown_timer.c:20:5: note: in expansion of macro 'ESP_LOGI'
20 | ESP_LOGI("TIMER_CAL", "鏍″噯tick鍛ㄦ湡: %.6f ms", portTICK_PERIOD_MS);
| ^~~~~~~~
ninja: build stopped: subcommand failed.
* 终端进程“d:\CxhData\EspData\.espressif\tools\ninja\1.12.1\ninja.EXE”已终止,退出代码: 1。