periph_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Locha Inc
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "periph_cpu.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 /* the main clock is fixed to 48MHZ */
30 #define CLOCK_CORECLOCK (48000000U)
41 static const timer_conf_t timer_config[] = {
42  {
43  .cfg = GPT_CFG_16T,
44  .chn = 2,
45  },
46  {
47  .cfg = GPT_CFG_32T,
48  .chn = 1,
49  },
50  {
51  .cfg = GPT_CFG_16T,
52  .chn = 2,
53  },
54  {
55  .cfg = GPT_CFG_32T,
56  .chn = 1,
57  }
58 };
59 
60 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
75 static const uart_conf_t uart_config[] = {
76  {
77  .regs = UART0,
78  .tx_pin = 13,
79  .rx_pin = 12,
80 #ifdef MODULE_PERIPH_UART_HW_FC
81  .rts_pin = GPIO_UNDEF,
82  .cts_pin = GPIO_UNDEF,
83 #endif
84  .intn = UART0_IRQN
85  },
86  {
87  .regs = UART1,
88  .tx_pin = 26,
89  .rx_pin = 25,
90 #ifdef MODULE_PERIPH_UART_HW_FC
91  .rts_pin = GPIO_UNDEF,
92  .cts_pin = GPIO_UNDEF,
93 #endif
94  .intn = UART1_IRQN
95  }
96 };
97 #define UART_NUMOF ARRAY_SIZE(uart_config)
104 #define I2C_NUMOF (1)
105 #define I2C_SCL_PIN (21)
106 #define I2C_SDA_PIN (5)
109 #ifdef __cplusplus
110 }
111 #endif
112 
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const uart_conf_t uart_config[]
UART configuration.
Definition: periph_conf.h:35
static const timer_conf_t timer_config[]
All timers on board.
Definition: periph_conf.h:36
#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