View previous topic :: View next topic |
Author |
Message |
jiri.tusla
Joined: 19 Jan 2009 Posts: 9
|
Posted: Wed Apr 01, 2009 3:33 pm Post subject: API for I2C and SPI on TL2 |
|
|
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 |
|
 |
dary
Joined: 15 Oct 2007 Posts: 54
|
Posted: Tue Apr 21, 2009 6:13 pm Post subject: |
|
|
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 |
|
 |
|