-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Hands-On RTOS with Microcontrollers - Second Edition
By :
This chapter shows how FreeRTOS can be used to implement a driver that is shared among multiple tasks. Two drivers are created for sending messages over USB. The messages are sent from the dev-board to the development-computer. The first driver supports one task sending USB messages. The second driver enhances the first driver, by supporting multiple tasks sending USB messages. The chapter focuses on FreeRTOS features that are helpful in creating drivers. The features used are ones we’ve worked with earlier: tasks, stream-buffers, semaphores, mutexes, and timers.
The chapter has three example-programs. They are in the IDE-project Chapter_12. The first example-program introduces sending messages over USB, and it shows the need for a driver for sending USB messages. The next two example-programs implement the two drivers, respectively, along with programs that call the drivers.
The dev-board’s MCU has a USB peripheral. The...