periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Nicholas Jackson
3  * 2017 HAW Hamburg
4  * 2020 Locha Inc
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
11 #pragma once
12 
25 #include "periph_cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 /* the main clock is fixed to 48MHZ */
36 #define CLOCK_CORECLOCK (48000000U)
47 static const timer_conf_t timer_config[] = {
48  {
49  .cfg = GPT_CFG_16T,
50  .chn = 2,
51  },
52  {
53  .cfg = GPT_CFG_32T,
54  .chn = 1,
55  },
56  {
57  .cfg = GPT_CFG_16T,
58  .chn = 2,
59  },
60  {
61  .cfg = GPT_CFG_32T,
62  .chn = 1,
63  }
64 };
65 
66 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
82 static const uart_conf_t uart_config[] = {
83  {
84  .regs = UART0,
85  .tx_pin = 3,
86  .rx_pin = 2,
87 #ifdef MODULE_PERIPH_UART_HW_FC
88  .rts_pin = 18,
89  .cts_pin = 19,
90 #endif
91  .intn = UART0_IRQN
92  },
93  {
94  .regs = UART1,
95  .tx_pin = 11,
96  .rx_pin = 12,
97 #ifdef MODULE_PERIPH_UART_HW_FC
98  .rts_pin = 8,
99  .cts_pin = 9,
100 #endif
101  .intn = UART1_IRQN
102  }
103 };
104 #define UART_NUMOF ARRAY_SIZE(uart_config)
111 #define I2C_NUMOF (1)
112 #define I2C_SCL_PIN (4)
113 #define I2C_SDA_PIN (5)
116 #ifdef __cplusplus
117 }
118 #endif
119 
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.
#define UART1
UART1 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