Replace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS

Closes github #51 https://github.com/espressif/esp-idf/issues/51
This commit is contained in:
Angus Gratton
2016-12-22 12:42:21 +11:00
parent 6d0fd80af4
commit 06e03ff52e
21 changed files with 46 additions and 46 deletions

View File

@@ -34,7 +34,7 @@ static void task_event_group_call_response(void *param)
printf("Task %d done\n", task_num);
/* Delay is due to not-yet-fixed bug with deleting tasks at same time */
vTaskDelay(100 / portTICK_RATE_MS);
vTaskDelay(100 / portTICK_PERIOD_MS);
vTaskDelete(NULL);
}
@@ -85,7 +85,7 @@ static void task_test_sync(void *param)
printf("Done %d = %x\n", task_num, after_done);
/* Delay is due to not-yet-fixed bug with deleting tasks at same time */
vTaskDelay(100 / portTICK_RATE_MS);
vTaskDelay(100 / portTICK_PERIOD_MS);
vTaskDelete(NULL);
}