-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathport_state_def.h
44 lines (32 loc) · 966 Bytes
/
port_state_def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
#include <soc.h>
#include "port_state.h"
/* This configuration file is included only once from board module and holds
* information about default pin states set while board is on and off.
*/
/* This structure enforces the header file is included only once in the build.
* Violating this requirement triggers a multiple definition error at link time.
*/
const struct {} port_state_def_include_once;
static const struct pin_state port0_on[] = {
};
static const struct pin_state port0_off[] = {
};
static const struct port_state port_state_on[] = {
{
.port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
.ps = port0_on,
.ps_count = ARRAY_SIZE(port0_on),
}
};
static const struct port_state port_state_off[] = {
{
.port = DEVICE_DT_GET(DT_NODELABEL(gpio0)),
.ps = port0_off,
.ps_count = ARRAY_SIZE(port0_off),
}
};