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 

API for I2C and SPI on TL2

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



Joined: 19 Jan 2009
Posts: 9

PostPosted: Wed Apr 01, 2009 3:33 pm    Post subject: API for I2C and SPI on TL2 Reply with quote

Turbo Lite 2 has an I2C and SPI serial intefaces available on system connector.
Do you have an API for accessing them?

In "I2C thermometer" example I saw the I2C is accessed "standard" way, the only change is I have to use the outb/inb for writing/reading register values.

How about SPI? Does the same mechanism apply?

THX!
Back to top
View user's profile Send private message
dary



Joined: 15 Oct 2007
Posts: 54

PostPosted: Tue Apr 21, 2009 6:13 pm    Post subject: Reply with quote

You can access these with standard avr-libc API, interrupts register as actions. But polling is better. Another I2C example is autoalarm.
Back to top
View user's profile Send private message
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