Skip to content

Commit 66b3f90

Browse files
authored
Update comment in list.c (#276)
The tick interrupt priority must be configured to ensure that it cannot interrupt a critical section. This change updates the comment to help the application writer while debugging. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent 18d4ba9 commit 66b3f90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

list.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ void vListInsert( List_t * const pxList,
158158
* 4) Using a queue or semaphore before it has been initialised or
159159
* before the scheduler has been started (are interrupts firing
160160
* before vTaskStartScheduler() has been called?).
161+
* 5) If the FreeRTOS port supports interrupt nesting then ensure that
162+
* the priority of the tick interrupt is at or below
163+
* configMAX_SYSCALL_INTERRUPT_PRIORITY.
161164
**********************************************************************/
162165

163166
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */

0 commit comments

Comments
 (0)