periph_conf.h File Reference

Peripheral configuration for the nRF9160DK. More...

Detailed Description

Peripheral configuration for the nRF9160DK.

Dylan Laduranty

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.

I2C configuration

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

SPI configuration

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

Timer configuration

#define TIMER_0_ISR   isr_timer0
 Timer0 IRQ. More...
#define TIMER_1_ISR   isr_timer1
 Timer1 IRQ. More...
#define TIMER_0_MAX_VALUE   0xffffffff
 See timer_init. More...
#define TIMER_1_MAX_VALUE   0xffffffff
 See timer_init. More...
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 Timer configuration NUMOF. More...
static const timer_conf_t timer_config []

UART configuration

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

Real time counter configuration

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

PWM configuration

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

Macro Definition Documentation


#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 43 of file periph_conf.h.


#define PWM_NUMOF   ARRAY_SIZE(pwm_config)

Definition at line 158 of file periph_conf.h.


#define RTT_CLOCK_FREQUENCY   (32768U)

in Hz, LFCLK

Definition at line 135 of file periph_conf.h.


#define RTT_DEV   (0)


Definition at line 129 of file periph_conf.h.


#define RTT_FREQUENCY   (1024U)

in Hz

Definition at line 138 of file periph_conf.h.


#define RTT_MAX_FREQUENCY   (32768U)

in Hz

Definition at line 133 of file periph_conf.h.


#define RTT_MAX_VALUE   (0x00ffffff)


Definition at line 132 of file periph_conf.h.


#define RTT_MIN_FREQUENCY   (8U)

in Hz

Definition at line 134 of file periph_conf.h.


#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 59 of file periph_conf.h.


#define TIMER_0_ISR   isr_timer0

Timer0 IRQ.

Definition at line 83 of file periph_conf.h.


#define TIMER_0_MAX_VALUE   0xffffffff

See timer_init.

Definition at line 87 of file periph_conf.h.


#define TIMER_1_ISR   isr_timer1

Timer1 IRQ.

Definition at line 84 of file periph_conf.h.


#define TIMER_1_MAX_VALUE   0xffffffff

See timer_init.

Definition at line 89 of file periph_conf.h.


#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Timer configuration NUMOF.

Definition at line 91 of file periph_conf.h.


#define UART_NUMOF   ARRAY_SIZE(uart_config)

UART configuration NUMOF.

Definition at line 121 of file periph_conf.h.

Variable Documentation

◆ i2c_config

const i2c_conf_t i2c_config[]
Initial value:
= {
.dev = NRF_TWIM3_S,
.scl = GPIO_PIN(0, 31),
.sda = GPIO_PIN(0, 30),
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:46
normal mode: ~100 kbit/s
Definition: periph_cpu.h:278

Definition at line 35 of file periph_conf.h.

◆ pwm_config

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

Definition at line 146 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
Initial value:
= {
.dev = NRF_SPIM2_S,
.sclk = GPIO_PIN(0, 13),
.mosi = GPIO_PIN(0, 11),
.miso = GPIO_PIN(0, 12),

Definition at line 50 of file periph_conf.h.

◆ timer_config

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

Definition at line 66 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
Initial value:
= {
.dev = NRF_UARTE0_S,
.rx_pin = GPIO_PIN(0, 28),
.tx_pin = GPIO_PIN(0, 29),
.dev = NRF_UARTE1_S,
.rx_pin = GPIO_PIN(0, 0),
.tx_pin = GPIO_PIN(0, 1),

Definition at line 98 of file periph_conf.h.