Loading...
Searching...
No Matches
board.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
17
18#include "cpu.h"
19#include "periph_conf.h"
20#include "periph/gpio.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define CONFIG_ZTIMER_USEC_BASE_FREQ (CLOCK_CORECLOCK / 2)
32
41#define LED0_PIN GPIO_PIN(0, 16)
42#define LED1_PIN GPIO_PIN(0, 17)
43#define LED2_PIN GPIO_PIN(0, 18)
44#define LED3_PIN GPIO_PIN(0, 19)
45#define LED4_PIN GPIO_PIN(0, 20)
46#define LED5_PIN GPIO_PIN(0, 21)
47#define LED6_PIN GPIO_PIN(0, 22)
48#define LED7_PIN GPIO_PIN(0, 23)
49
50#define LED0_ON gpio_set(LED0_PIN)
51#define LED0_OFF gpio_clear(LED0_PIN)
52#define LED0_TOGGLE gpio_toggle(LED0_PIN)
53
54#define LED1_ON gpio_set(LED1_PIN)
55#define LED1_OFF gpio_clear(LED1_PIN)
56#define LED1_TOGGLE gpio_toggle(LED1_PIN)
58
68#define BTN1_PIN GPIO_PIN(0, 5)
69#define BTN2_PIN GPIO_PIN(0, 6)
70#define BTN3_PIN GPIO_PIN(0, 7)
71#define BTN4_PIN GPIO_PIN(0, 0)
72#define BTN5_PIN GPIO_PIN(0, 1)
73#define BTN6_PIN GPIO_PIN(0, 2)
74#define BTN7_PIN GPIO_PIN(0, 3)
75
76#define BTN1_MODE GPIO_IN
77#define BTN2_MODE GPIO_IN
78#define BTN3_MODE GPIO_IN
79#define BTN4_MODE GPIO_IN
80#define BTN5_MODE GPIO_IN
81#define BTN6_MODE GPIO_IN
82#define BTN7_MODE GPIO_IN
84
92#define SW0_PIN GPIO_PIN(0, 0)
93#define SW1_PIN GPIO_PIN(0, 1)
94#define SW2_PIN GPIO_PIN(0, 2)
95#define SW3_PIN GPIO_PIN(0, 3)
97
98#ifdef __cplusplus
99}
100#endif
101
Peripheral configuration for the Gaisler NOEL-V ZedBoard.
Low-level GPIO peripheral driver interface definitions.