periph_conf.h File Reference

Peripheral configuration for the nRF5340DK-app. More...

Detailed Description

Peripheral configuration for the nRF5340DK-app.

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "board.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Timer configuration

#define TIMER_0_ISR   isr_timer0
 Timer0 IRQ.
 
#define TIMER_1_ISR   isr_timer1
 Timer1 IRQ.
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 Timer configuration NUMOF.
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_NUMOF   ARRAY_SIZE(uart_config)
 UART configuration NUMOF.
 
static const uart_conf_t uart_config []
 

Real time counter configuration

#define RTT_DEV   (0)
 NRF_RTC0_S.
 
#define RTT_MAX_VALUE   (0x00ffffff)
 24bit
 
#define RTT_MAX_FREQUENCY   (32768U)
 in Hz
 
#define RTT_MIN_FREQUENCY   (8U)
 in Hz
 
#define RTT_CLOCK_FREQUENCY   (32768U)
 in Hz, LFCLK
 
#define RTT_FREQUENCY   (1024U)
 in Hz
 

PWM configuration

#define PWM_NUMOF   ARRAY_SIZE(pwm_config)
 
static const pwm_conf_t pwm_config []
 

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_TWIM2_S,
.scl = GPIO_PIN(1, 3),
.sda = GPIO_PIN(1, 2),
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:46
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition: periph_cpu.h:278

Definition at line 133 of file periph_conf.h.

◆ pwm_config

const pwm_conf_t pwm_config[]
static
Initial value:
= {
{
.dev = NRF_PWM0_S,
.pin = {
LED0_PIN,
LED3_PIN
}
},
}
#define LED1_PIN
TX LED yellow.
Definition: board.h:35
#define LED2_PIN
RX LED yellow.
Definition: board.h:36

Definition at line 98 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = NRF_SPIM1_S,
.sclk = GPIO_PIN(0, 17),
.mosi = GPIO_PIN(0, 13),
.miso = GPIO_PIN(0, 14),
}
}

Definition at line 117 of file periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = NRF_TIMER0_S,
.channels = 5,
.bitmode = TIMER_BITMODE_BITMODE_32Bit,
.irqn = TIMER0_IRQn
},
{
.dev = NRF_TIMER1_S,
.channels = 5,
.bitmode = TIMER_BITMODE_BITMODE_32Bit,
.irqn = TIMER1_IRQn
},
}

Definition at line 35 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = NRF_UARTE0_S,
.rx_pin = GPIO_PIN(1, 0),
.tx_pin = GPIO_PIN(1, 1),
.irqn = SERIAL0_IRQn,
},
}

Definition at line 60 of file periph_conf.h.