nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
port_state_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 <soc.h>
8
9#include "port_state.h"
10
11/* This configuration file is included only once from board module and holds
12 * information about default pin states set while board is on and off.
13 */
14
15/* This structure enforces the header file is included only once in the build.
16 * Violating this requirement triggers a multiple definition error at link time.
17 */
19
20
21static const struct pin_state port0_on[] = {
22
23};
24
25static const struct pin_state port0_off[] = {
26
27};
28
29
30static const struct port_state port_state_on[] = {
31 {
32 .port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
33 .ps = port0_on,
34 .ps_count = ARRAY_SIZE(port0_on),
35 }
36};
37
38static const struct port_state port_state_off[] = {
39 {
40 .port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
41 .ps = port0_off,
42 .ps_count = ARRAY_SIZE(port0_off),
43 }
44};
static const struct pin_state port0_off[]
Definition port_state_def.h:24
static const struct pin_state port0_on[]
Definition port_state_def.h:21
static const struct port_state port_state_off[]
Definition port_state_def.h:36
static const struct port_state port_state_on[]
Definition port_state_def.h:28
const struct @16 port_state_def_include_once
Definition port_state.h:19
Definition port_state.h:24