From: yuhzheng Date: Tue, 24 Sep 2019 20:07:40 +0000 (+0000) Subject: Adding tickless hooks to GCC/ARM_CRx_No_GIC port. X-Git-Tag: V10.3.0~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9912d92109292c009fdc23745bfd2171442f7ad3;p=freertos Adding tickless hooks to GCC/ARM_CRx_No_GIC port. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2727 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Source/portable/GCC/ARM_CRx_No_GIC/portmacro.h b/FreeRTOS/Source/portable/GCC/ARM_CRx_No_GIC/portmacro.h index 45960e68f..9056b0d59 100644 --- a/FreeRTOS/Source/portable/GCC/ARM_CRx_No_GIC/portmacro.h +++ b/FreeRTOS/Source/portable/GCC/ARM_CRx_No_GIC/portmacro.h @@ -132,6 +132,12 @@ macros is used. */ #define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters ) #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters ) +/* Tickless idle/low power functionality. */ +#ifndef portSUPPRESS_TICKS_AND_SLEEP + extern void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ); + #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) vPortSuppressTicksAndSleep( xExpectedIdleTime ) +#endif + /* Prototype of the FreeRTOS tick handler. This must be installed as the handler for whichever peripheral is used to generate the RTOS tick. */ void FreeRTOS_Tick_Handler( void );