Replace the static prvSetupTimerInterrupt() function in the Cortex-M port layers that still used it (other than MPU ports so far) with a weakly defined function call vPortSetupTimerInterrupt() - which allows application writers to override the function with one that uses a different clock.

This commit is contained in:
Richard Barry 2019-12-30 21:16:09 +00:00
parent e23d638afd
commit e292c67933
6 changed files with 68 additions and 49 deletions

View file

@ -679,7 +679,7 @@ void xPortSysTickHandler( void )
*/
#if( configOVERRIDE_DEFAULT_TICK_CONFIGURATION == 0 )
void vPortSetupTimerInterrupt( void )
__weak void vPortSetupTimerInterrupt( void )
{
/* Calculate the constants required to configure the tick interrupt. */
#if( configUSE_TICKLESS_IDLE == 1 )