nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
buttons_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#include <caf/gpio_pins.h>
8
9/* This configuration file is included only once from button module and holds
10 * information about pins forming keyboard matrix.
11 */
12
13/* This structure enforces the header file is included only once in the build.
14 * Violating this requirement triggers a multiple definition error at link time.
15 */
17
18static const struct gpio_pin col[] = {};
19
20static const struct gpio_pin row[] = {
21 { .port = 1, .pin = DT_GPIO_PIN(DT_NODELABEL(button0), gpios) },
22 { .port = 1, .pin = DT_GPIO_PIN(DT_NODELABEL(button1), gpios) },
23 { .port = 1, .pin = DT_GPIO_PIN(DT_NODELABEL(button2), gpios) },
24 { .port = 0, .pin = DT_GPIO_PIN(DT_NODELABEL(button3), gpios) },
25};
static const struct gpio_pin row[]
Definition buttons_def.h:20
const struct @7 buttons_def_include_once
static const struct gpio_pin col[]
Definition buttons_def.h:18
Definition gpio_pins.h:13