The f1, f2, f4, l1 chip families have a similar "v1" i2c peripheral on board. More recent f0, f3, l0, l3 chip families share another "v2" version of i2c. This patch unifies headers and implementation for two types of i2c peripherals: - rename: i2c_common_all.[ch] to i2c_common_v1.[ch] - remove i2c_common_f24.h: extra I2C blocks are defined in specific headers - use f3 i2c code as a basis for common "v2" i2c implementation - add f0 i2c support: use "v2" i2c implementation Tests: - tested on a custom f0 board - compile-tested both libopencm3 and libopencm3-examples for all stm32 Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
33 lines
955 B
C
33 lines
955 B
C
/** @defgroup i2c_file I2C
|
|
*
|
|
* @ingroup STM32F3xx
|
|
*
|
|
* @brief <b>libopencm3 STM32F3xx I2C</b>
|
|
*
|
|
* @version 1.0.0
|
|
*
|
|
* @date 15 October 2012
|
|
*
|
|
* LGPL License Terms @ref lgpl_license
|
|
*/
|
|
|
|
/*
|
|
* This file is part of the libopencm3 project.
|
|
*
|
|
* This library is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <libopencm3/stm32/i2c.h>
|
|
|