Line data Source code
1 0 : /*
2 : * Copyright (c) 2022 Vestas Wind Systems A/S
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_SNPS_DESIGNWARE_GPIO_H_
7 : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_SNPS_DESIGNWARE_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 SNPS DesignWare GPIO
14 : * controllers.
15 : */
16 1 : #define DW_GPIO_DEBOUNCE (1U << 8)
17 :
18 : /**
19 : * @brief Enable hardware control/data source for a pin.
20 : *
21 : * Configures a pin to be controlled by a hardware data source (if
22 : * supported).
23 : */
24 1 : #define DW_GPIO_HW_MODE (1U << 9)
25 :
26 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_SNPS_DESIGNWARE_GPIO_H_ */
|