mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
aaf7547665
This commit refactors the existing vTaskDelayUntil() unit test according to the FreeRTOS unit test guidelines, and adds a new vTaskDelay() unit test.
17 lines
652 B
C
17 lines
652 B
C
/*
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "test_utils.h"
|
|
|
|
#define configTEST_DEFAULT_STACK_SIZE 4096
|
|
#define configTEST_UNITY_TASK_PRIORITY UNITY_FREERTOS_PRIORITY
|
|
|
|
#define portTEST_REF_CLOCK_TYPE uint32_t
|
|
#define portTEST_REF_CLOCK_INIT() ref_clock_init()
|
|
#define portTEST_REF_CLOCK_DEINIT() ref_clock_deinit()
|
|
#define portTEST_REF_CLOCK_GET_TIME() ((uint32_t) ref_clock_get())
|
|
#define portTEST_TICKS_TO_REF_CLOCK(ticks) ((ticks) * (1000000/configTICK_RATE_HZ))
|