File tree 1 file changed +11
-2
lines changed 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -184,15 +184,24 @@ void vListInsert( List_t * const pxList,
184
184
* 4) Using a queue or semaphore before it has been initialised or
185
185
* before the scheduler has been started (are interrupts firing
186
186
* before vTaskStartScheduler() has been called?).
187
- * 5) If the FreeRTOS port supports interrupt nesting then ensure that
187
+ * 5) Attempting to 'take' binary semaphores created using
188
+ * `xSemaphoreCreateBinary()` or `xSemaphoreCreateBinaryStatic()`
189
+ * APIs, before 'giving' them. Binary semaphores created using
190
+ * `xSemaphoreCreateBinary()` or `xSemaphoreCreateBinaryStatic()`,
191
+ * are created in a state such that the semaphore must first be
192
+ * 'given' using xSemaphoreGive() API before it can be 'taken' using
193
+ * xSemaphoreTake() API.
194
+ * 6) If the FreeRTOS port supports interrupt nesting then ensure that
188
195
* the priority of the tick interrupt is at or below
189
196
* configMAX_SYSCALL_INTERRUPT_PRIORITY.
190
197
**********************************************************************/
191
198
192
199
for ( pxIterator = ( ListItem_t * ) & ( pxList -> xListEnd ); pxIterator -> pxNext -> xItemValue <= xValueOfInsertion ; pxIterator = pxIterator -> pxNext )
193
200
{
194
201
/* There is nothing to do here, just iterating to the wanted
195
- * insertion position. */
202
+ * insertion position.
203
+ * IF YOU FIND YOUR CODE STUCK HERE, SEE THE NOTE JUST ABOVE.
204
+ */
196
205
}
197
206
}
198
207
You can’t perform that action at this time.
0 commit comments