Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2016 Nicholas Jackson
3
* SPDX-FileCopyrightText: 2017 HAW Hamburg
4
* SPDX-FileCopyrightText: 2020 Locha Inc
5
* SPDX-License-Identifier: LGPL-2.1-only
6
*/
7
8
#pragma once
9
21
22
#include "periph_cpu.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
/* the main clock is fixed to 48MHZ */
33
#define CLOCK_CORECLOCK (48000000U)
35
44
static
const
timer_conf_t
timer_config[] = {
45
{
46
.cfg = GPT_CFG_16T,
47
.chn = 2,
48
},
49
{
50
.cfg =
GPT_CFG_32T
,
51
.chn = 1,
52
},
53
{
54
.cfg = GPT_CFG_16T,
55
.chn = 2,
56
},
57
{
58
.cfg =
GPT_CFG_32T
,
59
.chn = 1,
60
}
61
};
62
63
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
65
78
79
static
const
uart_conf_t
uart_config[] = {
80
{
81
.regs =
UART0
,
82
.tx_pin = 3,
83
.rx_pin = 2,
84
#ifdef MODULE_PERIPH_UART_HW_FC
85
.rts_pin = 18,
86
.cts_pin = 19,
87
#endif
88
.intn =
UART0_IRQN
89
},
90
{
91
.regs =
UART1
,
92
.tx_pin = 11,
93
.rx_pin = 12,
94
#ifdef MODULE_PERIPH_UART_HW_FC
95
.rts_pin = 8,
96
.cts_pin = 9,
97
#endif
98
.intn = UART1_IRQN
99
}
100
};
101
#define UART_NUMOF ARRAY_SIZE(uart_config)
103
108
#define I2C_NUMOF (1)
109
#define I2C_SCL_PIN (4)
110
#define I2C_SDA_PIN (5)
112
113
#ifdef __cplusplus
114
}
115
#endif
116
GPT_CFG_32T
#define GPT_CFG_32T
GPT register values.
Definition
cc26xx_cc13xx_gpt.h:88
UART0_IRQN
@ UART0_IRQN
21 UART0 Rx and Tx
Definition
cc26xx_cc13xx.h:88
UART0
#define UART0
UART0 register bank.
Definition
cc26xx_cc13xx_uart.h:133
UART1
#define UART1
UART1 register bank.
Definition
cc26xx_cc13xx_uart.h:137
timer_conf_t
Timer device configuration.
Definition
periph_cpu.h:263
uart_conf_t
UART device configuration.
Definition
periph_cpu.h:217
Generated on Wed Aug 27 2025 20:40:40 by
1.13.2