root / branches / autonomous_recharging / code / projects / autonomous_recharging / archs / i2c.h @ 267
History | View | Annotate | Download (384 Bytes)
1 | 80 | bneuman | /* i2c.h
|
---|---|---|---|
2 | |||
3 | constants and stuff
|
||
4 | */
|
||
5 | #ifndef _I2C_H_
|
||
6 | #define _I2C_H_
|
||
7 | |||
8 | #include <avr/io.h> |
||
9 | #include <avr/interrupt.h> |
||
10 | #include <util/delay.h> |
||
11 | |||
12 | #include "USI_TWI_Master.c" |
||
13 | #include "USI_TWI_Slave.c" |
||
14 | #include "i2c.c" |
||
15 | |||
16 | void i2c_init(void); |
||
17 | void i2c_putpacket(char addr, char *data, char data_size); |
||
18 | int i2c_getpacket(char *c); |
||
19 | void i2c_test(void); |
||
20 | void delay_ms(int ms); |
||
21 | |||
22 | #endif |