Загрузка...

FreeRTOS on the Raspberry Pi Pico (RP2040) Part 5: Semaphores

FreeRTOS is an open source Real Time OS available for a wide range of microcontrollers and this video is part 5 in a series on using FreeRTOS on RP2040 based boards such as the Raspberry Pi Pico. In this video we show you how the FreeRTOS semaphores work and we briefly cover how to use semaphores , what they are and when not to use them. By the end of this tutorial you will have a project which explains how semaphores can be used as an event counter and synchroniser. Binary semaphores are used for both mutual exclusion and synchronisation purposes. Counting semaphores are typically used for counting events and resource management.

The written version of this tutorial and the code used is available: https://learnembeddedsystems.co.uk/freertos-on-the-rp2040-part-5-semaphores
Template Project Repo:
https://github.com/LearnEmbeddedSystems/rp2040-freertos-project
GitHub Command: "git clone --recurse-submodules https://github.com/LearnEmbeddedSystems/rp2040-freertos-project"

Playlist of FreeRTOS on the RP2040: https://www.youtube.com/playlist?list=PLEB5F4gTNK68zDlrXbcCgJ6NejaP0PvHX

In this tutorial we create a simple program where a Raspberry Pi Pico uses two FreeRTOS tasks to print to a command line over the USB interface which task is running.

Timestamps
00:00 Intro
00:43 What is a Binary Semaphore?
02:33 What is a Counting Semaphore?
04:02 FreeRTOS API Calls
04:50 Example
08:30 Conclusion

If this video helped you, please consider leaving a like and subscribing, thank you!

To see our videos on the Raspberry Pi Pico, check out the playlist here: https://www.youtube.com/playlist?list=PLEB5F4gTNK68IlRIJtcJ_2cW4dSdmreTw

You can find more embedded systems tutorials and projects on our website https://learnembeddedsystems.co.uk

-- Equipment we use regularly --
The following links are affiliate links where I may make a small percentage on qualifying sales through these links. Use the respective UK or US links listed.

Budget Soldering Iron: UK: https://amzn.to/3pQpvUu US: https://amzn.to/3bBawIJ
Breadboards: UK: https://amzn.to/3solZCe US: https://amzn.to/3dGsHiS
Jumper Cables: UK: https://amzn.to/37JfToi US: https://amzn.to/3r384S9
Camera: UK: https://amzn.to/3qKLwFr US: https://amzn.to/3pK0V7C
Lens: UK: https://amzn.to/380lQxp US: https://amzn.to/3knH3WL
Tripod: UK: https://amzn.to/37H0Nzw US: https://amzn.to/3byKHsV
All videos and tutorials on this channel and mentioned websites are for educational purposes only.

Видео FreeRTOS on the Raspberry Pi Pico (RP2040) Part 5: Semaphores канала Learn Embedded Systems
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки