The friendly Operating System for the Internet of Things
boards/nrf52dk/include/periph_conf.h File Reference

Peripheral configuration for the nRF52 DK. More...

Detailed Description

#include "periph_cpu.h"
+ Include dependency graph for boards/nrf52dk/include/periph_conf.h:

Go to the source code of this file.

Macros

#define CLOCK_CORECLOCK   (64000000U) /* fixed for all NRF52832 */
 Clock configuration. More...
 
#define CLOCK_CRYSTAL
 
#define RTT_NUMOF   (1U)
 Real time counter configuration.
 
#define RTT_DEV   NRF_RTC1
 
#define RTT_IRQ   RTC1_IRQn
 
#define RTT_ISR   isr_rtc1
 
#define RTT_MAX_VALUE   (0xffffff)
 
#define RTT_FREQUENCY   (10) /* in Hz */
 
#define RTT_PRESCALER   (3275U) /* run with 10 Hz */
 
UART configuration
#define UART_NUMOF   (1U)
 
#define UART_PIN_RX   8
 
#define UART_PIN_TX   6
 

Timer configuration

#define TIMER_0_ISR   isr_timer1
 
#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

SPI configuration

#define SPI_NUMOF   (sizeof(spi_config) / sizeof(spi_config[0]))
 
static const spi_conf_t spi_config []
 

Macro Definition Documentation

#define CLOCK_CORECLOCK   (64000000U) /* fixed for all NRF52832 */
Note
The radio will not work with the internal RC oscillator!

Definition at line 36 of file boards/nrf52dk/include/periph_conf.h.

#define CLOCK_CRYSTAL
Value:
(32U) /* set to 0: internal RC oscillator
32: 32MHz crystal */

Definition at line 37 of file boards/nrf52dk/include/periph_conf.h.

Variable Documentation

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = NRF_SPI0,
.sclk = 15,
.mosi = 13,
.miso = 14 }
}

Definition at line 81 of file boards/nrf52dk/include/periph_conf.h.

const timer_conf_t timer_config[]
static
Initial value:
= {
{ NRF_TIMER1, 3, TIMER_BITMODE_BITMODE_32Bit, TIMER1_IRQn }
}

Definition at line 45 of file boards/nrf52dk/include/periph_conf.h.