A task can have an event register in which the bits correspond corr espond to dierent events! It is a "#$bit event register These "#$bit are divided into %our portions corresponding corr esponding to events o% three tasks and one ISR! Each o% the bits in the event register is an event &ag! A task can have an event register and other task can set'clear the bits in the event register to in%orm the status o% an event! The meaning o% " or %or particular bit has to be decided be%orehand!
Event register(contd!!) •
•
•
Task can set the *rst %our bits to " or ! Task +sing predetermined protocol protocol the meaning %or each o% these bits is decided! Task T ask " comes to know the status o% events %rom these bits!
Event Register ,anagement -unction .alls
•
-or managing the event registers/ the %ollowing %unction calls are provided0
.reate an event register 1elete an event register
2uery an event regist register er Set an event &ag .lear an event &ag
TI,ERS Timers are used to measure the elapsed time o% events! -or instance/ the kernel has to keep track o% dierent times0 A particular task may need to e3ecuted periodically/ say every " msec! A timer is used to keep track o% this periodicity! A task may be waiting in a 4ueue %or an event to occur! I% the event does not occur %or a speci*c time/
•
•
it has to take appropriate action! A task may be waiting in a 4ueue %or a shared resource! I% the resource is not available %or a speci*c time/ an appropriate action has to be taken!
Timer T imer ,anagement %unction The %ollowing %unction are .alls calls are provided to manage the timer0 5et time Set time T Time ime 1elay(in system clock ticks) •
Time delay (in seconds) Time Reset timer
,emory ,anagement ,emory management is an important service provided by the ker kernel! nel! The A6I provides the %ollowing %unction calls to manage memory0 .reate a memory block! 5et 1ata %rom memory! 6ost data in the memory! 2uery a memory block -ree the memory block
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.