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_TI_CC13XX_CC26XX_GPIO_H_
7 : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_TI_CC13XX_CC26XX_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 Texas
14 : * Instruments CC1xx/CC26xx SoCs.
15 : */
16 1 : #define CC13XX_CC26XX_GPIO_DEBOUNCE (1U << 8)
17 :
18 : /**
19 : * @name GPIO drive strength flags
20 : *
21 : * The drive strength flags are a Zephyr specific extension of the standard GPIO
22 : * flags specified by the Linux GPIO binding. Only applicable for Texas
23 : * Instruments CC13xx/CC26xx SoCs.
24 : *
25 : * The interface supports two different drive strengths:
26 : * `DFLT` - The lowest drive strength supported by the HW
27 : * `ALT` - The highest drive strength supported by the HW
28 : *
29 : * @{
30 : */
31 : /** @cond INTERNAL_HIDDEN */
32 : #define CC13XX_CC26XX_GPIO_DS_POS 9
33 : #define CC13XX_CC26XX_GPIO_DS_MASK (0x3U << CC13XX_CC26XX_GPIO_DS_POS)
34 : /** @endcond */
35 :
36 : /** Default drive strength. */
37 1 : #define CC13XX_CC26XX_GPIO_DS_DFLT (0x0U << CC13XX_CC26XX_GPIO_DS_POS)
38 :
39 : /** Alternative drive strength. */
40 1 : #define CC13XX_CC26XX_GPIO_DS_ALT (0x3U << CC13XX_CC26XX_GPIO_DS_POS)
41 :
42 : /** @} */
43 :
44 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_TI_CC13XX_CC26XX_GPIO_H_ */
|