stm32l4: add pinconf settings for I2C
Add one pin configuration for I2C1 of the STM32L4 series. Change-Id: Id05d916f2a1126ca439aebcddd8dc9c91015f6fe Signed-off-by: Fabien Parent <fparent@baylibre.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
f8699b5754
commit
c14867069a
1 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,16 @@ static const stm32_pin_func_t pin_pa3_funcs[] = {
|
|||
STM32L4X_PIN_CONFIG_BIAS_HIGH_IMPEDANCE,
|
||||
};
|
||||
|
||||
static const stm32_pin_func_t pin_pb6_funcs[] = {
|
||||
[STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL - 1] =
|
||||
STM32L4X_PIN_CONFIG_OPEN_DRAIN_PULL_UP,
|
||||
};
|
||||
|
||||
static const stm32_pin_func_t pin_pb7_funcs[] = {
|
||||
[STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA - 1] =
|
||||
STM32L4X_PIN_CONFIG_OPEN_DRAIN_PULL_UP,
|
||||
};
|
||||
|
||||
static const stm32_pin_func_t pin_pb10_funcs[] = {
|
||||
[STM32L4X_PINMUX_FUNC_PB10_USART3_TX - 1] =
|
||||
STM32L4X_PIN_CONFIG_PUSH_PULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue