|
bladox.com Turbo SIM Toolkit Adapter Forums
|
View previous topic :: View next topic |
Author |
Message |
kalmar Guest
|
Posted: Tue Feb 08, 2005 2:04 pm Post subject: hardware Actions? |
|
|
I have ordered a turbo-lite and am reading the documents at the moment. I don't see a way to wait on hardware events (for example, interrupts caused by change of level on pin, overflow of hardware counter, etc), by OS commands. Is this true or did I miss something?
If it is true, then I would try to use the capabilities of the AVR directly. Is this possible, and how would I implement it - just wait for a global flag set by the interrupt inside turbo_handler maybe?
Thank you for any clues |
|
Back to top |
|
|
pz Guest
|
Posted: Tue Feb 08, 2005 3:12 pm Post subject: |
|
|
You cannot wait(=sleep) for such events because mcu has to respond to phone in limited time. But you can use IRQ though in limited way. Don't forget that there are no clocks 99% of time - they are stopped by phone to save power.
You can use IRQ as any action, e.g. there is ACTION_SIG_2WIRE_SERIAL, reg_action() and hadle it in turbo_handler().
You have to set up the hwd to generate appropriate IRQ by yourself, kernel handles just the IRQ and sends it to application that has it registered. |
|
Back to top |
|
|
kalmar Guest
|
Posted: Tue Feb 08, 2005 4:51 pm Post subject: |
|
|
Ah, I did not see these ACTIONs related to IRQ before, because I was looking in the Turbo documentation, and these seem to be only listed in the Programmer doc.
Is it correct to assume that these defines are also available on Turbo Lite environment?
I guess this is what I was looking for anyway - thanks again. |
|
Back to top |
|
|
pz Guest
|
Posted: Wed Feb 09, 2005 7:30 am Post subject: |
|
|
kalmar wrote: | Ah, I did not see these ACTIONs related to IRQ before, because I was looking in the Turbo documentation, and these seem to be only listed in the Programmer doc.
Is it correct to assume that these defines are also available on Turbo Lite environment?
I guess this is what I was looking for anyway - thanks again. |
Oh, I see they are not described in devel doc, there is just short note in http://www.bladox.com/devel-docs/group__api__actions.html
You can find these actions defined in turbo/consts.h
The are also in Lite. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|