From a52e7c91ee390faa253db87189882cad398a7548 Mon Sep 17 00:00:00 2001 From: David Jurajda Date: Thu, 9 Jul 2020 17:16:09 +0200 Subject: [PATCH] IAR Embedded Workbench modified behaviour of weak declaration "#pragma weak" in release 8.50.5. This modification result in build error in case of FreeRTOS CM0 port. To fix the issue use __weak in function definition instead. --- portable/IAR/ARM_CM0/port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/portable/IAR/ARM_CM0/port.c b/portable/IAR/ARM_CM0/port.c index 6a43d18b3..41600a03b 100644 --- a/portable/IAR/ARM_CM0/port.c +++ b/portable/IAR/ARM_CM0/port.c @@ -96,7 +96,6 @@ static UBaseType_t uxCriticalNesting = 0xaaaaaaaa; * file is weak to allow application writers to change the timer used to * generate the tick interrupt. */ -#pragma weak vPortSetupTimerInterrupt void vPortSetupTimerInterrupt( void ); /* @@ -242,7 +241,7 @@ void xPortSysTickHandler( void ) * Setup the systick timer to generate the tick interrupts at the required * frequency. */ -void vPortSetupTimerInterrupt( void ) +__weak void vPortSetupTimerInterrupt( void ) { /* Calculate the constants required to configure the tick interrupt. */ #if ( configUSE_TICKLESS_IDLE == 1 )