mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-23 01:58:24 +08:00
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:
@ -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
|
||||
|
@ -395,3 +395,8 @@ void vApplicationIdleHook(void)
|
||||
pmIdleHook();
|
||||
esp_task_wdt_reset();
|
||||
}
|
||||
|
||||
uint32_t xPortGetTickRateHz(void)
|
||||
{
|
||||
return (uint32_t)configTICK_RATE_HZ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user