clock: [#55] Overflow handling for FreeRTOS stats.
This commit is contained in:
@@ -126,9 +126,10 @@ to exclude the API function. */
|
||||
* must set up LPC_SCT1.
|
||||
*/
|
||||
void vConfigureTimerForRunTimeStats(void);
|
||||
unsigned long ulGetTimeForRunTimeStats(void);
|
||||
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
|
||||
/* The value is read directly from the counter register for efficiency and low overhead. */
|
||||
#define portGET_RUN_TIME_COUNTER_VALUE() LPC_SCT1->COUNT_U
|
||||
#define portGET_RUN_TIME_COUNTER_VALUE() ulGetTimeForRunTimeStats()
|
||||
|
||||
/* Cortex-M specific definitions. */
|
||||
#ifdef __NVIC_PRIO_BITS
|
||||
|
||||
Reference in New Issue
Block a user