kopia lustrzana https://github.com/espressif/esp-idf
freertos: add API for getting tick rate on C3
rodzic
7fbf280d93
commit
311a0fa5e8
|
@ -294,6 +294,9 @@ void vApplicationSleep( TickType_t xExpectedIdleTime );
|
||||||
#define portVALID_TCB_MEM(ptr) esp_ptr_byte_accessible(ptr)
|
#define portVALID_TCB_MEM(ptr) esp_ptr_byte_accessible(ptr)
|
||||||
#define portVALID_STACK_MEM(ptr) esp_ptr_byte_accessible(ptr)
|
#define portVALID_STACK_MEM(ptr) esp_ptr_byte_accessible(ptr)
|
||||||
|
|
||||||
|
/* Get tick rate per second */
|
||||||
|
uint32_t xPortGetTickRateHz(void);
|
||||||
|
|
||||||
// configASSERT_2 if requested
|
// configASSERT_2 if requested
|
||||||
#if configASSERT_2
|
#if configASSERT_2
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -312,6 +312,10 @@ void vPortSetStackWatchpoint(void *pxStackStart)
|
||||||
esp_set_watchpoint(STACK_WATCH_POINT_NUMBER, (char *)addr, STACK_WATCH_AREA_SIZE, ESP_WATCHPOINT_STORE);
|
esp_set_watchpoint(STACK_WATCH_POINT_NUMBER, (char *)addr, STACK_WATCH_AREA_SIZE, ESP_WATCHPOINT_STORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t xPortGetTickRateHz(void) {
|
||||||
|
return (uint32_t)configTICK_RATE_HZ;
|
||||||
|
}
|
||||||
|
|
||||||
BaseType_t xPortInIsrContext(void)
|
BaseType_t xPortInIsrContext(void)
|
||||||
{
|
{
|
||||||
return uxInterruptNesting;
|
return uxInterruptNesting;
|
||||||
|
|
Ładowanie…
Reference in New Issue