Merge branch 'feature/add_get_freertos_rate_hz' into 'master'

Add port to get freertos rate hz

See merge request sdk/ESP8266_RTOS_SDK!431
This commit is contained in:
Dong Heng
2018-09-13 15:31:03 +08:00
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;
}