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
21extern "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
46static 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
64static 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
#define BIT8
Bit 8 set define.
Definition bitarithm.h:66
#define BIT17
Bit 17 set define.
Definition bitarithm.h:79
#define BIT9
Bit 9 set define.
Definition bitarithm.h:67
#define BIT14
Bit 14 set define.
Definition bitarithm.h:74
#define BIT16
Bit 16 set define.
Definition bitarithm.h:78
#define BIT4
Bit 4 set define.
Definition bitarithm.h:62
#define BIT6
Bit 6 set define.
Definition bitarithm.h:64
#define BIT15
Bit 15 set define.
Definition bitarithm.h:75
#define UART0
UART0 register bank.
SPI device configuration.
Definition periph_cpu.h:333
UART device configuration.
Definition periph_cpu.h:214