Line data Source code
1 0 : /*
2 : * Copyright (c) 2022 SEAL AG
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NUMICRO_GPIO_H_
7 : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NUMICRO_GPIO_H_
8 :
9 : /**
10 : * @brief Enable GPIO pin debounce.
11 : *
12 : * The debounce flag is a Zephyr specific extension of the standard GPIO flags
13 : * specified by the Linux GPIO binding. Only applicable for Nuvoton NuMicro SoCs.
14 : */
15 1 : #define NUMICRO_GPIO_INPUT_DEBOUNCE (1U << 8)
16 :
17 : /**
18 : * @brief Enable Schmitt trigger on input.
19 : *
20 : * The Schmitt trigger flag is a Zephyr specific extension of the standard GPIO flags
21 : * specified by the Linux GPIO binding. Only applicable for Nuvoton NuMicro SoCs.
22 : */
23 1 : #define NUMICRO_GPIO_INPUT_SCHMITT (1U << 9)
24 :
25 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NUMICRO_GPIO_H_ */
|