This video presentation is the first installment of the Essentials of MQX RTOS Application Development training course. In this session, you will be introduced to multi-tasking, blocking calls, and switching.
This training was created by Embedded Access Inc., a Freescale sponsored training provider and proven partner.
Session 2 Course Line | Lab Topic |
---|---|
|
|
First, watch the video for Session 2: Designing for a Multi-Tasking Environment.
Then, follow through with the interactive lab assignment below.
Now that we have our application outlined it's time to organize the code into a structure that is appropriate for a multi-tasking environment. For one thing we'll need the application to run indefinitely instead of doing a small task and terminating. As well, having multiple tasks running in parallel requires a degree of cooperation and synchronization between the tasks. This is a topic that will be visited at several points in the course but for starters we'll look at a couple of options and see the impact they have on performance.
The objective of this lab is to understand the interaction of multiple tasks running indefinitely.This objective will be accomplished by:
Need more help? The full source code for this lab can be found in the 'Lab Source Code' folder here.