feat(freertos): Add port to get freertos rate hz

This commit is contained in:
Dong Heng
2018-08-24 14:39:57 +08:00
parent 1bcf71895c
commit 580fa88ad0
2 changed files with 8 additions and 0 deletions

View File

@ -233,6 +233,9 @@ void esp_mem_trace(const void *ptr, const char *trace, int no);
*/
bool interrupt_is_disable(void);
/* Get tick rate per second */
uint32_t xPortGetTickRateHz(void);
#ifdef __cplusplus
}
#endif

View File

@ -395,3 +395,8 @@ void vApplicationIdleHook(void)
pmIdleHook();
esp_task_wdt_reset();
}
uint32_t xPortGetTickRateHz(void)
{
return (uint32_t)configTICK_RATE_HZ;
}