LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/gpio - nuvoton-npcx-gpio.h Coverage Total Hit
Test: new.info Lines: 66.7 % 3 2
Test Date: 2025-09-05 20:47:19

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2022 Nordic Semiconductor ASA
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_
       7              : #define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_
       8              : 
       9              : /**
      10              :  * @name GPIO pin voltage flags
      11              :  *
      12              :  * The voltage flags are a Zephyr specific extension of the standard GPIO flags
      13              :  * specified by the Linux GPIO binding for use with the Nuvoton NPCX SoCs.
      14              :  *
      15              :  * @{
      16              :  */
      17              : 
      18              : /** @cond INTERNAL_HIDDEN */
      19              : #define NPCX_GPIO_VOLTAGE_POS   11
      20              : #define NPCX_GPIO_VOLTAGE_MASK  (1U << NPCX_GPIO_VOLTAGE_POS)
      21              : /** @endcond */
      22              : 
      23              : /** Set pin at the default voltage level (3.3V) */
      24            1 : #define NPCX_GPIO_VOLTAGE_DEFAULT       (0U << NPCX_GPIO_VOLTAGE_POS)
      25              : /** Set pin voltage level at 1.8 V */
      26            1 : #define NPCX_GPIO_VOLTAGE_1P8           (1U << NPCX_GPIO_VOLTAGE_POS)
      27              : 
      28              : /** @} */
      29              : 
      30              : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_NUVOTON_NPCX_GPIO_H_ */
        

Generated by: LCOV version 2.0-1