User Tools

Site Tools


lab2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lab2 [2010/02/25 00:06] natalialab2 [2010/03/19 12:50] (current) natalia
Line 200: Line 200:
 == OSSemPendAbort == == OSSemPendAbort ==
 OSSemPendAbort function aborts & readies any tasks currently waiting on a semaphore. This function should be used to fault-abort the wait on the semaphore, rather than to normally signal the semaphore via OSSemPost(). OSSemPendAbort function aborts & readies any tasks currently waiting on a semaphore. This function should be used to fault-abort the wait on the semaphore, rather than to normally signal the semaphore via OSSemPost().
 +==== Prelab studies ====
 +Please make sure to read and understand the license agreements listed below:
 +  * {{:legalnotice_os_only.pdf}}
 +  * {{:micrium-sla-cpu.pdf}}
 +  * {{:micrium-sla-p1.pdf}}
 +  * {{:micrium-sla-pl.pdf}}
 +Also read the following study guides and application notes:
 +  * {{:an1004_the_10-minute_guide_to_rtos_.pdf}}
 +  * {{:ucos-ii-refman.pdf}}
 +  * {{:quickrefchart-color.pdf}}
 +  * {{:task-state-diagram.pdf}}
 +  * {{:an1002_mutual_exclusion_semaphores_.pdf}}
 +  * {{:an1005_inter-process_communication_.pdf}}
 +  * {{:an1007a_c_os-ii_and_event_flags_.pdf}}
 +  * {{:ucos-ii-cfgman.pdf}}
  
 +
 +==== Evaluation ====
 +μC/OS-II source code is divided into platform dependent and platform independent files. Platform independent files can be found in Micrium/Software/uCOS-II/Source/. Platform independent files can be found in Micrium/Software/uCOS-II/Ports/HCS12/Paged/Metrowerks/SerialMonitor/
 +
 +By study the source structure and Micrium/ReadMe/uCOS-II-RefMan.pdf briefly answer the following questions:
 +  - Write a pseudo code using μC/OS-II to create two tasks and protect their critical sections that is accessing a common variable called XYZ.
 +  - In your own words, explain how multitasking is achieved in the μC/OS-II (pay special attention to os_cpu_a.s)?
 +
 +==== Resources =====
 +  * {{:serialmonitor.zip}}
lab2.1267056385.txt.gz · Last modified: 2010/02/25 00:06 by natalia