LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/gpio - nxp-kinetis-gpio.h Hit Total Coverage
Test: new.info Lines: 2 3 66.7 %
Date: 2024-12-22 00:14:23

          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_NXP_KINETIS_GPIO_H_
       7             : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NXP_KINETIS_GPIO_H_
       8             : 
       9             : /**
      10             :  * @name GPIO drive strength flags
      11             :  *
      12             :  * The drive strength flags are a Zephyr specific extension of the standard GPIO
      13             :  * flags specified by the Linux GPIO binding. Only applicable for NXP Kinetis
      14             :  * SoCs.
      15             :  *
      16             :  * The interface supports two different drive strengths:
      17             :  * `DFLT` - The lowest drive strength supported by the HW
      18             :  * `ALT` - The highest drive strength supported by the HW
      19             :  *
      20             :  * @{
      21             :  */
      22             : /** @cond INTERNAL_HIDDEN */
      23             : #define KINETIS_GPIO_DS_POS 9
      24             : #define KINETIS_GPIO_DS_MASK (0x3U << KINETIS_GPIO_DS_POS)
      25             : /** @endcond */
      26             : 
      27             : /** Default drive strength. */
      28           1 : #define KINETIS_GPIO_DS_DFLT (0x0U << KINETIS_GPIO_DS_POS)
      29             : 
      30             : /** Alternative drive strength. */
      31           1 : #define KINETIS_GPIO_DS_ALT (0x3U << KINETIS_GPIO_DS_POS)
      32             : 
      33             : /** @} */
      34             : 
      35             : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NXP_KINETIS_GPIO_H_ */

Generated by: LCOV version 1.14