Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
21
#ifndef PERIPH_CONF_H
22
#define PERIPH_CONF_H
23
24
#include "periph_cpu.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
/* the main clock is fixed to 48MHZ */
35
#define CLOCK_CORECLOCK (48000000U)
36
46
static
const
timer_conf_t
timer_config[] = {
47
{
48
.
cfg
= GPT_CFG_16T,
49
.chn = 2,
50
},
51
{
52
.cfg =
GPT_CFG_32T
,
53
.chn = 1,
54
},
55
{
56
.cfg = GPT_CFG_16T,
57
.chn = 2,
58
},
59
{
60
.cfg =
GPT_CFG_32T
,
61
.chn = 1,
62
}
63
};
64
65
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
66
80
static
const
uart_conf_t
uart_config[] = {
81
{
82
.regs =
UART0
,
83
.tx_pin = 3,
84
.rx_pin = 2,
85
#ifdef MODULE_PERIPH_UART_HW_FC
86
.rts_pin =
GPIO_UNDEF
,
87
.cts_pin =
GPIO_UNDEF
,
88
#endif
89
.intn =
UART0_IRQN
90
}
91
};
92
#define UART_NUMOF ARRAY_SIZE(uart_config)
93
99
#define I2C_NUMOF (1)
100
#define I2C_SDA_PIN (14)
101
#define I2C_SCL_PIN (15)
102
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* PERIPH_CONF_H */
109
GPT_CFG_32T
#define GPT_CFG_32T
GPT register values.
Definition:
cc26xx_cc13xx_gpt.h:89
UART0
#define UART0
UART0 register bank.
Definition:
cc26xx_cc13xx_uart.h:134
UART0_IRQN
@ UART0_IRQN
21 UART0 Rx and Tx
Definition:
cc26xx_cc13xx.h:78
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition:
periph_cpu_common.h:52
uart_conf_t
UART device configuration.
Definition:
periph_cpu.h:166
timer_conf_t
Timer configuration.
Definition:
periph_cpu.h:288
timer_conf_t::cfg
uint_fast8_t cfg
timer config word
Definition:
periph_cpu.h:290
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17