LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/adc - stm32f1_adc.h Coverage Total Hit
Test: new.info Lines: 0.0 % 6 0
Test Date: 2025-09-05 16:43:28

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2023 STMicrelectronics
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_
       7              : #define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_
       8              : 
       9              : #include <zephyr/dt-bindings/adc/stm32_adc.h>
      10              : 
      11              : /*
      12              :  * For STM32 F1 and similar, the only available resolution is 12-bit
      13              :  * and there is no register to set it.
      14              :  * We still need the macro to get the value of the resolution but the driver
      15              :  * does not set the resolution in any register by checking that the register
      16              :  * address is configured as 0xFF
      17              :  */
      18            0 : #define STM32_ADC_RES_REG       0xFF
      19            0 : #define STM32_ADC_RES_SHIFT     0
      20            0 : #define STM32_ADC_RES_MASK      0x00
      21            0 : #define STM32_ADC_RES_REG_VAL   0x00
      22              : 
      23            0 : #define STM32F1_ADC_RES(resolution)     \
      24              :         STM32_ADC_RES(resolution, STM32_ADC_RES_REG_VAL)
      25              : 
      26              : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_ */
        

Generated by: LCOV version 2.0-1