19 #ifndef CFG_I2C1_PB8_PB9_H
20 #define CFG_I2C1_PB8_PB9_H
22 #include "periph_cpu.h"
49 #if CPU_FAM_STM32F4 || CPU_FAM_STM32F2
50 .rcc_mask = RCC_APB1ENR_I2C1EN,
53 #elif CPU_FAM_STM32L4 || CPU_FAM_STM32WB || CPU_FAM_STM32G4 || CPU_FAM_STM32L5
54 .rcc_mask = RCC_APB1ENR1_I2C1EN,
57 .rcc_mask = RCC_APBENR1_I2C1EN,
60 .rcc_mask = RCC_APB1ENR_I2C1EN,
62 #elif CPU_FAM_STM32F0 || CPU_FAM_STM32L0
63 .rcc_mask = RCC_APB1ENR_I2C1EN,
65 .rcc_sw_mask = RCC_CFGR3_I2C1SW,
72 #if CPU_FAM_STM32F4 || CPU_FAM_STM32F2
73 #define I2C_0_ISR isr_i2c1_ev
74 #elif CPU_FAM_STM32L4 || CPU_FAM_STM32F7 || CPU_FAM_STM32WB || CPU_FAM_STM32L5
75 #define I2C_0_ISR isr_i2c1_er
76 #elif CPU_FAM_STM32F0 || CPU_FAM_STM32L0 || CPU_FAM_STM32G0
77 #define I2C_0_ISR isr_i2c1
80 #define I2C_NUMOF ARRAY_SIZE(i2c_config)