periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Nicholas Jackson
3  * 2017 HAW Hamburg
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
23 #include "periph_cpu.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 /* the main clock is fixed to 48MHZ */
34 #define CLOCK_CORECLOCK (48000000U)
45 static const timer_conf_t timer_config[] = {
46  {
47  .cfg = GPT_CFG_16T,
48  .chn = 2,
49  },
50  {
51  .cfg = GPT_CFG_32T,
52  .chn = 1,
53  },
54  {
55  .cfg = GPT_CFG_16T,
56  .chn = 2,
57  },
58  {
59  .cfg = GPT_CFG_32T,
60  .chn = 1,
61  }
62 };
63 
64 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
78 static const uart_conf_t uart_config[] = {
79  {
80  .regs = UART0,
81  .tx_pin = 13,
82  .rx_pin = 12,
83 #ifdef MODULE_PERIPH_UART_HW_FC
84  .rts_pin = GPIO_UNDEF,
85  .cts_pin = GPIO_UNDEF,
86 #endif
87  .intn = UART0_IRQN
88  }
89 };
90 #define UART_NUMOF ARRAY_SIZE(uart_config)
97 #define I2C_NUMOF (1)
98 #define I2C_SCL_PIN (4)
99 #define I2C_SDA_PIN (5)
102 #ifdef __cplusplus
103 }
104 #endif
105 
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const uart_conf_t uart_config[]
UART configuration.
Definition: periph_conf.h:38
static const timer_conf_t timer_config[]
All timers on board.
Definition: periph_conf.h:39
#define GPT_CFG_32T
GPT register values.
@ UART0_IRQN
21 UART0 Rx and Tx
Definition: cc26xx_cc13xx.h:88
#define UART0
UART0 register bank.
Timer device configuration.
Definition: periph_cpu.h:263
uint_fast8_t cfg
timer config word
Definition: periph_cpu.h:311
UART device configuration.
Definition: periph_cpu.h:217