periph_conf.h File Reference

Peripheral configuration for the PineTime. More...

Detailed Description

Peripheral configuration for the PineTime.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "cfg_clock_32_1.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Macros

#define NRF5X_ENABLE_DCDC
 Enable the internal DC/DC converter.
 

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

I2C configuration

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

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.dev = NRF_TWIM1,
.scl = GPIO_PIN(0, 7),
.sda = GPIO_PIN(0, 6),
.speed = I2C_SPEED_FAST
}
}

Definition at line 55 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = NRF_SPIM0,
.sclk = GPIO_PIN(0, 2),
.mosi = GPIO_PIN(0, 3),
.miso = GPIO_PIN(0, 4),
.ppi = 0,
}
}

Definition at line 38 of file periph_conf.h.

GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
I2C_SPEED_FAST
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition: i2c.h:178