stm32: l0/l4: add i2c support

According to reference manuals both l0 and l4 have "v2" i2c peripheral.
This patch adds i2c support to l0 and l4 using previously unified "v2" i2c
headers and implementation.

No real hardware has been tested so far. Only compilation tests for both
libopencm3 and libopencm3-examples for all stm32 families.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This commit is contained in:
Sergey Matyukevich
2016-12-01 22:59:19 +03:00
committed by Karl Palsson
parent ef91856ac1
commit 59ef83a440
6 changed files with 146 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ OBJS += gpio_common_all.o gpio_common_f0234.o
OBJS += adc_common_v2.o adc_common_v2_multi.o
OBJS += rng_common_v1.o
OBJS += timer_common_all.o
OBJS += i2c_common_v2.o
VPATH += ../../usb:../:../../cm3:../common
VPATH += ../../ethernet