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) 2020 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
24static const struct pin_state port0_off[] = {
25};
26
27
28static const struct port_state port_state_on[] = {
29 {
30 .port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
31 .ps = port0_on,
32 .ps_count = ARRAY_SIZE(port0_on),
33 }
34};
35
36static const struct port_state port_state_off[] = {
37 {
38 .port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
39 .ps = port0_off,
40 .ps_count = ARRAY_SIZE(port0_off),
41 }
42};
static const struct port_state port_state_on[]
Definition port_state_def.h:28
const struct @10 port_state_def_include_once
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
Definition port_state.h:19
Definition port_state.h:24