boards/nrf6310/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
22 #ifndef PERIPH_CONF_H
23 #define PERIPH_CONF_H
24 
25 #include "periph_cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
38 #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
39  16: 16MHz crystal
40  32: 32MHz crystal */
41 #define CLOCK_LFCLK (1) /* set to 0: internal RC oscillator
42  * 1: 32.768 kHz crystal
43  * 2: derived from HFCLK */
44 
50 static const timer_conf_t timer_config[] = {
51  /* dev, channels, width */
52  { NRF_TIMER0, 3, TIMER_BITMODE_BITMODE_24Bit, TIMER0_IRQn }
53 };
54 
55 #define TIMER_0_ISR isr_timer0
56 
57 #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
58 
64 #define RTT_NUMOF (1U)
65 #define RTT_DEV (1) /* NRF_RTC1 */
66 #define RTT_MAX_VALUE (0x00ffffff)
67 #define RTT_FREQUENCY (1024)
68 
74 #define UART_NUMOF (1U)
75 #define UART_0_EN 1
76 #define UART_IRQ_PRIO 1
77 
78 /* UART pin configuration */
79 #define UART_PIN_RX 16
80 #define UART_PIN_TX 17
81 #define UART_HWFLOWCTRL 0
82 #define UART_PIN_RTS 19
83 #define UART_PIN_CTS 18
84 
93 #define RADIO_IRQ_PRIO 1
94 
100 static const spi_conf_t spi_config[] = {
101  {
102  .dev = NRF_SPI0,
103  .sclk = 23,
104  .mosi = 22,
105  .miso = 20
106  },
107  {
108  .dev = NRF_SPI1,
109  .sclk = 16,
110  .mosi = 17,
111  .miso = 18
112  }
113 };
114 
115 #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0]))
116 
124 #define ADC_NUMOF (0)
125 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif /* PERIPH_CONF_H */
133 
SPI module configuration options.
Timer configuration.
cc2538_ssi_t * dev
SSI device.