|
38 | 38 | * than file scope. |
39 | 39 | */ |
40 | 40 | #ifdef portREMOVE_STATIC_QUALIFIER |
41 | | - #define static |
| 41 | + #define STATIC |
| 42 | + #else |
| 43 | + #define STATIC static |
42 | 44 | #endif |
43 | 45 |
|
44 | 46 |
|
45 | 47 | /* Lists for ready and blocked co-routines. --------------------*/ |
46 | | - static List_t pxReadyCoRoutineLists[ configMAX_CO_ROUTINE_PRIORITIES ]; /**< Prioritised ready co-routines. */ |
47 | | - static List_t xDelayedCoRoutineList1; /**< Delayed co-routines. */ |
48 | | - static List_t xDelayedCoRoutineList2; /**< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */ |
49 | | - static List_t * pxDelayedCoRoutineList = NULL; /**< Points to the delayed co-routine list currently being used. */ |
50 | | - static List_t * pxOverflowDelayedCoRoutineList = NULL; /**< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */ |
51 | | - static List_t xPendingReadyCoRoutineList; /**< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */ |
| 48 | + STATIC List_t pxReadyCoRoutineLists[ configMAX_CO_ROUTINE_PRIORITIES ]; /**< Prioritised ready co-routines. */ |
| 49 | + STATIC List_t xDelayedCoRoutineList1; /**< Delayed co-routines. */ |
| 50 | + STATIC List_t xDelayedCoRoutineList2; /**< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */ |
| 51 | + STATIC List_t * pxDelayedCoRoutineList = NULL; /**< Points to the delayed co-routine list currently being used. */ |
| 52 | + STATIC List_t * pxOverflowDelayedCoRoutineList = NULL; /**< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */ |
| 53 | + STATIC List_t xPendingReadyCoRoutineList; /**< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */ |
52 | 54 |
|
53 | 55 | /* Other file private variables. --------------------------------*/ |
54 | 56 | CRCB_t * pxCurrentCoRoutine = NULL; |
55 | | - static UBaseType_t uxTopCoRoutineReadyPriority = ( UBaseType_t ) 0U; |
56 | | - static TickType_t xCoRoutineTickCount = ( TickType_t ) 0U; |
57 | | - static TickType_t xLastTickCount = ( TickType_t ) 0U; |
58 | | - static TickType_t xPassedTicks = ( TickType_t ) 0U; |
| 57 | + STATIC UBaseType_t uxTopCoRoutineReadyPriority = ( UBaseType_t ) 0U; |
| 58 | + STATIC TickType_t xCoRoutineTickCount = ( TickType_t ) 0U; |
| 59 | + STATIC TickType_t xLastTickCount = ( TickType_t ) 0U; |
| 60 | + STATIC TickType_t xPassedTicks = ( TickType_t ) 0U; |
59 | 61 |
|
60 | 62 | /* The initial state of the co-routine when it is created. */ |
61 | 63 | #define corINITIAL_STATE ( 0 ) |
|
80 | 82 | * Utility to ready all the lists used by the scheduler. This is called |
81 | 83 | * automatically upon the creation of the first co-routine. |
82 | 84 | */ |
83 | | - static void prvInitialiseCoRoutineLists( void ); |
| 85 | + STATIC void prvInitialiseCoRoutineLists( void ); |
84 | 86 |
|
85 | 87 | /* |
86 | 88 | * Co-routines that are readied by an interrupt cannot be placed directly into |
87 | 89 | * the ready lists (there is no mutual exclusion). Instead they are placed in |
88 | 90 | * in the pending ready list in order that they can later be moved to the ready |
89 | 91 | * list by the co-routine scheduler. |
90 | 92 | */ |
91 | | - static void prvCheckPendingReadyList( void ); |
| 93 | + STATIC void prvCheckPendingReadyList( void ); |
92 | 94 |
|
93 | 95 | /* |
94 | 96 | * Macro that looks at the list of co-routines that are currently delayed to |
|
98 | 100 | * meaning once one co-routine has been found whose timer has not expired |
99 | 101 | * we need not look any further down the list. |
100 | 102 | */ |
101 | | - static void prvCheckDelayedList( void ); |
| 103 | + STATIC void prvCheckDelayedList( void ); |
102 | 104 |
|
103 | 105 | /*-----------------------------------------------------------*/ |
104 | 106 |
|
|
212 | 214 | } |
213 | 215 | /*-----------------------------------------------------------*/ |
214 | 216 |
|
215 | | - static void prvCheckPendingReadyList( void ) |
| 217 | + STATIC void prvCheckPendingReadyList( void ) |
216 | 218 | { |
217 | 219 | /* Are there any co-routines waiting to get moved to the ready list? These |
218 | 220 | * are co-routines that have been readied by an ISR. The ISR cannot access |
|
235 | 237 | } |
236 | 238 | /*-----------------------------------------------------------*/ |
237 | 239 |
|
238 | | - static void prvCheckDelayedList( void ) |
| 240 | + STATIC void prvCheckDelayedList( void ) |
239 | 241 | { |
240 | 242 | CRCB_t * pxCRCB; |
241 | 243 |
|
|
333 | 335 | } |
334 | 336 | /*-----------------------------------------------------------*/ |
335 | 337 |
|
336 | | - static void prvInitialiseCoRoutineLists( void ) |
| 338 | + STATIC void prvInitialiseCoRoutineLists( void ) |
337 | 339 | { |
338 | 340 | UBaseType_t uxPriority; |
339 | 341 |
|
|
0 commit comments