feat(esp8266): Add API to get microseconds

This commit is contained in:
dongheng
2019-03-07 16:06:15 +08:00
parent 09e8cc0f95
commit 7fbb68f4ea
7 changed files with 139 additions and 70 deletions

View File

@ -164,5 +164,7 @@ uint32_t esp_get_time(void);
#endif /* CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS */
#define traceINCREASE_TICK_COUNT(_ticks) esp_increase_tick_cnt(_ticks)
#endif /* FREERTOS_CONFIG_H */

View File

@ -201,6 +201,8 @@ uint32_t xPortGetTickRateHz(void);
void _xt_enter_first_task(void);
void esp_increase_tick_cnt(const TickType_t ticks);
/* API compatible with esp-idf */
#define xTaskCreatePinnedToCore(pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask, tskNO_AFFINITY) \
xTaskCreate(pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pvCreatedTask)