@@ -366,7 +366,10 @@ xTicksToWait );
366366 state to wait for its notification value to be greater than zero, but
367367 the specified block time expired before that happened.
368368
369- ### 10.3.5 Example 10.1. Using a task notification in place of a semaphore, method 1
369+
370+ <a name="example10.1" title="Using a task notification in place of a semaphore, method 1"></a>
371+
372+ <h3><i>Example 10.1 Using a task notification in place of a semaphore, method 1</i></h3>
370373
371374Example 7.1 used a binary semaphore to unblock a task from within an
372375interrupt service routine—effectively synchronizing the task with the
@@ -505,7 +508,9 @@ produced by the periodic task. Further explanation is provided in Figure 10.4.
505508*Figure 10.4 The sequence of execution when Example 10.1 is executed*
506509* * *
507510
508- ### 10.3.6 Example 10.2. Using a task notification in place of a semaphore, method 2
511+ <a name="example10.2" title="Using a task notification in place of a semaphore, method 2"></a>
512+
513+ <h3><i>Example 10.2 Using a task notification in place of a semaphore, method 2</i></h3>
509514
510515In Example 10.1, the `ulTaskNotifyTake()` `xClearOnExit` parameter was set to
511516`pdTRUE`. Example 10.1 modifies Example 10.1 slightly to demonstrate the
@@ -614,7 +619,7 @@ interrupt is generated.
614619*Figure 10.5 The output produced when Example 10.2 is executed*
615620* * *
616621
617- ### 10.3.7 The xTaskNotify() and xTaskNotifyFromISR() API Functions
622+ ### 10.3.5 The xTaskNotify() and xTaskNotifyFromISR() API Functions
618623
619624`xTaskNotify()` is a more capable version of `xTaskNotifyGive()` that can be
620625used to update the receiving task's notification value in any of the
@@ -740,7 +745,7 @@ Effect on the Receiving Task's Notification Value**
740745 receiving task had a notification pending before ` xTaskNotify() ` was
741746 called or not.
742747
743- ### 10.3.8 The xTaskNotifyWait() API Function
748+ ### 10.3.6 The xTaskNotifyWait() API Function
744749
745750` xTaskNotifyWait() ` is a more capable version of ` ulTaskNotifyTake() ` . It
746751allows a task to wait, with an optional timeout, for the calling task's
@@ -844,7 +849,7 @@ BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry,
844849 held in the Blocked state to wait for its notification state to become
845850 pending, but the specified block time expired before that happened.
846851
847- ### 10.3.9 Task Notifications Used in Peripheral Device Drivers: UART Example
852+ ### 10.3.7 Task Notifications Used in Peripheral Device Drivers: UART Example
848853
849854Peripheral driver libraries provide functions that perform common
850855operations on hardware interfaces. Examples of peripherals for which
@@ -1213,7 +1218,7 @@ void xUART_ReceiveISR( xUART *pxUARTInstance )
12131218* Listing 10.12 Pseudo code demonstrating how a task notification can be used in a driver library receive function*
12141219* * *
12151220
1216- ### 10.3.10 Task Notifications Used in Peripheral Device Drivers: ADC Example
1221+ ### 10.3.8 Task Notifications Used in Peripheral Device Drivers: ADC Example
12171222
12181223The previous section demonstrated how to use ` vTaskNotifyGiveFromISR() ` to
12191224send a task notification from an interrupt to a task.
@@ -1324,7 +1329,7 @@ void ADC_ConversionEndISR( xADC *pxADCInstance )
13241329*Listing 10.13 Pseudo code demonstrating how a task notification can be used to pass a value to a task*
13251330* * *
13261331
1327- ### 10.3.11 Task Notifications Used Directly Within an Application
1332+ ### 10.3.9 Task Notifications Used Directly Within an Application
13281333
13291334This section reinforces the power of task notifications by demonstrating
13301335their use in a hypothetical application that includes the following
0 commit comments