LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/pwm - pwm_ifx_tcpwm.h Coverage Total Hit
Test: new.info Lines: 22.2 % 9 2
Test Date: 2025-09-25 19:22:35

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2025 Infineon Technologies AG,
       3              :  * or an affiliate of Infineon Technologies AG.
       4              :  *
       5              :  * SPDX-License-Identifier: Apache-2.0
       6              :  */
       7              : 
       8              : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_IFX_TCPWM_H_
       9              : #define ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_IFX_TCPWM_H_
      10              : /**
      11              :  * Divider Type
      12              :  */
      13            1 : #define PWM_IFX_SYSCLK_DIV_8_BIT  0
      14            0 : #define PWM_IFX_SYSCLK_DIV_16_BIT 1
      15              : 
      16              : /**
      17              :  * Custom PWM flags for Infineon TCPWM
      18              :  * These flags can be used with the PWM API in the upper 8 bits of pwm_flags_t.
      19              :  * They allow configuring the output behavior of the PWM pins when the PWM is
      20              :  * disabled.
      21              :  */
      22            1 : #define PWM_IFX_TCPWM_OUTPUT_HIGHZ  0
      23            0 : #define PWM_IFX_TCPWM_OUTPUT_RETAIN 1
      24            0 : #define PWM_IFX_TCPWM_OUTPUT_LOW    2
      25            0 : #define PWM_IFX_TCPWM_OUTPUT_HIGH   3
      26              : 
      27            0 : #define PWM_IFX_TCPWM_OUTPUT_MASK 0x3
      28            0 : #define PWM_IFX_TCPWM_OUTPUT_POS  8 /* Place at the end of flags */
      29              : 
      30              : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_IFX_TCPWM_H_ */
        

Generated by: LCOV version 2.0-1