Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
boards/nrf51dongle/include/periph_conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef PERIPH_CONF_H
20
#define PERIPH_CONF_H
21
22
#include "periph_cpu.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
35
#define CLOCK_HFCLK (16U)
/* set to 0: internal RC oscillator
36
16: 16MHz crystal
37
32: 32MHz crystal */
38
#define CLOCK_LFCLK (1)
/* set to 0: internal RC oscillator
39
* 1: 32.768 kHz crystal
40
* 2: derived from HFCLK */
41
47
static
const
timer_conf_t
timer_config[] = {
48
/* dev, channels, width */
49
{ NRF_TIMER0, 3, TIMER_BITMODE_BITMODE_24Bit, TIMER0_IRQn }
50
};
51
52
#define TIMER_0_ISR isr_timer0
53
54
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
55
61
#define RTT_NUMOF (1U)
62
#define RTT_DEV (1)
/* NRF_RTC1 */
63
#define RTT_MAX_VALUE (0x00ffffff)
64
#define RTT_FREQUENCY (1024)
65
71
#define UART_NUMOF (1U)
72
/* UART pin configuration */
73
#define UART_HWFLOWCTRL 1
74
#define UART_PIN_RX 11
75
#define UART_PIN_TX 9
76
#define UART_PIN_RTS 8
77
#define UART_PIN_CTS 10
78
86
#define ADC_NUMOF (0)
87
96
#define RADIO_IRQ_PRIO 1
97
99
#ifdef __cplusplus
100
}
101
#endif
102
103
#endif
/* PERIPH_CONF_H */
104
timer_conf_t
Timer configuration.
Definition:
cc2538/include/periph_cpu.h:183
Generated on Sat Apr 21 2018 04:00:15 by
1.8.13