Hello all,
i am using zstack HA 1.2 and cc2538 and in my project i am using few sensors......
and i know that using OSAL_TIMER_START API i can generate some time-out event and when that timer expire i'll get event callback and the task jump to ISR and execute it.....but it is a kind of polling based mechanism....
but i want a interrupt based mechanism i mean to say i want a mechanism which monitor for a current sensor data and as soon as the sensor data changes it should generate some event callback and start executing particular ISR...sensor may me anything...say motion sensor so if any motion detected it should generate some event callback and start executing ISR......or temp sensor so if temp data crossing some particular level i need a interrupt....
one ex.is KEY_CHANGE event in zstack....here until anyone presses any key nothing will happens but as anyone pressed any key it jumps to handle key ISR fn.... same way i also want to implement a interrupt based mechanism which monitor for a particular level and if that level reached it should generate some event callback for me....
hope i explained my requirement.....
anyone plz help me solve this problem..
Thanks & Regards,
Maneesh singh