Creating LPBAM projects

UM1718

 

 

18.3.7Queue description: configuring the queue in circular mode

STM32CubeMX offers the possibility to design circular queues:

Select the queue to be configured by clicking the queue name in the center panel: the queue configuration is displayed in the right panel.

Click the Circular mode checkbox to configure the queue in circular mode: by default, the queue loops back to the first node (see Figure 418).

To loop back to a different node, click the end of the arrow and drag it to the node of choice.

To remove the loop, uncheck Circular mode.

Figure 418. Queue in circular mode

Some functions first configure the IP, then manage the data transfer. In case of circular mode, the loop can be plugged on the configuration (“Conf”) or on the data part (“Data”) of the function.

An example is provided in Figure 419: when the queue is executed, the two first nodes and the configuration of the third node are executed once. whereas the data transfer is repeated as part of the loop.

374/453

UM1718 Rev 41

Соседние файлы в папке STM