Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
npcx-pinctrl.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nuvoton Technology Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NPCX_PINCTRL_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NPCX_PINCTRL_H_
8
19
/*
20
* Power Switch Logic (PSL) input wake-up mode is sensitive to edge signals.
21
*
22
* This is a component flag that should be combined with other
23
* `NPCX_PSL_ACTIVE_*` flags to produce a meaningful configuration.
24
*/
25
#define NPCX_PSL_MODE_EDGE (1 << 0)
26
27
/*
28
* Power Switch Logic (PSL) input wake-up mode is sensitive to logical levels.
29
*
30
* This is a component flag that should be combined with other
31
* `NPCX_PSL_ACTIVE_*` flags to produce a meaningful configuration.
32
*/
33
#define NPCX_PSL_MODE_LEVEL (1 << 1)
34
35
/*
36
* The active polarity of Power Switch Logic (PSL) input is high level or
37
* low-to-high transition.
38
*
39
* This is a component flag that should be combined with other
40
* `NPCX_PSL_MODE_*` flags to produce a meaningful configuration.
41
*/
42
#define NPCX_PSL_ACTIVE_HIGH (1 << 2)
43
44
/*
45
* The active polarity of Power Switch Logic (PSL) input is low level or
46
* high-to-low transition.
47
*
48
* This is a component flag that should be combined with other
49
* `NPCX_PSL_MODE_*` flags to produce a meaningful configuration.
50
*/
51
#define NPCX_PSL_ACTIVE_LOW (1 << 3)
52
53
/*
54
* Configures Power Switch Logic (PSL) input in detecting rising edge.
55
*
56
* This is used for describing the 'flag' property from PSL input device with
57
* 'nuvoton,npcx-pslctrl-conf' compatible.
58
*/
59
#define NPCX_PSL_RISING_EDGE (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_HIGH)
60
61
/*
62
* Configures Power Switch Logic (PSL) input in detecting falling edge.
63
*
64
* This is used for describing the 'flag' property from PSL input device with
65
* 'nuvoton,npcx-pslctrl-conf' compatible.
66
*/
67
#define NPCX_PSL_FALLING_EDGE (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_LOW)
68
69
/*
70
* Configures Power Switch Logic (PSL) input in detecting level high state (has
71
* logical value '1').
72
*
73
* This is used for describing the 'flag' property from PSL input device with
74
* 'nuvoton,npcx-pslctrl-conf' compatible.
75
*/
76
#define NPCX_PSL_LEVEL_HIGH (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_HIGH)
77
78
/*
79
* Configures Power Switch Logic (PSL) input in detecting level low state (has
80
* logical value '0').
81
*
82
* This is used for describing the 'flag' property from PSL input device with
83
* 'nuvoton,npcx-pslctrl-conf' compatible.
84
*/
85
#define NPCX_PSL_LEVEL_LOW (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_LOW)
86
87
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_NPCX_PINCTRL_H_ */
include
dt-bindings
pinctrl
npcx-pinctrl.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2