Add initial set of I2C functions.

Thomas Otto has tested the code by successfully talking to a temperature
sensor from ST in master tranciever mode.

Thanks Thomas Otto <tommi@viadmin.org> for the patch!
This commit is contained in:
Uwe Hermann
2010-03-01 21:47:14 +01:00
parent 5455b0970e
commit 742c595114
3 changed files with 116 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ CFLAGS = -Os -g -Wall -Wextra -I../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o rcc.o gpio.o usart.o adc.o spi.o flash.o nvic.o rtc.o
OBJS = vector.o rcc.o gpio.o usart.o adc.o spi.o flash.o nvic.o \
rtc.o i2c.o
# Be silent per default, but 'make V=1' will show all compiler calls.
ifneq ($(V),1)