Real-Time Embedded Components and Systems With Linux and RTOS by Sam Siewert & John Pratt

Real-Time Embedded Components and Systems With Linux and RTOS by Sam Siewert & John Pratt

Author:Sam Siewert & John Pratt [Siewert, Sam & Pratt, John]
Language: eng
Format: epub
Tags: Computers, Microprocessors, Software Development & Engineering, General, Computer Engineering, Hardware
ISBN: 9781942270041
Google: ShTNrQEACAAJ
Amazon: 1942270046
Publisher: Mercury Learning & Information
Published: 2015-08-14T21:00:00+00:00


Exercises

Create a user-defined interrupt handler for the timer ISR and a task for processing. The timer should be scheduled on a regular basis, and the interrupt handler should signal the processing task. To ensure that the timer is being triggered with the correct periodicity, pass the interrupt timing to the processing task.

Create a pair of tasks that signal each other. The first task performs some computation, signals the other task, and waits for a signal from that task. The second task repeats the same pattern so that they alternate. Each task should complete a defined amount of work, such as computing a specified number of Fibonacci values. Profile each task so that one task is executing for 10 ms and the other for 40 ms.

Modify the timer ISR to signal two tasks with different frequencies: one task every 30 ms and the other every 80 ms. Use your processing load from #2 to run 10 ms of processing on the 30-ms task and 40 ms of processing on the 80-ms task.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.