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 
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 
32 #define XTAL_HZ (16000000U) /* the board provides a 16 MHz XTAL */
33 
34 #define CLOCK_CORECLOCK (72000000U) /* this board runs with 72MHz */
35 
36 #define CLOCK_PCLK (CLOCK_CORECLOCK)
37 
43 #define TIMER_NUMOF (1U)
44 
50 static const uart_conf_t uart_config[] = {
51  {
52  .dev = UART0,
53  .irq_prio_rx = 6,
54  .pinsel_rx = 0,
55  .pinsel_tx = 0,
56  .pinsel_msk_rx = BIT4,
57  .pinsel_msk_tx = BIT6,
58  }
59 };
60 
61 #define UART_NUMOF (1)
62 
68 static const spi_conf_t spi_config[] = {
69  {
70  .dev = SPI0,
71  .pinsel_mosi = 3,
72  .pinsel_miso = 3,
73  .pinsel_clk = 3,
74  .pinsel_msk_mosi = (BIT16 | BIT17),
75  .pinsel_msk_miso = (BIT14 | BIT15),
76  .pinsel_msk_clk = (BIT8 | BIT9),
77  },
78 };
79 
80 #define SPI_NUMOF (1)
81 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* PERIPH_CONF_H */
88 
UART0
#define UART0
UART0 register bank.
Definition: cc26xx_cc13xx_uart.h:134
uart_conf_t
UART device configuration.
Definition: periph_cpu.h:166
uart_conf_t::dev
cc2538_uart_t * dev
pointer to the used UART device
Definition: periph_cpu.h:167
spi_conf_t::dev
SPI_Type * dev
SPI device to use.
Definition: periph_cpu.h:465
spi_conf_t
SPI configuration structure type.
Definition: periph_cpu.h:273