19#ifndef CFG_I2C1_PB6_PB7_H
20#define CFG_I2C1_PB6_PB7_H
22#include "periph_cpu.h"
47 .rcc_mask = RCC_APB1ENR1_I2C1EN,
48 .rcc_sw_mask = RCC_CCIPR_I2C1SEL_1,
51 .rcc_mask = RCC_APB1ENR_I2C1EN,
58#define I2C_0_ISR isr_i2c1_er
60#define I2C_0_ISR isr_i2c1
63#define I2C_NUMOF ARRAY_SIZE(i2c_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ GPIO_AF1
use alternate function 1
@ GPIO_AF4
use alternate function 4
@ APB1
Advanced Peripheral Bus 1
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.