Loading...
Searching...
No Matches
cfg_i2c_default.h File Reference
#include "periph_cpu.h"
+ Include dependency graph for cfg_i2c_default.h:

Go to the source code of this file.

I2C configuration

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)
 
#define I2C_0_ISR   (isr_i2c1)
 
static const i2c_conf_t i2c_config []
 

Macro Definition Documentation

◆ I2C_0_ISR

#define I2C_0_ISR   (isr_i2c1)

Definition at line 46 of file cfg_i2c_default.h.

◆ I2C_NUMOF

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 45 of file cfg_i2c_default.h.

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.i2c = I2C1,
.scl_pin = GPIO_PIN(PORT_C, 2),
.sda_pin = GPIO_PIN(PORT_C, 3),
.freq = CLOCK_CORECLOCK,
.speed = I2C_SPEED_FAST,
.irqn = I2C1_IRQn,
.scl_pcr = (PORT_PCR_MUX(3)),
.sda_pcr = (PORT_PCR_MUX(3)),
},
}
#define CLOCK_CORECLOCK
Clock configuration.
Definition periph_cpu.h:31
@ PORT_C
port C
Definition periph_cpu.h:49
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition periph_cpu.h:279

Definition at line 33 of file cfg_i2c_default.h.