bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

hardware Actions?

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
kalmar
Guest





PostPosted: Tue Feb 08, 2005 2:04 pm    Post subject: hardware Actions? Reply with quote

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 Smile
Back to top
pz
Guest





PostPosted: Tue Feb 08, 2005 3:12 pm    Post subject: Reply with quote

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





PostPosted: Tue Feb 08, 2005 4:51 pm    Post subject: Reply with quote

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





PostPosted: Wed Feb 09, 2005 7:30 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
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