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) 2019 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 = 2 },
22
{ .port = 1, .pin = 15 },
23
{ .port = 1, .pin = 14 },
24
{ .port = 0, .pin = 29 },
25
{ .port = 0, .pin = 31 },
26
{ .port = 0, .pin = 24 },
27
{ .port = 0, .pin = 22 },
28
{ .port = 0, .pin = 4 },
29
};
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
nrf52840gmouse_nrf52840
buttons_def.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0