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 */
17
18static const struct gpio_pin col[] = {
19 { .port = 0, .pin = 31 },
20 { .port = 0, .pin = 24 },
21 { .port = 0, .pin = 23 },
22 { .port = 0, .pin = 22 },
23 { .port = 0, .pin = 20 },
24 { .port = 0, .pin = 21 },
25 { .port = 0, .pin = 19 },
26 { .port = 0, .pin = 18 },
27};
28
29static const struct gpio_pin row[] = {
30 { .port = 0, .pin = 17 },
31 { .port = 0, .pin = 11 },
32 { .port = 0, .pin = 9 },
33 { .port = 0, .pin = 8 },
34 { .port = 0, .pin = 7 },
35 { .port = 0, .pin = 6 },
36 { .port = 0, .pin = 5 },
37 { .port = 0, .pin = 3 },
38 { .port = 0, .pin = 4 },
39 { .port = 0, .pin = 15 },
40 { .port = 0, .pin = 0 },
41 { .port = 0, .pin = 1 },
42 { .port = 0, .pin = 13 },
43 { .port = 0, .pin = 14 },
44 { .port = 0, .pin = 12 },
45 { .port = 0, .pin = 10 },
46 { .port = 0, .pin = 16 },
47 { .port = 0, .pin = 2 },
48};
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