]> git.sur5r.net Git - freertos/commitdiff
Adding tickless hooks to GCC/ARM_CRx_No_GIC port.
authoryuhzheng <yuhzheng@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 24 Sep 2019 20:07:40 +0000 (20:07 +0000)
committeryuhzheng <yuhzheng@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 24 Sep 2019 20:07:40 +0000 (20:07 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2727 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/portable/GCC/ARM_CRx_No_GIC/portmacro.h

index 45960e68f406c8448e00ffa6b533a8da6aa4b33d..9056b0d59d886049db46e64f4f6b3a8e4f508cfa 100644 (file)
@@ -132,6 +132,12 @@ macros is used. */
 #define portTASK_FUNCTION_PROTO( vFunction, pvParameters )     void vFunction( void *pvParameters )\r
 #define portTASK_FUNCTION( vFunction, pvParameters )   void vFunction( void *pvParameters )\r
 \r
+/* Tickless idle/low power functionality. */\r
+#ifndef portSUPPRESS_TICKS_AND_SLEEP\r
+       extern void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime );\r
+       #define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) vPortSuppressTicksAndSleep( xExpectedIdleTime )\r
+#endif\r
+\r
 /* Prototype of the FreeRTOS tick handler.  This must be installed as the\r
 handler for whichever peripheral is used to generate the RTOS tick. */\r
 void FreeRTOS_Tick_Handler( void );\r