]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c
Replace the static prvSetupTimerInterrupt() function in the Cortex-M port layers...
[freertos] / FreeRTOS / Source / portable / RVDS / ARM_CM4F / port.c
index 6a9cbbf2515c99ade5e929a7d1695c690b089ada..99ffeaa39680156c11f88db2966a66c2e7e660f9 100644 (file)
        #define portNVIC_SYSTICK_CLK_BIT        ( 0 )\r
 #endif\r
 \r
-/* The __weak attribute does not work as you might expect with the Keil tools\r
-so the configOVERRIDE_DEFAULT_TICK_CONFIGURATION constant must be set to 1 if\r
-the application writer wants to provide their own implementation of\r
-vPortSetupTimerInterrupt().  Ensure configOVERRIDE_DEFAULT_TICK_CONFIGURATION\r
-is defined. */\r
+/* Legacy macro for backward compatibility only.  This macro used to be used to\r
+replace the function that configures the clock used to generate the tick\r
+interrupt (prvSetupTimerInterrupt()), but now the function is declared weak so\r
+the application writer can override it by simply defining a function of the\r
+same name (vApplicationSetupTickInterrupt()). */\r
 #ifndef configOVERRIDE_DEFAULT_TICK_CONFIGURATION\r
        #define configOVERRIDE_DEFAULT_TICK_CONFIGURATION 0\r
 #endif\r