Skip to content

Commit

Permalink
xtensa port: add portCONFIGURE_TIMER_FOR_RUN_TIME_STATS to portmacro.h
Browse files Browse the repository at this point in the history
Add port-specific definition of portCONFIGURE_TIMER_FOR_RUN_TIME_STATS.
For ccount-based timer nothing needs to be done.

Signed-off-by: Max Filippov <[email protected]>
  • Loading branch information
jcmvbkbc committed Mar 6, 2020
1 parent 0f0816c commit 572aef4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portable/XCC/Xtensa/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ BaseType_t xPortRaisePrivilege( void );
/* Fine resolution time */
#define portGET_RUN_TIME_COUNTER_VALUE() xthal_get_ccount()

/* No need to do anything for the ccount timer. */
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() do {} while (0)

/* Kernel utilities. */
void vPortYield( void );
void _frxt_setup_switch( void );
Expand Down

0 comments on commit 572aef4

Please sign in to comment.