feat: speed up PRTS LCD refresh

This commit is contained in:
TuxMonkey
2026-07-20 23:34:13 +08:00
parent b2169513e1
commit 8671f84139
14 changed files with 2296 additions and 98 deletions

View File

@@ -167,6 +167,34 @@ standard names. */
/* USER CODE BEGIN Defines */
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
#include CMSIS_device_header
#define INCLUDE_xTaskGetIdleTaskHandle 1
#define configGENERATE_RUN_TIME_STATS 1
#define configUSE_STATS_FORMATTING_FUNCTIONS 0
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() \
do { \
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; \
DWT->CYCCNT = 0U; \
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; \
} while (0)
#define portGET_RUN_TIME_COUNTER_VALUE() DWT->CYCCNT
#ifndef traceTASK_SWITCHED_IN
#define traceTASK_SWITCHED_IN() \
do { \
extern void lv_freertos_task_switch_in(const char * name); \
lv_freertos_task_switch_in(pxCurrentTCB->pcTaskName); \
} while (0)
#endif
#ifndef traceTASK_SWITCHED_OUT
#define traceTASK_SWITCHED_OUT() \
do { \
extern void lv_freertos_task_switch_out(void); \
lv_freertos_task_switch_out(); \
} while (0)
#endif
/* USER CODE END Defines */
#endif /* FREERTOS_CONFIG_H */