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 []

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
Initial value:
= {
.i2c = I2C1,
.scl_pin = GPIO_PIN(PORT_C, 2),
.sda_pin = GPIO_PIN(PORT_C, 3),
.speed = I2C_SPEED_FAST,
.irqn = I2C1_IRQn,
.scl_pcr = (PORT_PCR_MUX(3)),
.sda_pcr = (PORT_PCR_MUX(3)),
port C
Definition: periph_cpu.h:38
fast mode: ~400kbit/s
Definition: periph_cpu.h:117
System core clock speed, fixed to 16MHz for all NRF51x CPUs.
Definition: periph_cpu.h:31
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35

Definition at line 34 of file cfg_i2c_default.h.