1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

boards/stm32: adapt common i2c config to L0 boards

This commit is contained in:
Alexandre Abadie 2019-05-18 20:12:18 +02:00
parent 35d43ccdc6
commit 6cad403dfa
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -53,9 +53,11 @@ static const i2c_conf_t i2c_config[] = {
#elif CPU_FAM_STM32F7
.rcc_mask = RCC_APB1ENR_I2C1EN,
.irqn = I2C1_ER_IRQn,
#elif CPU_FAM_STM32F0
#elif CPU_FAM_STM32F0 || CPU_FAM_STM32L0
.rcc_mask = RCC_APB1ENR_I2C1EN,
#if CPU_FAM_STM32F0
.rcc_sw_mask = RCC_CFGR3_I2C1SW,
#endif
.irqn = I2C1_IRQn,
#endif
}
@ -65,7 +67,7 @@ static const i2c_conf_t i2c_config[] = {
#define I2C_0_ISR isr_i2c1_ev
#elif CPU_FAM_STM32L4 || CPU_FAM_STM32F7
#define I2C_0_ISR isr_i2c1_er
#elif CPU_FAM_STM32F0
#elif CPU_FAM_STM32F0 || CPU_FAM_STM32L0
#define I2C_0_ISR isr_i2c1
#endif