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

Putting it all together

There's a fair amount going on here, with multiple sources of asynchronous events. Here's a sequence diagram of how all of these functions fit together:

Here are a few noteworthy items from the preceding diagram:

  • Calls to TransmitUsbData and TransmitUsbDataLossy are non-blocking. If space is available, data is transferred into the stream buffer, txStream, and the number of bytes copied is returned. Partial messages may be copied into the buffer (which happens under extremely high load when the buffer gets filled).
  • Two things need to happen before a packet of data is sent via USBD_CDC_TransmitPacket:
    • usbTask must receive ...
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