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: 2014 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "periph_cpu.h"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
#define XTAL_HZ (16000000U)
/* the board provides a 16 MHz XTAL */
29
30
#define CLOCK_CORECLOCK (72000000U)
/* this board runs with 72MHz */
31
32
#define CLOCK_PCLK (CLOCK_CORECLOCK)
34
39
#define TIMER_NUMOF (1U)
41
46
static
const
uart_conf_t
uart_config[] = {
47
{
48
.dev =
UART0
,
49
.irq_prio_rx = 6,
50
.pinsel_rx = 0,
51
.pinsel_tx = 0,
52
.pinsel_msk_rx =
BIT4
,
53
.pinsel_msk_tx =
BIT6
,
54
}
55
};
56
57
#define UART_NUMOF (1)
59
64
static
const
spi_conf_t
spi_config[] = {
65
{
66
.dev = SPI0,
67
.pinsel_mosi = 3,
68
.pinsel_miso = 3,
69
.pinsel_clk = 3,
70
.pinsel_msk_mosi = (
BIT16
|
BIT17
),
71
.pinsel_msk_miso = (
BIT14
|
BIT15
),
72
.pinsel_msk_clk = (
BIT8
|
BIT9
),
73
},
74
};
75
76
#define SPI_NUMOF (1)
78
79
#ifdef __cplusplus
80
}
81
#endif
82
BIT8
#define BIT8
Bit 8 set define.
Definition
bitarithm.h:66
BIT17
#define BIT17
Bit 17 set define.
Definition
bitarithm.h:79
BIT9
#define BIT9
Bit 9 set define.
Definition
bitarithm.h:67
BIT14
#define BIT14
Bit 14 set define.
Definition
bitarithm.h:74
BIT16
#define BIT16
Bit 16 set define.
Definition
bitarithm.h:78
BIT4
#define BIT4
Bit 4 set define.
Definition
bitarithm.h:62
BIT6
#define BIT6
Bit 6 set define.
Definition
bitarithm.h:64
BIT15
#define BIT15
Bit 15 set define.
Definition
bitarithm.h:75
UART0
#define UART0
UART0 register bank.
Definition
cc26xx_cc13xx_uart.h:130
spi_conf_t
SPI device configuration.
Definition
periph_cpu.h:333
uart_conf_t
UART device configuration.
Definition
periph_cpu.h:214
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2