periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Leon George
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 
9 #pragma once
10 
21 #include "periph_cpu.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 /* the main clock is fixed to 48MHZ */
32 #define CLOCK_CORECLOCK (48000000U)
43 static const timer_conf_t timer_config[] = {
44  {
45  .cfg = GPT_CFG_16T,
46  .chn = 2,
47  },
48  {
49  .cfg = GPT_CFG_32T,
50  .chn = 1,
51  },
52  {
53  .cfg = GPT_CFG_16T,
54  .chn = 2,
55  },
56  {
57  .cfg = GPT_CFG_32T,
58  .chn = 1,
59  }
60 };
61 
62 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
76 static const uart_conf_t uart_config[] = {
77  {
78  .regs = UART0,
79  .tx_pin = 29,
80  .rx_pin = 28,
81 #ifdef MODULE_PERIPH_UART_HW_FC
82  .rts_pin = GPIO_UNDEF,
83  .cts_pin = GPIO_UNDEF,
84 #endif
85  .intn = UART0_IRQN
86  }
87 };
88 #define UART_NUMOF ARRAY_SIZE(uart_config)
95 #define I2C_NUMOF (1)
96 #define I2C_SDA_PIN (5)
97 #define I2C_SCL_PIN (6)
100 #ifdef __cplusplus
101 }
102 #endif
103 
#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