Skip to Content
Hands-On RTOS with Microcontrollers
book

Hands-On RTOS with Microcontrollers

by Brian Amos
May 2020
Intermediate to advanced
496 pages
13h 54m
English
Packt Publishing
Content preview from Hands-On RTOS with Microcontrollers

startUart4Traffic

The final component that needs to be explored in this example is how data will be sent to UART2. These examples are meant to simulate external data being received by USART2.  To achieve this without additional hardware, we wired together UART4 Tx and USART2 RX pins earlier in the chapter. The call to startUart4Traffic() is a TimerHandler prototype. A oneshot timer is started and set to fire 5 seconds after the application starts.

The function that does all of the heavy lifting is SetupUart4ExternalSim(). It sets up a continuous circular DMA transfer (which executes without CPU intervention) that transmits the string data from uart4 repeatedly. A full example using DMA will be covered later in this chapter – for now, it is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers - Second Edition

Hands-On RTOS with Microcontrollers - Second Edition

Jim Yuill, Penn Linder

Publisher Resources

ISBN: 9781838826734Supplemental Content