mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 11:37:44 +08:00
feat: speed up PRTS LCD refresh
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user