Revision 942
Simulator library compiles but doesn't do anything.
i2c.c | ||
---|---|---|
1 | 1 |
#include "i2c.h" |
2 |
#include "util.h" |
|
2 | 3 |
|
3 | 4 |
int i2c_init(char addr, fun_mrecv_t master_recv, fun_srecv_t slave_recv, fun_send_t slave_send) |
4 | 5 |
{ |
5 | 6 |
UNIMPLEMENTED |
7 |
return -1; |
|
6 | 8 |
} |
7 | 9 |
|
8 | 10 |
int i2c_send(char dest, char* data, size_t bytes) |
9 | 11 |
{ |
10 | 12 |
UNIMPLEMENTED |
13 |
return -1; |
|
11 | 14 |
} |
12 | 15 |
|
13 | 16 |
int i2c_request(char dest) |
14 | 17 |
{ |
15 | 18 |
UNIMPLEMENTED |
19 |
return -1; |
|
16 | 20 |
} |
17 | 21 |
|
Also available in: Unified diff