Commit a8df964e authored by sam's avatar sam

修改 FreeRTOS tick 的頻率為 1000Hz

parent 8f703173
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configTICK_RATE_HZ ( ( TickType_t ) 100 ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define configMAX_PRIORITIES ( 8 ) #define configMAX_PRIORITIES ( 8 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 256 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 512 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 512 * 1024 ) )
......
...@@ -53,7 +53,7 @@ static portTASK_FUNCTION_PROTO( vMainTaskProducer, pvParameters ) { ...@@ -53,7 +53,7 @@ static portTASK_FUNCTION_PROTO( vMainTaskProducer, pvParameters ) {
static uint16_t uRunCount = 0; static uint16_t uRunCount = 0;
for (;;) { for (;;) {
sysprintf("TaskName=%s, runCount=%d\r\n", pcTaskGetTaskName( NULL ), uRunCount); sysprintf("TaskName=%s, runCount=%d\r\n", pcTaskGetTaskName( NULL ), uRunCount);
vTaskDelay(50); vTaskDelay(1000);
uRunCount++; uRunCount++;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment