Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Matvii Ivashchenko
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "kernel_defines.h"
21#include "periph_cpu.h"
22
30#define CLOCK_CORECLOCK (40000000UL)
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
44#define TIMER_NUMOF (1)
46
53#define GPIO0_BASE_ADDR (0xff983000UL)
55
65#define UART0_BASE_ADDR (0xff900000UL)
66#define UART0_IRQ (1U)
67
68static const uart_conf_t uart_config[] = {
69 {
70 .addr = UART0_BASE_ADDR,
71 .irq = UART0_IRQ,
72 },
73};
74
75#define UART_NUMOF ARRAY_SIZE(uart_config)
77
84#define GRETH_PARAM_BASE (0xff984000UL)
85#define GRETH_PARAM_IRQ (5U)
87
88
89#ifdef __cplusplus
90}
91#endif
92
#define UART0_IRQ
APBUART0 PLIC interrupt line.
Definition periph_conf.h:66
#define UART0_BASE_ADDR
APBUART0 base address.
Definition periph_conf.h:65
Common macros and compiler attributes/pragmas configuration.
UART device configuration.
Definition periph_cpu.h:214