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) 2022 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
*/
16
const
struct
{}
buttons_def_include_once
;
17
18
static
const
struct
gpio_pin
col
[] = {};
19
20
static
const
struct
gpio_pin
row
[] = {
21
{ .port = 0, .pin = DT_GPIO_PIN(DT_ALIAS(sw0), gpios) },
22
{ .port = 0, .pin = DT_GPIO_PIN(DT_ALIAS(sw1), gpios) },
23
{ .port = 0, .pin = DT_GPIO_PIN(DT_ALIAS(sw2), gpios) },
24
{ .port = 0, .pin = DT_GPIO_PIN(DT_ALIAS(sw3), gpios) },
25
};
gpio_pins.h
row
static const struct gpio_pin row[]
Definition
buttons_def.h:20
buttons_def_include_once
const struct @7 buttons_def_include_once
col
static const struct gpio_pin col[]
Definition
buttons_def.h:18
gpio_pin
Definition
gpio_pins.h:13
applications
nrf_desktop
configuration
nrf52833dk_nrf52820
buttons_def.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0