ARM GAS /tmp/ccIEHjf0.s page 1 1 .cpu cortex-m7 2 .arch armv7e-m 3 .fpu fpv5-d16 4 .eabi_attribute 28, 1 5 .eabi_attribute 20, 1 6 .eabi_attribute 21, 1 7 .eabi_attribute 23, 3 8 .eabi_attribute 24, 1 9 .eabi_attribute 25, 1 10 .eabi_attribute 26, 1 11 .eabi_attribute 30, 1 12 .eabi_attribute 34, 1 13 .eabi_attribute 18, 4 14 .file "stm32h7xx_hal_adc.c" 15 .text 16 .Ltext0: 17 .cfi_sections .debug_frame 18 .file 1 "Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c" 19 .section .text.LL_ADC_REG_SetSequencerRanks,"ax",%progbits 20 .align 1 21 .syntax unified 22 .thumb 23 .thumb_func 25 LL_ADC_REG_SetSequencerRanks: 26 .LVL0: 27 .LFB177: 28 .file 2 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h" 1:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ****************************************************************************** 3:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @file stm32h7xx_ll_adc.h 4:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @author MCD Application Team 5:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Header file of ADC LL module. 6:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ****************************************************************************** 7:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @attention 8:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 9:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Copyright (c) 2017 STMicroelectronics. 10:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All rights reserved. 11:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 12:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This software is licensed under terms that can be found in the LICENSE file 13:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * in the root directory of this software component. 14:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If no LICENSE file comes with this software, it is provided AS-IS. 15:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 16:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ****************************************************************************** 17:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 18:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 19:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Define to prevent recursive inclusion -------------------------------------*/ 20:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #ifndef STM32H7xx_LL_ADC_H 21:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define STM32H7xx_LL_ADC_H 22:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 23:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #ifdef __cplusplus 24:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** extern "C" { 25:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 26:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 27:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Includes ------------------------------------------------------------------*/ 28:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #include "stm32h7xx.h" 29:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 30:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @addtogroup STM32H7xx_LL_Driver ARM GAS /tmp/ccIEHjf0.s page 2 31:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 32:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 33:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 34:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (ADC1) || defined (ADC2) || defined (ADC3) 35:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 36:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL ADC 37:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 38:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 39:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 40:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Private types -------------------------------------------------------------*/ 41:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Private variables ---------------------------------------------------------*/ 42:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 43:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Private constants ---------------------------------------------------------*/ 44:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Private_Constants ADC Private Constants 45:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 46:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 47:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 48:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC calibration: */ 49:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC calibration factors configuration */ 50:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 51:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literals LL_ADC_CALIB_OFFSET, LL_ADC_CALIB_LINEARITY, ... */ 52:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* the relevant bits for: */ 53:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (concatenation of multiple bits used in different registers) */ 54:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC calibration configuration: configuration before calibration start */ 55:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC calibration factors: register offset */ 56:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CALIB_FACTOR_OFFSET_REGOFFSET (0x00000000UL) /* Register CALFACT defined as referenc 57:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CALIB_FACTOR_LINEARITY_REGOFFSET (0x00000001UL) /* Register CALFACT2 offset vs register 58:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CALIB_FACTOR_REGOFFSET_MASK (ADC_CALIB_FACTOR_OFFSET_REGOFFSET | ADC_CALIB_FACTOR_ 59:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CALIB_MODE_MASK (ADC_CR_ADCALLIN) 60:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CALIB_MODE_BINARY_MASK (ADC_CALIB_FACTOR_REGOFFSET_MASK) /* Mask to get binar 61:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 62:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 63:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC group regular sequencer: */ 64:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literal LL_ADC_REG_RANK_x the relevant bits for: */ 65:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - sequencer register offset */ 66:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - sequencer rank bits position into the selected register */ 67:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 68:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC group regular sequencer configuration */ 69:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 70:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SQR1_REGOFFSET (0x00000000UL) 71:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SQR2_REGOFFSET (0x00000100UL) 72:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SQR3_REGOFFSET (0x00000200UL) 73:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SQR4_REGOFFSET (0x00000300UL) 74:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 75:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_SQRX_REGOFFSET_MASK (ADC_SQR1_REGOFFSET | ADC_SQR2_REGOFFSET | ADC_SQR3_REGO 76:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SQRX_REGOFFSET_POS (8UL) /* Position of bits ADC_SQRx_REGOFFSET in ADC_REG_ 77:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_ID_SQRX_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) 78:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 79:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of ADC group regular sequencer bits information to be inserted */ 80:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* into ADC group regular sequencer ranks literals definition. */ 81:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_1_SQRX_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_SQR1_SQ1" po 82:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_2_SQRX_BITOFFSET_POS (12UL) /* Value equivalent to bitfield "ADC_SQR1_SQ2" po 83:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_3_SQRX_BITOFFSET_POS (18UL) /* Value equivalent to bitfield "ADC_SQR1_SQ3" po 84:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_4_SQRX_BITOFFSET_POS (24UL) /* Value equivalent to bitfield "ADC_SQR1_SQ4" po 85:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_5_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to bitfield "ADC_SQR2_SQ5" po 86:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_6_SQRX_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_SQR2_SQ6" po 87:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_7_SQRX_BITOFFSET_POS (12UL) /* Value equivalent to bitfield "ADC_SQR2_SQ7" po ARM GAS /tmp/ccIEHjf0.s page 3 88:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_8_SQRX_BITOFFSET_POS (18UL) /* Value equivalent to bitfield "ADC_SQR2_SQ8" po 89:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_9_SQRX_BITOFFSET_POS (24UL) /* Value equivalent to bitfield "ADC_SQR2_SQ9" po 90:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_10_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to bitfield "ADC_SQR3_SQ10" p 91:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_11_SQRX_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_SQR3_SQ11" p 92:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_12_SQRX_BITOFFSET_POS (12UL) /* Value equivalent to bitfield "ADC_SQR3_SQ12" p 93:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_13_SQRX_BITOFFSET_POS (18UL) /* Value equivalent to bitfield "ADC_SQR3_SQ13" p 94:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_14_SQRX_BITOFFSET_POS (24UL) /* Value equivalent to bitfield "ADC_SQR3_SQ14" p 95:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_15_SQRX_BITOFFSET_POS ( 0UL) /* Value equivalent to bitfield "ADC_SQR4_SQ15" p 96:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_RANK_16_SQRX_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_SQR4_SQ16" p 97:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 98:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 99:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC group injected sequencer: */ 101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literal LL_ADC_INJ_RANK_x the relevant bits for: */ 102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - data register offset */ 103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - sequencer rank bits position into the selected register */ 104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC group injected data register */ 106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_JDR1_REGOFFSET (0x00000000UL) 108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_JDR2_REGOFFSET (0x00000100UL) 109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_JDR3_REGOFFSET (0x00000200UL) 110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_JDR4_REGOFFSET (0x00000300UL) 111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_JDRX_REGOFFSET_MASK (ADC_JDR1_REGOFFSET | ADC_JDR2_REGOFFSET | ADC_JDR3_REGO 113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_RANK_ID_JSQR_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) 114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_JDRX_REGOFFSET_POS (8UL) /* Position of bits ADC_JDRx_REGOFFSET in ADC_INJ_ 115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of ADC group injected sequencer bits information to be inserted */ 117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* into ADC group injected sequencer ranks literals definition. */ 118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_RANK_1_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ1_Pos) 119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_RANK_2_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ2_Pos) 120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_RANK_3_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ3_Pos) 121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_RANK_4_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ4_Pos) 122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC group regular trigger: */ 126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literal LL_ADC_REG_TRIG_x the relevant bits for: */ 127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - regular trigger source */ 128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - regular trigger edge */ 129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_TRIG_EXT_EDGE_DEFAULT (ADC_CFGR_EXTEN_0) /* Trigger edge set to rising edge ( 130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_TRIG_SOURCE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTSEL) << (4U * 135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_TRIG_EDGE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN) << (4U * 143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * ARM GAS /tmp/ccIEHjf0.s page 4 145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of ADC group regular trigger bits information. */ 148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_TRIG_EXTSEL_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_CFGR_EXTSEL" 149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_REG_TRIG_EXTEN_BITOFFSET_POS (10UL) /* Value equivalent to bitfield "ADC_CFGR_EXTEN" 150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC group injected trigger: */ 154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literal LL_ADC_INJ_TRIG_x the relevant bits for: */ 155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - injected trigger source */ 156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - injected trigger edge */ 157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_TRIG_EXT_EDGE_DEFAULT (ADC_JSQR_JEXTEN_0) /* Trigger edge set to rising edge ( 158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_TRIG_SOURCE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTSEL) << (4U 163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_TRIG_EDGE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTEN) << (4U * 171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of ADC group injected trigger bits information. */ 176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTSEL_BITOFFSET_POS ( 2UL) /* Value equivalent to bitfield "ADC_JSQR_JEXTSEL 177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTEN_BITOFFSET_POS ( 6UL) /* Value equivalent to bitfield "ADC_JSQR_JEXTEN" 178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC channel: */ 185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literal LL_ADC_CHANNEL_x the relevant bits for: */ 186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - channel identifier defined by number */ 187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - channel identifier defined by bitfield */ 188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - channel differentiation between external channels (connected to */ 189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* GPIO pins) and internal channels (connected to internal paths) */ 190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - channel sampling time defined by SMPRx register offset */ 191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* and SMPx bits positions into SMPRx register */ 192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_MASK (ADC_CFGR_AWD1CH) 193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_BITFIELD_MASK (ADC_AWD2CR_AWD2CH) 194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS (26UL)/* Value equivalent to bitfield "ADC_CHANNEL_ID_N 195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_MASK (ADC_CHANNEL_ID_NUMBER_MASK | ADC_CHANNEL_ID_BITFIELD_MA 196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Equivalent mask of ADC_CHANNEL_NUMBER_MASK aligned on register LSB (bit 0) */ 197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 (ADC_SQR2_SQ5) /* Equivalent to shift: (ADC_CHANNEL_NUMB 198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Channel differentiation between external and internal channels */ 200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH (0x80000000UL) /* Marker of internal channel */ 201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH_MASK (ADC_CHANNEL_ID_INTERNAL_CH) ARM GAS /tmp/ccIEHjf0.s page 5 202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC channel sampling time configuration */ 204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SMPR1_REGOFFSET (0x00000000UL) 206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SMPR2_REGOFFSET (0x02000000UL) 207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_SMPRX_REGOFFSET_MASK (ADC_SMPR1_REGOFFSET | ADC_SMPR2_REGOFFSET) 208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SMPRX_REGOFFSET_POS (25UL) /* Position of bits ADC_SMPRx_REGOFFSET in ADC_CH 209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_MASK (0x01F00000UL) 211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_POS (20UL) /* Value equivalent to bitfield "ADC_CH 212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of channels ID number information to be inserted into */ 214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* channels literals definition. */ 215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_0_NUMBER (0x00000000UL) 216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_1_NUMBER ( 217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_2_NUMBER ( 218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_3_NUMBER ( 219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_4_NUMBER ( ADC_CFGR_AWD1CH 220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_5_NUMBER ( ADC_CFGR_AWD1CH 221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_6_NUMBER ( ADC_CFGR_AWD1CH 222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_7_NUMBER ( ADC_CFGR_AWD1CH 223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_8_NUMBER ( ADC_CFGR_AWD1CH_3 224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_9_NUMBER ( ADC_CFGR_AWD1CH_3 225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_10_NUMBER ( ADC_CFGR_AWD1CH_3 226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_11_NUMBER ( ADC_CFGR_AWD1CH_3 227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_12_NUMBER ( ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH 228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_13_NUMBER ( ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH 229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_14_NUMBER ( ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH 230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_15_NUMBER ( ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH 231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_16_NUMBER (ADC_CFGR_AWD1CH_4 232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_17_NUMBER (ADC_CFGR_AWD1CH_4 233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_18_NUMBER (ADC_CFGR_AWD1CH_4 234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_19_NUMBER (ADC_CFGR_AWD1CH_4 235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of channels ID bitfield information to be inserted into */ 237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* channels literals definition. */ 238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_0_BITFIELD (ADC_AWD2CR_AWD2CH_0) 239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_1_BITFIELD (ADC_AWD2CR_AWD2CH_1) 240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_2_BITFIELD (ADC_AWD2CR_AWD2CH_2) 241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_3_BITFIELD (ADC_AWD2CR_AWD2CH_3) 242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_4_BITFIELD (ADC_AWD2CR_AWD2CH_4) 243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_5_BITFIELD (ADC_AWD2CR_AWD2CH_5) 244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_6_BITFIELD (ADC_AWD2CR_AWD2CH_6) 245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_7_BITFIELD (ADC_AWD2CR_AWD2CH_7) 246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_8_BITFIELD (ADC_AWD2CR_AWD2CH_8) 247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_9_BITFIELD (ADC_AWD2CR_AWD2CH_9) 248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_10_BITFIELD (ADC_AWD2CR_AWD2CH_10) 249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_11_BITFIELD (ADC_AWD2CR_AWD2CH_11) 250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_12_BITFIELD (ADC_AWD2CR_AWD2CH_12) 251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_13_BITFIELD (ADC_AWD2CR_AWD2CH_13) 252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_14_BITFIELD (ADC_AWD2CR_AWD2CH_14) 253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_15_BITFIELD (ADC_AWD2CR_AWD2CH_15) 254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_16_BITFIELD (ADC_AWD2CR_AWD2CH_16) 255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_17_BITFIELD (ADC_AWD2CR_AWD2CH_17) 256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_18_BITFIELD (ADC_AWD2CR_AWD2CH_18) 257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_19_BITFIELD (ADC_AWD2CR_AWD2CH_19) 258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 6 259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Definition of channels sampling time information to be inserted into */ 260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* channels literals definition. */ 261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_0_SMP (ADC_SMPR1_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_1_SMP (ADC_SMPR1_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_2_SMP (ADC_SMPR1_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_3_SMP (ADC_SMPR1_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_4_SMP (ADC_SMPR1_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_5_SMP (ADC_SMPR1_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_6_SMP (ADC_SMPR1_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_7_SMP (ADC_SMPR1_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_8_SMP (ADC_SMPR1_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF 270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_9_SMP (ADC_SMPR1_REGOFFSET | ((27UL) << ADC_CHANNEL_SMPx_BITOF 271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_10_SMP (ADC_SMPR2_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_11_SMP (ADC_SMPR2_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_12_SMP (ADC_SMPR2_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_13_SMP (ADC_SMPR2_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_14_SMP (ADC_SMPR2_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_15_SMP (ADC_SMPR2_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_16_SMP (ADC_SMPR2_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_17_SMP (ADC_SMPR2_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_18_SMP (ADC_SMPR2_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF 280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CHANNEL_19_SMP (ADC_SMPR2_REGOFFSET | ((27UL) << ADC_CHANNEL_SMPx_BITOF 281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC mode single or differential ended: */ 284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literals LL_ADC_SINGLE_ENDED or LL_ADC_SINGLE_DIFFERENTIAL */ 285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* the relevant bits for: */ 286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (concatenation of multiple bits used in different registers) */ 287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC calibration: calibration start, calibration factor get or set */ 288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC channels: set each ADC channel ending mode */ 289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_START_MASK (ADC_CR_ADCALDIF) 290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_FACTOR_MASK (ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S) 291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CHANNEL_MASK (ADC_CHANNEL_ID_BITFIELD_MASK) /* Equivalent to ADC_DIFS 292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK (ADC_CALFACT_CALFACT_S_4 | ADC_CALFACT_CALFACT_S_3) /* B 293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK (0x00010000UL) /* Selection o 294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_POS (16UL) /* Selection o 295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4 (ADC_SINGLEDIFF_CALIB_F_BIT_D_POS - 4UL) /* Shift of bi 296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC analog watchdog: */ 298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* To select into literals LL_ADC_AWD_CHANNELx_xxx the relevant bits for: */ 299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (concatenation of multiple bits used in different analog watchdogs, */ 300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (feature of several watchdogs not available on all STM32 families)). */ 301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - analog watchdog 1: monitored channel defined by number, */ 302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* selection of ADC group (ADC groups regular and-or injected). */ 303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - analog watchdog 2 and 3: monitored channel defined by bitfield, no */ 304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* selection on groups. */ 305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog channel configuration */ 307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR1_REGOFFSET (0x00000000UL) 308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR2_REGOFFSET (0x00100000UL) 309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR3_REGOFFSET (0x00200000UL) 310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Register offset gap between AWD1 and AWD2-AWD3 configuration registers */ 312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (Set separately as ADC_AWD_CRX_REGOFFSET to spare 32 bits space */ 313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_MASK (ADC_AWD2CR_AWD2CH_0) 314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_VAL (0x00000024UL) 315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 7 316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CRX_REGOFFSET_MASK (ADC_AWD_CR1_REGOFFSET | ADC_AWD_CR2_REGOFFSET | ADC_AWD 317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR1_CHANNEL_MASK (ADC_CFGR_AWD1CH | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | 319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR23_CHANNEL_MASK (ADC_AWD2CR_AWD2CH) 320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CR_ALL_CHANNEL_MASK (ADC_AWD_CR1_CHANNEL_MASK | ADC_AWD_CR23_CHANNEL_MASK) 321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_CRX_REGOFFSET_POS (20UL) /* Position of bits ADC_AWD_CRx_REGOFFSET in ADC_ 323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog threshold configuration */ 325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TR1_REGOFFSET (ADC_AWD_CR1_REGOFFSET) 326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TR2_REGOFFSET (ADC_AWD_CR2_REGOFFSET) 327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TR3_REGOFFSET (ADC_AWD_CR3_REGOFFSET) 328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TRX_REGOFFSET_MASK (ADC_AWD_TR1_REGOFFSET | ADC_AWD_TR2_REGOFFSET | ADC_AWD 329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TRX_REGOFFSET_POS (ADC_AWD_CRX_REGOFFSET_POS) /* Position of bits ADC_ 330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_MASK (0x00010000UL) /* Selection of 1 bit t 332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_POS (16UL) /* Selection of 1 bit t 333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_SHIFT4 (ADC_AWD_TRX_BIT_HIGH_POS - 4UL) /* Shift of bit ADC_AWD 334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Register offset gap between AWD1 and AWD2-AWD3 thresholds registers */ 337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (Set separately as ADC_AWD_TRX_REGOFFSET to spare 32 bits space */ 338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TR12_REGOFFSETGAP_MASK (ADC_AWD2CR_AWD2CH_0) 339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_AWD_TR12_REGOFFSETGAP_VAL (0x00000022UL) 340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Legacy literals */ 342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD1_TR LL_ADC_AWD1 343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD2_TR LL_ADC_AWD2 344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD3_TR LL_ADC_AWD3 345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal mask for ADC offset: */ 347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal register offset for ADC offset number configuration */ 348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_OFR1_REGOFFSET (0x00000000UL) 349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_OFR2_REGOFFSET (0x00000001UL) 350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_OFR3_REGOFFSET (0x00000002UL) 351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_OFR4_REGOFFSET (0x00000003UL) 352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_OFRx_REGOFFSET_MASK (ADC_OFR1_REGOFFSET | ADC_OFR2_REGOFFSET | ADC_OFR3_REGO 353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ADC registers bits positions */ 356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CFGR_RES_BITOFFSET_POS (ADC_CFGR_RES_Pos) 357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CFGR_AWD1SGL_BITOFFSET_POS (ADC_CFGR_AWD1SGL_Pos) 358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CFGR_AWD1EN_BITOFFSET_POS (ADC_CFGR_AWD1EN_Pos) 359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CFGR_JAWD1EN_BITOFFSET_POS (ADC_CFGR_JAWD1EN_Pos) 360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CFGR_RES_BITOFFSET_POS_ADC3 (ADC3_CFGR_RES_Pos) 362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ADC registers bits groups */ 366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_CR_BITS_PROPERTY_RS (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JA 367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ADC internal channels related definitions */ 370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Internal voltage reference VrefInt */ 371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_3) 372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define VREFINT_CAL_ADDR ((uint16_t*) (0x8fff810UL)) /* Internal voltage referen ARM GAS /tmp/ccIEHjf0.s page 8 373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Address related to STM32 374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_90 || ADC_VER_V5_X */ 375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define VREFINT_CAL_ADDR ((uint16_t*) (0x1FF1E860UL)) /* Internal voltage referen 376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_3 */ 377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define VREFINT_CAL_VREF (3300UL) /* Analog voltage reference 378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Temperature sensor */ 379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_3) 380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x8fff814UL)) /* Internal temperature sen 381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x8fff818UL)) /* Internal temperature sen 382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Addresses related to STM 383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_90 || ADC_VER_V5_X */ 384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x1FF1E820UL)) /* Internal temperature sen 385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x1FF1E840UL)) /* Internal temperature sen 386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_3 */ 387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL1_TEMP (30L) /* Internal temperature sen 389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (STM32H742xx) || defined (STM32H743xx) || defined (STM32H753xx) || defined (STM32H750xx 390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL2_TEMP ((((DBGMCU->IDCODE) >> 16) <= ((uint32_t)0x1003)) ? 110L 391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** temperature at which temperature sensor has been calibra 392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 110 °C for revision Y and 130 °C for revision V (tole 393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL2_TEMP (130L) /* Internal temperature sen 395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** calibrated in production for data into TEMPSENSOR_CAL2_A 396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* defined (STM32H742xx) || defined (STM32H743xx) || defined (STM32H753xx) */ 397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define TEMPSENSOR_CAL_VREFANALOG (3300UL) /* Analog voltage reference 398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Registers addresses with ADC linearity calibration content (programmed during device production, 400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_1_ADDR ((uint32_t*) (0x1FF1EC00UL)) 401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_2_ADDR ((uint32_t*) (0x1FF1EC04UL)) 402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_3_ADDR ((uint32_t*) (0x1FF1EC08UL)) 403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_4_ADDR ((uint32_t*) (0x1FF1EC0CUL)) 404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_5_ADDR ((uint32_t*) (0x1FF1EC10UL)) 405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_6_ADDR ((uint32_t*) (0x1FF1EC14UL)) 406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEAR_CALIB_REG_COUNT (6UL) 407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Alias_definition ADC Alias definition 412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SetChannelPreSelection LL_ADC_SetChannelPreselection /* Alias of LL_ADC_SetChann 415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Private macros ------------------------------------------------------------*/ 421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Private_Macros ADC Private Macros 422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Driver macro reserved for internal use: set a pointer to 427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a register from a register basis from which an offset 428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is applied. 429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __REG__ Register basis from which the offset is applied. ARM GAS /tmp/ccIEHjf0.s page 9 430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __REG_OFFFSET__ Offset to be applied (unit: number of registers). 431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Pointer to register address 432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __ADC_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__) \ 434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL)))) 435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Exported types ------------------------------------------------------------*/ 442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(USE_FULL_LL_DRIVER) 443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_ES_INIT ADC Exported Init structure 444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Structure definition of some features of ADC common parameters 449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and multimode 450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (all ADC instances belonging to the same ADC common instance). 451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_CommonInit() 452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is conditioned to ADC instances state (all ADC instances 453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sharing the same ADC common instance): 454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances sharing the same ADC common instance must be 455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * disabled. 456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** typedef struct 458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t CommonClock; /*!< Set parameter common to several ADC: Clock source and 460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_COMMON 461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** @note On this STM32 series, if ADC group injected is u 462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** clock ratio constraints between ADC clock and AH 463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** must be respected. Refer to reference manual. 464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Multimode; /*!< Set ADC multimode configuration to operate in independ 468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t MultiDMATransfer; /*!< Set ADC dual ADC mode DMA transfer data format: Each D 473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t MultiTwoSamplingDelay; /*!< Set ADC multimode delay between 2 sampling phases. 478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } LL_ADC_CommonInitTypeDef; 483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Structure definition of some features of ADC instance. 486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC instance. ARM GAS /tmp/ccIEHjf0.s page 10 487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Affects both group regular and group injected (availability 488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of ADC group injected depends on STM32 families). 489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to corresponding unitary functions into 490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Instance . 491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_Init() 492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is conditioned to ADC state: 493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance must be disabled. 494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * features can be set under different ADC state conditions 497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * refer to description of each function for setting 502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conditioned to ADC state. 503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** typedef struct 505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Resolution; /*!< Set ADC resolution. 507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_RESOLU 508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t LeftBitShift; /*!< Configures the left shifting applied to the final resu 512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_LEFT_B 513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t LowPowerMode; /*!< Set ADC low power mode. 515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_LP_MOD 516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } LL_ADC_InitTypeDef; 520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Structure definition of some features of ADC group regular. 523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group regular. 524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to corresponding unitary functions into 525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (functions with prefix "REG"). 527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_REG_Init() 528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is conditioned to ADC state: 529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance must be disabled. 530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * features can be set under different ADC state conditions 533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * refer to description of each function for setting 538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conditioned to ADC state. 539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** typedef struct 541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group regular conversion trigger source: inter 543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_TR ARM GAS /tmp/ccIEHjf0.s page 11 544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (default setting for compatibility with some ADC 546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** In case of need to modify trigger edge, use func 547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group regular sequencer length. 551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group regular sequencer discontinuous mode: se 556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** @note This parameter has an effect only if group regul 558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (scan length of 2 ranks or more). 559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t ContinuousMode; /*!< Set ADC continuous conversion mode on ADC group regula 563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_CO 564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Note: It is not possible to enable both ADC group regu 565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t DataTransferMode; /*!< Set ADC group regular conversion data transfer mode: n 569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_DA 570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Overrun; /*!< Set ADC group regular behavior in case of overrun: 574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** data preserved or overwritten. 575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_OV 576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } LL_ADC_REG_InitTypeDef; 580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Structure definition of some features of ADC group injected. 583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group injected. 584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to corresponding unitary functions into 585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (functions with prefix "INJ"). 587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_INJ_Init() 588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is conditioned to ADC state: 589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance must be disabled. 590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * features can be set under different ADC state conditions 593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * refer to description of each function for setting 598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conditioned to ADC state. 599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** typedef struct ARM GAS /tmp/ccIEHjf0.s page 12 601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group injected conversion trigger source: inte 603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (default setting for compatibility with some ADC 606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** In case of need to modify trigger edge, use func 607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group injected sequencer length. 611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group injected sequencer discontinuous mode: s 616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** @note This parameter has an effect only if group injec 618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (scan length of 2 ranks or more). 619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t TrigAuto; /*!< Set ADC group injected conversion trigger: independent 623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Note: This parameter must be set to set to independent 625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** This feature can be modified afterwards using unitary 627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } LL_ADC_INJ_InitTypeDef; 629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* USE_FULL_LL_DRIVER */ 634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Exported constants --------------------------------------------------------*/ 636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Constants ADC Exported Constants 637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_FLAG ADC flags 641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Flags defines which can be used with LL_ADC_ReadReg function 642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY ADC_ISR_ADRDY /*!< ADC flag ADC instance ready */ 645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOC ADC_ISR_EOC /*!< ADC flag ADC group regular end o 646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOS ADC_ISR_EOS /*!< ADC flag ADC group regular end o 647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_OVR ADC_ISR_OVR /*!< ADC flag ADC group regular overr 648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP ADC_ISR_EOSMP /*!< ADC flag ADC group regular end o 649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC ADC_ISR_JEOC /*!< ADC flag ADC group injected end 650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS ADC_ISR_JEOS /*!< ADC flag ADC group injected end 651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF ADC_ISR_JQOVF /*!< ADC flag ADC group injected cont 652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1 ADC_ISR_AWD1 /*!< ADC flag ADC analog watchdog 1 * 653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2 ADC_ISR_AWD2 /*!< ADC flag ADC analog watchdog 2 * 654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3 ADC_ISR_AWD3 /*!< ADC flag ADC analog watchdog 3 * 655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_LDORDY ADC_ISR_LDORDY /*!< ADC flag ADC LDO output voltage 656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY_MST ADC_CSR_ADRDY_MST /*!< ADC flag ADC multimode master in 657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY_SLV ADC_CSR_ADRDY_SLV /*!< ADC flag ADC multimode slave ins ARM GAS /tmp/ccIEHjf0.s page 13 658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOC_MST ADC_CSR_EOC_MST /*!< ADC flag ADC multimode master gr 659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOC_SLV ADC_CSR_EOC_SLV /*!< ADC flag ADC multimode slave gro 660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOS_MST ADC_CSR_EOS_MST /*!< ADC flag ADC multimode master gr 661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOS_SLV ADC_CSR_EOS_SLV /*!< ADC flag ADC multimode slave gro 662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_OVR_MST ADC_CSR_OVR_MST /*!< ADC flag ADC multimode master gr 663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_OVR_SLV ADC_CSR_OVR_SLV /*!< ADC flag ADC multimode slave gro 664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP_MST ADC_CSR_EOSMP_MST /*!< ADC flag ADC multimode master gr 665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP_SLV ADC_CSR_EOSMP_SLV /*!< ADC flag ADC multimode slave gro 666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC_MST ADC_CSR_JEOC_MST /*!< ADC flag ADC multimode master gr 667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC_SLV ADC_CSR_JEOC_SLV /*!< ADC flag ADC multimode slave gro 668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS_MST ADC_CSR_JEOS_MST /*!< ADC flag ADC multimode master gr 669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS_SLV ADC_CSR_JEOS_SLV /*!< ADC flag ADC multimode slave gro 670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF_MST ADC_CSR_JQOVF_MST /*!< ADC flag ADC multimode master gr 671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF_SLV ADC_CSR_JQOVF_SLV /*!< ADC flag ADC multimode slave gro 672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1_MST ADC_CSR_AWD1_MST /*!< ADC flag ADC multimode master an 673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1_SLV ADC_CSR_AWD1_SLV /*!< ADC flag ADC multimode slave ana 674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2_MST ADC_CSR_AWD2_MST /*!< ADC flag ADC multimode master an 675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2_SLV ADC_CSR_AWD2_SLV /*!< ADC flag ADC multimode slave ana 676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3_MST ADC_CSR_AWD3_MST /*!< ADC flag ADC multimode master an 677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3_SLV ADC_CSR_AWD3_SLV /*!< ADC flag ADC multimode slave ana 678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_IT ADC interruptions for configuration (interruption enable or disable) 683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief IT defines which can be used with LL_ADC_ReadReg and LL_ADC_WriteReg functions 684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_ADRDY ADC_IER_ADRDYIE /*!< ADC interruption ADC instance re 687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_EOC ADC_IER_EOCIE /*!< ADC interruption ADC group regul 688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_EOS ADC_IER_EOSIE /*!< ADC interruption ADC group regul 689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_OVR ADC_IER_OVRIE /*!< ADC interruption ADC group regul 690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_EOSMP ADC_IER_EOSMPIE /*!< ADC interruption ADC group regul 691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_JEOC ADC_IER_JEOCIE /*!< ADC interruption ADC group injec 692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_JEOS ADC_IER_JEOSIE /*!< ADC interruption ADC group injec 693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_JQOVF ADC_IER_JQOVFIE /*!< ADC interruption ADC group injec 694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_AWD1 ADC_IER_AWD1IE /*!< ADC interruption ADC analog watc 695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_AWD2 ADC_IER_AWD2IE /*!< ADC interruption ADC analog watc 696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_IT_AWD3 ADC_IER_AWD3IE /*!< ADC interruption ADC analog watc 697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REGISTERS ADC registers compliant with specific purpose 702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* List of ADC registers intended to be used (most commonly) with */ 705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* DMA transfer. */ 706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Refer to function @ref LL_ADC_DMA_GetRegAddr(). */ 707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA (0x00000000UL) /* ADC group regular conversion data re 708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA_MULTI (0x00000001UL) /* ADC group regular conversion data re 709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_COMMON_CLOCK_SOURCE ADC common - Clock source 714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ ARM GAS /tmp/ccIEHjf0.s page 14 715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV1 (ADC_CCR_CKMODE_0) /* 717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV2 (ADC_CCR_CKMODE_1 ) /* 718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV4 (ADC_CCR_CKMODE_1 | ADC_CCR_CKMODE_0) /* 719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV1 (0x00000000UL) /* 720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV2 (ADC_CCR_PRESC_0) /* 721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV4 (ADC_CCR_PRESC_1 ) /* 722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV6 (ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV8 (ADC_CCR_PRESC_2 ) /* 724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV10 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_0) /* 725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV12 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 ) /* 726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV16 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV32 (ADC_CCR_PRESC_3) /* 728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV64 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_0) /* 729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV128 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1) /* 730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV256 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_COMMON_PATH_INTERNAL ADC common - Measurement path to internal channels 736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Other measurement paths to internal channels may be available */ 739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (connections to other peripherals). */ 740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* If they are not listed below, they do not require any specific */ 741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* path enable. In this case, Access to measurement path is done */ 742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* only by selecting the corresponding ADC internal channel. */ 743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_NONE (0x00000000UL) /*!< ADC measurement paths all di 744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VREFINT (ADC_CCR_VREFEN) /*!< ADC measurement path to inte 745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_TEMPSENSOR (ADC_CCR_TSEN) /*!< ADC measurement path to inte 746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VBAT (ADC_CCR_VBATEN) /*!< ADC measurement path to inte 747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_BOOST_MODE ADC instance - Boost mode 752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOOST_MODE_6MHZ25 (0x00000000UL) /*!< B 755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOOST_MODE_12MHZ5 ( ADC_CR_BOOST_0) /*!< B 756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOOST_MODE_20MHZ ( ADC_CR_BOOST_1 ) /*!< B 757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOOST_MODE_25MHZ ((ADC_CR_BOOST_0 <<2) | ADC_CR_BOOST_1 ) /*!< B 758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOOST_MODE_50MHZ ((ADC_CR_BOOST_0 <<2) | ADC_CR_BOOST_1 | ADC_CR_BOOST_0) /*!< B 759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CALIBRATION_OFFSET_LINEARITY ADC instance - Calibration mode for offset an 764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_OFFSET (ADC_CALIB_FACTOR_OFFSET_REGOFFSET) 767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY (ADC_CALIB_FACTOR_LINEARITY_REGOFFSET) 768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_OFFSET_LINEARITY (ADC_CALIB_FACTOR_LINEARITY_REGOFFSET | ADC_CR_ADCALLIN) 769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 15 772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CALIBRATION_LINEARITY_WORD ADC instance - Calibration linearity words 774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD1 (ADC_CR_LINCALRDYW1) /*!< ADC calibration linearity w 777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD2 (ADC_CR_LINCALRDYW2) /*!< ADC calibration linearity w 778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD3 (ADC_CR_LINCALRDYW3) /*!< ADC calibration linearity w 779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD4 (ADC_CR_LINCALRDYW4) /*!< ADC calibration linearity w 780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD5 (ADC_CR_LINCALRDYW5) /*!< ADC calibration linearity w 781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CALIB_LINEARITY_WORD6 (ADC_CR_LINCALRDYW6) /*!< ADC calibration linearity w 782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_RESOLUTION ADC instance - Resolution 787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_16B (0x00000000UL) /*!< 790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_14B ( ADC_CFGR_RES_0) /*!< 791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_12B ( ADC_CFGR_RES_1 ) /*!< 792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_10B ( ADC_CFGR_RES_1 | ADC_CFGR_RES_0) /*!< 793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (ADC_VER_V5_X) 795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_14B_OPT (ADC_CFGR_RES_2 | ADC_CFGR_RES_0) /*!< 796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_12B_OPT (ADC_CFGR_RES_2 | ADC_CFGR_RES_1 ) /*!< 797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (ADC_VER_V5_3) || defined(ADC_VER_V5_V90) 800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_8B (ADC_CFGR_RES_2|ADC_CFGR_RES_1 | ADC_CFGR_RES_0) /*!< AD 801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_8B (ADC_CFGR_RES_2 ) /*!< AD 803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /*!< Th 804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_RESOLUTION_6B (ADC3_CFGR_RES_1 | ADC3_CFGR_RES_0) /*!< ADC resolutio 809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_DATA_ALIGN ADC instance - Data alignment 816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_RIGHT (0x00000000UL) /*!< ADC conversion data alignmen 819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_LEFT (ADC3_CFGR_ALIGN) /*!< ADC conversion data alignme 820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_LEFT_BIT_SHIFT ADC left Shift 827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 16 829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_NONE (0x00000000UL) 830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_1 (ADC_CFGR2_LSHIFT_0) 831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_2 (ADC_CFGR2_LSHIFT_1) 832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_3 (ADC_CFGR2_LSHIFT_1 | ADC_CFGR2_LSHIFT_0) 833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_4 (ADC_CFGR2_LSHIFT_2) 834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_5 (ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_0) 835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_6 (ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_1) 836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_7 (ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_1 | ADC_CFGR2_LSHIFT_0) 837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_8 (ADC_CFGR2_LSHIFT_3) 838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_9 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_0) 839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_10 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_1) 840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_11 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_1 | ADC_CFGR2_LSHIFT_0) 841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_12 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_2) 842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_13 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_0) 843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_14 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_1) 844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LEFT_BIT_SHIFT_15 (ADC_CFGR2_LSHIFT_3 | ADC_CFGR2_LSHIFT_2 | ADC_CFGR2_LSHIFT_1 | 845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_LP_MODE ADC instance - Low power mode 850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LP_MODE_NONE (0x00000000UL) /*!< No ADC low powe 853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_LP_AUTOWAIT (ADC_CFGR_AUTDLY) /*!< ADC low power m 854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_NB ADC instance - Offset number 859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_1 ADC_OFR1_REGOFFSET /*!< ADC offset number 1: ADC channel 862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_2 ADC_OFR2_REGOFFSET /*!< ADC offset number 2: ADC channel 863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_3 ADC_OFR3_REGOFFSET /*!< ADC offset number 3: ADC channel 864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_4 ADC_OFR4_REGOFFSET /*!< ADC offset number 4: ADC channel 865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SIGNED_SATURATION ADC instance - Offset signed saturation mode 870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE (0x00000000UL) /*!< ADC offset signed saturatio 873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE (ADC_OFR1_SSATE) /*!< ADC offset signed saturatio 874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_RSHIFT ADC instance - Offset right shift 879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_RSHIFT_DISABLE (0x00000000UL) /*!< ADC offset right shift is disabled 882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_RSHIFT_ENABLE (ADC_CFGR2_RSHIFT1) /*!< ADC offset right shift is enabled ( 883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 17 886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SATURATION ADC instance - Offset saturation mode 888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_DISABLE (0x00000000UL) /*!< ADC offset saturation is d 891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_ENABLE (ADC3_OFR1_SATEN) /*!< ADC offset saturation is e 892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_STATE ADC instance - Offset state 897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_DISABLE (0x00000000UL) /*!< ADC offset disabled (among A 900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_ENABLE (ADC3_OFR1_OFFSET1_EN) /*!< ADC offset enabled (among A 901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SIGN ADC instance - Offset sign 906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< ADC offset is negative (among 909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_POSITIVE (ADC3_OFR1_OFFSETPOS) /*!< ADC offset is positive (among 910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_GROUPS ADC instance - Groups 918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR (0x00000001UL) /*!< ADC group regular (available on all 921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_GROUP_INJECTED (0x00000002UL) /*!< ADC group injected (not available on 922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR_INJECTED (0x00000003UL) /*!< ADC both groups regular and injected 923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL ADC instance - Channel number 928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_0 (ADC_CHANNEL_0_NUMBER | ADC_CHANNEL_0_SMP | ADC_CHANNE 931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_1 (ADC_CHANNEL_1_NUMBER | ADC_CHANNEL_1_SMP | ADC_CHANNE 932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_2 (ADC_CHANNEL_2_NUMBER | ADC_CHANNEL_2_SMP | ADC_CHANNE 933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_3 (ADC_CHANNEL_3_NUMBER | ADC_CHANNEL_3_SMP | ADC_CHANNE 934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_4 (ADC_CHANNEL_4_NUMBER | ADC_CHANNEL_4_SMP | ADC_CHANNE 935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_5 (ADC_CHANNEL_5_NUMBER | ADC_CHANNEL_5_SMP | ADC_CHANNE 936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_6 (ADC_CHANNEL_6_NUMBER | ADC_CHANNEL_6_SMP | ADC_CHANNE 937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_7 (ADC_CHANNEL_7_NUMBER | ADC_CHANNEL_7_SMP | ADC_CHANNE 938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_8 (ADC_CHANNEL_8_NUMBER | ADC_CHANNEL_8_SMP | ADC_CHANNE 939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_9 (ADC_CHANNEL_9_NUMBER | ADC_CHANNEL_9_SMP | ADC_CHANNE 940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_10 (ADC_CHANNEL_10_NUMBER | ADC_CHANNEL_10_SMP | ADC_CHANNE 941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_11 (ADC_CHANNEL_11_NUMBER | ADC_CHANNEL_11_SMP | ADC_CHANNE 942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_12 (ADC_CHANNEL_12_NUMBER | ADC_CHANNEL_12_SMP | ADC_CHANNE ARM GAS /tmp/ccIEHjf0.s page 18 943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_13 (ADC_CHANNEL_13_NUMBER | ADC_CHANNEL_13_SMP | ADC_CHANNE 944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_14 (ADC_CHANNEL_14_NUMBER | ADC_CHANNEL_14_SMP | ADC_CHANNE 945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_15 (ADC_CHANNEL_15_NUMBER | ADC_CHANNEL_15_SMP | ADC_CHANNE 946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_16 (ADC_CHANNEL_16_NUMBER | ADC_CHANNEL_16_SMP | ADC_CHANNE 947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_17 (ADC_CHANNEL_17_NUMBER | ADC_CHANNEL_17_SMP | ADC_CHANNE 948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_18 (ADC_CHANNEL_18_NUMBER | ADC_CHANNEL_18_SMP | ADC_CHANNE 949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_19 (ADC_CHANNEL_19_NUMBER | ADC_CHANNEL_19_SMP | ADC_CHANNE 950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC3) 951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_TEMPSENSOR (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_19 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_TEMPSENSOR (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /*!< Specific define for STM32H7A3xx and STM32HB3xx varieties of STM32H7XXX */ 962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_19 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_TEMPSENSOR (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_14 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_DAC1CH1_ADC2 (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_DAC1CH2_ADC2 (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(DAC2) 969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /*!< Specific define for STM32H7A3xx and STM32HB3xx varieties of STM32H7XXX */ 970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_CHANNEL_DAC2CH1_ADC2 (LL_ADC_CHANNEL_15 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_TRIGGER_SOURCE ADC group regular - Trigger source 977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_SOFTWARE (0x00000000UL) 980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) 981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH2 (ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH3 (ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_CH2 (ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT 984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_TRGO (ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM4_CH4 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT 986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT 987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM8_TRGO (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_ 988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 (ADC_CFGR_EXTSEL_3 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT 990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT 991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_ 992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM4_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EXT 993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM6_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_ 994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM15_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_ 995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_CH4 (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_ 996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 (ADC_CFGR_EXTSEL_4 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT 998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_LPTIM1_OUT (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT 999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_LPTIM2_OUT (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_ ARM GAS /tmp/ccIEHjf0.s page 19 1000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_LPTIM3_OUT (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EXT 1001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (TIM23) 1002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM23_TRGO (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_ 1003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* TIM23 */ 1004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (TIM24) 1005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM24_TRGO (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_ 1006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* TIM24 */ 1007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_TRIGGER_EDGE ADC group regular - Trigger edge 1012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_RISING ( ADC_CFGR_EXTEN_0) /*!< ADC group r 1015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_FALLING (ADC_CFGR_EXTEN_1 ) /*!< ADC group r 1016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_RISINGFALLING (ADC_CFGR_EXTEN_1 | ADC_CFGR_EXTEN_0) /*!< ADC group r 1017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SAMPLING_MODE ADC group regular - Sampling mode 1022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_NORMAL (0x00000000UL) /*!< ADC conversions sa 1025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_BULB (ADC3_CFGR2_BULB) /*!< ADC conversions sa 1026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Note: First conver 1027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED (ADC3_CFGR2_SMPTRIG) /*!< ADC conversions sa 1028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Trigger rising edg 1029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Trigger falling ed 1030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_CONTINUOUS_MODE ADC group regular - Continuous mode 1036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_CONV_SINGLE (0x00000000UL) /*!< ADC conversions are perform 1039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_CONV_CONTINUOUS (ADC_CFGR_CONT) /*!< ADC conversions are perform 1040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_DATA_TRANSFER_MODE ADC group regular - Data transfer mode of ADC conve 1045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_DR_TRANSFER (0x00000000UL) /*!< ADC conversio 1048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_LIMITED ( ADC_CFGR_DMNGT_0) /*!< ADC conversio 1049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_UNLIMITED (ADC_CFGR_DMNGT_1 | ADC_CFGR_DMNGT_0) /*!< ADC conversio 1050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_DFSDM_TRANSFER (ADC_CFGR_DMNGT_1 ) /*!< ADC conversio 1051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_DMA_TRANSFER ADC group regular - DMA transfer of ADC conversion data ARM GAS /tmp/ccIEHjf0.s page 20 1057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC3_REG_DMA_TRANSFER_NONE (0x00000000UL) /*!< ADC conversi 1061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC3_REG_DMA_TRANSFER_LIMITED ( ADC3_CFGR_DMAEN) /*!< ADC convers 1062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC3_REG_DMA_TRANSFER_UNLIMITED (ADC3_CFGR_DMACFG | ADC3_CFGR_DMAEN) /*!< ADC conver 1063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_OVR_DATA_BEHAVIOR ADC group regular - Overrun behavior on conversion d 1069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_PRESERVED (0x00000000UL) /*!< ADC group regular behavior i 1072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_OVERWRITTEN (ADC_CFGR_OVRMOD) /*!< ADC group regular behavior i 1073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_SCAN_LENGTH ADC group regular - Sequencer scan length 1078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_DISABLE (0x00000000UL) 1081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS ( ADC_SQR1_L 1082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS ( ADC_SQR1_L_1 1083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS ( ADC_SQR1_L_1 | ADC_SQR1_L 1084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS ( ADC_SQR1_L_2 1085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L 1086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 1087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 | ADC_SQR1_L 1088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS (ADC_SQR1_L_3 1089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS (ADC_SQR1_L_3 | ADC_SQR1_L 1090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 1091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 | ADC_SQR1_L 1092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 1093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L 1094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_1 1095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_1 | ADC_SQR1_L 1096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_DISCONT_MODE ADC group regular - Sequencer discontinuous mode 1101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_DISABLE (0x00000000UL) 1104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_1RANK ( 1105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_2RANKS ( ADC_CFGR_DISC 1106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_3RANKS ( ADC_CFGR_DISCNUM_1 1107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_4RANKS ( ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISC 1108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_5RANKS (ADC_CFGR_DISCNUM_2 1109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_6RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISC 1110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_7RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 1111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_8RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISC 1112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} ARM GAS /tmp/ccIEHjf0.s page 21 1114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_RANKS ADC group regular - Sequencer ranks 1117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_1 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_1_SQRX_BITOFFSET_POS) 1120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_2 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_2_SQRX_BITOFFSET_POS) 1121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_3 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_3_SQRX_BITOFFSET_POS) 1122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_4 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_4_SQRX_BITOFFSET_POS) 1123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_5 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_5_SQRX_BITOFFSET_POS) 1124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_6 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_6_SQRX_BITOFFSET_POS) 1125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_7 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_7_SQRX_BITOFFSET_POS) 1126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_8 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_8_SQRX_BITOFFSET_POS) 1127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_9 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_9_SQRX_BITOFFSET_POS) 1128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_10 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_10_SQRX_BITOFFSET_POS 1129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_11 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_11_SQRX_BITOFFSET_POS 1130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_12 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_12_SQRX_BITOFFSET_POS 1131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_13 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_13_SQRX_BITOFFSET_POS 1132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_14 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_14_SQRX_BITOFFSET_POS 1133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_15 (ADC_SQR4_REGOFFSET | ADC_REG_RANK_15_SQRX_BITOFFSET_POS 1134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_REG_RANK_16 (ADC_SQR4_REGOFFSET | ADC_REG_RANK_16_SQRX_BITOFFSET_POS 1135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_SOURCE ADC group injected - Trigger source 1140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_SOFTWARE (0x00000000UL) 1143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO (ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_CH4 (ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM2_TRGO (ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM4_TRGO (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_CH4 (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 (ADC_JSQR_JEXTSEL_3 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_ 1156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM6_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM15_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(HRTIM1) 1160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 (ADC_JSQR_JEXTSEL_4 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* HRTIM1 */ 1163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_LPTIM1_OUT (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_LPTIM2_OUT (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_LPTIM3_OUT (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_ 1166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM23_TRGO (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM24_TRGO (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 22 1171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_EDGE ADC group injected - Trigger edge 1173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_RISING ( ADC_JSQR_JEXTEN_0) /*!< ADC group i 1176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_FALLING (ADC_JSQR_JEXTEN_1 ) /*!< ADC group i 1177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_RISINGFALLING (ADC_JSQR_JEXTEN_1 | ADC_JSQR_JEXTEN_0) /*!< ADC group i 1178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIG_AUTO ADC group injected - Automatic trigger mode 1183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_INDEPENDENT (0x00000000UL) /*!< ADC group injected conversio 1186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_FROM_GRP_REGULAR (ADC_CFGR_JAUTO) /*!< ADC group injected conversio 1187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_CONTEXT_QUEUE ADC group injected - Context queue mode 1192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE (0x00000000UL) /* Group injected sequence co 1195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY (ADC_CFGR_JQM) /* Group injected sequence co 1196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_DISABLE (ADC_CFGR_JQDIS) /* Group injected sequence co 1197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_SCAN_LENGTH ADC group injected - Sequencer scan length 1202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_DISABLE (0x00000000UL) /*!< ADC group injected 1205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS ( ADC_JSQR_JL_0) /*!< ADC group injected 1206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS (ADC_JSQR_JL_1 ) /*!< ADC group injected 1207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS (ADC_JSQR_JL_1 | ADC_JSQR_JL_0) /*!< ADC group injected 1208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_DISCONT_MODE ADC group injected - Sequencer discontinuous mode 1213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_DISABLE (0x00000000UL) /*!< ADC group injected sequencer 1216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_1RANK (ADC_CFGR_JDISCEN) /*!< ADC group injected sequencer 1217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_RANKS ADC group injected - Sequencer ranks 1222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_RANK_1 (ADC_JDR1_REGOFFSET | ADC_INJ_RANK_1_JSQR_BITOFFSET_POS) 1225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_RANK_2 (ADC_JDR2_REGOFFSET | ADC_INJ_RANK_2_JSQR_BITOFFSET_POS) 1226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_RANK_3 (ADC_JDR3_REGOFFSET | ADC_INJ_RANK_3_JSQR_BITOFFSET_POS) 1227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_INJ_RANK_4 (ADC_JDR4_REGOFFSET | ADC_INJ_RANK_4_JSQR_BITOFFSET_POS) ARM GAS /tmp/ccIEHjf0.s page 23 1228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SAMPLINGTIME Channel - Sampling time 1233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_1CYCLE_5 (0x00000000UL) 1236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_2CYCLES_5 ( ADC_SMPR2_SMP10 1237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_8CYCLES_5 ( ADC_SMPR2_SMP10_1 1238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_16CYCLES_5 ( ADC_SMPR2_SMP10_1 | ADC_SMPR2_SMP10 1239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_32CYCLES_5 (ADC_SMPR2_SMP10_2 1240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_64CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10 1241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_387CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 1242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_810CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 | ADC_SMPR2_SMP10 1243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SAMPLINGTIME Channel - Sampling time 1248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_2CYCLES_5 (0x00000000UL) 1251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_6CYCLES_5 ( ADC_SMPR2_ 1252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_12CYCLES_5 ( ADC_SMPR2_SMP10_1 1253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_24CYCLES_5 ( ADC_SMPR2_SMP10_1 | ADC_SMPR2_ 1254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_47CYCLES_5 (ADC_SMPR2_SMP10_2 1255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_92CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_ 1256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_247CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 1257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_ADC3_640CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 | ADC_SMPR2_ 1258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SINGLE_DIFF_ENDING Channel - Single or differential ending 1264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_SINGLE_ENDED ( ADC_CALFACT_CALFACT_S) /*!< A 1267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DIFFERENTIAL_ENDED (ADC_CR_ADCALDIF | ADC_CALFACT_CALFACT_D) /*!< A 1268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_BOTH_SINGLE_DIFF_ENDED (LL_ADC_SINGLE_ENDED | LL_ADC_DIFFERENTIAL_ENDED) /*!< A 1269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_NUMBER Analog watchdog - Analog watchdog number 1274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD1 (ADC_AWD_CR1_CHANNEL_MASK | ADC_AWD_CR1_REGOFFSET) /*!< 1277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD2 (ADC_AWD_CR23_CHANNEL_MASK | ADC_AWD_CR2_REGOFFSET) /*!< 1278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD3 (ADC_AWD_CR23_CHANNEL_MASK | ADC_AWD_CR3_REGOFFSET) /*!< 1279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_CHANNELS Analog watchdog - Monitored channels 1284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ ARM GAS /tmp/ccIEHjf0.s page 24 1285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_DISABLE (0x00000000UL) 1287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG (ADC_AWD_CR23_CHANNEL_MASK 1288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_INJ (ADC_AWD_CR23_CHANNEL_MASK | ADC_CFGR_JA 1289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG_INJ (ADC_AWD_CR23_CHANNEL_MASK | ADC_CFGR_JA 1290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_REG ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) 1291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_REG_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_REG ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) 1294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_REG_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_REG ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) 1297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_REG_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_REG ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) 1300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_REG_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_REG ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) 1303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_REG_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_REG ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) 1306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_REG_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_REG ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) 1309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_REG_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_REG ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) 1312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_REG_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_REG ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) 1315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_REG_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_REG ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) 1318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_REG_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_REG ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) 1321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_REG_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_REG ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) 1324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_REG_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_REG ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) 1327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_REG_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_REG ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) 1330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_REG_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_REG ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) 1333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_REG_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_REG ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) 1336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_REG_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_REG ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) 1339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_REG_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_REG ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) ARM GAS /tmp/ccIEHjf0.s page 25 1342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_REG_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_REG ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) 1345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_REG_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_19_REG ((LL_ADC_CHANNEL_19 & ADC_CHANNEL_ID_MASK) 1348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_19_INJ ((LL_ADC_CHANNEL_19 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_19_REG_INJ ((LL_ADC_CHANNEL_19 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_REG ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) 1351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | 1352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_REG_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | 1353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_REG ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) 1354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | 1355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ ((LL_ADC_CHANNEL_TEMPSENSOR & ADC_CHANNEL_ID_MASK) | 1356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_REG ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) 1357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | 1358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_REG_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | 1359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH1_ADC2_REG ((LL_ADC_CHANNEL_DAC1CH1_ADC2 & ADC_CHANNEL_ID_MASK) 1360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH1_ADC2_INJ ((LL_ADC_CHANNEL_DAC1CH1_ADC2 & ADC_CHANNEL_ID_MASK) | 1361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH1_ADC2_REG_INJ ((LL_ADC_CHANNEL_DAC1CH1_ADC2 & ADC_CHANNEL_ID_MASK) | 1362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH2_ADC2_REG ((LL_ADC_CHANNEL_DAC1CH2_ADC2 & ADC_CHANNEL_ID_MASK) 1363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH2_ADC2_INJ ((LL_ADC_CHANNEL_DAC1CH2_ADC2 & ADC_CHANNEL_ID_MASK) | 1364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_CH_DAC1CH2_ADC2_REG_INJ ((LL_ADC_CHANNEL_DAC1CH2_ADC2 & ADC_CHANNEL_ID_MASK) | 1365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_THRESHOLDS Analog watchdog - Thresholds 1370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_HIGH (0x1UL) /*!< ADC analog watchdog thr 1373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_LOW (0x0UL) /*!< ADC analog watchdog thr 1374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_FILTERING_CONFIG Analog watchdog - filtering config 1379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_NONE (0x00000000UL) 1382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_2SAMPLES ( ADC3_TR1_AWDF 1383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_3SAMPLES ( ADC3_TR1_AWDFILT_1 1384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_4SAMPLES ( ADC3_TR1_AWDFILT_1 | ADC3_TR1_AWDF 1385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_5SAMPLES (ADC3_TR1_AWDFILT_2 1386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_6SAMPLES (ADC3_TR1_AWDFILT_2 | ADC3_TR1_AWDF 1387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_7SAMPLES (ADC3_TR1_AWDFILT_2 | ADC3_TR1_AWDFILT_1 1388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_8SAMPLES (ADC3_TR1_AWDFILT_2 | ADC3_TR1_AWDFILT_1 | ADC3_TR1_AWDF 1389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SCOPE Oversampling - Oversampling scope 1395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_DISABLE (0x00000000UL) /* 1398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_CONTINUED ( ADC_CFGR2_ROVSE) /* ARM GAS /tmp/ccIEHjf0.s page 26 1399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_RESUMED (ADC_CFGR2_ROVSM | ADC_CFGR2_ROVSE) /* 1400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJECTED ( ADC_CFGR2_JOVSE ) /* 1401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJ_REG_RESUMED ( ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE) /* 1402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_DISCONT_MODE Oversampling - Discontinuous mode 1407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_REG_CONT (0x00000000UL) /*!< ADC oversampling discontinuo 1410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_REG_DISCONT (ADC_CFGR2_TROVS) /*!< ADC oversampling discontinuo 1411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_RATIO Oversampling - Ratio 1416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_2 (0x00000000UL) 1419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_4 ( ADC3_CFGR2_OVSR 1420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_8 ( ADC3_CFGR2_OVSR_1 1421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_16 ( ADC3_CFGR2_OVSR_1 | ADC3_CFGR2_OVSR 1422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_32 (ADC3_CFGR2_OVSR_2 1423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_64 (ADC3_CFGR2_OVSR_2 | ADC3_CFGR2_OVSR 1424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_128 (ADC3_CFGR2_OVSR_2 | ADC3_CFGR2_OVSR_1 1425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_256 (ADC3_CFGR2_OVSR_2 | ADC3_CFGR2_OVSR_1 | ADC3_CFGR2_OVSR 1426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SHIFT Oversampling - Data shift 1432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_NONE (0x00000000UL) 1435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_1 ( 1436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_2 ( ADC_CFGR2_OVSS_1 1437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_3 ( ADC_CFGR2_OVSS_1 1438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_4 ( ADC_CFGR2_OVSS_2 1439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_5 ( ADC_CFGR2_OVSS_2 1440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_6 ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 1441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_7 ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 1442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_8 (ADC_CFGR2_OVSS_3 1443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_9 (ADC_CFGR2_OVSS_3 1444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_10 (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 1445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_11 (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 1446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MODE Multimode - Mode 1451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_INDEPENDENT (0x00000000UL) 1454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIMULT ( ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1 1455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INTERL ( ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1 | ADC_ ARM GAS /tmp/ccIEHjf0.s page 27 1456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_SIMULT ( ADC_CCR_DUAL_2 | ADC_ 1457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_ALTERN (ADC_CCR_DUAL_3 | ADC_ 1458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM ( ADC_ 1459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT ( ADC_CCR_DUAL_1 1460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM ( ADC_CCR_DUAL_1 | ADC_ 1461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_DMA_TRANSFER Multimode - DMA transfer 1466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_EACH_ADC (0x00000000UL) /*!< ADC multimode 1469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_RES_32_10B (ADC_CCR_DAMDF_1 ) /*!< ADC multimode 1470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_RES_8B (ADC_CCR_DAMDF_1 | ADC_CCR_DAMDF_0) /*!< ADC multimode 1471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_TWOSMP_DELAY Multimode - Delay between two sampling phases 1476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE_5 (0x00000000UL) 1479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES_5 ( 1480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES_5 ( ADC_CCR_D 1481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5 ( ADC_CCR_D 1482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5_8_BITS ( ADC_CCR_DELAY_2 | ADC_CCR_D 1483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5 ( ADC_CCR_DELAY_2 1484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5_10_BITS ( ADC_CCR_DELAY_2 | ADC_CCR_D 1485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (ADC_CCR_DELAY_3 1486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5 ( ADC_CCR_DELAY_2 1487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5_12_BITS ( ADC_CCR_DELAY_2 | ADC_CCR_D 1488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES_5 ( ADC_CCR_DELAY_2 | ADC_CCR_D 1489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (ADC_CCR_DELAY_3 1490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (ADC_CCR_DELAY_3 1491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MASTER_SLAVE Multimode - ADC master or slave 1496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER ( ADC_CDR_RDATA_MST) /*!< In multimod 1499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_SLAVE (ADC_CDR_RDATA_SLV ) /*!< In multimod 1500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER_SLAVE (ADC_CDR_RDATA_SLV | ADC_CDR_RDATA_MST) /*!< In multimod 1501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EC_HW_DELAYS Definitions of ADC hardware constraints delays 1508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Only ADC peripheral HW delays are defined in ADC LL driver driver, 1509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * not timeout values. 1510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For details on delays values, refer to descriptions in source code 1511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * above each literal definition. 1512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ ARM GAS /tmp/ccIEHjf0.s page 28 1513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Only ADC peripheral HW delays are defined in ADC LL driver driver, */ 1516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* not timeout values. */ 1517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Timeout values for ADC operations are dependent to device clock */ 1518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* configuration (system clock versus ADC clock), */ 1519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* and therefore must be defined in user application. */ 1520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Indications for estimation of ADC timeout delays, for this */ 1521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* STM32 series: */ 1522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC calibration time: maximum delay is 16384/fADC. */ 1523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (refer to device datasheet, parameter "tCAL") */ 1524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC enable time: maximum delay is 1 conversion cycle. */ 1525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (refer to device datasheet, parameter "tSTAB") */ 1526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC disable time: maximum delay should be a few ADC clock cycles */ 1527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC stop conversion time: maximum delay should be a few ADC clock */ 1528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* cycles */ 1529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* - ADC conversion time: duration depending on ADC clock and ADC */ 1530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* configuration. */ 1531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (refer to device reference manual, section "Timing") */ 1532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay for ADC stabilization time (ADC voltage regulator start-up time) */ 1534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 1535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* parameter "tADCVREG_STUP"). */ 1536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Unit: us */ 1537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DELAY_INTERNAL_REGUL_STAB_US ( 10UL) /*!< Delay for ADC stabilization time (ADC vol 1538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay for internal voltage reference stabilization time. */ 1540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 1541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* parameter "ts_vrefint"). */ 1542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Unit: us */ 1543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DELAY_VREFINT_STAB_US (5UL) /*!< Delay for internal voltage reference stabili 1544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay for temperature sensor stabilization time. */ 1546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Literal set to maximum value (refer to device datasheet, */ 1547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* parameter "tSTART_RUN"). */ 1548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Unit: us */ 1549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DELAY_TEMPSENSOR_STAB_US ( 26UL) /*!< Delay for temperature sensor stabilization 1550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Delay required between ADC end of calibration and ADC enable. */ 1552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: On this STM32 series, a minimum number of ADC clock cycles */ 1553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* are required between ADC end of calibration and ADC enable. */ 1554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Wait time can be computed in user application by waiting for the */ 1555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* equivalent number of CPU cycles, by taking into account */ 1556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ratio of CPU clock versus ADC clock prescalers. */ 1557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Unit: ADC clock cycles. */ 1558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES ( 4UL) /*!< Delay required between ADC end of calibr 1559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Fixed timeout value for ADC linearity word bit set/clear delay. */ 1561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Values defined to be higher than worst cases: low clock frequency, */ 1562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* maximum prescalers. */ 1563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Ex of profile low frequency : f_ADC at 4,577 Khz (minimum value */ 1564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* according to Data sheet), linearity set/clear bit delay MAX = 6 / f_ADC + 3 cycles AHB */ 1565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* 6 / 4577 = 1,311ms */ 1566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* At maximum CPU speed (400 MHz), this means */ 1567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* 3.58 * 400 MHz = 524400 CPU cycles */ 1568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define ADC_LINEARITY_BIT_TOGGLE_TIMEOUT (524400UL) /*!< ADC linearity set/clear bit d 1569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 29 1570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Exported macro ------------------------------------------------------------*/ 1580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Macros ADC Exported Macros 1581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EM_WRITE_READ Common write and read registers Macros 1585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Write a value in ADC register 1590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 1591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __REG__ Register to be written 1592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __VALUE__ Value to be written in the register 1593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 1594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE 1596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Read a value in ADC register 1599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 1600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __REG__ Register to be read 1601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Register value 1602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define LL_ADC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) 1604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 1606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EM_HELPER_MACRO ADC helper macro 1609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 1610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 1613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to convert the resolution defines to STM32H73x/2x ADC3 registers values 1615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * value corresponding to the ADC3 resolution according to the STM32H73x/2x RefMan. 1616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The input can be a value from ADC3 resolution (12b, 10b, 8b,6b) 1617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 1618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 1619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 1620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 1621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 1622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg 0x00000000UL (value correspodning to ADC3 12 bits) 1624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg ADC_CFGR_RES_0 = 0x00000004 (value corresponding to ADC3 10 bits) 1625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg ADC_CFGR_RES_1 = 0x00000008 (value corresponding to ADC3 8 bits) 1626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg 0x0000001C (value corresponding to ADC3 6 bits) ARM GAS /tmp/ccIEHjf0.s page 30 1627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This helper macro is applicable for STM32H73x/2x devices only 1628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC12_RESOLUTION_TO_ADC3(__ADC_RESOLUTION__) \ 1630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( \ 1631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__ADC_RESOLUTION__) == LL_ADC_RESOLUTION_12B) \ 1632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?(0x00000000UL) \ 1633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 1634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__ADC_RESOLUTION__) == LL_ADC_RESOLUTION_10B) \ 1635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?(ADC_CFGR_RES_0) \ 1636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 1637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__ADC_RESOLUTION__) == LL_ADC_RESOLUTION_8B) \ 1638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?(ADC_CFGR_RES_1) \ 1639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 1640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__ADC_RESOLUTION__) == LL_ADC_RESOLUTION_6B) \ 1641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?((ADC_CFGR_RES_2|ADC_CFGR_RES_1 | ADC_CFGR_RES_0)) \ 1642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** :(0x00000000UL) \ 1643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 1646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to get ADC channel number in decimal format 1649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from literals LL_ADC_CHANNEL_x. 1650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Example: 1651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * __LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_CHANNEL_4) 1652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * will return decimal number "4". 1653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The input can be a value from functions where a channel 1654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number is returned, either defined with number 1655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or with bitfield (only one bit must be set). 1656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 1658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 1659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 1660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 1661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 1662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 1663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 1679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 1680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n ARM GAS /tmp/ccIEHjf0.s page 31 1684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 1685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 1686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 1687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0 and Max_Data=18 1688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ 1690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((((__CHANNEL__) & ADC_CHANNEL_ID_BITFIELD_MASK) == 0UL) \ 1691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( \ 1692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS \ 1693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 1695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( \ 1696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (uint32_t)POSITION_VAL((__CHANNEL__)) \ 1697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to get ADC channel in literal format LL_ADC_CHANNEL_x 1702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from number in decimal format. 1703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Example: 1704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * __LL_ADC_DECIMAL_NB_TO_CHANNEL(4) 1705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * will return a data equivalent to "LL_ADC_CHANNEL_4". 1706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __DECIMAL_NB__ Value between Min_Data=0 and Max_Data=18 1707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 1709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 1710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 1711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 1712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 1713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 1714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 1730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 1731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 1735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 1736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 1737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual).\n 1738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1, 2) For ADC channel read back from ADC register, 1739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * comparison with internal channel parameter to be done 1740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). ARM GAS /tmp/ccIEHjf0.s page 32 1741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_DECIMAL_NB_TO_CHANNEL(__DECIMAL_NB__) 1743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__DECIMAL_NB__) <= 9UL) 1744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( 1745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) | 1746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) | 1747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_SMPR1_REGOFFSET | (((3UL * (__DECIMAL_NB__))) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) 1748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : 1750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( 1751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 1752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) 1753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_SMPR2_REGOFFSET | (((3UL * ((__DECIMAL_NB__) - 10UL))) << ADC_CHANNEL_SMPx_BITOFFSET_PO 1754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to determine whether the selected channel 1759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * corresponds to literal definitions of driver. 1760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The different literal definitions of ADC channels are: 1761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC internal channel: 1762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ... 1763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC external channel (channel connected to a GPIO pin): 1764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ... 1765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The channel parameter must be a value defined from literal 1766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...), 1769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * must not be a value from functions where a channel number is 1770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * returned from ADC registers, 1771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * because internal and external channels share the same channel 1772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 1773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * parameters definitions of driver. 1774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 1776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 1777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 1778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 1779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 1780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 1781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 1797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) ARM GAS /tmp/ccIEHjf0.s page 33 1798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 1802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 1803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 1804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 1805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value "0" if the channel corresponds to a parameter definition of a ADC external channe 1806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Value "1" if the channel corresponds to a parameter definition of a ADC internal channe 1807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ 1809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0UL) 1810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to convert a channel defined from parameter 1813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to its equivalent parameter definition of a ADC external channel 1816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...). 1817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The channel parameter can be, additionally to a value 1818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * defined from parameter definition of a ADC internal channel 1819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ...), 1820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a value defined from parameter definition of 1821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 1822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or a value from functions where a channel number is returned 1823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from ADC registers. 1824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 1826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 1827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 1828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 1829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 1830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 1831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 1847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 1848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 1852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 1853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 1854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). ARM GAS /tmp/ccIEHjf0.s page 34 1855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 1858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 1859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 1860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 1861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 1862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ 1878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) 1879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to determine whether the internal channel 1882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * selected is available on the ADC instance selected. 1883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The channel parameter must be a value defined from parameter 1884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * must not be a value defined from parameter definition of 1887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 1888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or a value from functions where a channel number is 1889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * returned from ADC registers, 1890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * because internal and external channels share the same channel 1891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 1892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * parameters definitions of driver. 1893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_INSTANCE__ ADC instance 1894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 1897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 1898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 1902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2. 1903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value "0" if the internal channel selected is not available on the ADC instance selecte 1904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Value "1" if the internal channel selected is available on the ADC instance selected. 1905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 1906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC3) 1907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC2) \ 1909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** &&( \ 1910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_DAC1CH1_ADC2) || \ 1911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_DAC1CH2_ADC2) \ ARM GAS /tmp/ccIEHjf0.s page 35 1912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** || \ 1915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 1916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** &&( \ 1917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR) || \ 1918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 1924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC2) \ 1926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** &&( \ 1927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_DAC1CH1_ADC2) || \ 1928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_DAC1CH2_ADC2) || \ 1929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR) || \ 1930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 1934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 1935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 1936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 1937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 1938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to define ADC analog watchdog parameter: 1939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * define a single channel to monitor with analog watchdog 1940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from sequencer channel and groups definition. 1941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetAnalogWDMonitChannels(). 1942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: 1943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_SetAnalogWDMonitChannels( 1944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC1, LL_ADC_AWD1, 1945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * __LL_ADC_ANALOGWD_CHANNEL_GROUP(LL_ADC_CHANNEL4, LL_ADC_GROUP_REGULAR)) 1946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 1948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 1949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 1950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 1951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 1952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 1953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 1967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 1968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) ARM GAS /tmp/ccIEHjf0.s page 36 1969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 1970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 1971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 1972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 1974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 1975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 1976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual).\n 1977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1, 2) For ADC channel read back from ADC register, 1978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * comparison with internal channel parameter to be done 1979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 1980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __GROUP__ This parameter can be one of the following values: 1981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR 1982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_INJECTED 1983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR_INJECTED 1984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 1986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 1987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 1988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 1989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 1990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 1991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 1992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 1993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 1994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 1995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 1996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 1997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 1998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 1999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 2000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 2001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 2002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 2003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 2004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 2005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 2006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 2007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 2008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 2009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 2010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 2011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 2012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 2013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 2014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 2015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 2016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 2017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 2018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 2019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 2020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 2021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 2022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 2023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 2024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 2025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) ARM GAS /tmp/ccIEHjf0.s page 37 2026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 2027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 2028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 2029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 2030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 2031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 2032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 2033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 2034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 2035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 2036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 2037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 2038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 2039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 2040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 2041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 2042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 2043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 2044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 2045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 2046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG (0) 2047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_INJ (0) 2048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG_INJ 2049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0)(1) 2050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0)(1) 2051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ (1) 2052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG (0)(1) 2053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_INJ (0)(1) 2054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ (1) 2055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(1) 2056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(1) 2057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (1) 2058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_REG (0)(2) 2059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_INJ (0)(2) 2060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_REG_INJ (2) 2061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_REG (0)(2) 2062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_INJ (0)(2) 2063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_REG_INJ (2) 2064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 2065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (0) On STM32H7, parameter available only on analog watchdog number: AWD1.\n 2066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 2067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2. 2068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_CHANNEL_GROUP(__CHANNEL__, __GROUP__) 2070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__GROUP__) == LL_ADC_GROUP_REGULAR) 2071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 2072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : 2073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__GROUP__) == LL_ADC_GROUP_INJECTED) 2074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) 2075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : 2076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD 2077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to set the value of ADC analog watchdog threshold high 2081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 2082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * different of 16 bits. ARM GAS /tmp/ccIEHjf0.s page 38 2083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetAnalogWDThresholds(). 2084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to set the value of 2085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog threshold high (on 18 bits): 2086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_SetAnalogWDThresholds 2087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (< ADCx param >, 2088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(LL_ADC_RESOLUTION_8B, > (ADC_CFGR_RES_BITOFFSET_POS - 1U ))) 2101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to get the value of ADC analog watchdog threshold high 2104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 2105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * different of 16 bits. 2106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). 2107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to get the value of 2108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog threshold high (on 18 bits): 2109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * < threshold_value_18_bits > = __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION 2110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_RESOLUTION_8B, 2111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_GetAnalogWDThresholds(, LL_ADC_AWD_THRESHOLD_HIGH) 2112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ); 2113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __AWD_THRESHOLD_16_BITS__ Value between Min_Data=0x000000 and Max_Data=0xFFFFFF 2120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000000 and Max_Data=0xFFFFFF 2121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(__ADC_RESOLUTION__, __AWD_THRESHOLD_16_BITS__) \ 2123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__AWD_THRESHOLD_16_BITS__) >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1U ))) 2124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to set the ADC calibration value with both single ended 2127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and differential modes calibration factors concatenated. 2128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetCalibrationOffsetFactor(). 2129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example, to set calibration factors single ended to 0x55 2130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and differential ended to 0x2A: 2131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_SetCalibrationOffsetFactor( 2132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC1, 2133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(0x55, 0x2A)) 2134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CALIB_FACTOR_SINGLE_ENDED__ Value between Min_Data=0x00 and Max_Data=0x7F 2135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __CALIB_FACTOR_DIFFERENTIAL__ Value between Min_Data=0x00 and Max_Data=0x7F 2136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 2137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(__CALIB_FACTOR_SINGLE_ENDED__, __CALIB_FACTOR_DIFFERENTIA 2139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__CALIB_FACTOR_DIFFERENTIAL__) << ADC_CALFACT_CALFACT_D_Pos) | (__CALIB_FACTOR_SINGLE_ENDED__) ARM GAS /tmp/ccIEHjf0.s page 39 2140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to get the ADC multimode conversion data of ADC master 2143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or ADC slave from raw value with both ADC conversion data concatenated. 2144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This macro is intended to be used when multimode transfer by DMA 2145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled: refer to function @ref LL_ADC_SetMultiDMATransfer(). 2146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In this case the transferred data need to processed with this macro 2147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to separate the conversion data of ADC master and ADC slave. 2148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_MULTI_MASTER_SLAVE__ This parameter can be one of the following values: 2149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 2150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 2151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_MULTI_CONV_DATA__ Value between Min_Data=0x000 and Max_Data=0xFFF 2152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 2153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(__ADC_MULTI_MASTER_SLAVE__, __ADC_MULTI_CONV_DATA__) 2155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__ADC_MULTI_CONV_DATA__) >> ((ADC_CDR_RDATA_SLV_Pos) & ~(__ADC_MULTI_MASTER_SLAVE__))) & ADC_C 2156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to select, from a ADC instance, to which ADC instance 2159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * it has a dependence in multimode (ADC master of the corresponding 2160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC common instance). 2161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of device with multimode available and a mix of 2162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instances compliant and not compliant with multimode feature, 2163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instances not compliant with multimode feature are 2164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * considered as master instances (do not depend to 2165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * any other ADC instance). 2166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADCx__ ADC instance 2167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval __ADCx__ ADC instance master of the corresponding ADC common instance 2168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_MULTI_INSTANCE_MASTER(__ADCx__) \ 2170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( ( ((__ADCx__) == ADC2) \ 2171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** )? \ 2172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC1) \ 2173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 2174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (__ADCx__) \ 2175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to select the ADC common instance 2179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to which is belonging the selected ADC instance. 2180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC common register instance can be used for: 2181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Set parameters common to several ADC instances 2182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Multimode (for devices with several ADC instances) 2183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 2184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADCx__ ADC instance 2185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC common register instance 2186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC3_COMMON) 2188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ 2189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((((__ADCx__) == ADC1) || ((__ADCx__) == ADC2)) \ 2190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( \ 2191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC12_COMMON) \ 2192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 2193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 2194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( \ 2195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC3_COMMON) \ 2196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ ARM GAS /tmp/ccIEHjf0.s page 40 2197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) (ADC12_COMMON) 2200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 2201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to check if all ADC instances sharing the same 2204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC common instance are disabled. 2205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This check is required by functions with setting conditioned to 2206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 2208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 2209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On devices with only 1 ADC common instance, parameter of this macro 2210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is useless and can be ignored (parameter kept for compatibility 2211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with devices featuring several ADC common instances). 2212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADCXY_COMMON__ ADC common instance 2213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value "0" if all ADC instances sharing the same ADC common instance 2215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are disabled. 2216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Value "1" if at least one ADC instance sharing the same ADC common instance 2217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled. 2218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC3_COMMON) 2220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 2221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__ADCXY_COMMON__) == ADC12_COMMON) \ 2222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( \ 2223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | \ 2224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** LL_ADC_IsEnabled(ADC2) ) \ 2225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 2226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : \ 2227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( \ 2228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC3)) \ 2229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 2230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 2233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | LL_ADC_IsEnabled(ADC2)) 2234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 2235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to define the ADC conversion data full-scale digital 2238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * value corresponding to the selected ADC resolution. 2239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC conversion data full-scale corresponds to voltage range 2240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * determined by analog voltage references Vref+ and Vref- 2241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (refer to reference manual). 2242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC conversion data full-scale digital value (unit: digital value of ADC conversion dat 2249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 2251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (0xFFFFUL >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) ARM GAS /tmp/ccIEHjf0.s page 41 2254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to define the ADC conversion data full-scale digital 2256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * value corresponding to the selected ADC resolution. 2257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC conversion data full-scale corresponds to voltage range 2258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * determined by analog voltage references Vref+ and Vref- 2259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (refer to reference manual). 2260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC conversion data equivalent voltage value (unit: digital value of ADC conversion bit 2266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC3_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 2268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (0xFFFUL >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS_ADC3 - 1UL))) 2269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to convert the ADC conversion data from 2272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a resolution to another resolution. 2273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __DATA__ ADC conversion data to be converted 2274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION_CURRENT__ Resolution of the data to be converted 2275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION_TARGET__ Resolution of the data after conversion 2282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC conversion data to the requested resolution 2289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_X) || defined(ADC_VER_V5_V90) 2291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CONVERT_DATA_RESOLUTION(__DATA__,\ 2292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_CURRENT__,\ 2293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_TARGET__) \ 2294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( (__ADC_RESOLUTION_CURRENT__ == LL_ADC_RESOLUTION_8B) 2295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?( 2296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) 2297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << (((__ADC_RESOLUTION_CURRENT__) & ~(ADC_CFGR_RES_1 | ADC_CFGR_RES_0) ) >> (ADC_CFGR_RES_BITOF 2298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) 2299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : 2301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( 2302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (__ADC_RESOLUTION_TARGET__ == LL_ADC_RESOLUTION_8B) \ 2303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( \ 2304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) 2305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (((__ADC_RESOLUTION_TARGET__) & ~(ADC_CFGR_RES_1 | ADC_CFGR_RES_0) ) >> (ADC_CFGR_RES 2307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** :\ 2309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (\ 2310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) ARM GAS /tmp/ccIEHjf0.s page 42 2311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) 2313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** )\ 2315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* defined(ADC_VER_V5_3) */ 2319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CONVERT_DATA_RESOLUTION(__DATA__,\ 2320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_CURRENT__,\ 2321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_TARGET__) \ 2322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( (__ADC_RESOLUTION_CURRENT__ == LL_ADC_RESOLUTION_8B) 2323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ?( 2324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) 2325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << (((__ADC_RESOLUTION_CURRENT__) & ~(ADC_CFGR_RES_1 | ADC_CFGR_RES_0) ) >> (ADC_CFGR_RES_BITOF 2326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) 2327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** : 2329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ( 2330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (__ADC_RESOLUTION_TARGET__ == LL_ADC_RESOLUTION_8B) \ 2331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ? ( \ 2332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) 2333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (((__ADC_RESOLUTION_TARGET__) & ~(ADC_CFGR_RES_1 | ADC_CFGR_RES_0) ) >> (ADC_CFGR_RES 2335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** :\ 2337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (\ 2338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__DATA__) 2339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) 2341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** )\ 2343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif 2346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to convert the ADC conversion data from 2350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a resolution to another resolution. 2351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __DATA__ ADC conversion data to be converted 2352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION_CURRENT__ Resolution of the data to be converted 2353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION_TARGET__ Resolution of the data after conversion 2359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC conversion data to the requested resolution 2365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CONVERT_DATA_RESOLUTION_ADC3(__DATA__,\ 2367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_CURRENT__,\ ARM GAS /tmp/ccIEHjf0.s page 43 2368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION_TARGET__) \ 2369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((__DATA__) \ 2370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS_ADC3 - 1UL))) \ 2371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS_ADC3 - 1UL)) \ 2372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to calculate the voltage (unit: mVolt) 2376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * corresponding to a ADC conversion data (unit: digital value). 2377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 2381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_DATA__ ADC conversion data (resolution 16 bits) 2382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (unit: digital value). 2383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC conversion data equivalent voltage value (unit: mVolt) 2390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CALC_DATA_TO_VOLTAGE(__VREFANALOG_VOLTAGE__,\ 2392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_DATA__,\ 2393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((__ADC_DATA__) * (__VREFANALOG_VOLTAGE__) \ 2395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 2396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to calculate analog reference voltage (Vref+) 2400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (unit: mVolt) from ADC conversion data of internal voltage 2401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * reference VrefInt. 2402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Computation is using VrefInt calibration value 2403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * stored in system memory for each device during production. 2404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This voltage depends on user board environment: voltage level 2405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * connected to pin Vref+. 2406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * On devices with small package, the pin Vref+ is not present 2407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and internally bonded to pin Vdda. 2408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, calibration data of internal voltage reference 2409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * VrefInt corresponds to a resolution of 16 bits, 2410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 2411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal voltage reference VrefInt. 2412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 2413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion data to 16 bits. 2414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __VREFINT_ADC_DATA__ ADC conversion data (resolution 16 bits) 2415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of internal voltage reference VrefInt (unit: digital value). 2416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Analog reference voltage (unit: mV) 2423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CALC_VREFANALOG_VOLTAGE(__VREFINT_ADC_DATA__,\ ARM GAS /tmp/ccIEHjf0.s page 44 2425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((uint32_t)(*VREFINT_CAL_ADDR) * VREFINT_CAL_VREF) \ 2427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ 2428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 2429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** LL_ADC_RESOLUTION_16B) \ 2430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 2434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 2435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Computation is using temperature sensor calibration values 2436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * stored in system memory for each device during production. 2437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Calculation formula: 2438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Temperature = ((TS_ADC_DATA - TS_CAL1) 2439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * * (TS_CAL2_TEMP - TS_CAL1_TEMP)) 2440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * / (TS_CAL2 - TS_CAL1) + TS_CAL1_TEMP 2441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 2442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Avg_Slope = (TS_CAL2 - TS_CAL1) 2443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * / (TS_CAL2_TEMP - TS_CAL1_TEMP) 2444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TS_CAL1 = equivalent TS_ADC_DATA at temperature 2445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TEMP_DEGC_CAL1 (calibrated in factory) 2446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TS_CAL2 = equivalent TS_ADC_DATA at temperature 2447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TEMP_DEGC_CAL2 (calibrated in factory) 2448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Caution: Calculation relevancy under reserve that calibration 2449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * parameters are correct (address and data). 2450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * To calculate temperature using temperature sensor 2451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * datasheet typical values (generic values less, therefore 2452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * less accurate than calibrated values), 2453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). 2454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 2455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 2456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, calibration data of temperature sensor 2460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * corresponds to a resolution of 16 bits, 2461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 2462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature sensor. 2463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 2464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion data to 16 bits. 2465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 2466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal 2467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature sensor (unit: digital value). 2468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature 2469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sensor voltage has been measured. 2470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 2477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE(__VREFANALOG_VOLTAGE__,\ 2479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 2480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((( ((int32_t)((__LL_ADC_CONVERT_DATA_RESOLUTION((__TEMPSENSOR_ADC_DATA__), \ ARM GAS /tmp/ccIEHjf0.s page 45 2482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 2483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** LL_ADC_RESOLUTION_16B) \ 2484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (__VREFANALOG_VOLTAGE__)) \ 2485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** / TEMPSENSOR_CAL_VREFANALOG) \ 2486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ 2487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ 2488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ 2489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) + TEMPSENSOR_CAL1_TEMP \ 2490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 2494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 2495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Computation is using temperature sensor typical values 2496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (refer to device datasheet). 2497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Calculation formula: 2498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Temperature = (TS_TYP_CALx_VOLT(uV) - TS_ADC_DATA * Conversion_uV) 2499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * / Avg_Slope + CALx_TEMP 2500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 2501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (unit: digital value) 2502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Avg_Slope = temperature sensor slope 2503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (unit: uV/Degree Celsius) 2504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TS_TYP_CALx_VOLT = temperature sensor digital value at 2505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature CALx_TEMP (unit: mV) 2506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Caution: Calculation relevancy under reserve the temperature sensor 2507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of the current device has characteristics in line with 2508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * datasheet typical values. 2509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If temperature sensor calibration values are available on 2510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on this device (presence of macro __LL_ADC_CALC_TEMPERATURE()), 2511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature calculation will be more accurate using 2512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * helper macro @ref __LL_ADC_CALC_TEMPERATURE(). 2513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 2514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 2515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC measurement data must correspond to a resolution of 16 bits 2519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (full scale digital value 4095). If not the case, the data must be 2520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * preliminarily rescaled to an equivalent resolution of 16 bits. 2521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_AVGSLOPE__ Device datasheet data: Temperature sensor slope typical v 2522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * On STM32H7, refer to device datasheet parameter "Avg_Slop 2523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_CALX_V__ Device datasheet data: Temperature sensor voltage typical 2524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * On STM32H7, refer to device datasheet parameter "V30" (co 2525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __TEMPSENSOR_CALX_TEMP__ Device datasheet data: Temperature at which temperature s 2526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog voltage reference (Vref+) voltage (unit: mV) 2527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal temperature sensor (unit: 2528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature sensor volta 2529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This parameter can be one of the following values: 2530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 2536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(__TEMPSENSOR_TYP_AVGSLOPE__,\ 2538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __TEMPSENSOR_TYP_CALX_V__,\ ARM GAS /tmp/ccIEHjf0.s page 46 2539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __TEMPSENSOR_CALX_TEMP__,\ 2540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __VREFANALOG_VOLTAGE__,\ 2541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 2542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((( ( \ 2544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (int32_t)((((__TEMPSENSOR_ADC_DATA__) * (__VREFANALOG_VOLTAGE__)) \ 2545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__)) \ 2546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1000UL) \ 2547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** - \ 2548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (int32_t)(((__TEMPSENSOR_TYP_CALX_V__)) \ 2549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1000UL) \ 2550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) \ 2551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) / (int32_t)(__TEMPSENSOR_TYP_AVGSLOPE__) \ 2552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) + (int32_t)(__TEMPSENSOR_CALX_TEMP__) \ 2553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 2554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 2557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 2561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Exported functions --------------------------------------------------------*/ 2565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Functions ADC Exported Functions 2566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 2567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_DMA_Management ADC DMA management 2570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 2571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Function to help to configure DMA transfer from ADC: retrieve the 2575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC register address from ADC instance and a list of ADC registers 2576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * intended to be used (most commonly) with DMA transfer. 2577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note These ADC registers are data registers: 2578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when ADC conversion data is available in ADC data registers, 2579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC generates a DMA transfer request. 2580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This macro is intended to be used with LL DMA driver, refer to 2581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function "LL_DMA_ConfigAddresses()". 2582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: 2583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_DMA_ConfigAddresses(DMA1, 2584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_DMA_CHANNEL_1, 2585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_DMA_GetRegAddr(ADC1, LL_ADC_DMA_REG_REGULAR_DATA), 2586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (uint32_t)&< array or variable >, 2587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_DMA_DIRECTION_PERIPH_TO_MEMORY); 2588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with several ADC: in multimode, some devices 2589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use a different data register outside of ADC instance scope 2590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (common data register). This macro manages this register difference, 2591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * only ADC instance has to be set as parameter. 2592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_DMA_GetRegAddr\n 2593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CDR RDATA_MST LL_ADC_DMA_GetRegAddr\n 2594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_DMA_GetRegAddr 2595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/ccIEHjf0.s page 47 2596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Register This parameter can be one of the following values: 2597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA 2598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA_MULTI (1) 2599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 2600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) Available on devices with several ADC instances. 2601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval ADC register address 2602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) 2604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t data_reg_addr; 2606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (Register == LL_ADC_DMA_REG_REGULAR_DATA) 2608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Retrieve address of register DR */ 2610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** data_reg_addr = (uint32_t) & (ADCx->DR); 2611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* (Register == LL_ADC_DMA_REG_REGULAR_DATA_MULTI) */ 2613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Retrieve address of register CDR */ 2615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** data_reg_addr = (uint32_t) & ((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); 2616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return data_reg_addr; 2619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 2623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Common Configuration of ADC hierarchical scope: common to 2626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 2627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set parameter common to several ADC: Clock source and prescaler. 2631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, if ADC group injected is used, some 2632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * clock ratio constraints between ADC clock and AHB clock 2633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * must be respected. 2634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to reference manual. 2635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 2638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 2639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 2640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 2641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_SetCommonClock\n 2642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR PRESC LL_ADC_SetCommonClock 2643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param CommonClock This parameter can be one of the following values: 2646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 2647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 2648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 2649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 2650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 2651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 2652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 ARM GAS /tmp/ccIEHjf0.s page 48 2653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 2654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 2655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 2656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 2657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 2658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 2659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 2660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 2661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock) 2664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock); 2666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get parameter common to several ADC: Clock source and prescaler. 2670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_GetCommonClock\n 2671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR PRESC LL_ADC_GetCommonClock 2672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 2676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 2677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 2678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 2679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 2680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 2681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 2682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 2683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 2684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 2685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 2686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 2687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 2688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 2689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 2690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonClock(const ADC_Common_TypeDef *ADCxy_COMMON) 2692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC)); 2694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to internal 2698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channels (VrefInt, temperature sensor, ...). 2699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. 2700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 2703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, 2704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a delay is required for internal voltage reference and 2705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature sensor stabilization time. 2706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet. 2707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 2708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US. 2709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: ARM GAS /tmp/ccIEHjf0.s page 49 2710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For ADC conversion of internal channels, 2711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a sampling time minimum value is required. 2712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet. 2713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 2716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 2717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 2718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 2719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalCh\n 2720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR TSEN LL_ADC_SetCommonPathInternalCh\n 2721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR VBATEN LL_ADC_SetCommonPathInternalCh 2722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Path 2732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal); 2734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get parameter common to several ADC: measurement path to internal 2738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channels (VrefInt, temperature sensor, ...). 2739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. 2740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_GetCommonPathInternalCh\n 2743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR TSEN LL_ADC_GetCommonPathInternalCh\n 2744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR VBATEN LL_ADC_GetCommonPathInternalCh 2745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be a combination of the following values: 2748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(const ADC_Common_TypeDef *ADCxy_COMMON) 2754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN)); 2756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 2760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 2761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Add paths to the current configuration. 2762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. 2763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 2766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, ARM GAS /tmp/ccIEHjf0.s page 50 2767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a delay is required for internal voltage reference and 2768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature sensor stabilization time. 2769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet. 2770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 2771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US. 2772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: 2773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For ADC conversion of internal channels, 2774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a sampling time minimum value is required. 2775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet. 2776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChAdd\n 2777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR TSEN LL_ADC_SetCommonPathInternalChAdd\n 2778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR VBATEN LL_ADC_SetCommonPathInternalChAdd 2779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChAdd(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 2789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCxy_COMMON->CCR, PathInternal); 2791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 2795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 2796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Remove paths to the current configuration. 2797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. 2798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChRem\n 2801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR TSEN LL_ADC_SetCommonPathInternalChRem\n 2802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CCR VBATEN LL_ADC_SetCommonPathInternalChRem 2803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChRem(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 2813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCxy_COMMON->CCR, PathInternal); 2815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 2819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Instance Configuration of ADC hierarchical scope: ADC ins 2822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 2823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 51 2824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC calibration factor in the mode single-ended 2827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or differential (for devices with differential mode available). 2828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function is intended to set calibration parameters 2829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without having to perform a new calibration using 2830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref LL_ADC_StartCalibration(). 2831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with differential mode available: 2832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of offset is specific to each of 2833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 2834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (calibration factor must be specified for each of these 2835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * differential modes, if used afterwards and if the application 2836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * requires their calibration). 2837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of linearity is common to both 2838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 2839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (calibration factor can be specified only once). 2840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of setting calibration factors of both modes single ended 2841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and differential (parameter LL_ADC_BOTH_SINGLE_DIFF_ENDED): 2842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * both calibration factors must be concatenated. 2843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * To perform this processing, use helper macro 2844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(). 2845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled, without calibration on going, without conversion 2848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on group regular. 2849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_SetCalibrationOffsetFactor\n 2850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_SetCalibrationOffsetFactor 2851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 2852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 2853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 2854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 2855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOTH_SINGLE_DIFF_ENDED 2856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param CalibrationFactor Value between Min_Data=0x00 and Max_Data=0x7F 2857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCalibrationOffsetFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint 2860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT_RES13, 2863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK, 2864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CalibrationFactor << (((SingleDiff & ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK) >> ADC_SINGLED 2865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT, 2867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK, 2868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CalibrationFactor << (((SingleDiff & ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK) >> ADC_SINGLED 2869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC calibration factor in the mode single-ended 2874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or differential (for devices with differential mode available). 2875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Calibration factors are set by hardware after performing 2876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a calibration run using function @ref LL_ADC_StartCalibration(). 2877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with differential mode available: 2878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of offset is specific to each of 2879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 2880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of linearity is common to both ARM GAS /tmp/ccIEHjf0.s page 52 2881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 2882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_GetCalibrationOffsetFactor\n 2883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_GetCalibrationOffsetFactor 2884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 2885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 2886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 2887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 2888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x7F 2889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCalibrationOffsetFactor(const ADC_TypeDef *ADCx, uint32_t Single 2891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Retrieve bits with position in register depending on parameter */ 2893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "SingleDiff". */ 2894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameter used with mask "ADC_SINGLEDIFF_CALIB_FACTOR_MASK" because */ 2895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 2896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT_RES13, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) 2898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT, (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >> ((S 2900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC Linear calibration factor in the mode single-ended. 2905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function is intended to set linear calibration parameters 2906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without having to perform a new calibration using 2907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref LL_ADC_StartCalibration(). 2908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled, without calibration on going, without conversion 2911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on group regular. 2912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CALFACT2 LINCALFACT LL_ADC_SetCalibrationLinearFactor\n 2913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CALFACT2 LINCALFACT LL_ADC_SetCalibrationLinearFactor 2914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 2915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param LinearityWord This parameter can be one of the following values: 2916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD1 2917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD2 2918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD3 2919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD4 2920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD5 2921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD6 2922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param CalibrationFactor Value between Min_Data=0x00 and Max_Data=0x3FFFFFFF 2923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCalibrationLinearFactor(ADC_TypeDef *ADCx, uint32_t LinearityWord, u 2926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx != ADC3) 2929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t timeout_cpu_cycles = ADC_LINEARITY_BIT_TOGGLE_TIMEOUT; 2931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT2_RES14, ADC_CALFACT2_LINCALFACT, CalibrationFactor); 2932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, ADC_CR_ADCALLIN, LinearityWord); 2933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** while ((READ_BIT(ADCx->CR, LinearityWord) == 0UL) && (timeout_cpu_cycles > 0UL)) 2934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** timeout_cpu_cycles--; 2936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 53 2938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t timeout_cpu_cycles = ADC_LINEARITY_BIT_TOGGLE_TIMEOUT; 2940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT2, ADC_CALFACT2_LINCALFACT, CalibrationFactor); 2941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, ADC_CR_ADCALLIN, LinearityWord); 2942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** while ((READ_BIT(ADCx->CR, LinearityWord) == 0UL) && (timeout_cpu_cycles > 0UL)) 2943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** timeout_cpu_cycles--; 2945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC Linear calibration factor in the mode single-ended. 2951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Calibration factors are set by hardware after performing 2952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a calibration run using function @ref LL_ADC_StartCalibration(). 2953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CALFACT2 LINCALFACT LL_ADC_GetCalibrationLinearFactor\n 2954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CALFACT2 LINCALFACT LL_ADC_GetCalibrationLinearFactor 2955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 2956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param LinearityWord This parameter can be one of the following values: 2957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD1 2958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD2 2959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD3 2960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD4 2961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD5 2962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_LINEARITY_WORD6 2963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x3FFFFFFF 2964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCalibrationLinearFactor(ADC_TypeDef *ADCx, uint32_t LinearityWor 2966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t timeout_cpu_cycles = ADC_LINEARITY_BIT_TOGGLE_TIMEOUT; 2968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, LinearityWord); 2969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** while ((READ_BIT(ADCx->CR, LinearityWord) != 0UL) && (timeout_cpu_cycles > 0UL)) 2970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** timeout_cpu_cycles--; 2972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT2_RES14, ADC_CALFACT2_LINCALFACT)); 2975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 2976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT2, ADC_CALFACT2_LINCALFACT)); 2977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 2978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 2980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC resolution. 2981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to reference manual for alignments formats 2982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * dependencies to ADC resolutions. 2983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 2985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 2986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 2987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_SetResolution 2988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 2989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Resolution This parameter can be one of the following values: 2990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B 2991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 2992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B ARM GAS /tmp/ccIEHjf0.s page 54 2995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 2996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 2997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) 2998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_3) 3000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #elif defined(ADC_VER_V5_V90) 3004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC3_CFGR_RES, ((__LL_ADC12_RESOLUTION_TO_ADC3(Resolution) & (ADC_CFGR_ 3007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((DBGMCU->IDCODE & 0x30000000UL) == 0x10000000UL) /* Rev.Y */ 3011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* Rev.V */ 3015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (LL_ADC_RESOLUTION_8B == Resolution) 3017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution | 0x0000000CUL); 3019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_V90 */ 3027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((DBGMCU->IDCODE & 0x30000000UL) == 0x10000000UL) /* Rev.Y */ 3028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* Rev.V */ 3032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (LL_ADC_RESOLUTION_8B == Resolution) 3034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution | 0x0000000CUL); 3036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_X*/ 3044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC resolution. 3048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to reference manual for alignments formats 3049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * dependencies to ADC resolutions. 3050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_GetResolution 3051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/ccIEHjf0.s page 55 3052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_16B (1) 3054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_14B 3055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B (2) 3059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1): Specific to ADC instance: ADC1, ADC2 3060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2): Specific to ADC instance: ADC3 3061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetResolution(const ADC_TypeDef *ADCx) 3063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined (ADC_VER_V5_3) 3065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 3067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #elif defined(ADC_VER_V5_V90) 3069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC3_CFGR_RES)); 3072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)) == 0x0000001CUL) 3076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (LL_ADC_RESOLUTION_8B); 3078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 3082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_V90 */ 3086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((DBGMCU->IDCODE & 0x30000000UL) == 0x10000000UL) /* Rev.Y */ 3087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 3089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* Rev.V */ 3091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)) == 0x0000001CUL) 3093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (LL_ADC_RESOLUTION_8B); 3095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 3099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_X */ 3103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC low power mode. 3107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC low power modes: 3108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, ARM GAS /tmp/ccIEHjf0.s page 56 3109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary 3110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * in order to reduce power consumption. 3111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * New ADC conversion starts only when the previous 3112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 3113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 3114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * has been retrieved by user software. 3115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 3116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * other conversion. 3117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 3118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 3119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 3120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * applications. 3121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * How to use this low power mode: 3122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 3123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 3124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 3125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 3126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU 3127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). 3128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 3129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 3130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conversion to ensure that conversion is completed and 3131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 3132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion start. 3133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC low power mode "auto power-off" (feature available on 3134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * this device if parameter LL_ADC_LP_AUTOPOWEROFF is available): 3135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the ADC automatically powers-off after a conversion and 3136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * automatically wakes up when a new conversion is triggered 3137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (with startup time between trigger and start of sampling). 3138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This feature can be combined with low power mode "auto wait". 3139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 3140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 3141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of delay during which ADC was idle. 3142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 3143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * correspond to the current voltage level on the selected 3144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC channel. 3145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 3149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_SetLowPowerMode 3150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param LowPowerMode This parameter can be one of the following values: 3152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 3153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 3154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetLowPowerMode(ADC_TypeDef *ADCx, uint32_t LowPowerMode) 3157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_AUTDLY, LowPowerMode); 3159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC low power mode: 3163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC low power modes: 3164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, 3165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary ARM GAS /tmp/ccIEHjf0.s page 57 3166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * in order to reduce power consumption. 3167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * New ADC conversion starts only when the previous 3168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 3169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 3170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * has been retrieved by user software. 3171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 3172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * other conversion. 3173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 3174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 3175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 3176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * applications. 3177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * How to use this low power mode: 3178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 3179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 3180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 3181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 3182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU 3183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). 3184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 3185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 3186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conversion to ensure that conversion is completed and 3187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 3188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion start. 3189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC low power mode "auto power-off" (feature available on 3190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * this device if parameter LL_ADC_LP_AUTOPOWEROFF is available): 3191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the ADC automatically powers-off after a conversion and 3192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * automatically wakes up when a new conversion is triggered 3193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (with startup time between trigger and start of sampling). 3194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This feature can be combined with low power mode "auto wait". 3195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 3196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 3197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of delay during which ADC was idle. 3198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 3199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * correspond to the current voltage level on the selected 3200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC channel. 3201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_GetLowPowerMode 3202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 3205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 3206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetLowPowerMode(const ADC_TypeDef *ADCx) 3208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_AUTDLY)); 3210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC selected Channel. 3214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function set the pre-selection of channel configuration. 3215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Caution: Channel selections is dependent to ADC instance and IP version: 3216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For STM32H72x/3x This is applicable only for ADC1/ADC2 3217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For Rest of STM32H7xxx This is applicable only all the ADCs instances. 3218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 3219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 3221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 3222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 ARM GAS /tmp/ccIEHjf0.s page 58 3223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 3224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 3225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 3226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 3227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 3235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 3241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelPreselection(ADC_TypeDef *ADCx, uint32_t Channel) 3244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx != ADC3) 3247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ADC channels preselection */ 3249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADCx->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(Channel) & 0x1FUL)); 3250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 3252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* ADC channels preselection */ 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADCx->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(Channel) & 0x1FUL)); 3254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Gets ADC pre-selected Channel. 3259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function gets the pre-selected ADC channel. 3260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Caution: Channel selections is dependent to ADC instance and IP version: 3261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For STM32H72x/3x This is applicable only for ADC1/ADC2 3262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For Rest of STM32H7xxx This is applicable on all the ADCs instances. 3263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 3264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 3266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 3267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 3268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 3269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 3270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 3271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 3272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 ARM GAS /tmp/ccIEHjf0.s page 59 3280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 3286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval the preselection state of Channel (!= 0 : pre-selected, == 0 : not pre-selected) 3287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelPreselection(const ADC_TypeDef *ADCx, uint32_t Channel) 3289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx != ADC3) 3292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Gets preselected ADC channel */ 3294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->PCSEL_RES0, 1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(Channel) & 3295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 3299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 3301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Gets preselected ADC channel */ 3302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->PCSEL, 1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(Channel) & 0x1FU 3303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC selected offset number 1, 2, 3 or 4. 3308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function set the 2 items of offset configuration: 3309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC channel to which the offset programmed will be applied 3310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 3311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or group injected) 3312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Offset level (offset to be subtracted from the raw 3313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * converted data). 3314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 3315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * offset has to be left-aligned on bit 15 (handling maximum ADC resolution 16 bit), 3316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the LSB (right bits) are set to 0. 3317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function enables the offset, by default. It can be forced 3318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to disable state using function LL_ADC_SetOffsetState(). 3319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If a channel is mapped on several offsets numbers, only the offset 3320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with the lowest value is considered for the subtraction. 3321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 3325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some fast channels are available: fast analog inputs 3326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * coming from GPIO pads (ADC_IN0..5). 3327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_SetOffset\n 3328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR1 OFFSET1 LL_ADC_SetOffset\n 3329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR1 OFFSET1_EN LL_ADC_SetOffset\n 3330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_SetOffset\n 3331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_SetOffset\n 3332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffset\n 3333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_SetOffset\n 3334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_SetOffset\n 3335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffset\n 3336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_SetOffset\n ARM GAS /tmp/ccIEHjf0.s page 60 3337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_SetOffset\n 3338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffset 3339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 3346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 3347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 3348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 3349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 3350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 3351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 3352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 3360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 3366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 3367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 3368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 3369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 3370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 3371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 3372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 3373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 3374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 3375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 3376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF 3377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32 3380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 3387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel); 3388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, ARM GAS /tmp/ccIEHjf0.s page 61 3394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel); 3395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Channel to which the offset programmed will be applied 3401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 3402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or group injected) 3403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Usage of the returned channel number: 3404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 3405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 3406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 3407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 3408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 3409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 3410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * as parameter for another function. 3411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To get the channel number in decimal format: 3412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * process the returned value with the helper macro 3413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 3414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some fast channels are available: fast analog inputs 3415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * coming from GPIO pads (ADC_IN0..5). 3416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_GetOffsetChannel\n 3417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_GetOffsetChannel\n 3418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_GetOffsetChannel\n 3419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_GetOffsetChannel 3420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 3428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 3429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 3430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 3431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 3432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 3433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 3441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 3447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 3448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 3449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 3450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) ARM GAS /tmp/ccIEHjf0.s page 62 3451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 3452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 3453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 3454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 3455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 3456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual).\n 3457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1, 2) For ADC channel read back from ADC register, 3458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * comparison with internal channel parameter to be done 3459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 3460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetChannel(const ADC_TypeDef *ADCx, uint32_t Offsety) 3462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_CH); 3466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Offset level (offset to be subtracted from the raw 3471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * converted data). 3472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 3473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * offset has to be left-aligned on bit 15 (handling maximum ADC resolution 16 bit), 3474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the LSB (right bits) are set to 0. 3475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1 LL_ADC_GetOffsetLevel\n 3476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_GetOffsetLevel\n 3477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_GetOffsetLevel\n 3478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_GetOffsetLevel 3479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FFFFFF 3486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetLevel(const ADC_TypeDef *ADCx, uint32_t Offsety) 3488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1); 3492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set data right shift for the ADC selected offset number 1, 2, 3 or 4: 3497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * signed offset saturation if enabled or disabled. 3498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 RSHIFT LL_ADC_SetDataRightShift\n 3499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param RigthShift This parameter can be one of the following values: 3506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE 3507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE ARM GAS /tmp/ccIEHjf0.s page 63 3508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned None 3509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthSh 3511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RS 3513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get data right shift for the ADC selected offset number 1, 2, 3 or 4: 3517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * signed offset saturation if enabled or disabled. 3518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 RSHIFT LL_ADC_GetDataRightShift\n 3519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE 3527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE 3528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetDataRightShift(const ADC_TypeDef *ADCx, uint32_t Offsety) 3530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)((READ_BIT(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 << (Offsety & 0x1FUL)))) >> (Offsety 3532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set signed saturation for the ADC selected offset number 1, 2, 3 or 4: 3536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * signed offset saturation if enabled or disabled. 3537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 SSATE LL_ADC_SetOffsetSignedSaturation\n 3538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 SSATE LL_ADC_SetOffsetSignedSaturation\n 3539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 SSATE LL_ADC_SetOffsetSignedSaturation\n 3540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 SSATE LL_ADC_SetOffsetSignedSaturation 3541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OffsetSignedSaturation This parameter can be one of the following values: 3548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE 3549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE 3550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned None 3551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t 3553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Function not available on this instance */ 3558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation); 3564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 64 3565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get signed saturation for the ADC selected offset number 1, 2, 3 or 4: 3569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * signed offset saturation if enabled or disabled. 3570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 SSATE LL_ADC_GetOffsetSignedSaturation\n 3571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 SSATE LL_ADC_GetOffsetSignedSaturation\n 3572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 SSATE LL_ADC_GetOffsetSignedSaturation\n 3573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 SSATE LL_ADC_GetOffsetSignedSaturation 3574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE 3582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE 3583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSignedSaturation(const ADC_TypeDef *ADCx, uint32_t Offsety 3585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Function not available on this instance */ 3590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 3591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_SSATE); 3597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * choose offset saturation mode. 3604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 3608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_SetOffsetSaturation\n 3609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 SATEN LL_ADC_SetOffsetSaturation\n 3610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 SATEN LL_ADC_SetOffsetSaturation\n 3611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 SATEN LL_ADC_SetOffsetSaturation 3612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OffsetSaturation This parameter can be one of the following values: 3619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 3620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 3621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None ARM GAS /tmp/ccIEHjf0.s page 65 3622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Offse 3624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_OFR1_SATEN, 3631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** OffsetSaturation); 3632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * offset saturation if enabled or disabled. 3638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_GetOffsetSaturation\n 3639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 SATEN LL_ADC_GetOffsetSaturation\n 3640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 SATEN LL_ADC_GetOffsetSaturation\n 3641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 SATEN LL_ADC_GetOffsetSaturation 3642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 3650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 3651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSaturation(const ADC_TypeDef *ADCx, uint32_t Offsety) 3653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC3_OFR1_SATEN); 3659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** }else 3660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 3662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * choose offset sign. 3668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 3672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_SetOffsetSign\n 3673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_SetOffsetSign\n 3674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_SetOffsetSign\n 3675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_SetOffsetSign 3676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 ARM GAS /tmp/ccIEHjf0.s page 66 3679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OffsetSign This parameter can be one of the following values: 3683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 3684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 3685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSign(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSign) 3688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_OFR1_OFFSETPOS, 3695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** OffsetSign); 3696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * offset sign if positive or negative. 3702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_GetOffsetSign\n 3703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_GetOffsetSign\n 3704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_GetOffsetSign\n 3705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_GetOffsetSign 3706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 3714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 3715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSign(const ADC_TypeDef *ADCx, uint32_t Offsety) 3717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC3_OFR1_OFFSETPOS); 3723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 3727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * force offset state disable or enable 3733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without modifying offset channel or offset value. 3734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function should be needed only in case of offset to be 3735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * enabled-disabled dynamically, and should not be needed in other cases: ARM GAS /tmp/ccIEHjf0.s page 67 3736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function LL_ADC_SetOffset() automatically enables the offset. 3737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 3741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_SetOffsetState\n 3742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffsetState\n 3743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffsetState\n 3744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffsetState 3745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OffsetState This parameter can be one of the following values: 3752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE 3753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 3754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetState(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetStat 3757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_OFR1_OFFSET1_EN, 3763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** OffsetState); 3764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 3768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_SSATE, 3769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** OffsetState); 3770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * offset state disabled or enabled. 3776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_GetOffsetState\n 3777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_GetOffsetState\n 3778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_GetOffsetState\n 3779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_GetOffsetState 3780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE 3788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 3789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetState(const ADC_TypeDef *ADCx, uint32_t Offsety) 3791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); ARM GAS /tmp/ccIEHjf0.s page 68 3793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 3794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC3_OFR1_OFFSET1_EN); 3796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_SSATE); 3800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 3807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Regular Configuration of ADC hierarchical scope: gr 3810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 3811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger source: 3815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 3816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * external interrupt line). 3817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 3818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * also set trigger polarity to rising edge 3819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 3820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * STM32 families having this setting set by HW default value). 3821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In case of need to modify trigger edge, use 3822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function @ref LL_ADC_REG_SetTriggerEdge(). 3823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 3824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * depends on timers availability on the selected device. 3825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 3829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_SetTriggerSource\n 3830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_SetTriggerSource 3831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 3833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 3834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 3835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 3836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 3837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 3838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 3839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 3840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 3841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 3842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 3843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 3844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 3845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 3846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 3847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 3848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 3849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 ARM GAS /tmp/ccIEHjf0.s page 69 3850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 3851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 3852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM1_OUT 3853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM2_OUT 3854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM3_OUT 3855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 3858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL, TriggerSource); 3860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source: 3864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 3865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * external interrupt line). 3866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To determine whether group regular trigger source is 3867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or external, without detail 3868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of which peripheral is selected as external trigger, 3869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (equivalent to 3870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * "if(LL_ADC_REG_GetTriggerSource(ADC1) == LL_ADC_REG_TRIG_SOFTWARE)") 3871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_REG_IsTriggerSourceSWStart. 3872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 3873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * depends on timers availability on the selected device. 3874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_GetTriggerSource\n 3875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_GetTriggerSource 3876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 3879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 3880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 3881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 3882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 3883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 3884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 3885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 3886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 3887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 3888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 3889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 3890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 3891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 3892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 3893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 3894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 3895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 3896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 3897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM1_OUT 3898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM2_OUT 3899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM3_OUT 3900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerSource(const ADC_TypeDef *ADCx) 3902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t TriggerSource = READ_BIT(ADCx->CFGR, ADC_CFGR_EXTSEL | ADC_CFGR_EXTEN); 3904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 3906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to ADC_CFGR_EXTEN {0; 1; 2; 3}. */ ARM GAS /tmp/ccIEHjf0.s page 70 3907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t ShiftExten = ((TriggerSource & ADC_CFGR_EXTEN) >> (ADC_REG_TRIG_EXTEN_BITOFFSET_POS - 2U 3908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bitfield corresponding to ADC_CFGR_EXTEN and ADC_CFGR_EXTSEL */ 3910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to match with triggers literals definition. */ 3911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((TriggerSource 3912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** & (ADC_REG_TRIG_SOURCE_MASK >> ShiftExten) & ADC_CFGR_EXTSEL) 3913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | ((ADC_REG_TRIG_EDGE_MASK >> ShiftExten) & ADC_CFGR_EXTEN) 3914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 3915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source internal (SW start) 3919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or external. 3920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of group regular trigger source set to external trigger, 3921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 3922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_REG_GetTriggerSource(). 3923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_IsTriggerSourceSWStart 3924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 3926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Value "1" if trigger source SW start. 3927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(const ADC_TypeDef *ADCx) 3929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1 3931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger polarity. 3935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. 3936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 3940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_SetTriggerEdge 3941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 3943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 3944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 3945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 3946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 3949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN, ExternalTriggerEdge); 3951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger polarity. 3955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. 3956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_GetTriggerEdge 3957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 3960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 3961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 3962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerEdge(const ADC_TypeDef *ADCx) ARM GAS /tmp/ccIEHjf0.s page 71 3964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN)); 3966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 3969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 3970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC sampling mode. 3971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function set the ADC conversion sampling mode 3972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This mode applies to regular group only. 3973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Set sampling mode is applied to all conversion of regular group. 3974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 3976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 3978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 BULB LL_ADC_REG_SetSamplingMode\n 3979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 SMPTRIG LL_ADC_REG_SetSamplingMode 3980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 3981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SamplingMode This parameter can be one of the following values: 3982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_NORMAL 3983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_BULB 3984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED 3985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 3986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 3987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSamplingMode(ADC_TypeDef *ADCx, uint32_t SamplingMode) 3988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx != ADC3) 3990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Function not available on this instance */ 3992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 3994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC3_CFGR2_BULB | ADC3_CFGR2_SMPTRIG, SamplingMode); 3996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 3999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular sequencer length and scan direction. 4002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 4003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - For devices with sequencer fully configurable 4004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 4005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are configurable. 4007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function performs configuration of: 4008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Sequencer ranks are selected using 4012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 4013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - For devices with sequencer not fully configurable 4014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 4015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are defined by channel number. 4017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function performs configuration of: 4018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is 4019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * defined by number of channels set in the sequence, 4020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. ARM GAS /tmp/ccIEHjf0.s page 72 4021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). 4022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from lowest channel number to 4024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * highest channel number). 4025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Sequencer ranks are selected using 4026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 4027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion on only 1 channel. 4029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 4033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_SetSequencerLength 4034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 4036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 4037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 4038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 4039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 4040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 4041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 4042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 4043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS 4044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 4045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS 4046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 4047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 4048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 4049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 4050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 4051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 4052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 4055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->SQR1, ADC_SQR1_L, SequencerNbRanks); 4057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular sequencer length and scan direction. 4061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 4062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - For devices with sequencer fully configurable 4063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 4064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are configurable. 4066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function retrieves: 4067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Sequencer ranks are selected using 4071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 4072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - For devices with sequencer not fully configurable 4073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 4074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are defined by channel number. 4076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function retrieves: 4077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is ARM GAS /tmp/ccIEHjf0.s page 73 4078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * defined by number of channels set in the sequence, 4079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. 4080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). 4081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from lowest channel number to 4083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * highest channel number). 4084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Sequencer ranks are selected using 4085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 4086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion on only 1 channel. 4088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_GetSequencerLength 4089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 4092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 4093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 4094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 4095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 4096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 4097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 4098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS 4099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 4100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS 4101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 4102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 4103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 4104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 4105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 4106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 4107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerLength(const ADC_TypeDef *ADCx) 4109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->SQR1, ADC_SQR1_L)); 4111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular sequencer discontinuous mode: 4115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number of ranks. 4117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 4118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 4119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note It is not possible to enable both ADC auto-injected mode 4120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and ADC group regular sequencer discontinuous mode. 4121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 4125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_SetSequencerDiscont\n 4126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_SetSequencerDiscont 4127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 4129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 4130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 4131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 4132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 4133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS 4134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS ARM GAS /tmp/ccIEHjf0.s page 74 4135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 4136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 4137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS 4138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 4141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM, SeqDiscont); 4143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular sequencer discontinuous mode: 4147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number of ranks. 4149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_GetSequencerDiscont\n 4150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_GetSequencerDiscont 4151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 4154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 4155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 4156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 4157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS 4158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS 4159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 4160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 4161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS 4162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerDiscont(const ADC_TypeDef *ADCx) 4164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM)); 4166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular sequence: channel on the selected 4170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan sequence rank. 4171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function performs configuration of: 4172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Channels ordering into each rank of scan sequence: 4173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * whatever channel can be placed into whatever rank. 4174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 4175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * fully configurable: sequencer length and each rank 4176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * affectation to a channel are configurable. 4177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 4178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * enabled separately. 4183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 4188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_SetSequencerRanks\n 4189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_SetSequencerRanks\n 4190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_SetSequencerRanks\n 4191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_SetSequencerRanks\n ARM GAS /tmp/ccIEHjf0.s page 75 4192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_SetSequencerRanks\n 4193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_SetSequencerRanks\n 4194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_SetSequencerRanks\n 4195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_SetSequencerRanks\n 4196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_SetSequencerRanks\n 4197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_SetSequencerRanks\n 4198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_SetSequencerRanks\n 4199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_SetSequencerRanks\n 4200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_SetSequencerRanks\n 4201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_SetSequencerRanks\n 4202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_SetSequencerRanks\n 4203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_SetSequencerRanks 4204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 4207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 4208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 4209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 4210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 4211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 4212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 4213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 4214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 4215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 4216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 4217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 4218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 4219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 4220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 4221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 4222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 4224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 4225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 4226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 4227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 4228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 4229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 4243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 4244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 4245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 4246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 4247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 4248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ARM GAS /tmp/ccIEHjf0.s page 76 4249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 4250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 4251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 4252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 4253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channe 4256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 29 .loc 2 4256 1 view -0 30 .cfi_startproc 31 @ args = 0, pretend = 0, frame = 0 32 @ frame_needed = 0, uses_anonymous_args = 0 33 @ link register save eliminated. 34 .loc 2 4256 1 is_stmt 0 view .LVU1 35 0000 10B4 push {r4} 36 .cfi_def_cfa_offset 4 37 .cfi_offset 4, -4 4257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 4258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* in register and register position depending on parameter "Rank". */ 4259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 4260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* other bits reserved for other purpose. */ 4261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> A 38 .loc 2 4261 3 is_stmt 1 view .LVU2 39 .loc 2 4261 25 is_stmt 0 view .LVU3 40 0002 3030 adds r0, r0, #48 41 .LVL1: 42 .loc 2 4261 25 view .LVU4 43 0004 0B0A lsrs r3, r1, #8 44 0006 9B00 lsls r3, r3, #2 45 0008 03F00C03 and r3, r3, #12 46 .LVL2: 4262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 47 .loc 2 4263 3 is_stmt 1 view .LVU5 48 000c C458 ldr r4, [r0, r3] 49 000e 01F01F01 and r1, r1, #31 50 .LVL3: 51 .loc 2 4263 3 is_stmt 0 view .LVU6 52 0012 4FF01F0C mov ip, #31 53 0016 0CFA01FC lsl ip, ip, r1 54 001a 24EA0C0C bic ip, r4, ip 55 001e C2F38462 ubfx r2, r2, #26, #5 56 .LVL4: 57 .loc 2 4263 3 view .LVU7 58 0022 8A40 lsls r2, r2, r1 59 0024 4CEA0202 orr r2, ip, r2 60 0028 C250 str r2, [r0, r3] 4264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK), 4265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Ra 4266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 61 .loc 2 4266 1 view .LVU8 62 002a 5DF8044B ldr r4, [sp], #4 63 .cfi_restore 4 64 .cfi_def_cfa_offset 0 65 002e 7047 bx lr 66 .cfi_endproc 67 .LFE177: ARM GAS /tmp/ccIEHjf0.s page 77 69 .section .text.LL_ADC_SetChannelSamplingTime,"ax",%progbits 70 .align 1 71 .syntax unified 72 .thumb 73 .thumb_func 75 LL_ADC_SetChannelSamplingTime: 76 .LVL5: 77 .LFB201: 4267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular sequence: channel on the selected 4270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan sequence rank. 4271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 4272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * fully configurable: sequencer length and each rank 4273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * affectation to a channel are configurable. 4274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 4275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Usage of the returned channel number: 4278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 4279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 4280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 4281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 4282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 4284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * as parameter for another function. 4285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To get the channel number in decimal format: 4286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * process the returned value with the helper macro 4287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_GetSequencerRanks\n 4289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_GetSequencerRanks\n 4290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_GetSequencerRanks\n 4291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_GetSequencerRanks\n 4292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_GetSequencerRanks\n 4293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_GetSequencerRanks\n 4294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_GetSequencerRanks\n 4295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_GetSequencerRanks\n 4296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_GetSequencerRanks\n 4297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_GetSequencerRanks\n 4298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_GetSequencerRanks\n 4299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_GetSequencerRanks\n 4300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_GetSequencerRanks\n 4301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_GetSequencerRanks\n 4302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_GetSequencerRanks\n 4303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_GetSequencerRanks 4304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 4307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 4308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 4309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 4310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 4311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 4312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 4313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 4314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 4315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 ARM GAS /tmp/ccIEHjf0.s page 78 4316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 4317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 4318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 4319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 4320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 4321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 4322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 4324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 4325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 4326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 4327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 4328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 4329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 4343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 4344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 4345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 4346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 4347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 4348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 4349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 4350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 4351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 4352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual).\n 4353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1, 2) For ADC channel read back from ADC register, 4354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * comparison with internal channel parameter to be done 4355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 4356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerRanks(const ADC_TypeDef *ADCx, uint32_t Rank) 4358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK 4360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)((READ_BIT(*preg, 4362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MA 4363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (Rank & ADC_REG_RANK_ID_SQRX_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 4364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 4365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC continuous conversion mode on ADC group regular. 4369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 4370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - single mode: one conversion per trigger 4371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - continuous mode: after the first trigger, following 4372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conversions launched successively automatically. ARM GAS /tmp/ccIEHjf0.s page 79 4373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 4374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 4375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 4379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_SetContinuousMode 4380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Continuous This parameter can be one of the following values: 4382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 4383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 4384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetContinuousMode(ADC_TypeDef *ADCx, uint32_t Continuous) 4387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_CONT, Continuous); 4389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC continuous conversion mode on ADC group regular. 4393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 4394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - single mode: one conversion per trigger 4395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - continuous mode: after the first trigger, following 4396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * conversions launched successively automatically. 4397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_GetContinuousMode 4398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 4401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 4402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetContinuousMode(const ADC_TypeDef *ADCx) 4404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_CONT)); 4406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC data transfer mode 4409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Conversion data can be either: 4410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Available in Data Register 4411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred by DMA in one shot mode 4412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred by DMA in circular mode 4413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred to DFSDM data register 4414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DMNGT LL_ADC_REG_SetDataTransferMode 4415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param DataTransferMode Select Data Management configuration 4417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode) 4420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode); 4422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 4425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable DMA requests for ADC3. 4427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_SetDMATransfer\n 4428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None ARM GAS /tmp/ccIEHjf0.s page 80 4430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableDMAReq (ADC_TypeDef *ADCx) 4432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->CFGR, ADC3_CFGR_DMAEN); 4434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableDMAReq(ADC_TypeDef *ADCx) 4437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT (ADCx->CFGR, ADC3_CFGR_DMAEN); 4439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsEnabledDMAReq (const ADC_TypeDef *ADCx) 4442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CFGR, ADC3_CFGR_DMAEN) == (ADC3_CFGR_DMAEN)) ? 1UL : 0UL); 4444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular conversion data transfer: no transfer or 4447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 4448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 4449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode: 4450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 4451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when number of DMA data transfers (number of 4452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions) is reached. 4453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 4454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 4455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * whatever number of DMA data transfers (number of 4456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions). 4457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 4458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 4459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode non-circular: 4460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 4461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 4462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (overrun flag and interruption if enabled). 4463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 4464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * settings are available using function @ref LL_ADC_SetMultiDMATransfer(). 4465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 4466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 4467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 4471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_SetDMATransferMode\n 4472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_SetDMATransferMode 4473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param DMATransfer This parameter can be one of the following values: 4475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_NONE 4476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_LIMITED 4477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_UNLIMITED 4478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetDMATransferMode(ADC_TypeDef *ADCx, uint32_t DMATransfer) 4481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 4483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC3_CFGR_DMAEN | ADC3_CFGR_DMACFG, DMATransfer); 4485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 81 4487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data transfer: no transfer or 4490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 4491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 4492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode: 4493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 4494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when number of DMA data transfers (number of 4495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions) is reached. 4496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 4497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 4498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * whatever number of DMA data transfers (number of 4499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions). 4500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 4501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 4502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode non-circular: 4503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 4504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 4505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (overrun flag and interruption if enabled). 4506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 4507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * settings are available using function @ref LL_ADC_GetMultiDMATransfer(). 4508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 4509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 4510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_GetDMATransfer\n 4511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_GetDMATransfer 4512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_NONE 4515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_LIMITED 4516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC3_REG_DMA_TRANSFER_UNLIMITED 4517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransferMode(const ADC_TypeDef *ADCx) 4519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 4521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC3_CFGR_DMAEN | ADC3_CFGR_DMACFG)); 4523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 4525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 4527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 4531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC data transfer mode 4534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Conversion data can be either: 4535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Available in Data Register 4536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred by DMA in one shot mode 4537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred by DMA in circular mode 4538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Transferred to DFSDM data register 4539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR DMNGT LL_ADC_REG_GetDataTransferMode 4540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DR_TRANSFER 4543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED ARM GAS /tmp/ccIEHjf0.s page 82 4544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED 4545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DFSDM_TRANSFER 4546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetDataTransferMode(const ADC_TypeDef *ADCx) 4548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DMNGT)); 4550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group regular behavior in case of overrun: 4555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * data preserved or overwritten. 4556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Compatibility with devices without feature overrun: 4557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * other devices without this feature have a behavior 4558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * equivalent to data overwritten. 4559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * The default setting of overrun is data preserved. 4560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Therefore, for compatibility with all devices, parameter 4561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * overrun should be set to data overwritten. 4562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 4566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_SetOverrun 4567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Overrun This parameter can be one of the following values: 4569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 4570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 4571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetOverrun(ADC_TypeDef *ADCx, uint32_t Overrun) 4574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_OVRMOD, Overrun); 4576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular behavior in case of overrun: 4580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * data preserved or overwritten. 4581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_GetOverrun 4582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 4585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 4586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetOverrun(const ADC_TypeDef *ADCx) 4588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_OVRMOD)); 4590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 4594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Injected Configuration of ADC hierarchical scope: g 4597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 4598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** ARM GAS /tmp/ccIEHjf0.s page 83 4601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger source: 4602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * external interrupt line). 4604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 4605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * also set trigger polarity to rising edge 4606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 4607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * STM32 families having this setting set by HW default value). 4608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In case of need to modify trigger edge, use 4609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * function @ref LL_ADC_INJ_SetTriggerEdge(). 4610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * depends on timers availability on the selected device. 4612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on either groups regular or injected. 4616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_SetTriggerSource\n 4617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_SetTriggerSource 4618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 4620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 4621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 4622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 4623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 4624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 4625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 4626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 4627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 4628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 4629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 4630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 4631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 4632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 4633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 4634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 4635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 4636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 4637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 4638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 4639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM1_OUT 4640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM2_OUT 4641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM3_OUT 4642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 4645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN, TriggerSource); 4647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source: 4651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * external interrupt line). 4653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note To determine whether group injected trigger source is 4654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal (SW start) or external, without detail 4655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of which peripheral is selected as external trigger, 4656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (equivalent to 4657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * "if(LL_ADC_INJ_GetTriggerSource(ADC1) == LL_ADC_INJ_TRIG_SOFTWARE)") ARM GAS /tmp/ccIEHjf0.s page 84 4658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_INJ_IsTriggerSourceSWStart. 4659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * depends on timers availability on the selected device. 4661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_GetTriggerSource\n 4662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_GetTriggerSource 4663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 4666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 4667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 4668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 4669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 4670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 4671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 4672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 4673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 4674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 4675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 4676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 4677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 4678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 4679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 4680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 4681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 4682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 4683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 4684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM1_OUT 4685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM2_OUT 4686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM3_OUT 4687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerSource(const ADC_TypeDef *ADCx) 4689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t TriggerSource = READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN); 4691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 4693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* corresponding to ADC_JSQR_JEXTEN {0; 1; 2; 3}. */ 4694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t ShiftJexten = ((TriggerSource & ADC_JSQR_JEXTEN) >> (ADC_INJ_TRIG_EXTEN_BITOFFSET_POS - 4695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bitfield corresponding to ADC_JSQR_JEXTEN and ADC_JSQR_JEXTSEL */ 4697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to match with triggers literals definition. */ 4698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((TriggerSource 4699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** & (ADC_INJ_TRIG_SOURCE_MASK >> ShiftJexten) & ADC_JSQR_JEXTSEL) 4700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | ((ADC_INJ_TRIG_EDGE_MASK >> ShiftJexten) & ADC_JSQR_JEXTEN) 4701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 4702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source internal (SW start) 4706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** or external 4707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of group injected trigger source set to external trigger, 4708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 4709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_INJ_GetTriggerSource. 4710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_IsTriggerSourceSWStart 4711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 4713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Value "1" if trigger source SW start. 4714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 85 4715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsTriggerSourceSWStart(const ADC_TypeDef *ADCx) 4716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTEN) == (LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTEN)) ? 4718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger polarity. 4722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 4723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on either groups regular or injected. 4727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_SetTriggerEdge 4728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 4730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 4731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 4732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 4733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 4736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTEN, ExternalTriggerEdge); 4738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger polarity. 4742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 4743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_GetTriggerEdge 4744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 4747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 4748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 4749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerEdge(const ADC_TypeDef *ADCx) 4751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTEN)); 4753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected sequencer length and scan direction. 4757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function performs configuration of: 4758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion on only 1 channel. 4763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on either groups regular or injected. 4767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_SetSequencerLength 4768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 4770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 4771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS ARM GAS /tmp/ccIEHjf0.s page 86 4772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 4773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 4774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 4777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JL, SequencerNbRanks); 4779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected sequencer length and scan direction. 4783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function retrieves: 4784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion on only 1 channel. 4789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_GetSequencerLength 4790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 4793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 4794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 4795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 4796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerLength(const ADC_TypeDef *ADCx) 4798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JL)); 4800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected sequencer discontinuous mode: 4804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number of ranks. 4806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 4807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 4808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_SetSequencerDiscont 4809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 4811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 4812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK 4813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 4816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JDISCEN, SeqDiscont); 4818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected sequencer discontinuous mode: 4822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * number of ranks. 4824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_GetSequencerDiscont 4825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 4828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK ARM GAS /tmp/ccIEHjf0.s page 87 4829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerDiscont(const ADC_TypeDef *ADCx) 4831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JDISCEN)); 4833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected sequence: channel on the selected 4837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence rank. 4838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * enabled separately. 4843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some fast channels are available: fast analog inputs 4845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * coming from GPIO pads (ADC_IN0..5). 4846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on either groups regular or injected. 4850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_SetSequencerRanks\n 4851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n 4852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n 4853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks 4854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 4857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 4858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 4859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 4860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 4862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 4863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 4864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 4865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 4866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 4867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 4881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 4882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 4883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 4884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 4885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) ARM GAS /tmp/ccIEHjf0.s page 88 4886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 4887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 4888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 4889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 4890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 4891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 4892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channe 4894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 4896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* in register depending on parameter "Rank". */ 4897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 4898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* other bits reserved for other purpose. */ 4899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 4900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_INJ 4901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Ra 4902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected sequence: channel on the selected 4906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequence rank. 4907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Usage of the returned channel number: 4910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 4911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 4912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 4913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 4914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 4916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * as parameter for another function. 4917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To get the channel number in decimal format: 4918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * process the returned value with the helper macro 4919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_GetSequencerRanks\n 4921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_GetSequencerRanks\n 4922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_GetSequencerRanks\n 4923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_GetSequencerRanks 4924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 4927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 4928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 4929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 4930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 4932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 4933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 4934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 4935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 4936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 4937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 ARM GAS /tmp/ccIEHjf0.s page 89 4943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 4951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 4952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 4953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 4954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 4955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 4956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 4957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 4958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 4959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 4960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual).\n 4961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1, 2) For ADC channel read back from ADC register, 4962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * comparison with internal channel parameter to be done 4963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 4964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 4965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(const ADC_TypeDef *ADCx, uint32_t Rank) 4966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)((READ_BIT(ADCx->JSQR, 4968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << 4969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (Rank & ADC_INJ_RANK_ID_JSQR_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 4970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 4971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 4974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger: 4975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * independent or from ADC group regular. 4976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This mode can be used to extend number of data registers 4977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * updated after one ADC conversion trigger and with data 4978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * permanently kept (not erased by successive conversions of scan of 4979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC sequencer ranks), up to 5 data registers: 4980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 1 data register on ADC group regular, 4 data registers 4981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on ADC group injected. 4982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC group injected injected trigger source is set to an 4983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * external trigger, this feature must be must be set to 4984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * independent trigger. 4985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC group injected automatic trigger is compliant only with 4986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * group injected trigger source set to SW start, without any 4987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * further action on ADC group injected conversion start or stop: 4988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * in this case, ADC group injected is controlled only 4989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * from ADC group regular. 4990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 4991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 4992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 4994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 4996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_SetTrigAuto 4997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 4998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param TrigAuto This parameter can be one of the following values: 4999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT ARM GAS /tmp/ccIEHjf0.s page 90 5000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 5001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTrigAuto(ADC_TypeDef *ADCx, uint32_t TrigAuto) 5004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JAUTO, TrigAuto); 5006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger: 5010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * independent or from ADC group regular. 5011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_GetTrigAuto 5012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT 5015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 5016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTrigAuto(const ADC_TypeDef *ADCx) 5018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JAUTO)); 5020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC group injected contexts queue mode. 5024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 5025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - group injected trigger 5026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - sequencer length 5027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - sequencer ranks 5028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If contexts queue is disabled: 5029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - only 1 sequence can be configured 5030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and is active perpetually. 5031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If contexts queue is enabled: 5032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - up to 2 contexts can be queued 5033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * and are checked in and out as a FIFO stack (first-in, first-out). 5034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - If a new context is set when queues is full, error is triggered 5035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * by interruption "Injected Queue Overflow". 5036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Two behaviors are possible when all contexts have been processed: 5037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the contexts queue can maintain the last context active perpetually 5038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or can be empty and injected group triggers are disabled. 5039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Triggers can be only external (not internal SW start) 5040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Caution: The sequence must be fully configured in one time 5041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (one write of register JSQR makes a check-in of a new context 5042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * into the queue). 5043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Therefore functions to set separately injected trigger and 5044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sequencer channels cannot be used, register JSQR must be set 5045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * using function @ref LL_ADC_INJ_ConfigQueueContext(). 5046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This parameter can be modified only when no conversion is on going 5047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 5048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note A modification of the context mode (bit JQDIS) causes the contexts 5049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * queue to be flushed and the register JSQR is cleared. 5050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 5054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_SetQueueMode\n 5055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_SetQueueMode 5056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/ccIEHjf0.s page 91 5057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param QueueMode This parameter can be one of the following values: 5058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 5059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 5060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 5061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetQueueMode(ADC_TypeDef *ADCx, uint32_t QueueMode) 5064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS, QueueMode); 5066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected context queue mode. 5070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_GetQueueMode\n 5071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_GetQueueMode 5072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 5075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 5076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 5077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetQueueMode(const ADC_TypeDef *ADCx) 5079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS)); 5081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set one context on ADC group injected that will be checked in 5085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * contexts queue. 5086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 5087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - group injected trigger 5088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - sequencer length 5089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - sequencer ranks 5090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function is intended to be used when contexts queue is enabled, 5091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * because the sequence must be fully configured in one time 5092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (functions to set separately injected trigger and sequencer channels 5093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * cannot be used): 5094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to function @ref LL_ADC_INJ_SetQueueMode(). 5095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In the contexts queue, only the active context can be read. 5096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * The parameters of this function can be read using functions: 5097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerSource() 5098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerEdge() 5099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetSequencerRanks() 5100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 5101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 5102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * enabled separately. 5103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 5104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some fast channels are available: fast analog inputs 5105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * coming from GPIO pads (ADC_IN0..5). 5106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on either groups regular or injected. 5110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_ConfigQueueContext\n 5111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_ConfigQueueContext\n 5112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JL LL_ADC_INJ_ConfigQueueContext\n 5113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ1 LL_ADC_INJ_ConfigQueueContext\n ARM GAS /tmp/ccIEHjf0.s page 92 5114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_ConfigQueueContext\n 5115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_ConfigQueueContext\n 5116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_ConfigQueueContext 5117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 5119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 5120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 5121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 5122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 5123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 5124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 5125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 5126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 5127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 5128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 5129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 5130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 5131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 5132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 5133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 5134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 5135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 5136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 5137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 5138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM1_OUT 5139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM2_OUT 5140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM3_OUT 5141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 5142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 5143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 5144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 5145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Note: This parameter is discarded in case of SW start: 5147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * parameter "TriggerSource" set to "LL_ADC_INJ_TRIG_SOFTWARE". 5148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 5149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 5150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 5151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 5152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 5153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank1_Channel This parameter can be one of the following values: 5154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 ARM GAS /tmp/ccIEHjf0.s page 93 5171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank2_Channel This parameter can be one of the following values: 5185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank3_Channel This parameter can be one of the following values: 5216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 ARM GAS /tmp/ccIEHjf0.s page 94 5228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank4_Channel This parameter can be one of the following values: 5247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_ConfigQueueContext(ADC_TypeDef *ADCx, 5280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t TriggerSource, 5281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t ExternalTriggerEdge, 5282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t SequencerNbRanks, 5283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Rank1_Channel, 5284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Rank2_Channel, ARM GAS /tmp/ccIEHjf0.s page 95 5285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Rank3_Channel, 5286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t Rank4_Channel) 5287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "Rankx_Channel" with bits position */ 5289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* in register depending on literal "LL_ADC_INJ_RANK_x". */ 5290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "Rankx_Channel" and "LL_ADC_INJ_RANK_x" are used with masks */ 5291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* because containing other bits reserved for other purpose. */ 5292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* If parameter "TriggerSource" is set to SW start, then parameter */ 5293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "ExternalTriggerEdge" is discarded. */ 5294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t is_trigger_not_sw = (uint32_t)((TriggerSource != LL_ADC_INJ_TRIG_SOFTWARE) ? 1UL : 0UL); 5295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 5296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JEXTSEL | 5297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JEXTEN | 5298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JSQ4 | 5299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JSQ3 | 5300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JSQ2 | 5301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JSQ1 | 5302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JSQR_JL, 5303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (TriggerSource & ADC_JSQR_JEXTSEL) | 5304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ExternalTriggerEdge * (is_trigger_not_sw)) | 5305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((Rank4_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((Rank3_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((Rank2_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (((Rank1_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SequencerNbRanks 5310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 5315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_Channels Configuration of ADC hierarchical scope: channels 5318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 5319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set sampling time of the selected ADC channel 5323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Unit: ADC clock cycles. 5324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 5325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. 5326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of internal channel (VrefInt, TempSensor, ...) to be 5327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * converted: 5328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * sampling time constraints must be respected (sampling time can be 5329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * adjusted in function of ADC clock frequency and sampling time 5330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * setting). 5331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet for timings values (parameters TS_vrefint, 5332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TS_temp, ...). 5333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 5334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 5335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 5336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 5337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 5338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 5339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC conversion of internal channel (VrefInt, 5340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temperature sensor, ...), a sampling time minimum value 5341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is required. ARM GAS /tmp/ccIEHjf0.s page 96 5342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet. 5343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 5347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_SetChannelSamplingTime\n 5348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_SetChannelSamplingTime\n 5349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_SetChannelSamplingTime\n 5350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_SetChannelSamplingTime\n 5351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_SetChannelSamplingTime\n 5352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_SetChannelSamplingTime\n 5353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_SetChannelSamplingTime\n 5354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_SetChannelSamplingTime\n 5355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_SetChannelSamplingTime\n 5356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_SetChannelSamplingTime\n 5357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_SetChannelSamplingTime\n 5358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_SetChannelSamplingTime\n 5359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_SetChannelSamplingTime\n 5360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_SetChannelSamplingTime\n 5361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_SetChannelSamplingTime\n 5362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_SetChannelSamplingTime\n 5363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_SetChannelSamplingTime\n 5364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_SetChannelSamplingTime\n 5365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_SetChannelSamplingTime 5366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SamplingTime This parameter can be one of the following values: ARM GAS /tmp/ccIEHjf0.s page 97 5399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_1CYCLE_5 5400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 5401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_8CYCLES_5 5402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_16CYCLES_5 5403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_32CYCLES_5 5404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_64CYCLES_5 5405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5 5406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5 5407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sa 5410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 78 .loc 2 5410 1 is_stmt 1 view -0 79 .cfi_startproc 80 @ args = 0, pretend = 0, frame = 0 81 @ frame_needed = 0, uses_anonymous_args = 0 82 @ link register save eliminated. 83 .loc 2 5410 1 is_stmt 0 view .LVU10 84 0000 10B4 push {r4} 85 .cfi_def_cfa_offset 4 86 .cfi_offset 4, -4 5411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "SamplingTime" with bits position */ 5412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* in register and register position depending on parameter "Channel". */ 5413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameter "Channel" is used with masks because containing */ 5414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* other bits reserved for other purpose. */ 5415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_M 87 .loc 2 5415 3 is_stmt 1 view .LVU11 88 .loc 2 5415 25 is_stmt 0 view .LVU12 89 0002 1430 adds r0, r0, #20 90 .LVL6: 91 .loc 2 5415 25 view .LVU13 92 0004 4B0E lsrs r3, r1, #25 93 0006 9B00 lsls r3, r3, #2 94 0008 03F00403 and r3, r3, #4 95 .LVL7: 5416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 96 .loc 2 5417 3 is_stmt 1 view .LVU14 97 000c C458 ldr r4, [r0, r3] 98 000e C1F30451 ubfx r1, r1, #20, #5 99 .LVL8: 100 .loc 2 5417 3 is_stmt 0 view .LVU15 101 0012 4FF0070C mov ip, #7 102 0016 0CFA01FC lsl ip, ip, r1 103 001a 24EA0C0C bic ip, r4, ip 104 001e 8A40 lsls r2, r2, r1 105 .LVL9: 106 .loc 2 5417 3 view .LVU16 107 0020 4CEA0202 orr r2, ip, r2 108 0024 C250 str r2, [r0, r3] 5418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 5419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 5420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 109 .loc 2 5420 1 view .LVU17 110 0026 5DF8044B ldr r4, [sp], #4 111 .cfi_restore 4 112 .cfi_def_cfa_offset 0 ARM GAS /tmp/ccIEHjf0.s page 98 113 002a 7047 bx lr 114 .cfi_endproc 115 .LFE201: 117 .section .text.LL_ADC_SetAnalogWDMonitChannels,"ax",%progbits 118 .align 1 119 .syntax unified 120 .thumb 121 .thumb_func 123 LL_ADC_SetAnalogWDMonitChannels: 124 .LVL10: 125 .LFB205: 5421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get sampling time of the selected ADC channel 5424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Unit: ADC clock cycles. 5425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 5426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. 5427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 5428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 5429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 5430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 5431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 5432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 5433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_GetChannelSamplingTime\n 5434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_GetChannelSamplingTime\n 5435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_GetChannelSamplingTime\n 5436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_GetChannelSamplingTime\n 5437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_GetChannelSamplingTime\n 5438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_GetChannelSamplingTime\n 5439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_GetChannelSamplingTime\n 5440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_GetChannelSamplingTime\n 5441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_GetChannelSamplingTime\n 5442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_GetChannelSamplingTime\n 5443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_GetChannelSamplingTime\n 5444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_GetChannelSamplingTime\n 5445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_GetChannelSamplingTime\n 5446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_GetChannelSamplingTime\n 5447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_GetChannelSamplingTime\n 5448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_GetChannelSamplingTime\n 5449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_GetChannelSamplingTime\n 5450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_GetChannelSamplingTime\n 5451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_GetChannelSamplingTime 5452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 (3) 5455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (3) 5456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (3) 5457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (3) 5458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (3) 5459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (3) 5460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 ARM GAS /tmp/ccIEHjf0.s page 99 5467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (1) 5475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR (1) 5476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (1) 5477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH1_ADC2 (2) 5478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_DAC1CH2_ADC2 (2) 5479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2.\n 5482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 5483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Other channels are slow channels (conversion rate: refer to reference manual). 5484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_1CYCLE_5 5486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 5487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_8CYCLES_5 5488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_16CYCLES_5 5489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_32CYCLES_5 5490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_64CYCLES_5 5491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5 5492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5 5493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSamplingTime(const ADC_TypeDef *ADCx, uint32_t Channel) 5495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOF 5497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 5499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_ 5500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_P 5501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set mode single-ended or differential input of the selected 5506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC channel. 5507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Channel ending is on channel scope: independently of channel mapped 5508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on ADC group regular or injected. 5509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In differential mode: Differential measurement is carried out 5510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * between the selected channel 'i' (positive input) and 5511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channel 'i+1' (negative input). Only channel 'i' has to be 5512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * configured, channel 'i+1' is configured automatically. 5513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 5514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * available in differential mode. 5515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 5516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * not available in differential mode. 5517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some channels are internally fixed to single-ended inputs 5520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * configuration: 5521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC1: Channels 0, 6, 7, 8, 9, 13, 14, 15, 17, and 19 5522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC2: Channels 0, 6, 7, 8, 9, 13, 14, 15 and 19 5523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC3: Channels 0, 6, 7, 8, 9, 12, 16, 17, and 19 ARM GAS /tmp/ccIEHjf0.s page 100 5524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For ADC channels configured in differential mode, both inputs 5525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * should be biased at (Vref+)/2 +/-200mV. 5526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (Vref+ is the analog voltage reference) 5527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 5530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. 5531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 5532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_SetChannelSingleDiff 5533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 5536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 5537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 5538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 5539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 5540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SingleDiff This parameter can be a combination of the following values: 5551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 5552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 5553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sing 5556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 5558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Bits of channels in single or differential mode are set only for */ 5559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* differential mode (for single mode, mask of bits allowed to be set is */ 5560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* shifted out of range of bits of channels in single or differential mode. */ 5561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 5562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->LTR2_DIFSEL, 5564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 5565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SI 5566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 5568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->DIFSEL_RES12, 5570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 5571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SI 5572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_V90 */ 5574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Bits of channels in single or differential mode are set only for */ 5575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* differential mode (for single mode, mask of bits allowed to be set is */ 5576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* shifted out of range of bits of channels in single or differential mode. */ 5577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->DIFSEL, 5578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 5579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SING 5580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ ARM GAS /tmp/ccIEHjf0.s page 101 5581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get mode single-ended or differential input of the selected 5585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC channel. 5586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Therefore, to ensure a channel is configured in single-ended mode, 5589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the configuration of channel itself and the channel 'i-1' must be 5590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * read back (to ensure that the selected channel channel has not been 5591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * configured in differential mode by the previous channel). 5592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 5593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * available in differential mode. 5594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 5595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * not available in differential mode. 5596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On STM32H7, some channels are internally fixed to single-ended inputs 5599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * configuration: 5600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC1: Channels 0, 6, 7, 8, 9, 13, 14, 15, 17, and 19 5601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC2: Channels 0, 6, 7, 8, 9, 13, 14, 15 and 19 5602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC3: Channels 0, 6, 7, 8, 9, 12, 16, 17, and 19 5603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note One or several values can be selected. In this case, the value 5604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * returned is null if all channels are in single ended-mode. 5605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 5606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_GetChannelSingleDiff 5607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Channel This parameter can be a combination of the following values: 5609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 5610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 5611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 5612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 5613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 5614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_19 5624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: channel in single-ended mode, else: channel in differential mode 5625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSingleDiff(const ADC_TypeDef *ADCx, uint32_t Channel) 5627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 5629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DIFSEL_RES12, (Channel & ADC_SINGLEDIFF_CHANNEL_MASK))); 5630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 5631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DIFSEL, (Channel & ADC_SINGLEDIFF_CHANNEL_MASK))); 5632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 5633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 5637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 102 5638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_AnalogWatchdog Configuration of ADC transversal scope: an 5640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 5641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC analog watchdog monitored channels: 5645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a single channel, multiple channels or all channels, 5646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on ADC groups regular and-or injected. 5647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Once monitored channels are selected, analog watchdog 5648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled. 5649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of need to define a single channel to monitor 5650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with analog watchdog from sequencer channel definition, 5651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use helper macro @ref __LL_ADC_ANALOGWD_CHANNEL_GROUP(). 5652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * instance: 5654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD standard (instance AWD1): 5655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution configured). 5659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * be selected. For example: 5664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * groups regular and injected). 5667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the 2 LSB are ignored. 5673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 5677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_SetAnalogWDMonitChannels\n 5678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_SetAnalogWDMonitChannels\n 5679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_SetAnalogWDMonitChannels\n 5680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_SetAnalogWDMonitChannels\n 5681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_SetAnalogWDMonitChannels\n 5682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_SetAnalogWDMonitChannels 5683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 5685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 5686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 5687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 5688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDChannelGroup This parameter can be one of the following values: 5689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 5690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 5691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 5692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 5693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 5694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) ARM GAS /tmp/ccIEHjf0.s page 103 5695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 5696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 5697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 5698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 5699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 5700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 5701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 5702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 5703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 5704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 5705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 5706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 5707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 5708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 5709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 5710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 5711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 5712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 5713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 5714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 5715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 5716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 5717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 5718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 5719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 5720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 5721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 5722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 5723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 5724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 5725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 5726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 5727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 5728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 5729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 5730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 5731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 5732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 5733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 5734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 5735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 5736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 5737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 5738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 5739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 5740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 5741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 5742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 5743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 5744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 5745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 5746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 5747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 5748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 5749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 5750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG (0) 5751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_INJ (0) ARM GAS /tmp/ccIEHjf0.s page 104 5752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG_INJ 5753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0)(1) 5754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0)(1) 5755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ (1) 5756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG (0)(1) 5757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_INJ (0)(1) 5758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_REG_INJ (1) 5759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(1) 5760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(1) 5761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (1) 5762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_REG (0)(2) 5763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_INJ (0)(2) 5764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH1_ADC2_REG_INJ (2) 5765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_REG (0)(2) 5766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_INJ (0)(2) 5767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_DAC1CH2_ADC2_REG_INJ (2) 5768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (0) On STM32H7, parameter available only on analog watchdog number: AWD1.\n 5770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On STM32H7, parameter available only on ADC instance: ADC3.\n 5771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) On STM32H7, parameter available only on ADC instance: ADC2. 5772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 5773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDMonitChannels(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 5775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 126 .loc 2 5775 1 is_stmt 1 view -0 127 .cfi_startproc 128 @ args = 0, pretend = 0, frame = 0 129 @ frame_needed = 0, uses_anonymous_args = 0 130 @ link register save eliminated. 131 .loc 2 5775 1 is_stmt 0 view .LVU19 132 0000 10B4 push {r4} 133 .cfi_def_cfa_offset 4 134 .cfi_offset 4, -4 5776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "AWDChannelGroup" with bits position */ 5777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* in register and register position depending on parameter "AWDy". */ 5778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "AWDChannelGroup" and "AWDy" are used with masks because */ 5779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> AD 135 .loc 2 5780 3 is_stmt 1 view .LVU20 136 .loc 2 5780 25 is_stmt 0 view .LVU21 137 0002 0C30 adds r0, r0, #12 138 .LVL11: 139 .loc 2 5780 25 view .LVU22 140 0004 C1F3015C ubfx ip, r1, #20, #2 141 0008 41F30003 sbfx r3, r1, #0, #1 142 000c 03F02403 and r3, r3, #36 143 0010 9C44 add ip, ip, r3 144 .LVL12: 5781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 5782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 145 .loc 2 5783 3 is_stmt 1 view .LVU23 146 0012 50F82C30 ldr r3, [r0, ip, lsl #2] 147 0016 054C ldr r4, .L7 148 0018 0C40 ands r4, r4, r1 149 001a 23EA0403 bic r3, r3, r4 150 001e 1140 ands r1, r1, r2 ARM GAS /tmp/ccIEHjf0.s page 105 151 .LVL13: 152 .loc 2 5783 3 is_stmt 0 view .LVU24 153 0020 0B43 orrs r3, r3, r1 154 0022 40F82C30 str r3, [r0, ip, lsl #2] 5784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 5785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AWDChannelGroup & AWDy); 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 155 .loc 2 5786 1 view .LVU25 156 0026 5DF8044B ldr r4, [sp], #4 157 .cfi_restore 4 158 .cfi_def_cfa_offset 0 159 002a 7047 bx lr 160 .L8: 161 .align 2 162 .L7: 163 002c FFFFCF7D .word 2110783487 164 .cfi_endproc 165 .LFE205: 167 .section .text.LL_ADC_SetChannelPreselection,"ax",%progbits 168 .align 1 169 .syntax unified 170 .thumb 171 .thumb_func 173 LL_ADC_SetChannelPreselection: 174 .LVL14: 175 .LFB159: 3244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 176 .loc 2 3244 1 is_stmt 1 view -0 177 .cfi_startproc 178 @ args = 0, pretend = 0, frame = 0 179 @ frame_needed = 0, uses_anonymous_args = 0 180 @ link register save eliminated. 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 181 .loc 2 3253 5 view .LVU27 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 182 .loc 2 3253 29 is_stmt 0 view .LVU28 183 0000 C1F31303 ubfx r3, r1, #0, #20 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 184 .loc 2 3253 25 view .LVU29 185 0004 3BB9 cbnz r3, .L10 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 186 .loc 2 3253 29 discriminator 1 view .LVU30 187 0006 C1F38461 ubfx r1, r1, #26, #5 188 .LVL15: 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 189 .loc 2 3253 25 discriminator 1 view .LVU31 190 000a 0122 movs r2, #1 191 000c 8A40 lsls r2, r2, r1 192 .L11: 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 193 .loc 2 3253 9 discriminator 4 view .LVU32 194 000e C369 ldr r3, [r0, #28] 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 195 .loc 2 3253 17 discriminator 4 view .LVU33 196 0010 1343 orrs r3, r3, r2 197 0012 C361 str r3, [r0, #28] 3255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 106 198 .loc 2 3255 1 view .LVU34 199 0014 7047 bx lr 200 .LVL16: 201 .L10: 202 .LBB214: 203 .LBI214: 204 .file 3 "Drivers/CMSIS/Include/cmsis_gcc.h" 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//** 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.2.0 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 08. May 2019 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/ 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /* 8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2019 Arm Limited. All rights reserved. 9:Drivers/CMSIS/Include/cmsis_gcc.h **** * 10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0 11:Drivers/CMSIS/Include/cmsis_gcc.h **** * 12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may 13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License. 14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at 15:Drivers/CMSIS/Include/cmsis_gcc.h **** * 16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0 17:Drivers/CMSIS/Include/cmsis_gcc.h **** * 18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software 19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and 22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License. 23:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 24:Drivers/CMSIS/Include/cmsis_gcc.h **** 25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H 26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H 27:Drivers/CMSIS/Include/cmsis_gcc.h **** 28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */ 29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion" 31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion" 32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter" 33:Drivers/CMSIS/Include/cmsis_gcc.h **** 34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */ 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0) 37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 38:Drivers/CMSIS/Include/cmsis_gcc.h **** 39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */ 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline 45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE 47:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_INLINE static inline 48:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 49:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_FORCEINLINE 50:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline ARM GAS /tmp/ccIEHjf0.s page 107 51:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 52:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __NO_RETURN 53:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NO_RETURN __attribute__((__noreturn__)) 54:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 55:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __USED 56:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USED __attribute__((used)) 57:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 58:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __WEAK 59:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WEAK __attribute__((weak)) 60:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 61:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED 62:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED __attribute__((packed, aligned(1))) 63:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 64:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_STRUCT 65:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_STRUCT struct __attribute__((packed, aligned(1))) 66:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 67:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_UNION 68:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_UNION union __attribute__((packed, aligned(1))) 69:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 70:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32 /* deprecated */ 71:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 72:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked" 73:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes" 74:Drivers/CMSIS/Include/cmsis_gcc.h **** struct __attribute__((packed)) T_UINT32 { uint32_t v; }; 75:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop 76:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) 77:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 78:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_WRITE 79:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 80:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked" 81:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes" 82:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; }; 83:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop 84:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))- 85:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 86:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_READ 87:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 88:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked" 89:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes" 90:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_READ { uint16_t v; }; 91:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop 92:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(add 93:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 94:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_WRITE 95:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 96:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked" 97:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes" 98:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; }; 99:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop 100:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))- 101:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 102:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_READ 103:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 104:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked" 105:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes" 106:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_READ { uint32_t v; }; 107:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop ARM GAS /tmp/ccIEHjf0.s page 108 108:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(add 109:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 110:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ALIGNED 111:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ALIGNED(x) __attribute__((aligned(x))) 112:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 113:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __RESTRICT 114:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __RESTRICT __restrict 115:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 116:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __COMPILER_BARRIER 117:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __COMPILER_BARRIER() __ASM volatile("":::"memory") 118:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 119:Drivers/CMSIS/Include/cmsis_gcc.h **** 120:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ######################### Startup and Lowlevel Init ######################## */ 121:Drivers/CMSIS/Include/cmsis_gcc.h **** 122:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PROGRAM_START 123:Drivers/CMSIS/Include/cmsis_gcc.h **** 124:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 125:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Initializes data and bss sections 126:Drivers/CMSIS/Include/cmsis_gcc.h **** \details This default implementations initialized all data and additional bss 127:Drivers/CMSIS/Include/cmsis_gcc.h **** sections relying on .copy.table and .zero.table specified properly 128:Drivers/CMSIS/Include/cmsis_gcc.h **** in the used linker script. 129:Drivers/CMSIS/Include/cmsis_gcc.h **** 130:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 131:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void) 132:Drivers/CMSIS/Include/cmsis_gcc.h **** { 133:Drivers/CMSIS/Include/cmsis_gcc.h **** extern void _start(void) __NO_RETURN; 134:Drivers/CMSIS/Include/cmsis_gcc.h **** 135:Drivers/CMSIS/Include/cmsis_gcc.h **** typedef struct { 136:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t const* src; 137:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t* dest; 138:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t wlen; 139:Drivers/CMSIS/Include/cmsis_gcc.h **** } __copy_table_t; 140:Drivers/CMSIS/Include/cmsis_gcc.h **** 141:Drivers/CMSIS/Include/cmsis_gcc.h **** typedef struct { 142:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t* dest; 143:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t wlen; 144:Drivers/CMSIS/Include/cmsis_gcc.h **** } __zero_table_t; 145:Drivers/CMSIS/Include/cmsis_gcc.h **** 146:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __copy_table_t __copy_table_start__; 147:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __copy_table_t __copy_table_end__; 148:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __zero_table_t __zero_table_start__; 149:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __zero_table_t __zero_table_end__; 150:Drivers/CMSIS/Include/cmsis_gcc.h **** 151:Drivers/CMSIS/Include/cmsis_gcc.h **** for (__copy_table_t const* pTable = &__copy_table_start__; pTable < &__copy_table_end__; ++pTable 152:Drivers/CMSIS/Include/cmsis_gcc.h **** for(uint32_t i=0u; iwlen; ++i) { 153:Drivers/CMSIS/Include/cmsis_gcc.h **** pTable->dest[i] = pTable->src[i]; 154:Drivers/CMSIS/Include/cmsis_gcc.h **** } 155:Drivers/CMSIS/Include/cmsis_gcc.h **** } 156:Drivers/CMSIS/Include/cmsis_gcc.h **** 157:Drivers/CMSIS/Include/cmsis_gcc.h **** for (__zero_table_t const* pTable = &__zero_table_start__; pTable < &__zero_table_end__; ++pTable 158:Drivers/CMSIS/Include/cmsis_gcc.h **** for(uint32_t i=0u; iwlen; ++i) { 159:Drivers/CMSIS/Include/cmsis_gcc.h **** pTable->dest[i] = 0u; 160:Drivers/CMSIS/Include/cmsis_gcc.h **** } 161:Drivers/CMSIS/Include/cmsis_gcc.h **** } 162:Drivers/CMSIS/Include/cmsis_gcc.h **** 163:Drivers/CMSIS/Include/cmsis_gcc.h **** _start(); 164:Drivers/CMSIS/Include/cmsis_gcc.h **** } ARM GAS /tmp/ccIEHjf0.s page 109 165:Drivers/CMSIS/Include/cmsis_gcc.h **** 166:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PROGRAM_START __cmsis_start 167:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 168:Drivers/CMSIS/Include/cmsis_gcc.h **** 169:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INITIAL_SP 170:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INITIAL_SP __StackTop 171:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 172:Drivers/CMSIS/Include/cmsis_gcc.h **** 173:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STACK_LIMIT 174:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STACK_LIMIT __StackLimit 175:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 176:Drivers/CMSIS/Include/cmsis_gcc.h **** 177:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __VECTOR_TABLE 178:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __VECTOR_TABLE __Vectors 179:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 180:Drivers/CMSIS/Include/cmsis_gcc.h **** 181:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __VECTOR_TABLE_ATTRIBUTE 182:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __VECTOR_TABLE_ATTRIBUTE __attribute((used, section(".vectors"))) 183:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 184:Drivers/CMSIS/Include/cmsis_gcc.h **** 185:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */ 186:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface 187:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions 188:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ 189:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 190:Drivers/CMSIS/Include/cmsis_gcc.h **** 191:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 192:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts 193:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR. 194:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. 195:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 196:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_irq(void) 197:Drivers/CMSIS/Include/cmsis_gcc.h **** { 198:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory"); 199:Drivers/CMSIS/Include/cmsis_gcc.h **** } 200:Drivers/CMSIS/Include/cmsis_gcc.h **** 201:Drivers/CMSIS/Include/cmsis_gcc.h **** 202:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 203:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts 204:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR. 205:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. 206:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 207:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_irq(void) 208:Drivers/CMSIS/Include/cmsis_gcc.h **** { 209:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory"); 210:Drivers/CMSIS/Include/cmsis_gcc.h **** } 211:Drivers/CMSIS/Include/cmsis_gcc.h **** 212:Drivers/CMSIS/Include/cmsis_gcc.h **** 213:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 214:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register 215:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register. 216:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value 217:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 218:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_CONTROL(void) 219:Drivers/CMSIS/Include/cmsis_gcc.h **** { 220:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 221:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GAS /tmp/ccIEHjf0.s page 110 222:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) ); 223:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 224:Drivers/CMSIS/Include/cmsis_gcc.h **** } 225:Drivers/CMSIS/Include/cmsis_gcc.h **** 226:Drivers/CMSIS/Include/cmsis_gcc.h **** 227:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 228:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 229:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register (non-secure) 230:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the non-secure Control Register when in secure mode. 231:Drivers/CMSIS/Include/cmsis_gcc.h **** \return non-secure Control Register value 232:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 233:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void) 234:Drivers/CMSIS/Include/cmsis_gcc.h **** { 235:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 236:Drivers/CMSIS/Include/cmsis_gcc.h **** 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); 238:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 239:Drivers/CMSIS/Include/cmsis_gcc.h **** } 240:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 241:Drivers/CMSIS/Include/cmsis_gcc.h **** 242:Drivers/CMSIS/Include/cmsis_gcc.h **** 243:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register. 246:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set 247:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 248:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control) 249:Drivers/CMSIS/Include/cmsis_gcc.h **** { 250:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory"); 251:Drivers/CMSIS/Include/cmsis_gcc.h **** } 252:Drivers/CMSIS/Include/cmsis_gcc.h **** 253:Drivers/CMSIS/Include/cmsis_gcc.h **** 254:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 255:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 256:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register (non-secure) 257:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the non-secure Control Register when in secure state. 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set 259:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 260:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control) 261:Drivers/CMSIS/Include/cmsis_gcc.h **** { 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory"); 263:Drivers/CMSIS/Include/cmsis_gcc.h **** } 264:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 265:Drivers/CMSIS/Include/cmsis_gcc.h **** 266:Drivers/CMSIS/Include/cmsis_gcc.h **** 267:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 268:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register 269:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register. 270:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value 271:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 272:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_IPSR(void) 273:Drivers/CMSIS/Include/cmsis_gcc.h **** { 274:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 275:Drivers/CMSIS/Include/cmsis_gcc.h **** 276:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); 277:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 278:Drivers/CMSIS/Include/cmsis_gcc.h **** } ARM GAS /tmp/ccIEHjf0.s page 111 279:Drivers/CMSIS/Include/cmsis_gcc.h **** 280:Drivers/CMSIS/Include/cmsis_gcc.h **** 281:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 282:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register 283:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register. 284:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value 285:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 286:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_APSR(void) 287:Drivers/CMSIS/Include/cmsis_gcc.h **** { 288:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 289:Drivers/CMSIS/Include/cmsis_gcc.h **** 290:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) ); 291:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 292:Drivers/CMSIS/Include/cmsis_gcc.h **** } 293:Drivers/CMSIS/Include/cmsis_gcc.h **** 294:Drivers/CMSIS/Include/cmsis_gcc.h **** 295:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 296:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register. 298:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value 299:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 300:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_xPSR(void) 301:Drivers/CMSIS/Include/cmsis_gcc.h **** { 302:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 303:Drivers/CMSIS/Include/cmsis_gcc.h **** 304:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) ); 305:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 306:Drivers/CMSIS/Include/cmsis_gcc.h **** } 307:Drivers/CMSIS/Include/cmsis_gcc.h **** 308:Drivers/CMSIS/Include/cmsis_gcc.h **** 309:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 310:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer 311:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP). 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value 313:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 314:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSP(void) 315:Drivers/CMSIS/Include/cmsis_gcc.h **** { 316:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 317:Drivers/CMSIS/Include/cmsis_gcc.h **** 318:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp" : "=r" (result) ); 319:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 320:Drivers/CMSIS/Include/cmsis_gcc.h **** } 321:Drivers/CMSIS/Include/cmsis_gcc.h **** 322:Drivers/CMSIS/Include/cmsis_gcc.h **** 323:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 324:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 325:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer (non-secure) 326:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure s 327:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value 328:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 329:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void) 330:Drivers/CMSIS/Include/cmsis_gcc.h **** { 331:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 332:Drivers/CMSIS/Include/cmsis_gcc.h **** 333:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp_ns" : "=r" (result) ); 334:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 335:Drivers/CMSIS/Include/cmsis_gcc.h **** } ARM GAS /tmp/ccIEHjf0.s page 112 336:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 337:Drivers/CMSIS/Include/cmsis_gcc.h **** 338:Drivers/CMSIS/Include/cmsis_gcc.h **** 339:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 340:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer 341:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP). 342:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set 343:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 344:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack) 345:Drivers/CMSIS/Include/cmsis_gcc.h **** { 346:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : ); 347:Drivers/CMSIS/Include/cmsis_gcc.h **** } 348:Drivers/CMSIS/Include/cmsis_gcc.h **** 349:Drivers/CMSIS/Include/cmsis_gcc.h **** 350:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 351:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 352:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure) 353:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure sta 354:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set 355:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 356:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack) 357:Drivers/CMSIS/Include/cmsis_gcc.h **** { 358:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : ); 359:Drivers/CMSIS/Include/cmsis_gcc.h **** } 360:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 361:Drivers/CMSIS/Include/cmsis_gcc.h **** 362:Drivers/CMSIS/Include/cmsis_gcc.h **** 363:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 364:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer 365:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP). 366:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value 367:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 368:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSP(void) 369:Drivers/CMSIS/Include/cmsis_gcc.h **** { 370:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 371:Drivers/CMSIS/Include/cmsis_gcc.h **** 372:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp" : "=r" (result) ); 373:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 374:Drivers/CMSIS/Include/cmsis_gcc.h **** } 375:Drivers/CMSIS/Include/cmsis_gcc.h **** 376:Drivers/CMSIS/Include/cmsis_gcc.h **** 377:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 378:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 379:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer (non-secure) 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure stat 381:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value 382:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 383:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void) 384:Drivers/CMSIS/Include/cmsis_gcc.h **** { 385:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 386:Drivers/CMSIS/Include/cmsis_gcc.h **** 387:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp_ns" : "=r" (result) ); 388:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 389:Drivers/CMSIS/Include/cmsis_gcc.h **** } 390:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 391:Drivers/CMSIS/Include/cmsis_gcc.h **** 392:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GAS /tmp/ccIEHjf0.s page 113 393:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 394:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer 395:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP). 396:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set 397:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 398:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack) 399:Drivers/CMSIS/Include/cmsis_gcc.h **** { 400:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : ); 401:Drivers/CMSIS/Include/cmsis_gcc.h **** } 402:Drivers/CMSIS/Include/cmsis_gcc.h **** 403:Drivers/CMSIS/Include/cmsis_gcc.h **** 404:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 405:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 406:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer (non-secure) 407:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. 408:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set 409:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 410:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack) 411:Drivers/CMSIS/Include/cmsis_gcc.h **** { 412:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : ); 413:Drivers/CMSIS/Include/cmsis_gcc.h **** } 414:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 415:Drivers/CMSIS/Include/cmsis_gcc.h **** 416:Drivers/CMSIS/Include/cmsis_gcc.h **** 417:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 418:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 419:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Stack Pointer (non-secure) 420:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state. 421:Drivers/CMSIS/Include/cmsis_gcc.h **** \return SP Register value 422:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 423:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void) 424:Drivers/CMSIS/Include/cmsis_gcc.h **** { 425:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 426:Drivers/CMSIS/Include/cmsis_gcc.h **** 427:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, sp_ns" : "=r" (result) ); 428:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 429:Drivers/CMSIS/Include/cmsis_gcc.h **** } 430:Drivers/CMSIS/Include/cmsis_gcc.h **** 431:Drivers/CMSIS/Include/cmsis_gcc.h **** 432:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 433:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Stack Pointer (non-secure) 434:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. 435:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfStack Stack Pointer value to set 436:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 437:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack) 438:Drivers/CMSIS/Include/cmsis_gcc.h **** { 439:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : ); 440:Drivers/CMSIS/Include/cmsis_gcc.h **** } 441:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 442:Drivers/CMSIS/Include/cmsis_gcc.h **** 443:Drivers/CMSIS/Include/cmsis_gcc.h **** 444:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 445:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask 446:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register. 447:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value 448:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 449:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void) ARM GAS /tmp/ccIEHjf0.s page 114 450:Drivers/CMSIS/Include/cmsis_gcc.h **** { 451:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 452:Drivers/CMSIS/Include/cmsis_gcc.h **** 453:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory"); 454:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 455:Drivers/CMSIS/Include/cmsis_gcc.h **** } 456:Drivers/CMSIS/Include/cmsis_gcc.h **** 457:Drivers/CMSIS/Include/cmsis_gcc.h **** 458:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 459:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 460:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask (non-secure) 461:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the non-secure priority mask bit from the Priority Mask Reg 462:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value 463:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 464:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void) 465:Drivers/CMSIS/Include/cmsis_gcc.h **** { 466:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 467:Drivers/CMSIS/Include/cmsis_gcc.h **** 468:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory"); 469:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 470:Drivers/CMSIS/Include/cmsis_gcc.h **** } 471:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 472:Drivers/CMSIS/Include/cmsis_gcc.h **** 473:Drivers/CMSIS/Include/cmsis_gcc.h **** 474:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 475:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask 476:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register. 477:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask 478:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 479:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask) 480:Drivers/CMSIS/Include/cmsis_gcc.h **** { 481:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory"); 482:Drivers/CMSIS/Include/cmsis_gcc.h **** } 483:Drivers/CMSIS/Include/cmsis_gcc.h **** 484:Drivers/CMSIS/Include/cmsis_gcc.h **** 485:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 486:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 487:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask (non-secure) 488:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Priority Mask Register when in secure state. 489:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask 490:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 491:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask) 492:Drivers/CMSIS/Include/cmsis_gcc.h **** { 493:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory"); 494:Drivers/CMSIS/Include/cmsis_gcc.h **** } 495:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 496:Drivers/CMSIS/Include/cmsis_gcc.h **** 497:Drivers/CMSIS/Include/cmsis_gcc.h **** 498:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ 499:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ 500:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) 501:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 502:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ 503:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR. 504:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. 505:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 506:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_fault_irq(void) ARM GAS /tmp/ccIEHjf0.s page 115 507:Drivers/CMSIS/Include/cmsis_gcc.h **** { 508:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory"); 509:Drivers/CMSIS/Include/cmsis_gcc.h **** } 510:Drivers/CMSIS/Include/cmsis_gcc.h **** 511:Drivers/CMSIS/Include/cmsis_gcc.h **** 512:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 513:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ 514:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR. 515:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes. 516:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 517:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_fault_irq(void) 518:Drivers/CMSIS/Include/cmsis_gcc.h **** { 519:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory"); 520:Drivers/CMSIS/Include/cmsis_gcc.h **** } 521:Drivers/CMSIS/Include/cmsis_gcc.h **** 522:Drivers/CMSIS/Include/cmsis_gcc.h **** 523:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 524:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority 525:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register. 526:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value 527:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 528:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void) 529:Drivers/CMSIS/Include/cmsis_gcc.h **** { 530:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 531:Drivers/CMSIS/Include/cmsis_gcc.h **** 532:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) ); 533:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 534:Drivers/CMSIS/Include/cmsis_gcc.h **** } 535:Drivers/CMSIS/Include/cmsis_gcc.h **** 536:Drivers/CMSIS/Include/cmsis_gcc.h **** 537:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 538:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 539:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority (non-secure) 540:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Base Priority register when in secure state. 541:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value 542:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 543:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void) 544:Drivers/CMSIS/Include/cmsis_gcc.h **** { 545:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 546:Drivers/CMSIS/Include/cmsis_gcc.h **** 547:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) ); 548:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 549:Drivers/CMSIS/Include/cmsis_gcc.h **** } 550:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 551:Drivers/CMSIS/Include/cmsis_gcc.h **** 552:Drivers/CMSIS/Include/cmsis_gcc.h **** 553:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 554:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority 555:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register. 556:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set 557:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 558:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri) 559:Drivers/CMSIS/Include/cmsis_gcc.h **** { 560:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory"); 561:Drivers/CMSIS/Include/cmsis_gcc.h **** } 562:Drivers/CMSIS/Include/cmsis_gcc.h **** 563:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GAS /tmp/ccIEHjf0.s page 116 564:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 565:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 566:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority (non-secure) 567:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Base Priority register when in secure state. 568:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set 569:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 570:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri) 571:Drivers/CMSIS/Include/cmsis_gcc.h **** { 572:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory"); 573:Drivers/CMSIS/Include/cmsis_gcc.h **** } 574:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 575:Drivers/CMSIS/Include/cmsis_gcc.h **** 576:Drivers/CMSIS/Include/cmsis_gcc.h **** 577:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 578:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition 579:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable 580:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level. 581:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set 582:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 583:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri) 584:Drivers/CMSIS/Include/cmsis_gcc.h **** { 585:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory"); 586:Drivers/CMSIS/Include/cmsis_gcc.h **** } 587:Drivers/CMSIS/Include/cmsis_gcc.h **** 588:Drivers/CMSIS/Include/cmsis_gcc.h **** 589:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 590:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask 591:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register. 592:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value 593:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 594:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void) 595:Drivers/CMSIS/Include/cmsis_gcc.h **** { 596:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 597:Drivers/CMSIS/Include/cmsis_gcc.h **** 598:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) ); 599:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 600:Drivers/CMSIS/Include/cmsis_gcc.h **** } 601:Drivers/CMSIS/Include/cmsis_gcc.h **** 602:Drivers/CMSIS/Include/cmsis_gcc.h **** 603:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 604:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 605:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask (non-secure) 606:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Fault Mask register when in secure state. 607:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value 608:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 609:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void) 610:Drivers/CMSIS/Include/cmsis_gcc.h **** { 611:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 612:Drivers/CMSIS/Include/cmsis_gcc.h **** 613:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) ); 614:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 615:Drivers/CMSIS/Include/cmsis_gcc.h **** } 616:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 617:Drivers/CMSIS/Include/cmsis_gcc.h **** 618:Drivers/CMSIS/Include/cmsis_gcc.h **** 619:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 620:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask ARM GAS /tmp/ccIEHjf0.s page 117 621:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register. 622:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set 623:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 624:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask) 625:Drivers/CMSIS/Include/cmsis_gcc.h **** { 626:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory"); 627:Drivers/CMSIS/Include/cmsis_gcc.h **** } 628:Drivers/CMSIS/Include/cmsis_gcc.h **** 629:Drivers/CMSIS/Include/cmsis_gcc.h **** 630:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 631:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 632:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask (non-secure) 633:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Fault Mask register when in secure state. 634:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set 635:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 636:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask) 637:Drivers/CMSIS/Include/cmsis_gcc.h **** { 638:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory"); 639:Drivers/CMSIS/Include/cmsis_gcc.h **** } 640:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 641:Drivers/CMSIS/Include/cmsis_gcc.h **** 642:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ 643:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ 644:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */ 645:Drivers/CMSIS/Include/cmsis_gcc.h **** 646:Drivers/CMSIS/Include/cmsis_gcc.h **** 647:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ 648:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) 649:Drivers/CMSIS/Include/cmsis_gcc.h **** 650:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 651:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit 652:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 653:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure 654:Drivers/CMSIS/Include/cmsis_gcc.h **** mode. 655:Drivers/CMSIS/Include/cmsis_gcc.h **** 656:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer Limit (PSPLIM). 657:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value 658:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 659:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void) 660:Drivers/CMSIS/Include/cmsis_gcc.h **** { 661:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ 662:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) 663:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI 664:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U; 665:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 666:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 667:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim" : "=r" (result) ); 668:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 669:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 670:Drivers/CMSIS/Include/cmsis_gcc.h **** } 671:Drivers/CMSIS/Include/cmsis_gcc.h **** 672:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3)) 673:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 674:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit (non-secure) 675:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 676:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always. 677:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GAS /tmp/ccIEHjf0.s page 118 678:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in 679:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value 680:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 681:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void) 682:Drivers/CMSIS/Include/cmsis_gcc.h **** { 683:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) 684:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI 685:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U; 686:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 687:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 688:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) ); 689:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 690:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 691:Drivers/CMSIS/Include/cmsis_gcc.h **** } 692:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 693:Drivers/CMSIS/Include/cmsis_gcc.h **** 694:Drivers/CMSIS/Include/cmsis_gcc.h **** 695:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 696:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer Limit 697:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 698:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure 699:Drivers/CMSIS/Include/cmsis_gcc.h **** mode. 700:Drivers/CMSIS/Include/cmsis_gcc.h **** 701:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM). 702:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set 703:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 704:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit) 705:Drivers/CMSIS/Include/cmsis_gcc.h **** { 706:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ 707:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) 708:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI 709:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit; 710:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 711:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit)); 712:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 713:Drivers/CMSIS/Include/cmsis_gcc.h **** } 714:Drivers/CMSIS/Include/cmsis_gcc.h **** 715:Drivers/CMSIS/Include/cmsis_gcc.h **** 716:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 717:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 718:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure) 719:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 720:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored. 721:Drivers/CMSIS/Include/cmsis_gcc.h **** 722:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in s 723:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set 724:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 725:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit) 726:Drivers/CMSIS/Include/cmsis_gcc.h **** { 727:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) 728:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI 729:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit; 730:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 731:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit)); 732:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 733:Drivers/CMSIS/Include/cmsis_gcc.h **** } 734:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif ARM GAS /tmp/ccIEHjf0.s page 119 735:Drivers/CMSIS/Include/cmsis_gcc.h **** 736:Drivers/CMSIS/Include/cmsis_gcc.h **** 737:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 738:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit 739:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 740:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure 741:Drivers/CMSIS/Include/cmsis_gcc.h **** mode. 742:Drivers/CMSIS/Include/cmsis_gcc.h **** 743:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer Limit (MSPLIM). 744:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value 745:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 746:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void) 747:Drivers/CMSIS/Include/cmsis_gcc.h **** { 748:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ 749:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) 750:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI 751:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U; 752:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 753:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 754:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim" : "=r" (result) ); 755:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 756:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 757:Drivers/CMSIS/Include/cmsis_gcc.h **** } 758:Drivers/CMSIS/Include/cmsis_gcc.h **** 759:Drivers/CMSIS/Include/cmsis_gcc.h **** 760:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 761:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 762:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit (non-secure) 763:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 764:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always. 765:Drivers/CMSIS/Include/cmsis_gcc.h **** 766:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in sec 767:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value 768:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 769:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void) 770:Drivers/CMSIS/Include/cmsis_gcc.h **** { 771:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) 772:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI 773:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U; 774:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 775:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 776:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) ); 777:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 778:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 779:Drivers/CMSIS/Include/cmsis_gcc.h **** } 780:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 781:Drivers/CMSIS/Include/cmsis_gcc.h **** 782:Drivers/CMSIS/Include/cmsis_gcc.h **** 783:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 784:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit 785:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 786:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure 787:Drivers/CMSIS/Include/cmsis_gcc.h **** mode. 788:Drivers/CMSIS/Include/cmsis_gcc.h **** 789:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM). 790:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set 791:Drivers/CMSIS/Include/cmsis_gcc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 120 792:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit) 793:Drivers/CMSIS/Include/cmsis_gcc.h **** { 794:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \ 795:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3))) 796:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI 797:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit; 798:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 799:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit)); 800:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 801:Drivers/CMSIS/Include/cmsis_gcc.h **** } 802:Drivers/CMSIS/Include/cmsis_gcc.h **** 803:Drivers/CMSIS/Include/cmsis_gcc.h **** 804:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3)) 805:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 806:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit (non-secure) 807:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure 808:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored. 809:Drivers/CMSIS/Include/cmsis_gcc.h **** 810:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secu 811:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer value to set 812:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 813:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit) 814:Drivers/CMSIS/Include/cmsis_gcc.h **** { 815:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1))) 816:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI 817:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit; 818:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 819:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit)); 820:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 821:Drivers/CMSIS/Include/cmsis_gcc.h **** } 822:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 823:Drivers/CMSIS/Include/cmsis_gcc.h **** 824:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \ 825:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */ 826:Drivers/CMSIS/Include/cmsis_gcc.h **** 827:Drivers/CMSIS/Include/cmsis_gcc.h **** 828:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 829:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR 830:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register. 831:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value 832:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 833:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FPSCR(void) 834:Drivers/CMSIS/Include/cmsis_gcc.h **** { 835:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ 836:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) 837:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_get_fpscr) 838:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed 839:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) 840:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ 841:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_arm_get_fpscr(); 842:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 843:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 844:Drivers/CMSIS/Include/cmsis_gcc.h **** 845:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) ); 846:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result); 847:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 848:Drivers/CMSIS/Include/cmsis_gcc.h **** #else ARM GAS /tmp/ccIEHjf0.s page 121 849:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0U); 850:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 851:Drivers/CMSIS/Include/cmsis_gcc.h **** } 852:Drivers/CMSIS/Include/cmsis_gcc.h **** 853:Drivers/CMSIS/Include/cmsis_gcc.h **** 854:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 855:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR 856:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register. 857:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set 858:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 859:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr) 860:Drivers/CMSIS/Include/cmsis_gcc.h **** { 861:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \ 862:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) ) 863:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_set_fpscr) 864:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed 865:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2) 866:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */ 867:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_arm_set_fpscr(fpscr); 868:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 869:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory"); 870:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 871:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 872:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)fpscr; 873:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 874:Drivers/CMSIS/Include/cmsis_gcc.h **** } 875:Drivers/CMSIS/Include/cmsis_gcc.h **** 876:Drivers/CMSIS/Include/cmsis_gcc.h **** 877:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */ 878:Drivers/CMSIS/Include/cmsis_gcc.h **** 879:Drivers/CMSIS/Include/cmsis_gcc.h **** 880:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */ 881:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface 882:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions 883:Drivers/CMSIS/Include/cmsis_gcc.h **** @{ 884:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 885:Drivers/CMSIS/Include/cmsis_gcc.h **** 886:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2. 887:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l" 888:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */ 889:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__) 890:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r) 891:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+l" (r) 892:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r) 893:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 894:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r) 895:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+r" (r) 896:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r) 897:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 898:Drivers/CMSIS/Include/cmsis_gcc.h **** 899:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 900:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation 901:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes. 902:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 903:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NOP() __ASM volatile ("nop") 904:Drivers/CMSIS/Include/cmsis_gcc.h **** 905:Drivers/CMSIS/Include/cmsis_gcc.h **** /** ARM GAS /tmp/ccIEHjf0.s page 122 906:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt 907:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o 908:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 909:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFI() __ASM volatile ("wfi") 910:Drivers/CMSIS/Include/cmsis_gcc.h **** 911:Drivers/CMSIS/Include/cmsis_gcc.h **** 912:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 913:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event 914:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter 915:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs. 916:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 917:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFE() __ASM volatile ("wfe") 918:Drivers/CMSIS/Include/cmsis_gcc.h **** 919:Drivers/CMSIS/Include/cmsis_gcc.h **** 920:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 921:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event 922:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU. 923:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 924:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SEV() __ASM volatile ("sev") 925:Drivers/CMSIS/Include/cmsis_gcc.h **** 926:Drivers/CMSIS/Include/cmsis_gcc.h **** 927:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 928:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier 929:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor, 930:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory, 931:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed. 932:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 933:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __ISB(void) 934:Drivers/CMSIS/Include/cmsis_gcc.h **** { 935:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory"); 936:Drivers/CMSIS/Include/cmsis_gcc.h **** } 937:Drivers/CMSIS/Include/cmsis_gcc.h **** 938:Drivers/CMSIS/Include/cmsis_gcc.h **** 939:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 940:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier 941:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier. 942:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete. 943:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 944:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DSB(void) 945:Drivers/CMSIS/Include/cmsis_gcc.h **** { 946:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory"); 947:Drivers/CMSIS/Include/cmsis_gcc.h **** } 948:Drivers/CMSIS/Include/cmsis_gcc.h **** 949:Drivers/CMSIS/Include/cmsis_gcc.h **** 950:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 951:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Memory Barrier 952:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Ensures the apparent order of the explicit memory operations before 953:Drivers/CMSIS/Include/cmsis_gcc.h **** and after the instruction, without ensuring their completion. 954:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 955:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DMB(void) 956:Drivers/CMSIS/Include/cmsis_gcc.h **** { 957:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dmb 0xF":::"memory"); 958:Drivers/CMSIS/Include/cmsis_gcc.h **** } 959:Drivers/CMSIS/Include/cmsis_gcc.h **** 960:Drivers/CMSIS/Include/cmsis_gcc.h **** 961:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 962:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (32 bit) ARM GAS /tmp/ccIEHjf0.s page 123 963:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x785 964:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse 965:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value 966:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 967:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV(uint32_t value) 968:Drivers/CMSIS/Include/cmsis_gcc.h **** { 969:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) 970:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_bswap32(value); 971:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 972:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 973:Drivers/CMSIS/Include/cmsis_gcc.h **** 974:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); 975:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 976:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 977:Drivers/CMSIS/Include/cmsis_gcc.h **** } 978:Drivers/CMSIS/Include/cmsis_gcc.h **** 979:Drivers/CMSIS/Include/cmsis_gcc.h **** 980:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 981:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit) 982:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 983:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse 984:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value 985:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 986:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value) 987:Drivers/CMSIS/Include/cmsis_gcc.h **** { 988:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 989:Drivers/CMSIS/Include/cmsis_gcc.h **** 990:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); 991:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 992:Drivers/CMSIS/Include/cmsis_gcc.h **** } 993:Drivers/CMSIS/Include/cmsis_gcc.h **** 994:Drivers/CMSIS/Include/cmsis_gcc.h **** 995:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 996:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit) 997:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For exam 998:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse 999:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value 1000:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1001:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE int16_t __REVSH(int16_t value) 1002:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1003:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) 1004:Drivers/CMSIS/Include/cmsis_gcc.h **** return (int16_t)__builtin_bswap16(value); 1005:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 1006:Drivers/CMSIS/Include/cmsis_gcc.h **** int16_t result; 1007:Drivers/CMSIS/Include/cmsis_gcc.h **** 1008:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); 1009:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 1010:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 1011:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1012:Drivers/CMSIS/Include/cmsis_gcc.h **** 1013:Drivers/CMSIS/Include/cmsis_gcc.h **** 1014:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 1015:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Rotate Right in unsigned value (32 bit) 1016:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Rotate Right (immediate) provides the value of the contents of a register rotated by a v 1017:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op1 Value to rotate 1018:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op2 Number of Bits to rotate 1019:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Rotated value ARM GAS /tmp/ccIEHjf0.s page 124 1020:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1021:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2) 1022:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1023:Drivers/CMSIS/Include/cmsis_gcc.h **** op2 %= 32U; 1024:Drivers/CMSIS/Include/cmsis_gcc.h **** if (op2 == 0U) 1025:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1026:Drivers/CMSIS/Include/cmsis_gcc.h **** return op1; 1027:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1028:Drivers/CMSIS/Include/cmsis_gcc.h **** return (op1 >> op2) | (op1 << (32U - op2)); 1029:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1030:Drivers/CMSIS/Include/cmsis_gcc.h **** 1031:Drivers/CMSIS/Include/cmsis_gcc.h **** 1032:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 1033:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Breakpoint 1034:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Causes the processor to enter Debug state. 1035:Drivers/CMSIS/Include/cmsis_gcc.h **** Debug tools can use this to investigate system state when the instruction at a particula 1036:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value is ignored by the processor. 1037:Drivers/CMSIS/Include/cmsis_gcc.h **** If required, a debugger can use it to store additional information about the break 1038:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1039:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __BKPT(value) __ASM volatile ("bkpt "#value) 1040:Drivers/CMSIS/Include/cmsis_gcc.h **** 1041:Drivers/CMSIS/Include/cmsis_gcc.h **** 1042:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 1043:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse bit order of value 1044:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the bit order of the given value. 1045:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse 1046:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value 1047:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value) 205 .loc 3 1048 31 is_stmt 1 view .LVU35 206 .LBB215: 1049:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 207 .loc 3 1050 3 view .LVU36 1051:Drivers/CMSIS/Include/cmsis_gcc.h **** 1052:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \ 1053:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \ 1054:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) ); 208 .loc 3 1055 4 view .LVU37 209 .syntax unified 210 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 211 0016 91FAA1F1 rbit r1, r1 212 @ 0 "" 2 213 .LVL17: 1056:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 1057:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */ 1058:Drivers/CMSIS/Include/cmsis_gcc.h **** 1059:Drivers/CMSIS/Include/cmsis_gcc.h **** result = value; /* r will be reversed bits of v; first get LSB of v */ 1060:Drivers/CMSIS/Include/cmsis_gcc.h **** for (value >>= 1U; value != 0U; value >>= 1U) 1061:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1062:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= 1U; 1063:Drivers/CMSIS/Include/cmsis_gcc.h **** result |= value & 1U; 1064:Drivers/CMSIS/Include/cmsis_gcc.h **** s--; 1065:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1066:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= s; /* shift when v's highest bits are zero */ 1067:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif ARM GAS /tmp/ccIEHjf0.s page 125 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 214 .loc 3 1068 3 view .LVU38 215 .loc 3 1068 3 is_stmt 0 view .LVU39 216 .thumb 217 .syntax unified 218 .LBE215: 219 .LBE214: 220 .LBB216: 221 .LBI216: 1069:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1070:Drivers/CMSIS/Include/cmsis_gcc.h **** 1071:Drivers/CMSIS/Include/cmsis_gcc.h **** 1072:Drivers/CMSIS/Include/cmsis_gcc.h **** /** 1073:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Count leading zeros 1074:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Counts the number of leading zeros of a data value. 1075:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to count the leading zeros 1076:Drivers/CMSIS/Include/cmsis_gcc.h **** \return number of leading zeros in value 1077:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value) 222 .loc 3 1078 30 is_stmt 1 view .LVU40 223 .LBB217: 1079:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1080:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Even though __builtin_clz produces a CLZ instruction on ARM, formally 1081:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_clz(0) is undefined behaviour, so handle this case specially. 1082:Drivers/CMSIS/Include/cmsis_gcc.h **** This guarantees ARM-compatible results if happening to compile on a non-ARM 1083:Drivers/CMSIS/Include/cmsis_gcc.h **** target, and ensures the compiler doesn't decide to activate any 1084:Drivers/CMSIS/Include/cmsis_gcc.h **** optimisations using the logic "value was passed to __builtin_clz, so it 1085:Drivers/CMSIS/Include/cmsis_gcc.h **** is non-zero". 1086:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a 1087:Drivers/CMSIS/Include/cmsis_gcc.h **** single CLZ instruction. 1088:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** if (value == 0U) 224 .loc 3 1089 3 view .LVU41 225 .loc 3 1089 6 is_stmt 0 view .LVU42 226 001a 31B1 cbz r1, .L13 1090:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** return 32U; 1092:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1093:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_clz(value); 227 .loc 3 1093 3 is_stmt 1 view .LVU43 228 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU44 229 001c B1FA81F1 clz r1, r1 230 .LVL18: 231 .L12: 232 .loc 3 1093 10 discriminator 1 view .LVU45 233 .LBE217: 234 .LBE216: 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 235 .loc 2 3253 69 discriminator 2 view .LVU46 236 0020 01F01F01 and r1, r1, #31 3253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 237 .loc 2 3253 25 discriminator 2 view .LVU47 238 0024 0122 movs r2, #1 239 0026 8A40 lsls r2, r2, r1 240 0028 F1E7 b .L11 241 .LVL19: 242 .L13: ARM GAS /tmp/ccIEHjf0.s page 126 243 .LBB219: 244 .LBB218: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 245 .loc 3 1091 12 view .LVU48 246 002a 2021 movs r1, #32 247 .LVL20: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 248 .loc 3 1091 12 view .LVU49 249 002c F8E7 b .L12 250 .LBE218: 251 .LBE219: 252 .cfi_endproc 253 .LFE159: 255 .section .text.HAL_ADC_MspInit,"ax",%progbits 256 .align 1 257 .weak HAL_ADC_MspInit 258 .syntax unified 259 .thumb 260 .thumb_func 262 HAL_ADC_MspInit: 263 .LVL21: 264 .LFB337: 1:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ****************************************************************************** 3:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @file stm32h7xx_hal_adc.c 4:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @author MCD Application Team 5:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief This file provides firmware functions to manage the following 6:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * functionalities of the Analog to Digital Converter (ADC) 7:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * peripheral: 8:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * + Peripheral Control functions 9:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * + Peripheral State functions 10:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Other functions (extended functions) are available in file 11:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * "stm32h7xx_hal_adc_ex.c". 12:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 13:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ****************************************************************************** 14:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @attention 15:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 16:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Copyright (c) 2017 STMicroelectronics. 17:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * All rights reserved. 18:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 19:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This software is licensed under terms that can be found in the LICENSE file 20:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * in the root directory of this software component. 21:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * If no LICENSE file comes with this software, it is provided AS-IS. 22:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 23:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ****************************************************************************** 24:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @verbatim 25:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================================================== 26:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### ADC peripheral features ##### 27:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================================================== 28:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 29:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) 16-bit, 14-bit, 12-bit, 10-bit or 8-bit configurable resolution. 30:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Note: On devices STM32H72xx and STM32H73xx, these resolution are applicable to instances ADC 31:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC3 is featuring resolutions 12-bit, 10-bit, 8-bit, 6-bit. 32:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 33:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Interrupt generation at the end of regular conversion and in case of 34:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** analog watchdog or overrun events. 35:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 127 36:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Single and continuous conversion modes. 37:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 38:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Scan mode for conversion of several channels sequentially. 39:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 40:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Data alignment with in-built data coherency. 41:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 42:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Programmable sampling time (channel wise) 43:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 44:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) External trigger (timer or EXTI) with configurable polarity 45:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 46:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) DMA request generation for transfer of conversions data of regular group. 47:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 48:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Configurable delay between conversions in Dual interleaved mode. 49:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 50:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC channels selectable single/differential input. 51:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 52:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC offset shared on 4 offset instances. 53:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC calibration 54:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 55:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC conversion of regular group. 56:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 57:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC supply requirements: 1.62 V to 3.6 V. 58:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 59:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ADC input range: from Vref- (connected to Vssa) to Vref+ (connected to 60:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Vdda or to an external voltage reference). 61:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 62:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 63:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### How to use this driver ##### 64:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================================================== 65:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 66:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 67:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** *** Configuration of top level parameters related to ADC *** 68:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================================ 69:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 70:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 71:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Enable the ADC interface 72:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) As prerequisite, ADC clock must be configured at RCC top level. 73:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 74:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Two clock settings are mandatory: 75:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) ADC clock (core clock, also possibly conversion clock). 76:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 77:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) ADC clock (conversions clock). 78:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Two possible clock sources: synchronous clock derived from AHB clock 79:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** or asynchronous clock derived from system clock, the PLL2 or the PLL3 running up 80:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 81:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Example: 82:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Into HAL_ADC_MspInit() (recommended code location) or with 83:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** other device clock parameters configuration: 84:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) __HAL_RCC_ADC_CLK_ENABLE(); (mandatory) 85:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 86:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** RCC_ADCCLKSOURCE_PLL2 enable: (optional: if asynchronous clock sel 87:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) RCC_PeriphClkInitTypeDef RCC_PeriphClkInit; 88:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC; 89:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLL2; 90:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit); 91:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 92:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC clock source and clock prescaler are configured at ADC level with ARM GAS /tmp/ccIEHjf0.s page 128 93:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** parameter "ClockPrescaler" using function HAL_ADC_Init(). 94:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 95:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) ADC pins configuration 96:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Enable the clock for the ADC GPIOs 97:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_ENABLE() 98:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Configure these ADC pins in analog mode 99:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_GPIO_Init() 100:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 101:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: 102:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Configure the NVIC for ADC 103:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) 104:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() 105:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** into the function of corresponding ADC interruption vector 106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADCx_IRQHandler(). 107:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 108:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: 109:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Configure the DMA (DMA channel, mode normal or circular, ...) 110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_DMA_Init(). 111:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Configure the NVIC for DMA 112:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) 113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() 114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** into the function of corresponding DMA interruption vector 115:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** DMAx_Channelx_IRQHandler(). 116:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 117:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** *** Configuration of ADC, group regular, channels parameters *** 118:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ================================================================ 119:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 120:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Configure the ADC parameters (resolution, data alignment, ...) 122:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** and regular group parameters (conversion trigger, sequencer, ...) 123:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Init(). 124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 125:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Configure the channels for regular group parameters (channel number, 126:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** channel rank into sequencer, ..., into regular group) 127:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_ConfigChannel(). 128:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 129:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, configure the analog watchdog parameters (channels 130:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** monitored, thresholds, ...) 131:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_AnalogWDGConfig(). 132:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** *** Execution of ADC conversions *** 134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ==================================== 135:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 136:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, perform an automatic ADC calibration to improve the 138:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** conversion accuracy 139:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADCEx_Calibration_Start(). 140:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 141:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) ADC driver can be used among three modes: polling, interruption, 142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** transfer by DMA. 143:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 144:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC conversion by polling: 145:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 146:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Start() 147:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Wait for ADC conversion completion 148:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_PollForConversion() 149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Retrieve conversion results ARM GAS /tmp/ccIEHjf0.s page 129 150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_GetValue() 151:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 152:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Stop() 153:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 154:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC conversion by interruption: 155:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 156:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Start_IT() 157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function 158:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() 159:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (this function must be implemented in user program) 160:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Retrieve conversion results 161:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_GetValue() 162:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 163:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Stop_IT() 164:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 165:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC conversion with transfer by DMA: 166:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 167:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Start_DMA() 168:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function 169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() or HAL_ADC_ConvHalfCpltCallback() 170:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (these functions must be implemented in user program) 171:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Conversion results are automatically transferred by DMA into 172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** destination variable address. 173:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 174:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_ADC_Stop_DMA() 175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 176:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 177:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 178:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (@) Callback functions must be implemented in user program: 179:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+@) HAL_ADC_ErrorCallback() 180:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+@) HAL_ADC_LevelOutOfWindowCallback() (callback of analog watchdog) 181:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+@) HAL_ADC_ConvCpltCallback() 182:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+@) HAL_ADC_ConvHalfCpltCallback 183:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 184:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** *** Deinitialization of ADC *** 185:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================================ 186:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 187:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 188:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Disable the ADC interface 189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC clock can be hard reset and disabled at RCC top level. 190:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Hard reset of ADC peripherals 191:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using macro __HAL_RCC_ADCx_FORCE_RESET(), __HAL_RCC_ADCx_RELEASE_RESET(). 192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) ADC clock disable 193:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using the equivalent macro/functions as configuration step. 194:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) Example: 195:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Into HAL_ADC_MspDeInit() (recommended code location) or with 196:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** other device clock parameters configuration: 197:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) __HAL_RCC_ADC_CLK_DISABLE(); (if not used anymore) 198:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** RCC_ADCCLKSOURCE_CLKP restore: (optional) 199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) RCC_PeriphClkInitTypeDef RCC_PeriphClkInit; 200:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC; 201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_CLKP; 202:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+++) HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit); 203:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 204:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) ADC pins configuration 205:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Disable the clock for the ADC GPIOs 206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_DISABLE() ARM GAS /tmp/ccIEHjf0.s page 130 207:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 208:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: 209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Disable the NVIC for ADC 210:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) 211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 212:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: 213:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Deinitialize the DMA 214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_DMA_Init(). 215:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (++) Disable the NVIC for DMA 216:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) 217:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 218:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 220:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** *** Callback registration *** 221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ============================================= 222:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 223:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** The compilation flag USE_HAL_ADC_REGISTER_CALLBACKS, when set to 1, 225:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** allows the user to configure dynamically the driver callbacks. 226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Use Functions HAL_ADC_RegisterCallback() 227:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** to register an interrupt callback. 228:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 229:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 230:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Function HAL_ADC_RegisterCallback() allows to register following callbacks: 231:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ConvCpltCallback : ADC conversion complete callback 232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback 233:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback 234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ErrorCallback : ADC error callback 235:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) InjectedConvCpltCallback : ADC group injected conversion complete callback 236:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback 237:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback 238:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback 239:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) EndOfSamplingCallback : ADC end of sampling callback 240:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) MspInitCallback : ADC Msp Init callback 241:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) MspDeInitCallback : ADC Msp DeInit callback 242:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** This function takes as parameters the HAL peripheral handle, the Callback ID 243:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** and a pointer to the user callback function. 244:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 245:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 246:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Use function HAL_ADC_UnRegisterCallback to reset a callback to the default 247:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** weak function. 248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 250:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_UnRegisterCallback takes as parameters the HAL peripheral handle, 251:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** and the Callback ID. 252:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** This function allows to reset following callbacks: 253:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ConvCpltCallback : ADC conversion complete callback 254:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback 255:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback 256:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) ErrorCallback : ADC error callback 257:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) InjectedConvCpltCallback : ADC group injected conversion complete callback 258:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback 259:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback 260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback 261:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) EndOfSamplingCallback : ADC end of sampling callback 262:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) MspInitCallback : ADC Msp Init callback 263:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) MspDeInitCallback : ADC Msp DeInit callback ARM GAS /tmp/ccIEHjf0.s page 131 264:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 265:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 266:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** By default, after the HAL_ADC_Init() and when the state is HAL_ADC_STATE_RESET 267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** all callbacks are set to the corresponding weak functions: 268:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** examples HAL_ADC_ConvCpltCallback(), HAL_ADC_ErrorCallback(). 269:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Exception done for MspInit and MspDeInit functions that are 270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** reset to the legacy weak functions in the HAL_ADC_Init()/ HAL_ADC_DeInit() only when 271:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** these callbacks are null (not registered beforehand). 272:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 274:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** If MspInit or MspDeInit are not null, the HAL_ADC_Init()/ HAL_ADC_DeInit() 275:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. 276:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 277:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 278:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Callbacks can be registered/unregistered in HAL_ADC_STATE_READY state only. 279:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Exception done MspInit/MspDeInit functions that can be registered/unregistered 280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** in HAL_ADC_STATE_READY or HAL_ADC_STATE_RESET state, 281:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. 282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 283:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 284:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Then, the user first registers the MspInit/MspDeInit user callbacks 285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** using HAL_ADC_RegisterCallback() before calling HAL_ADC_DeInit() 286:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** or HAL_ADC_Init() function. 287:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 289:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** When the compilation flag USE_HAL_ADC_REGISTER_CALLBACKS is set to 0 or 290:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** not defined, the callback registration feature is not available and all callbacks 291:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** are set to the corresponding weak functions. 292:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 293:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @endverbatim 294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ****************************************************************************** 295:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 296:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 297:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Includes ------------------------------------------------------------------*/ 298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #include "stm32h7xx_hal.h" 299:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @addtogroup STM32H7xx_HAL_Driver 301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 302:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC ADC 305:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief ADC HAL module driver 306:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 309:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #ifdef HAL_ADC_MODULE_ENABLED 310:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 311:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Private typedef -----------------------------------------------------------*/ 312:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Private define ------------------------------------------------------------*/ 313:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 314:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Private_Constants ADC Private Constants 315:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 316:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 317:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC_CFGR_FIELDS_1 ((uint32_t)(ADC_CFGR_RES |\ 318:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_CONT | ADC_CFGR_OVRMOD |\ 319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM |\ 320:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL)) /*!< ADC_CFGR fields of ARM GAS /tmp/ccIEHjf0.s page 132 321:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** when no regular c 322:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 323:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 324:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC3_CFGR_FIELDS_1 ((ADC3_CFGR_RES | ADC3_CFGR_ALIGN |\ 325:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_CONT | ADC_CFGR_OVRMOD |\ 326:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM |\ 327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL)) /*!< ADC_CFGR fields of paramete 328:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** when no regular conversion 329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 330:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 331:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC_CFGR2_FIELDS ((uint32_t)(ADC_CFGR2_ROVSE | ADC_CFGR2_OVSR |\ 332:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_OVSS | ADC_CFGR2_TROVS |\ 333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSM)) /*!< ADC_CFGR2 fields 334:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (neither regular n 335:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 336:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Timeout values for ADC operations (enable settling time, */ 337:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* disable settling time, ...). */ 338:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Values defined to be higher than worst cases: low clock frequency, */ 339:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* maximum prescalers. */ 340:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC_ENABLE_TIMEOUT (2UL) /*!< ADC enable time-out value */ 341:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC_DISABLE_TIMEOUT (2UL) /*!< ADC disable time-out value */ 342:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 343:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Timeout to wait for current conversion on going to be completed. */ 344:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Timeout fixed to worst case, for 1 channel. */ 345:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - maximum sampling time (830.5 adc_clk) */ 346:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - ADC resolution (Tsar 16 bits= 16.5 adc_clk) */ 347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - ADC clock with prescaler 256 */ 348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 823 * 256 = 210688 clock cycles max */ 349:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Unit: cycles of CPU clock. */ 350:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #define ADC_CONVERSION_TIME_MAX_CPU_CYCLES (210688UL) /*!< ADC conversion completion time-out valu 351:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 352:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 353:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 354:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 355:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 356:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Private macro -------------------------------------------------------------*/ 357:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Private variables ---------------------------------------------------------*/ 358:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Private function prototypes -----------------------------------------------*/ 359:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Exported functions --------------------------------------------------------*/ 360:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 361:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions ADC Exported Functions 362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 363:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group1 Initialization and de-initialization functions 366:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief ADC Initialization and Configuration functions 367:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 368:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @verbatim 369:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 370:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### Initialization and de-initialization functions ##### 371:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 372:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] This section provides functions allowing to: 373:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Initialize and configure the ADC. 374:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) De-initialize the ADC. 375:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @endverbatim 376:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ ARM GAS /tmp/ccIEHjf0.s page 133 378:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 379:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Initialize the ADC peripheral and regular group according to 381:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * parameters specified in structure "ADC_InitTypeDef". 382:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note As prerequisite, ADC clock must be configured at RCC top level 383:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (refer to description of RCC configuration for ADC 384:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * in header of this file). 385:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This function initializes the ADC MSP (HAL_ADC_MspInit()) only when 387:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * coming from ADC state reset. Following calls to this function can 388:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * be used to reconfigure some parameters of ADC_InitTypeDef 389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * structure on the fly, without modifying MSP configuration. If ADC 390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * MSP has to be modified again, HAL_ADC_DeInit() must be called 391:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * before HAL_ADC_Init(). 392:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 393:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For parameters constraints, see comments of structure 394:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * "ADC_InitTypeDef". 395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note This function configures the ADC within 2 scopes: scope of entire 396:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * ADC and scope of regular group. For parameters details, see comments 397:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * of structure "ADC_InitTypeDef". 398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Parameters related to common ADC registers (ADC clock mode) are set 399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * only if all ADCs are disabled. 400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * If this is not the case, these common parameters setting are 401:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behaviour in 402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * case of update of a parameter of ADC_InitTypeDef on the fly, 403:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * without disabling the other ADCs. 404:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 405:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 406:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) 408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpCFGR; 411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_reg_is_conversion_on_going; 412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 415:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check ADC handle */ 417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc == NULL) 418:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 419:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 420:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 421:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 422:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 424:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); 425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); 426:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); 427:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); 428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); 429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); 430:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CONVERSIONDATAMGT(hadc->Init.ConversionDataManagement)); 431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); 433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); 434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); ARM GAS /tmp/ccIEHjf0.s page 134 435:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) 437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 438:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)); 439:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); 440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 441:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.DiscontinuousConvMode == ENABLE) 442:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 443:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_DISCONT_NUMBER(hadc->Init.NbrOfDiscConversion)); 444:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 445:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 446:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 447:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* DISCEN and CONT bits cannot be set at the same time */ 448:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == 449:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 450:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Actions performed only if ADC is coming from state reset: */ 451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Initialization of ADC MSP */ 452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->State == HAL_ADC_STATE_RESET) 453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 454:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Init the ADC Callback settings */ 456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; /* Legacy weak 457:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; /* Legacy weak 458:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; /* Legacy weak 459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback = HAL_ADC_ErrorCallback; /* Legacy weak 460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; /* Legacy weak 461:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = HAL_ADCEx_InjectedQueueOverflowCallback; /* Legacy weak 462:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = HAL_ADCEx_LevelOutOfWindow2Callback; /* Legacy weak 463:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = HAL_ADCEx_LevelOutOfWindow3Callback; /* Legacy weak 464:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->EndOfSamplingCallback = HAL_ADCEx_EndOfSamplingCallback; /* Legacy weak 465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 466:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->MspInitCallback == NULL) 467:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 468:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ 469:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 470:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 471:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Init the low level hardware */ 472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback(hadc); 473:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 474:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Init the low level hardware */ 475:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_MspInit(hadc); 476:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 477:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 478:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to none */ 479:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 480:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 481:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Initialize Lock */ 482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Lock = HAL_UNLOCKED; 483:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 484:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 485:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Exit from deep-power-down mode and ADC voltage regulator enable */ 486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL) 487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC deep power down mode */ 489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_DisableDeepPowerDown(hadc->Instance); 490:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 491:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* System was in deep power down mode, calibration must ARM GAS /tmp/ccIEHjf0.s page 135 492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** be relaunched or a previously saved calibration factor 493:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** re-applied once the ADC voltage regulator is enabled */ 494:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) 497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 498:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable ADC internal voltage regulator */ 499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_EnableInternalRegulator(hadc->Instance); 500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 501:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 502:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 503:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL 505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** wait_loop_index--; 508:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 509:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 511:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verification that ADC voltage regulator is correctly enabled, whether */ 512:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* or not ADC is coming from state reset (if any potential problem of */ 513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* clocking, voltage regulator would not be enabled). */ 514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) 515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 516:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 517:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 518:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 521:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 524:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of ADC parameters if previous preliminary actions are */ 526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* correctly completed and if there is no conversion on going on regular */ 527:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */ 528:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* called to update a parameter on the fly). */ 529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 533:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 534:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 537:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL); 539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 540:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of common ADC parameters */ 541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 543:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ 544:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - clock configuration */ 545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 546:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) 548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 136 549:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset configuration of ADC common register CCR: */ 550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* */ 551:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - ADC clock mode and ACC prescaler (CKMODE and PRESC bits)are set */ 552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* according to adc->Init.ClockPrescaler. It selects the clock */ 553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* source and sets the clock division factor. */ 554:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* */ 555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Some parameters of this register are not reset, since they are set */ 556:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by other functions and must be kept in case of usage of this */ 557:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* function on the fly (update of a parameter of ADC_InitTypeDef */ 558:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* without needing to reconfigure all other ADC groups/channels */ 559:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* parameters): */ 560:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - when multimode feature is available, multimode-related */ 561:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */ 562:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* HAL_ADCEx_MultiModeConfigChannel() ) */ 563:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - internal measurement paths: Vbat, temperature sensor, Vref */ 564:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (set into HAL_ADC_ConfigChannel() or */ 565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* HAL_ADCEx_InjectedConfigChannel() ) */ 566:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler); 567:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 568:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 569:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 570:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of ADC: */ 571:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - resolution Init.Resolution */ 572:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - external trigger to start conversion Init.ExternalTrigConv */ 573:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - external trigger polarity Init.ExternalTrigConvEdge */ 574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - continuous conversion mode Init.ContinuousConvMode */ 575:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - overrun Init.Overrun */ 576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - discontinuous mode Init.DiscontinuousConvMode */ 577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - discontinuous mode channel count Init.NbrOfDiscConversion */ 578:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_3) 579:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | 583:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #elif defined(ADC_VER_V5_V90) 586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 587:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 588:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 589:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.DataAlign | 591:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((__LL_ADC12_RESOLUTION_TO_ADC3(hadc->Init.Resolution) & (ADC_CFGR_RES_1 | ADC_C 592:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 593:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 595:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 596:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 598:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | 599:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 600:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 601:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 603:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 604:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution)) 605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 137 606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */ 607:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 609:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) | 610:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 612:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 613:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 614:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 615:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 617:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | 618:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 620:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 621:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_3 */ 622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.DiscontinuousConvMode == ENABLE) 624:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion); 626:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 627:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable external trigger if trigger selection is different of software */ 629:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* start. */ 630:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: This configuration keeps the hardware feature of parameter */ 631:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ExternalTrigConvEdge "trigger edge none" equivalent to */ 632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* software start. */ 633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) 634:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL) 636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ); 638:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 640:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 642:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 643:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update Configuration Register CFGR */ 645:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC3_CFGR_FIELDS_1, tmpCFGR); 646:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of sampling mode */ 647:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, ADC3_CFGR2_BULB | ADC3_CFGR2_SMPTRIG, hadc->Init.SamplingMo 648:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 649:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 650:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update Configuration Register CFGR */ 652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR); 653:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 654:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update Configuration Register CFGR */ 656:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR); 657:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 658:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 659:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 661:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* conversion on going on regular and injected groups: */ 662:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Conversion data management Init.ConversionDataManagement */ ARM GAS /tmp/ccIEHjf0.s page 138 663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - LowPowerAutoWait feature Init.LowPowerAutoWait */ 664:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling parameters Init.Oversampling */ 665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 666:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 668:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 669:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 670:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 671:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 672:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 674:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = ( 675:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 676:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC3_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); 677:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 678:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 679:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = ( 681:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 682:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement)); 683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 684:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpCFGR = ( 686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 687:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement)); 688:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 689:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 690:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR); 691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 693:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 694:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 696:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 697:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OVERSAMPLING_RATIO_ADC3(hadc->Init.Oversampling.Ratio)); 698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 699:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 700:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 701:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OVERSAMPLING_RATIO(hadc->Init.Oversampling.Ratio)); 702:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OVERSAMPLING_RATIO(hadc->Init.Oversampling.Ratio)); 705:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 706:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift)); 707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 708:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 709:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START) 711:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (hadc->Init.ExternalTrigConvEdge == ADC_EXTERNALTRIGCONVEDGE_NONE)) 712:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 713:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Multi trigger is not applicable to software-triggered conversions */ 714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param((hadc->Init.Oversampling.TriggeredMode == ADC_TRIGGEREDMODE_SINGLE_TRIGGER)) 715:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 716:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 717:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 718:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 719:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 139 720:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of Oversampler: */ 721:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling Ratio */ 722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Right bit shift */ 723:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Triggered mode */ 724:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling mode (continued/resumed) */ 725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, 726:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_OVSR | 727:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_OVSS | 728:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_TROVS | 729:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSM, 730:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSE | 731:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.Ratio | 732:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.RightBitShift | 733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.TriggeredMode | 734:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.OversamplingStopReset 735:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ); 736:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 737:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 738:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 739:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 740:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of Oversampler: */ 741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling Ratio */ 742:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Right bit shift */ 743:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Left bit shift */ 744:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Triggered mode */ 745:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling mode (continued/resumed) */ 746:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS, 747:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSE | 748:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((hadc->Init.Oversampling.Ratio - 1UL) << ADC_CFGR2_OVSR_Pos) | 749:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.RightBitShift | 750:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.TriggeredMode | 751:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.OversamplingStopReset); 752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 753:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of Oversampler: */ 755:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling Ratio */ 756:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Right bit shift */ 757:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Left bit shift */ 758:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Triggered mode */ 759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Oversampling mode (continued/resumed) */ 760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS, 761:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSE | 762:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((hadc->Init.Oversampling.Ratio - 1UL) << ADC_CFGR2_OVSR_Pos) | 763:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.RightBitShift | 764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.TriggeredMode | 765:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Oversampling.OversamplingStopReset); 766:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 767:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 768:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 769:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 770:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 771:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC oversampling scope on ADC group regular */ 772:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE); 773:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 775:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set the LeftShift parameter: it is applied to the final result with or without oversamplin 776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift); ARM GAS /tmp/ccIEHjf0.s page 140 777:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance != ADC3) 779:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 780:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure the BOOST Mode */ 781:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_ConfigureBoostMode(hadc); 782:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 784:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure the BOOST Mode */ 785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_ConfigureBoostMode(hadc); 786:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 788:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 789:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of regular group sequencer: */ 790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if scan mode is disabled, regular channels sequence length is set to */ 791:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 0x00: 1 channel converted (channel on regular rank 1) */ 792:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameter "NbrOfConversion" is discarded. */ 793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Scan mode is not present by hardware on this device, but */ 794:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* emulated by software for alignment over all STM32 devices. */ 795:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if scan mode is enabled, regular channels sequence length is set to */ 796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* parameter "NbrOfConversion". */ 797:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE) 799:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 800:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set number of ranks in regular group sequencer */ 801:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1)); 802:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 803:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 804:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L); 806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 807:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Initialize the ADC state */ 809:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */ 810:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); 811:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 812:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 813:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 823:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 825:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Deinitialize the ADC peripheral registers to their default reset 826:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * values, with deinitialization of the ADC MSP. 827:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note For devices with several ADCs: reset of ADC common registers is done 828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * only if all ADCs sharing the same common group are disabled. 829:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (function "HAL_ADC_MspDeInit()" is also called under the same conditions: 830:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * all ADC instances use the same core clock at RCC level, disabling 831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * the core clock reset all ADC instances). 832:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * If this is not the case, reset of these common parameters reset is 833:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behavior in ARM GAS /tmp/ccIEHjf0.s page 141 834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * case of reset of a single ADC while the other ADCs sharing the same 835:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * common group is still running. 836:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note By default, HAL_ADC_DeInit() set ADC in mode deep power-down: 837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * this saves more power by reducing leakage currents 838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * and is particularly interesting before entering MCU low-power modes. 839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 840:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 841:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 842:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc) 843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 844:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 845:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 846:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check ADC handle */ 847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc == NULL) 848:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 850:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 851:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 854:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 856:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL); 857:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Stop potential conversion on going */ 859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 860:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 861:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 862:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Flush register JSQR: reset the queue sequencer when injected */ 863:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* queue sequencer is enabled and ADC disabled. */ 864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* The software and hardware triggers of the injected sequence are both */ 865:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* internally disabled just after the completion of the last valid */ 866:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* injected sequence. */ 867:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQM); 868:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 871:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 872:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable the ADC peripheral */ 873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 874:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 877:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 878:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Change ADC state */ 879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_READY; 880:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 883:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: HAL ADC deInit is done independently of ADC conversion stop */ 884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* and disable return status. In case of status fail, attempt to */ 885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* perform deinitialization anyway and it is up user code in */ 886:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* in HAL_ADC_MspDeInit() to reset the ADC peripheral using */ 887:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* system RCC hard reset. */ 888:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Reset ADC registers ========== */ 890:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register IER */ ARM GAS /tmp/ccIEHjf0.s page 142 891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_AWD3 | ADC_IT_AWD2 | ADC_IT_AWD1 | 892:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 893:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_JEOS | ADC_IT_JEOC | 894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_EOS | ADC_IT_EOC | 895:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_EOSMP | ADC_IT_RDY)); 896:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register ISR */ 898:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_AWD3 | ADC_FLAG_AWD2 | ADC_FLAG_AWD1 | 899:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_FLAG_JEOS | ADC_FLAG_JEOC | 901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_FLAG_EOS | ADC_FLAG_EOC | 902:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 904:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CR */ 905:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Bits ADC_CR_JADSTP, ADC_CR_ADSTP, ADC_CR_JADSTART, ADC_CR_ADSTART, 906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CR_ADCAL, ADC_CR_ADDIS and ADC_CR_ADEN are in access mode "read-set": 907:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** no direct reset applicable. 908:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Update CR register to reset value where doable by software */ 909:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CR, ADC_CR_ADVREGEN | ADC_CR_ADCALDIF); 910:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 911:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 912:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CFGR */ 913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR, ADC_CFGR_AWD1CH | ADC_CFGR_JAUTO | ADC_CFGR_JAWD1EN | 914:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL | ADC_CFGR_JQM | 915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_JDISCEN | ADC_CFGR_DISCNUM | ADC_CFGR_DISCEN | 916:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTDLY | ADC_CFGR_CONT | ADC_CFGR_OVRMOD | 917:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL | 918:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_RES | ADC_CFGR_DMNGT); 919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQDIS); 920:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 921:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CFGR2 */ 922:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSM | ADC_CFGR2_TROVS | ADC_CFGR2_OVSS | 923:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 925:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SMPR1 */ 926:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR1, ADC_SMPR1_FIELDS); 927:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 928:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SMPR2 */ 929:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR2, ADC_SMPR2_SMP18 | ADC_SMPR2_SMP17 | ADC_SMPR2_SMP16 | 930:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | 931:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SMPR2_SMP12 | ADC_SMPR2_SMP11 | ADC_SMPR2_SMP10); 932:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 933:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 935:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 936:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR1 and HTR1 */ 937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR1_TR1, ADC3_TR1_HT1 | ADC3_TR1_LT1); 938:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR1_TR2, ADC3_TR2_HT2 | ADC3_TR2_LT2); 939:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 940:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR3 and HTR3 */ 941:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->RES1_TR3, ADC3_TR3_HT3 | ADC3_TR3_LT3); 942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 943:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 944:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 945:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR1_TR1, ADC_LTR_LT); 946:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR1_TR2, ADC_HTR_HT); 947:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 143 948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR2 and HTR2*/ 949:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR2_DIFSEL, ADC_LTR_LT); 950:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR2_CALFACT, ADC_HTR_HT); 951:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 952:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR3 and HTR3 */ 953:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR3_RES10, ADC_LTR_LT); 954:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR3_RES11, ADC_HTR_HT); 955:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR1 and HTR1 */ 958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR1, ADC_LTR_LT); 959:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR1, ADC_HTR_HT); 960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 961:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR2 and HTR2*/ 962:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR2, ADC_LTR_LT); 963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR2, ADC_HTR_HT); 964:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register LTR3 and HTR3 */ 966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR3, ADC_LTR_LT); 967:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR3, ADC_HTR_HT); 968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 969:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 970:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SQR1 */ 972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_SQ4 | ADC_SQR1_SQ3 | ADC_SQR1_SQ2 | 973:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 975:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SQR2 */ 976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR2, ADC_SQR2_SQ9 | ADC_SQR2_SQ8 | ADC_SQR2_SQ7 | 977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 978:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 979:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SQR3 */ 980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR3, ADC_SQR3_SQ14 | ADC_SQR3_SQ13 | ADC_SQR3_SQ12 | 981:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 982:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register SQR4 */ 984:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR4, ADC_SQR4_SQ16 | ADC_SQR4_SQ15); 985:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 986:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Register JSQR was reset when the ADC was disabled */ 987:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 988:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register DR */ 989:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 990:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR1 */ 992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1); 993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR2 */ 994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE | ADC_OFR2_OFFSET2_CH | ADC_OFR2_OFFSET2); 995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR3 */ 996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE | ADC_OFR3_OFFSET3_CH | ADC_OFR3_OFFSET3); 997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR4 */ 998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE | ADC_OFR4_OFFSET4_CH | ADC_OFR4_OFFSET4); 999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset registers JDR1, JDR2, JDR3, JDR4 */ 1001:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 1002:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1003:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register AWD2CR */ 1004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD2CR, ADC_AWD2CR_AWD2CH); ARM GAS /tmp/ccIEHjf0.s page 144 1005:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register AWD3CR */ 1007:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD3CR, ADC_AWD3CR_AWD3CH); 1008:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1009:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 1010:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 1011:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1012:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register DIFSEL */ 1013:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->LTR2_DIFSEL, ADC_DIFSEL_DIFSEL); 1014:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CALFACT */ 1016:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR2_CALFACT, ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S); 1017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1018:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1019:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1020:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register DIFSEL */ 1021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->DIFSEL_RES12, ADC_DIFSEL_DIFSEL); 1022:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CALFACT */ 1024:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CALFACT_RES13, ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S); 1025:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 1027:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register DIFSEL */ 1028:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->DIFSEL, ADC_DIFSEL_DIFSEL); 1029:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1030:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register CALFACT */ 1031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CALFACT, ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S); 1032:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1033:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1034:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Reset common ADC registers ========== */ 1035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1036:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Software is allowed to change common parameters only when all the other 1037:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADCs are disabled. */ 1038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) 1039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1040:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset configuration of ADC common register CCR: 1041:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - clock mode: CKMODE, PRESCEN 1042:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - multimode related parameters(when this feature is available): DELAY, DUAL 1043:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (set into HAL_ADCEx_MultiModeConfigChannel() API) 1044:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - internal measurement paths: Vbat, temperature sensor, Vref (set into 1045:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConfigChannel() or HAL_ADCEx_InjectedConfigChannel() ) 1046:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_COMMON_CONTROL_REGISTER(hadc); 1048:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Hard reset ADC peripheral ========== */ 1050:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Performs a global reset of the entire ADC peripherals instances */ 1051:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* sharing the same common ADC instance: ADC state is forced to */ 1052:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* a similar state as after device power-on. */ 1053:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: A possible implementation is to add RCC bus reset of ADC */ 1054:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (for example, using macro */ 1055:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* __HAL_RCC_ADC..._FORCE_RESET()/..._RELEASE_RESET()/..._CLK_DISABLE()) */ 1056:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* in function "void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)": */ 1057:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 1059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->MspDeInitCallback == NULL) 1060:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ ARM GAS /tmp/ccIEHjf0.s page 145 1062:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1063:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1064:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* DeInit the low level hardware: RCC clock, NVIC */ 1065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback(hadc); 1066:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 1067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* DeInit the low level hardware: RCC clock, NVIC */ 1068:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_MspDeInit(hadc); 1069:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1070:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1071:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1073:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to none */ 1074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1075:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1076:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset injected channel configuration parameters */ 1077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectionConfig.ContextQueue = 0; 1078:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 1079:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1081:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_RESET; 1082:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1083:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1085:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1086:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 1087:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 1088:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1089:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1090:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1091:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Initialize the ADC MSP. 1092:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 1094:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1095:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) 1096:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 265 .loc 1 1096 1 is_stmt 1 view -0 266 .cfi_startproc 267 @ args = 0, pretend = 0, frame = 0 268 @ frame_needed = 0, uses_anonymous_args = 0 269 @ link register save eliminated. 1097:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1098:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 270 .loc 1 1098 3 view .LVU51 1099:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1100:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 1101:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_MspInit must be implemented in the user file. 1102:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1103:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 271 .loc 1 1103 1 is_stmt 0 view .LVU52 272 0000 7047 bx lr 273 .cfi_endproc 274 .LFE337: 276 .section .text.HAL_ADC_MspDeInit,"ax",%progbits 277 .align 1 278 .weak HAL_ADC_MspDeInit 279 .syntax unified 280 .thumb ARM GAS /tmp/ccIEHjf0.s page 146 281 .thumb_func 283 HAL_ADC_MspDeInit: 284 .LVL22: 285 .LFB338: 1104:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1105:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief DeInitialize the ADC MSP. 1107:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1108:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note All ADC instances use the same core clock at RCC level, disabling 1109:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * the core clock reset all ADC instances). 1110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 1111:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1112:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc) 1113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 286 .loc 1 1113 1 is_stmt 1 view -0 287 .cfi_startproc 288 @ args = 0, pretend = 0, frame = 0 289 @ frame_needed = 0, uses_anonymous_args = 0 290 @ link register save eliminated. 1114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1115:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 291 .loc 1 1115 3 view .LVU54 1116:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1117:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 1118:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_MspDeInit must be implemented in the user file. 1119:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1120:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 292 .loc 1 1120 1 is_stmt 0 view .LVU55 293 0000 7047 bx lr 294 .cfi_endproc 295 .LFE338: 297 .section .text.HAL_ADC_PollForConversion,"ax",%progbits 298 .align 1 299 .global HAL_ADC_PollForConversion 300 .syntax unified 301 .thumb 302 .thumb_func 304 HAL_ADC_PollForConversion: 305 .LVL23: 306 .LFB341: 1121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1122:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 1123:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Register a User ADC Callback 1125:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * To be used instead of the weak predefined callback 1126:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 1127:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * the configuration information for the specified ADC. 1128:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param CallbackID ID of the callback to be registered 1129:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This parameter can be one of the following values: 1130:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 1131:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 1132:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID 1133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 1134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet 1135:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 1136:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID ADC analog watchdog 2 callback ID 1137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID ADC analog watchdog 3 callback ID ARM GAS /tmp/ccIEHjf0.s page 147 1138:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 1139:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 1140:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 1141:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param pCallback pointer to the Callback function 1142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1143:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1144:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_RegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Callb 1145:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1146:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 1147:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1148:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (pCallback == NULL) 1149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1151:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1152:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1153:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 1154:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1155:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1156:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 1157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1158:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (CallbackID) 1159:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1160:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 1161:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvCpltCallback = pCallback; 1162:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1163:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1164:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 1165:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvHalfCpltCallback = pCallback; 1166:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1167:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1168:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 1169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = pCallback; 1170:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1171:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 1173:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback = pCallback; 1174:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1176:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 1177:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedConvCpltCallback = pCallback; 1178:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1179:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1180:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1181:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = pCallback; 1182:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1183:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1184:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1185:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = pCallback; 1186:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1187:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1188:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : 1189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = pCallback; 1190:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1191:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1193:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->EndOfSamplingCallback = pCallback; 1194:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; ARM GAS /tmp/ccIEHjf0.s page 148 1195:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1196:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1197:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1198:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1200:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1202:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1203:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1204:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default : 1205:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1207:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1208:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1210:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1212:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1213:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1215:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (CallbackID) 1216:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1217:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1218:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1220:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1222:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1223:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1225:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default : 1226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1227:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1228:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1229:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1230:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1231:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1233:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1235:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1236:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1237:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1238:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1239:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1240:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1241:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1242:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1243:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return status; 1244:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1245:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1246:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1247:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Unregister a ADC Callback 1248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * ADC callback is redirected to the weak predefined callback 1249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 1250:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * the configuration information for the specified ADC. 1251:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param CallbackID ID of the callback to be unregistered ARM GAS /tmp/ccIEHjf0.s page 149 1252:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This parameter can be one of the following values: 1253:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 1254:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 1255:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID 1256:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 1257:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet 1258:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 1259:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID ADC analog watchdog 2 callback ID 1260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID ADC analog watchdog 3 callback ID 1261:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 1262:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 1263:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 1264:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1265:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1266:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_UnRegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Cal 1267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1268:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 1269:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 1271:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1272:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (CallbackID) 1273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1274:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 1275:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; 1276:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1277:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1278:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 1279:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; 1280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1281:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 1283:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; 1284:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1286:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 1287:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback = HAL_ADC_ErrorCallback; 1288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1289:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1290:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 1291:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; 1292:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1293:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1295:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = HAL_ADCEx_InjectedQueueOverflowCallback; 1296:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1297:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1299:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = HAL_ADCEx_LevelOutOfWindow2Callback; 1300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1302:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : 1303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = HAL_ADCEx_LevelOutOfWindow3Callback; 1304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1305:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1306:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->EndOfSamplingCallback = HAL_ADCEx_EndOfSamplingCallback; 1308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; ARM GAS /tmp/ccIEHjf0.s page 150 1309:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1310:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1311:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ 1312:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1313:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1314:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1315:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ 1316:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1317:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1318:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default : 1319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1320:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1321:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1322:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1323:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1324:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1325:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1326:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1328:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (CallbackID) 1330:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1331:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1332:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit 1333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1334:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1335:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1336:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit 1337:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1338:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1339:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default : 1340:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1341:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1342:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1343:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1344:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1345:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1346:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1349:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1350:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update the error code */ 1351:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1352:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1353:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return error status */ 1354:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** status = HAL_ERROR; 1355:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1356:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1357:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return status; 1358:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1359:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1360:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1361:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1363:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 1364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 151 1366:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group2 ADC Input and Output operation functions 1367:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief ADC IO operation functions 1368:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 1369:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @verbatim 1370:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 1371:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### IO operation functions ##### 1372:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 1373:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] This section provides functions allowing to: 1374:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Start conversion of regular group. 1375:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Stop conversion of regular group. 1376:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Poll for conversion complete on regular group. 1377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Poll for conversion event. 1378:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Get result of regular channel conversion. 1379:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Start conversion of regular group and enable interruptions. 1380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Stop conversion of regular group and disable interruptions. 1381:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Handle ADC interrupt request 1382:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Start conversion of regular group and enable DMA transfer. 1383:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Stop conversion of regular group and disable ADC DMA transfer. 1384:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @endverbatim 1385:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 1386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1387:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1388:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group. 1390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Interruptions enabled in this function: None. 1391:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1392:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * if ADC is Slave, ADC is enabled but conversion is not started, 1393:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * if ADC is master, ADC is enabled and multimode conversion is started. 1394:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1396:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1397:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef *hadc) 1398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1401:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1403:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 1404:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1405:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1406:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 1411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable the ADC peripheral */ 1413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1415:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1418:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1419:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1420:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1421:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1422:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A ARM GAS /tmp/ccIEHjf0.s page 152 1423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1424:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1426:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1427:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1430:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1435:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code */ 1436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 1438:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1439:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1441:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1442:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1443:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1444:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset all ADC error code fields */ 1445:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1446:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1447:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1448:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1449:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1450:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1454:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1457:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable conversion of regular group. */ 1458:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* trigger event. */ 1461:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1462:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1463:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* enabled only (conversion is not started), */ 1464:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1466:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1467:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1468:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1469:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1470:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1471:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1473:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1474:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1475:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1476:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1477:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start ADC group regular conversion */ 1478:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1479:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 153 1480:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1481:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 1483:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1484:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 1485:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_INJ_BUSY bit and in resetting HAL_ADC_STATE_INJ_EOC bit */ 1486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 1488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1490:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1491:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1493:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1494:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1498:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1501:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1502:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 1503:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 1506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 1507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1508:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1509:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected channels in 1511:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * case of auto_injection mode), disable ADC peripheral. 1512:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 1513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * conversion on injected group. If injected group is under use, it 1514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. 1515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1516:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 1517:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1518:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef *hadc) 1519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1521:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 1523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1524:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 1527:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1528:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 1529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 1530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 1532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1533:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1534:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 1535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 1536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 154 1537:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 1538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1540:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 1543:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY); 1544:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1546:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1549:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 1551:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 1552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1554:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Wait for regular group conversion to be completed. 1556:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note ADC conversion flags EOS (end of sequence) and EOC (end of 1557:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * conversion) are cleared by this function, with an exception: 1558:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * if low power feature "LowPowerAutoWait" is enabled, flags are 1559:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * not cleared to not interfere with this feature until data register 1560:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * is read using function HAL_ADC_GetValue(). 1561:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note This function cannot be used in a particular setup: ADC configured 1562:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * in DMA mode and polling for end of each conversion (ADC init 1563:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SINGLE_CONV). 1564:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * In this case, DMA resets the flag EOC and polling cannot be 1565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * performed on each conversion. Nevertheless, polling can still 1566:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * be performed on the complete sequence (ADC init 1567:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SEQ_CONV). 1568:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1569:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1570:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1571:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1572:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef *hadc, uint32_t Timeout) 1573:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 307 .loc 1 1573 1 is_stmt 1 view -0 308 .cfi_startproc 309 @ args = 0, pretend = 0, frame = 0 310 @ frame_needed = 0, uses_anonymous_args = 0 311 .loc 1 1573 1 is_stmt 0 view .LVU57 312 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 313 .cfi_def_cfa_offset 24 314 .cfi_offset 4, -24 315 .cfi_offset 5, -20 316 .cfi_offset 6, -16 317 .cfi_offset 7, -12 318 .cfi_offset 8, -8 319 .cfi_offset 14, -4 320 0004 0446 mov r4, r0 321 0006 0E46 mov r6, r1 1574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 322 .loc 1 1574 3 is_stmt 1 view .LVU58 1575:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_Flag_End; 323 .loc 1 1575 3 view .LVU59 1576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_cfgr; ARM GAS /tmp/ccIEHjf0.s page 155 324 .loc 1 1576 3 view .LVU60 1577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 325 .loc 1 1577 3 view .LVU61 1578:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 326 .loc 1 1578 3 view .LVU62 327 .LVL24: 328 .LBB220: 329 .LBI220: 5787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC analog watchdog monitored channel. 5790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Usage of the returned channel number: 5791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 5792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 5793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 5794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 5795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 5797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * as parameter for another function. 5798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - To get the channel number in decimal format: 5799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * process the returned value with the helper macro 5800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Applicable only when the analog watchdog is set to monitor 5802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * one channel. 5803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * instance: 5805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD standard (instance AWD1): 5806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution configured). 5810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * be selected. For example: 5815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * groups regular and injected). 5818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the 2 LSB are ignored. 5824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 5826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 5828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_GetAnalogWDMonitChannels\n 5829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_GetAnalogWDMonitChannels\n 5830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_GetAnalogWDMonitChannels\n 5831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_GetAnalogWDMonitChannels\n 5832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_GetAnalogWDMonitChannels\n 5833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_GetAnalogWDMonitChannels 5834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 5835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: ARM GAS /tmp/ccIEHjf0.s page 156 5836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 5837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 (1) 5838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 (1) 5839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) On this AWD number, monitored channel can be retrieved 5841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * if only 1 channel is programmed (or none or all channels). 5842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This function cannot retrieve monitored channel if 5843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * multiple channels are programmed simultaneously 5844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * by bitfield. 5845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 5847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 5848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 5849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 5850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 5851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 5852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 5853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 5854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 5855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 5856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 5857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 5858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 5859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 5860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 5861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 5862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 5863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 5864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 5865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 5866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 5867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 5868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 5869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 5870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 5871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 5872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 5873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 5874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 5875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 5876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 5877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 5878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 5879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 5880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 5881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 5882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 5883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 5884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 5885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 5886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 5887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 5888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 5889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 5890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 5891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 5892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) ARM GAS /tmp/ccIEHjf0.s page 157 5893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 5894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 5895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 5896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 5897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 5898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 5899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 5900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 5901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 5902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 5903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 5904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 5905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 5906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 5907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG (0) 5908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_INJ (0) 5909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_19_REG_INJ 5910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 5911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (0) On STM32H7, parameter available only on analog watchdog number: AWD1. 5912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 5913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDMonitChannels(const ADC_TypeDef *ADCx, uint32_t AWDy) 5914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) 5916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MA 5917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** uint32_t AnalogWDMonitChannels = (READ_BIT(*preg, AWDy) & AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK); 5919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* If "AnalogWDMonitChannels" == 0, then the selected AWD is disabled */ 5921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* (parameter value LL_ADC_AWD_DISABLE). */ 5922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Else, the selected AWD is enabled and is monitoring a group of channels */ 5923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* or a single channel. */ 5924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (AnalogWDMonitChannels != 0UL) 5925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (AWDy == LL_ADC_AWD1) 5927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((AnalogWDMonitChannels & ADC_CFGR_AWD1SGL) == 0UL) 5929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* AWD monitoring a group of channels */ 5931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AnalogWDMonitChannels = ((AnalogWDMonitChannels 5932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | (ADC_AWD_CR23_CHANNEL_MASK) 5933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ) 5934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** & (~(ADC_CFGR_AWD1CH)) 5935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 5938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* AWD monitoring a single channel */ 5940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AnalogWDMonitChannels = (AnalogWDMonitChannels 5941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | (ADC_AWD2CR_AWD2CH_0 << (AnalogWDMonitChannels >> ADC_CFGR_AWD1C 5942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 5946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((AnalogWDMonitChannels & ADC_AWD_CR23_CHANNEL_MASK) == ADC_AWD_CR23_CHANNEL_MASK) 5948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* AWD monitoring a group of channels */ ARM GAS /tmp/ccIEHjf0.s page 158 5950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AnalogWDMonitChannels = (ADC_AWD_CR23_CHANNEL_MASK 5951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | ((ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN)) 5952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 5955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* AWD monitoring a single channel */ 5957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* AWD monitoring a group of channels */ 5958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AnalogWDMonitChannels = (AnalogWDMonitChannels 5959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | (ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 5960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** | (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDMonitChannels) << ADC_CF 5961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 5962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return AnalogWDMonitChannels; 5967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 5970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC analog watchdog threshold value of threshold 5971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * high or low. 5972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 5973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 5974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). 5975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * instance: 5977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD standard (instance AWD1): 5978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution configured). 5982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * be selected. For example: 5987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * groups regular and injected). 5990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the 2 LSB are ignored. 5996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC oversampling is enabled, ADC analog watchdog thresholds are 5997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * impacted: the comparison of analog watchdog thresholds is done 5998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on oversampling intermediate computation (after ratio, before shift 5999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * application): intermediate register bitfield [32:7] 6000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (26 most significant bits). 6001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either ADC groups regular or injected. 6005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_SetAnalogWDThresholds\n 6006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 HT2 LL_ADC_SetAnalogWDThresholds\n ARM GAS /tmp/ccIEHjf0.s page 159 6007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 HT3 LL_ADC_SetAnalogWDThresholds\n 6008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR1 LT1 LL_ADC_SetAnalogWDThresholds\n 6009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 LT2 LL_ADC_SetAnalogWDThresholds\n 6010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 LT3 LL_ADC_SetAnalogWDThresholds 6011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 6017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 6018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 6019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDThresholdValue Value between Min_Data=0x000 and Max_Data=0xFFF 6020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWDThr 6023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 6026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdValue" with bits */ 6028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* position in register and register position depending on parameters */ 6029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "AWDThresholdsHighLow" and "AWDy". */ 6030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdValue" are used with masks because */ 6031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) 6033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 6035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC3_TR1_LT1 << (AWDThresholdsHighLow * ADC3_TR1_HT1_Pos)), 6036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** AWDThresholdValue << (((AWDThresholdsHighLow * ADC3_TR1_HT1) & ADC_AWD_TRX_BIT_HIGH_ 6037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdValue" with bits */ 6041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* position in register and register position depending on parameters */ 6042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "AWDThresholdsHighLow" and "AWDy". */ 6043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdValue" are used with masks because */ 6044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, (((AWDy & ADC_AWD_TRX_REGOFFSET_MASK 6046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSETGAP_MASK) 6047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (AWDThresholdsHighLow)); 6048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_LTR_LT, AWDThresholdValue); 6050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 6052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdValue" with bits */ 6053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* position in register and register position depending on parameters */ 6054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "AWDThresholdsHighLow" and "AWDy". */ 6055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdValue" are used with masks because */ 6056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1, (((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> A 6058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSETGAP_MASK) * 6059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (AWDThresholdsHighLow)); 6060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_LTR_LT, AWDThresholdValue); 6062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 160 6064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC analog watchdog threshold value of threshold high, 6067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * threshold low or raw data with ADC thresholds high and low 6068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * concatenated. 6069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 6070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 6071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(). 6072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_GetAnalogWDThresholds\n 6073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 HT2 LL_ADC_GetAnalogWDThresholds\n 6074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 HT3 LL_ADC_GetAnalogWDThresholds\n 6075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR1 LT1 LL_ADC_GetAnalogWDThresholds\n 6076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 LT2 LL_ADC_GetAnalogWDThresholds\n 6077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 LT3 LL_ADC_GetAnalogWDThresholds 6078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 6084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 6085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 6086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FFFFFF 6087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDThresholds(const ADC_TypeDef *ADCx, uint32_t AWDy, uint3 6089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 6092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, 6094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AW 6095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 6097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (ADC3_TR1_LT1 << (AWDThresholdsHighLow * ADC3_TR1_HT1_Pos))) 6098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (((AWDThresholdsHighLow & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TRX_BIT_HI 6099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** & ~(AWDThresholdsHighLow & ADC3_TR1_LT1))); 6100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, (((AWDy & ADC_AWD_TRX_REGOFFSE 6104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSE 6105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (AWDThresholdsHighLow)); 6106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, ADC_LTR_LT)); 6108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 6110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1, (((AWDy & ADC_AWD_TRX_REGOFFSET_MAS 6111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSE 6112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (AWDThresholdsHighLow)); 6113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, ADC_LTR_LT)); 6115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** ARM GAS /tmp/ccIEHjf0.s page 161 6121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC analog watchdog thresholds value of both thresholds 6122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * high and low. Applicable for devices STM32H72xx and STM32H73xx. 6123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If value of only one threshold high or low must be set, 6124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * use function @ref LL_ADC_SetAnalogWDThresholds(). 6125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 6126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 6127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). 6128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 6129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * instance: 6130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD standard (instance AWD1): 6131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 6132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 6133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 6134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution configured). 6135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 6136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 6137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * channel wise, from from 1 to all channels. 6138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 6139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * be selected. For example: 6140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 6141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 6142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * groups regular and injected). 6143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 6144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 6145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 6146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 6147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 6148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the 2 LSB are ignored. 6149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_ConfigAnalogWDThresholds\n 6150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 HT2 LL_ADC_ConfigAnalogWDThresholds\n 6151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 HT3 LL_ADC_ConfigAnalogWDThresholds\n 6152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR1 LT1 LL_ADC_ConfigAnalogWDThresholds\n 6153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR2 LT2 LL_ADC_ConfigAnalogWDThresholds\n 6154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * TR3 LT3 LL_ADC_ConfigAnalogWDThresholds 6155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDThresholdHighValue Value between Min_Data=0x000 and Max_Data=0xFFF 6161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDThresholdLowValue Value between Min_Data=0x000 and Max_Data=0xFFF 6162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 6165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdxxxValue" with bits */ 6167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* position in register and register position depending on parameter */ 6168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* "AWDy". */ 6169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdxxxValue" are used with masks because */ 6170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 6172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, 6174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_ 6175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, 6177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC3_TR1_HT1 | ADC3_TR1_LT1, ARM GAS /tmp/ccIEHjf0.s page 162 6178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDThresholdHighValue << ADC3_TR1_HT1_Pos) | AWDThresholdLowValue); 6179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, (((AWDy & ADC_AWD_TRX_REGOFFSET_MASK 6183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSETGAP_MASK) 6184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (LL_ADC_AWD_THRESHOLD_LOW)); 6185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __IO uint32_t *preg2 = __ADC_PTR_REG_OFFSET(ADCx->LTR1_TR1, (((AWDy & ADC_AWD_TRX_REGOFFSET_MAS 6186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_TR12_REGOFFSETGAP_MASK) 6187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + (LL_ADC_AWD_THRESHOLD_HIGH)); 6188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_LTR_LT, AWDThresholdLowValue); 6190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg2, ADC_HTR_HT, AWDThresholdHighValue); 6191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC analog watchdog filtering configuration 6197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 6201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Applicable on ADC3 of devices STM32H72xx and STM32H73xx. 6202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first 6203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog (AWD1) 6204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_SetAWDFilteringConfiguration 6205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param FilteringConfig This parameter can be one of the following values: 6209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 6210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES 6211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 6212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 6213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 6214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 6215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 6216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 6217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAWDFilteringConfiguration(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t 6220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 6222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 6224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (void)(AWDy); 6225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->LTR1_TR1, ADC3_TR1_AWDFILT, FilteringConfig); 6226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC analog watchdog filtering configuration 6231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first 6232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * analog watchdog (AWD1) 6233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Applicable on ADC3 of devices STM32H72xx and STM32H73xx. 6234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_GetAWDFilteringConfiguration ARM GAS /tmp/ccIEHjf0.s page 163 6235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be: 6239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 6240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES 6241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 6242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 6243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 6244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 6245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 6246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 6247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAWDFilteringConfiguration(const ADC_TypeDef *ADCx, uint32_t AWDy 6249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx == ADC3) 6251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 6253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (void)(AWDy); 6254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->LTR1_TR1, ADC3_TR1_AWDFILT)); 6255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Function not available on this instance, return 0 */ 6259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return 0UL; 6260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 6265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_oversampling Configuration of ADC transversal scope: over 6268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 6269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC oversampling scope: ADC groups regular and-or injected 6273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 families). 6274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If both groups regular and injected are selected, 6275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 6276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 6277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the oversampling on ADC group regular is either 6278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 6279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (oversampler buffer reset). 6280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 6284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_SetOverSamplingScope\n 6285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_SetOverSamplingScope\n 6286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_SetOverSamplingScope 6287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OvsScope This parameter can be one of the following values: 6289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 6290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 6291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED ARM GAS /tmp/ccIEHjf0.s page 164 6292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 6293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 6294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingScope(ADC_TypeDef *ADCx, uint32_t OvsScope) 6297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_ROVSE | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSM, OvsScope); 6299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC oversampling scope: ADC groups regular and-or injected 6303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 families). 6304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If both groups regular and injected are selected, 6305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 6306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 6307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * the oversampling on ADC group regular is either 6308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 6309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (oversampler buffer reset). 6310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_GetOverSamplingScope\n 6311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_GetOverSamplingScope\n 6312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_GetOverSamplingScope 6313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 6316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 6317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED 6318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 6319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 6320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingScope(const ADC_TypeDef *ADCx) 6322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_ROVSE | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSM)); 6324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC oversampling discontinuous mode (triggered mode) 6328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on the selected ADC group. 6329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 6330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 6331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are done from 1 trigger) 6332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 6333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * needs a trigger) 6334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on group regular. 6338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, oversampling discontinuous mode 6339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (triggered mode) can be used only when oversampling is 6340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * set on group regular only and in resumed mode. 6341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_SetOverSamplingDiscont 6342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param OverSamplingDiscont This parameter can be one of the following values: 6344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 6345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 6346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingDiscont(ADC_TypeDef *ADCx, uint32_t OverSamplingDiscont) ARM GAS /tmp/ccIEHjf0.s page 165 6349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_TROVS, OverSamplingDiscont); 6351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC oversampling discontinuous mode (triggered mode) 6355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on the selected ADC group. 6356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 6357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 6358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are done from 1 trigger) 6359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 6360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * needs a trigger) 6361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_GetOverSamplingDiscont 6362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 6365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 6366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingDiscont(const ADC_TypeDef *ADCx) 6368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_TROVS)); 6370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC oversampling 6374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note This function set the 2 items of oversampling configuration: 6376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ratio 6377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - shift 6378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 6382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_ConfigOverSamplingRatioShift\n 6383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CFGR2 OVSR LL_ADC_ConfigOverSamplingRatioShift 6384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Ratio This parameter can be in the range from 1 to 1024. 6386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In the case of ADC3 can be one of the following values: 6387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 6388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 6389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 6390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 6391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 6392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 6393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 6394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 6395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Shift This parameter can be one of the following values: 6396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 6397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 6398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 6399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 6400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 6401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 6402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 6403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 6404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 6405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_9 ARM GAS /tmp/ccIEHjf0.s page 166 6406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_10 6407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_11 6408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigOverSamplingRatioShift(ADC_TypeDef *ADCx, uint32_t Ratio, uint32_ 6411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if(ADCx==ADC3) 6414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC3_CFGR2_OVSR), (Shift | Ratio)); 6416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC_CFGR2_OVSR), (Shift | (((Ratio - 1UL) << ADC_CFGR 6420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 6422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC_CFGR2_OVSR), (Shift | (((Ratio - 1UL) << ADC_CFGR2_ 6424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC oversampling ratio 6430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 OVSR LL_ADC_GetOverSamplingRatio 6432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Ratio This parameter can be in the from 1 to 1024. 6434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * In the case of ADC3 can be one of the following values: 6435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 6436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 6437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 6438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 6439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 6440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 6441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 6442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 6443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingRatio(const ADC_TypeDef *ADCx) 6445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if(ADCx==ADC3) 6448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC3_CFGR2_OVSR)); 6450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else 6452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (((uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSR)) + (1UL << ADC_CFGR2_OVSR_Pos)) >> AD 6454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else 6456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (((uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSR)) + (1UL << ADC_CFGR2_OVSR_Pos)) >> ADC_ 6458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** ARM GAS /tmp/ccIEHjf0.s page 167 6463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC oversampling shift 6464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_GetOverSamplingShift 6466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Shift This parameter can be one of the following values: 6468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 6469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 6470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 6471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 6472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 6473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 6474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 6475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 6476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 6477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_9 6478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_10 6479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_11 6480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingShift(const ADC_TypeDef *ADCx) 6482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSS)); 6484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 6488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Multimode Configuration of ADC hierarchical scope: multim 6491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 6492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC boost mode. 6495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC boost must be configured, without calibration on going, without conversion 6498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on group regular. 6499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR BOOST LL_ADC_SetBoostMode 6500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param BoostMode This parameter can be one of the following values: 6502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOOST_MODE_6MHZ25 6503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOOST_MODE_12MHZ5 6504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOOST_MODE_20MHZ 6505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOOST_MODE_25MHZ 6506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_BOOST_MODE_50MHZ 6507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetBoostMode(ADC_TypeDef *ADCx, uint32_t BoostMode) 6510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 6512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if (ADCx != ADC3) 6513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, ADC_CR_BOOST, (BoostMode & ADC_CR_BOOST)); 6515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #else /* ADC_VER_V5_V90 */ 6517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((DBGMCU->IDCODE & 0x30000000UL) == 0x10000000UL) /* Cut 1.x */ 6518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, ADC_CR_BOOST_0, (BoostMode >> 2UL)); ARM GAS /tmp/ccIEHjf0.s page 168 6520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* Cut 2.x */ 6522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, ADC_CR_BOOST, (BoostMode & ADC_CR_BOOST)); 6524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #endif /* ADC_VER_V5_V90 */ 6526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC boost mode. 6531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC boost must be configured, without calibration on going, without conversion 6534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on going on group regular. 6535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR BOOST LL_ADC_GetBoostMode 6536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: Boost disabled 1: Boost enabled 6538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetBoostMode(const ADC_TypeDef *ADCx) 6540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** if ((DBGMCU->IDCODE & 0x30000000UL) == 0x10000000UL) /* Cut 1.x */ 6542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)READ_BIT(ADCx->CR, ADC_CR_BOOST_0); 6544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** else /* Cut 2.x */ 6546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_BOOST) == (ADC_CR_BOOST)) ? 1UL : 0UL); 6548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC multimode configuration to operate in independent mode 6553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 6554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 6555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * either master or slave depending on hardware. 6556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to reference manual. 6557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 6560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 6561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance or by using helper macro 6562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 6563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_SetMultimode 6564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Multimode This parameter can be one of the following values: 6567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 6568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 6569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 6570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 6571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 6572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM 6573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 6574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 6575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 169 6577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultimode(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Multimode) 6578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DUAL, Multimode); 6580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC multimode configuration to operate in independent mode 6584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 6585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 6586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * either master or slave depending on hardware. 6587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to reference manual. 6588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_GetMultimode 6589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 6593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 6594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 6595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 6596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 6597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM 6598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 6599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 6600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultimode(const ADC_Common_TypeDef *ADCxy_COMMON) 330 .loc 2 6601 26 view .LVU63 331 .LBB221: 6602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL)); 332 .loc 2 6603 3 view .LVU64 333 .loc 2 6603 21 is_stmt 0 view .LVU65 334 0008 424B ldr r3, .L40 335 000a 9F68 ldr r7, [r3, #8] 336 .loc 2 6603 10 view .LVU66 337 000c 07F01F07 and r7, r7, #31 338 .LVL25: 339 .loc 2 6603 10 view .LVU67 340 .LBE221: 341 .LBE220: 1579:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 1581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 342 .loc 1 1581 3 is_stmt 1 view .LVU68 1582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1583:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If end of conversion selected to end of sequence conversions */ 1584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.EOCSelection == ADC_EOC_SEQ_CONV) 343 .loc 1 1584 3 view .LVU69 344 .loc 1 1584 17 is_stmt 0 view .LVU70 345 0010 0569 ldr r5, [r0, #16] 346 .loc 1 1584 6 view .LVU71 347 0012 082D cmp r5, #8 348 0014 0DD0 beq .L17 1585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_Flag_End = ADC_FLAG_EOS; 1587:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1588:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If end of conversion selected to end of unitary conversion */ 1589:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else /* ADC_EOC_SINGLE_CONV */ ARM GAS /tmp/ccIEHjf0.s page 170 1590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1591:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verification that ADC configuration is compliant with polling for */ 1592:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* each conversion: */ 1593:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Particular case is ADC configured in DMA mode and ADC sequencer with */ 1594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* several ranks and polling for end of each conversion. */ 1595:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* For code simplicity sake, this particular case is generalized to */ 1596:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC configured in DMA mode and and polling for end of each conversion. */ 1597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 349 .loc 1 1597 5 is_stmt 1 view .LVU72 350 0016 092F cmp r7, #9 351 0018 30D8 bhi .L18 352 001a 40F22123 movw r3, #545 353 001e FB40 lsrs r3, r3, r7 354 0020 13F0010F tst r3, #1 355 0024 2AD0 beq .L18 1598:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1599:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1600:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1601:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check DMNGT bit in handle ADC CFGR register */ 1603:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT_0) != 0UL) 356 .loc 1 1603 7 view .LVU73 357 .loc 1 1603 11 is_stmt 0 view .LVU74 358 0026 0368 ldr r3, [r0] 359 0028 DB68 ldr r3, [r3, #12] 360 .loc 1 1603 10 view .LVU75 361 002a 13F0010F tst r3, #1 362 002e 1FD1 bne .L35 1604:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 1607:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1609:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1610:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 363 .loc 1 1610 22 view .LVU76 364 0030 0425 movs r5, #4 365 .L17: 366 .LVL26: 1611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1612:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1613:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1614:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1615:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check ADC DMA mode in multimode on ADC group regular */ 1616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_REG_ 1617:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1618:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 1620:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1621:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 1624:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1626:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1627:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get tick count */ ARM GAS /tmp/ccIEHjf0.s page 171 1629:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tickstart = HAL_GetTick(); 367 .loc 1 1629 3 is_stmt 1 view .LVU77 368 .loc 1 1629 15 is_stmt 0 view .LVU78 369 0032 FFF7FEFF bl HAL_GetTick 370 .LVL27: 371 .loc 1 1629 15 view .LVU79 372 0036 8046 mov r8, r0 373 .LVL28: 1630:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1631:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait until End of unitary conversion or sequence conversions flag is raised */ 1632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 374 .loc 1 1632 3 is_stmt 1 view .LVU80 375 .L21: 376 .loc 1 1632 47 view .LVU81 377 .loc 1 1632 15 is_stmt 0 view .LVU82 378 0038 2368 ldr r3, [r4] 379 .loc 1 1632 25 view .LVU83 380 003a 1A68 ldr r2, [r3] 381 .loc 1 1632 47 view .LVU84 382 003c 2A42 tst r2, r5 383 003e 2AD1 bne .L36 1633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1634:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 384 .loc 1 1635 5 is_stmt 1 view .LVU85 385 .loc 1 1635 8 is_stmt 0 view .LVU86 386 0040 B6F1FF3F cmp r6, #-1 387 0044 F8D0 beq .L21 1636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 388 .loc 1 1637 7 is_stmt 1 view .LVU87 389 .loc 1 1637 13 is_stmt 0 view .LVU88 390 0046 FFF7FEFF bl HAL_GetTick 391 .LVL29: 392 .loc 1 1637 27 discriminator 1 view .LVU89 393 004a A0EB0800 sub r0, r0, r8 394 .loc 1 1637 10 discriminator 1 view .LVU90 395 004e B042 cmp r0, r6 396 0050 01D8 bhi .L22 397 .loc 1 1637 51 discriminator 1 view .LVU91 398 0052 002E cmp r6, #0 399 0054 F0D1 bne .L21 400 .L22: 1638:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1640:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 401 .loc 1 1640 9 is_stmt 1 view .LVU92 402 .loc 1 1640 17 is_stmt 0 view .LVU93 403 0056 2368 ldr r3, [r4] 404 .loc 1 1640 27 view .LVU94 405 0058 1B68 ldr r3, [r3] 406 .loc 1 1640 11 view .LVU95 407 005a 2B42 tst r3, r5 408 005c ECD1 bne .L21 1641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1642:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1643:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); ARM GAS /tmp/ccIEHjf0.s page 172 409 .loc 1 1643 11 is_stmt 1 view .LVU96 410 005e 636D ldr r3, [r4, #84] 411 0060 43F00403 orr r3, r3, #4 412 0064 6365 str r3, [r4, #84] 1644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1645:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1646:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 413 .loc 1 1646 11 view .LVU97 414 .loc 1 1646 11 view .LVU98 415 0066 0023 movs r3, #0 416 0068 84F85030 strb r3, [r4, #80] 417 .loc 1 1646 11 view .LVU99 1647:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1648:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_TIMEOUT; 418 .loc 1 1648 11 view .LVU100 419 .loc 1 1648 18 is_stmt 0 view .LVU101 420 006c 0320 movs r0, #3 421 006e 4CE0 b .L19 422 .LVL30: 423 .L35: 1605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 424 .loc 1 1605 9 is_stmt 1 view .LVU102 425 0070 436D ldr r3, [r0, #84] 426 0072 43F02003 orr r3, r3, #32 427 0076 4365 str r3, [r0, #84] 1606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 428 .loc 1 1606 9 view .LVU103 1606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 429 .loc 1 1606 16 is_stmt 0 view .LVU104 430 0078 0120 movs r0, #1 431 .LVL31: 1606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 432 .loc 1 1606 16 view .LVU105 433 007a 46E0 b .L19 434 .LVL32: 435 .L18: 1616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 436 .loc 1 1616 7 is_stmt 1 view .LVU106 437 .LBB222: 438 .LBI222: 6604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC multimode conversion data transfer: no transfer 6608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or transfer by DMA. 6609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 6610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 6611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * DMA transfer settings. 6612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 6613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 6614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specifies the DMA requests mode: 6615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 6616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when number of DMA data transfers (number of 6617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions) is reached. 6618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 6619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 6620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * whatever number of DMA data transfers (number of ARM GAS /tmp/ccIEHjf0.s page 173 6621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions). 6622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 6623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 6624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode non-circular: 6625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 6626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 6627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (overrun flag and interruption if enabled). 6628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 6629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function 6630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 6631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 6632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 6633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * A macro is available to get the conversion data of 6634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 6635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 6636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled 6639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or enabled without conversion on going on group regular. 6640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DAMDF LL_ADC_GetMultiDMATransfer\n 6641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param MultiDMATransfer This parameter can be one of the following values: 6644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 6645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_RES_32_10B 6646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_RES_8B 6647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t MultiDMA 6650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DAMDF, MultiDMATransfer); 6652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC multimode conversion data transfer: no transfer 6656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or transfer by DMA. 6657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 6658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 6659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * DMA transfer settings. 6660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 6661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 6662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Specifies the DMA requests mode: 6663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 6664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when number of DMA data transfers (number of 6665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions) is reached. 6666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 6667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 6668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * whatever number of DMA data transfers (number of 6669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions). 6670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 6671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 6672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * mode non-circular: 6673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 6674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 6675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (overrun flag and interruption if enabled). 6676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 6677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function ARM GAS /tmp/ccIEHjf0.s page 174 6678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 6679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 6680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 6681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * A macro is available to get the conversion data of 6682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 6683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 6684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DAMDF LL_ADC_GetMultiDMATransfer\n 6685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 6689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_RES_32_10B 6690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_RES_8B 6691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiDMATransfer(const ADC_Common_TypeDef *ADCxy_COMMON) 439 .loc 2 6692 26 view .LVU107 440 .LBB223: 6693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DAMDF)); 441 .loc 2 6694 3 view .LVU108 442 .loc 2 6694 21 is_stmt 0 view .LVU109 443 007c 254B ldr r3, .L40 444 007e 9B68 ldr r3, [r3, #8] 445 .LVL33: 446 .loc 2 6694 21 view .LVU110 447 .LBE223: 448 .LBE222: 1616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 449 .loc 1 1616 10 discriminator 1 view .LVU111 450 0080 13F4404F tst r3, #49152 451 0084 01D1 bne .L37 1623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 452 .loc 1 1623 22 view .LVU112 453 0086 0425 movs r5, #4 454 0088 D3E7 b .L17 455 .L37: 1618:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 456 .loc 1 1618 9 is_stmt 1 view .LVU113 457 008a 636D ldr r3, [r4, #84] 458 008c 43F02003 orr r3, r3, #32 459 0090 6365 str r3, [r4, #84] 1619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 460 .loc 1 1619 9 view .LVU114 1619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 461 .loc 1 1619 16 is_stmt 0 view .LVU115 462 0092 0120 movs r0, #1 463 .LVL34: 1619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 464 .loc 1 1619 16 view .LVU116 465 0094 39E0 b .L19 466 .LVL35: 467 .L36: 1649:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1650:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1653:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 175 1654:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine */ 1655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 468 .loc 1 1655 3 is_stmt 1 view .LVU117 469 0096 626D ldr r2, [r4, #84] 470 0098 42F40072 orr r2, r2, #512 471 009c 6265 str r2, [r4, #84] 1656:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1657:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 1658:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ 1659:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 472 .loc 1 1659 3 view .LVU118 473 .LVL36: 474 .LBB224: 475 .LBI224: 3928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 476 .loc 2 3928 26 view .LVU119 477 .LBB225: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 478 .loc 2 3930 3 view .LVU120 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 479 .loc 2 3930 12 is_stmt 0 view .LVU121 480 009e DA68 ldr r2, [r3, #12] 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 481 .loc 2 3930 103 view .LVU122 482 00a0 12F4406F tst r2, #3072 483 00a4 11D1 bne .L24 484 .LVL37: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 485 .loc 2 3930 103 view .LVU123 486 .LBE225: 487 .LBE224: 1660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == DISABLE) 488 .loc 1 1660 21 view .LVU124 489 00a6 627D ldrb r2, [r4, #21] @ zero_extendqisi2 490 .loc 1 1660 7 view .LVU125 491 00a8 7AB9 cbnz r2, .L24 1661:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1662:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check whether end of sequence is reached */ 1664:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 492 .loc 1 1664 5 is_stmt 1 view .LVU126 493 .loc 1 1664 9 is_stmt 0 view .LVU127 494 00aa 1A68 ldr r2, [r3] 495 .loc 1 1664 8 view .LVU128 496 00ac 12F0080F tst r2, #8 497 00b0 0BD0 beq .L24 1665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1666:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 498 .loc 1 1667 7 is_stmt 1 view .LVU129 499 00b2 626D ldr r2, [r4, #84] 500 00b4 22F48072 bic r2, r2, #256 501 00b8 6265 str r2, [r4, #84] 1668:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1669:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 502 .loc 1 1669 7 view .LVU130 503 .loc 1 1669 16 is_stmt 0 view .LVU131 ARM GAS /tmp/ccIEHjf0.s page 176 504 00ba 626D ldr r2, [r4, #84] 505 .loc 1 1669 10 view .LVU132 506 00bc 12F4805F tst r2, #4096 507 00c0 03D1 bne .L24 1670:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1671:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 508 .loc 1 1671 9 is_stmt 1 view .LVU133 509 00c2 626D ldr r2, [r4, #84] 510 00c4 42F00102 orr r2, r2, #1 511 00c8 6265 str r2, [r4, #84] 512 .L24: 1672:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1674:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1675:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1676:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1677:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 1678:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* available). */ 1679:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 513 .loc 1 1679 3 view .LVU134 514 .loc 1 1679 8 is_stmt 0 view .LVU135 515 00ca 134A ldr r2, .L40+4 516 00cc 9342 cmp r3, r2 517 00ce 14D0 beq .L38 518 .loc 1 1679 8 discriminator 1 view .LVU136 519 00d0 1A46 mov r2, r3 520 .L25: 521 .loc 1 1679 6 discriminator 4 view .LVU137 522 00d2 9342 cmp r3, r2 523 00d4 07D0 beq .L26 524 00d6 092F cmp r7, #9 525 00d8 12D8 bhi .L27 526 00da 40F22121 movw r1, #545 527 00de F940 lsrs r1, r1, r7 528 00e0 11F0010F tst r1, #1 529 00e4 0CD0 beq .L27 530 .L26: 1680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1681:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1682:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1684:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve handle ADC CFGR register */ 1686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 531 .loc 1 1686 5 is_stmt 1 view .LVU138 532 .loc 1 1686 14 is_stmt 0 view .LVU139 533 00e6 DA68 ldr r2, [r3, #12] 534 .LVL38: 535 .L28: 1687:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1688:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1689:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1690:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve Master ADC CFGR register */ 1691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1693:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1694:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 177 1695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear polled flag */ 1696:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_Flag_End == ADC_FLAG_EOS) 536 .loc 1 1696 3 is_stmt 1 view .LVU140 537 .loc 1 1696 6 is_stmt 0 view .LVU141 538 00e8 082D cmp r5, #8 539 00ea 0BD0 beq .L39 1697:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOS); 1699:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1700:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1701:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1702:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear end of conversion EOC flag of regular group if low power feature */ 1703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* "LowPowerAutoWait " is disabled, to not interfere with this feature */ 1704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* until data register is read using function HAL_ADC_GetValue(). */ 1705:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_AUTDLY) == 0UL) 540 .loc 1 1705 5 is_stmt 1 view .LVU142 541 .loc 1 1705 8 is_stmt 0 view .LVU143 542 00ec 12F4804F tst r2, #16384 543 00f0 0DD1 bne .L33 1706:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 544 .loc 1 1707 7 is_stmt 1 view .LVU144 545 00f2 0C22 movs r2, #12 546 .LVL39: 547 .loc 1 1707 7 is_stmt 0 view .LVU145 548 00f4 1A60 str r2, [r3] 1708:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1709:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1711:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 1712:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_OK; 549 .loc 1 1712 10 view .LVU146 550 00f6 0020 movs r0, #0 551 00f8 07E0 b .L19 552 .LVL40: 553 .L38: 1679:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 554 .loc 1 1679 8 discriminator 2 view .LVU147 555 00fa A2F58072 sub r2, r2, #256 556 00fe E8E7 b .L25 557 .L27: 1691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 558 .loc 1 1691 5 is_stmt 1 view .LVU148 559 .LVL41: 1692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 560 .loc 1 1692 5 view .LVU149 1692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 561 .loc 1 1692 14 is_stmt 0 view .LVU150 562 0100 D268 ldr r2, [r2, #12] 563 .LVL42: 1692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 564 .loc 1 1692 14 view .LVU151 565 0102 F1E7 b .L28 566 .LVL43: 567 .L39: 1698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 568 .loc 1 1698 5 is_stmt 1 view .LVU152 ARM GAS /tmp/ccIEHjf0.s page 178 569 0104 0822 movs r2, #8 570 .LVL44: 1698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 571 .loc 1 1698 5 is_stmt 0 view .LVU153 572 0106 1A60 str r2, [r3] 573 .loc 1 1712 10 view .LVU154 574 0108 0020 movs r0, #0 575 .LVL45: 576 .L19: 1713:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 577 .loc 1 1713 1 view .LVU155 578 010a BDE8F081 pop {r4, r5, r6, r7, r8, pc} 579 .LVL46: 580 .L33: 1712:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 581 .loc 1 1712 10 view .LVU156 582 010e 0020 movs r0, #0 583 0110 FBE7 b .L19 584 .L41: 585 0112 00BF .align 2 586 .L40: 587 0114 00230240 .word 1073881856 588 0118 00210240 .word 1073881344 589 .cfi_endproc 590 .LFE341: 592 .section .text.HAL_ADC_PollForEvent,"ax",%progbits 593 .align 1 594 .global HAL_ADC_PollForEvent 595 .syntax unified 596 .thumb 597 .thumb_func 599 HAL_ADC_PollForEvent: 600 .LVL47: 601 .LFB342: 1714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1715:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1716:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Poll for ADC event. 1717:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1718:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param EventType the ADC event type. 1719:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This parameter can be one of the following values: 1720:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_EOSMP_EVENT ADC End of Sampling event 1721:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_AWD1_EVENT ADC Analog watchdog 1 event (main analog watchdog, presen 1722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_AWD2_EVENT ADC Analog watchdog 2 event (additional analog watchdog, 1723:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_AWD3_EVENT ADC Analog watchdog 3 event (additional analog watchdog, 1724:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_OVR_EVENT ADC Overrun event 1725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_JQOVF_EVENT ADC Injected context queue overflow event 1726:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1727:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note The relevant flag is cleared if found to be set, except for ADC_FLAG_OVR. 1728:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Indeed, the latter is reset only if hadc->Init.Overrun field is set 1729:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * to ADC_OVR_DATA_OVERWRITTEN. Otherwise, data register may be potentially overwritten 1730:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * by a new converted data as soon as OVR is cleared. 1731:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * To reset OVR flag once the preserved data is retrieved, the user can resort 1732:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * to macro __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1734:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1735:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef *hadc, uint32_t EventType, uint32_t Timeou 1736:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 179 602 .loc 1 1736 1 is_stmt 1 view -0 603 .cfi_startproc 604 @ args = 0, pretend = 0, frame = 0 605 @ frame_needed = 0, uses_anonymous_args = 0 606 .loc 1 1736 1 is_stmt 0 view .LVU158 607 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 608 .cfi_def_cfa_offset 24 609 .cfi_offset 4, -24 610 .cfi_offset 5, -20 611 .cfi_offset 6, -16 612 .cfi_offset 7, -12 613 .cfi_offset 8, -8 614 .cfi_offset 14, -4 615 0004 0646 mov r6, r0 616 0006 0D46 mov r5, r1 617 0008 1746 mov r7, r2 1737:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 618 .loc 1 1737 3 is_stmt 1 view .LVU159 1738:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1739:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 1740:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 619 .loc 1 1740 3 view .LVU160 1741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EVENT_TYPE(EventType)); 620 .loc 1 1741 3 view .LVU161 1742:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1743:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get tick count */ 1744:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tickstart = HAL_GetTick(); 621 .loc 1 1744 3 view .LVU162 622 .loc 1 1744 15 is_stmt 0 view .LVU163 623 000a FFF7FEFF bl HAL_GetTick 624 .LVL48: 625 .loc 1 1744 15 view .LVU164 626 000e 8046 mov r8, r0 627 .LVL49: 1745:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1746:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check selected event flag */ 1747:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 628 .loc 1 1747 3 is_stmt 1 view .LVU165 629 .L44: 630 .loc 1 1747 46 view .LVU166 631 .loc 1 1747 10 is_stmt 0 view .LVU167 632 0010 3468 ldr r4, [r6] 633 0012 2368 ldr r3, [r4] 634 .loc 1 1747 46 view .LVU168 635 0014 35EA0303 bics r3, r5, r3 636 0018 18D0 beq .L57 1748:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1749:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1750:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 637 .loc 1 1750 5 is_stmt 1 view .LVU169 638 .loc 1 1750 8 is_stmt 0 view .LVU170 639 001a B7F1FF3F cmp r7, #-1 640 001e F7D0 beq .L44 1751:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 641 .loc 1 1752 7 is_stmt 1 view .LVU171 642 .loc 1 1752 13 is_stmt 0 view .LVU172 ARM GAS /tmp/ccIEHjf0.s page 180 643 0020 FFF7FEFF bl HAL_GetTick 644 .LVL50: 645 .loc 1 1752 27 discriminator 1 view .LVU173 646 0024 A0EB0800 sub r0, r0, r8 647 .loc 1 1752 10 discriminator 1 view .LVU174 648 0028 B842 cmp r0, r7 649 002a 01D8 bhi .L45 650 .loc 1 1752 51 discriminator 1 view .LVU175 651 002c 002F cmp r7, #0 652 002e EFD1 bne .L44 653 .L45: 1753:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1755:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if(__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 654 .loc 1 1755 9 is_stmt 1 view .LVU176 655 .loc 1 1755 12 is_stmt 0 view .LVU177 656 0030 3368 ldr r3, [r6] 657 0032 1B68 ldr r3, [r3] 658 .loc 1 1755 11 view .LVU178 659 0034 35EA0303 bics r3, r5, r3 660 0038 EAD0 beq .L44 1756:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1757:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1758:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); 661 .loc 1 1758 11 is_stmt 1 view .LVU179 662 003a 736D ldr r3, [r6, #84] 663 003c 43F00403 orr r3, r3, #4 664 0040 7365 str r3, [r6, #84] 1759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1761:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 665 .loc 1 1761 11 view .LVU180 666 .loc 1 1761 11 view .LVU181 667 0042 0023 movs r3, #0 668 0044 86F85030 strb r3, [r6, #80] 669 .loc 1 1761 11 view .LVU182 1762:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1763:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_TIMEOUT; 670 .loc 1 1763 11 view .LVU183 671 .loc 1 1763 18 is_stmt 0 view .LVU184 672 0048 0320 movs r0, #3 673 004a 29E0 b .L46 674 .L57: 1764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1765:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1766:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1767:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1768:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1769:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (EventType) 675 .loc 1 1769 3 is_stmt 1 view .LVU185 676 004c B5F5807F cmp r5, #256 677 0050 28D0 beq .L48 678 0052 12D9 bls .L58 679 0054 B5F5007F cmp r5, #512 680 0058 2DD0 beq .L53 681 005a B5F5806F cmp r5, #1024 682 005e 33D1 bne .L52 ARM GAS /tmp/ccIEHjf0.s page 181 1770:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1771:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* End Of Sampling event */ 1772:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_EOSMP_EVENT: 1773:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 1775:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear the End Of Sampling flag */ 1777:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 1778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1779:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1780:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1781:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Analog watchdog (level out of window) event */ 1782:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: In case of several analog watchdog enabled, if needed to know */ 1783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* which one triggered and on which ADCx, test ADC state of analog watchdog */ 1784:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* flags HAL_ADC_STATE_AWD1/2/3 using function "HAL_ADC_GetState()". */ 1785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* For example: */ 1786:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " */ 1787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD2) != 0UL) " */ 1788:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD3) != 0UL) " */ 1789:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check analog watchdog 1 flag */ 1791:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_AWD_EVENT: 1792:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 1794:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1795:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 1797:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1799:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1800:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check analog watchdog 2 flag */ 1801:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_AWD2_EVENT: 1802:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1803:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 1804:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 1807:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1809:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1810:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check analog watchdog 3 flag */ 1811:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_AWD3_EVENT: 1812:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1813:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 1814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); 1817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Injected context queue overflow event */ 1821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_JQOVF_EVENT: 1822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1823:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); 683 .loc 1 1823 7 view .LVU186 684 0060 736D ldr r3, [r6, #84] 685 0062 43F48043 orr r3, r3, #16384 ARM GAS /tmp/ccIEHjf0.s page 182 686 0066 7365 str r3, [r6, #84] 1824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1825:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 1826:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 687 .loc 1 1826 7 view .LVU187 688 0068 B36D ldr r3, [r6, #88] 689 006a 43F00803 orr r3, r3, #8 690 006e B365 str r3, [r6, #88] 1827:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC Injected context queue overflow flag */ 1829:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 691 .loc 1 1829 7 view .LVU188 692 0070 4FF48063 mov r3, #1024 693 0074 2360 str r3, [r4] 1830:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 694 .loc 1 1831 7 view .LVU189 1832:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1833:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Overrun event */ 1834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: /* Case ADC_OVR_EVENT */ 1835:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If overrun is set to overwrite previous data, overrun event is not */ 1836:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* considered as an error. */ 1837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 1838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* overrun ") */ 1839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1840:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1841:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1842:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 1843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1844:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to overrun */ 1845:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 1846:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1848:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC Overrun flag only if Overrun is set to ADC_OVR_DATA_OVERWRITTEN 1850:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** otherwise, data register is potentially overwritten by new converted data as soon 1851:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** as OVR is cleared. */ 1852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1854:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1856:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1857:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 1858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_OK; 695 .loc 1 1858 10 is_stmt 0 view .LVU190 696 0076 0020 movs r0, #0 1831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 697 .loc 1 1831 7 view .LVU191 698 0078 12E0 b .L46 699 .L58: 1769:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 700 .loc 1 1769 3 view .LVU192 701 007a 022D cmp r5, #2 702 007c 09D0 beq .L50 703 007e 802D cmp r5, #128 704 0080 22D1 bne .L52 1793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 183 705 .loc 1 1793 7 is_stmt 1 view .LVU193 706 0082 736D ldr r3, [r6, #84] 707 0084 43F48033 orr r3, r3, #65536 708 0088 7365 str r3, [r6, #84] 1796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 709 .loc 1 1796 7 view .LVU194 710 008a 8023 movs r3, #128 711 008c 2360 str r3, [r4] 1798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 712 .loc 1 1798 7 view .LVU195 713 .loc 1 1858 10 is_stmt 0 view .LVU196 714 008e 0020 movs r0, #0 1798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 715 .loc 1 1798 7 view .LVU197 716 0090 06E0 b .L46 717 .L50: 1774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 718 .loc 1 1774 7 is_stmt 1 view .LVU198 719 0092 736D ldr r3, [r6, #84] 720 0094 43F40063 orr r3, r3, #2048 721 0098 7365 str r3, [r6, #84] 1777:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 722 .loc 1 1777 7 view .LVU199 723 009a 0223 movs r3, #2 724 009c 2360 str r3, [r4] 1779:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 725 .loc 1 1779 7 view .LVU200 726 .loc 1 1858 10 is_stmt 0 view .LVU201 727 009e 0020 movs r0, #0 728 .L46: 1859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 729 .loc 1 1859 1 view .LVU202 730 00a0 BDE8F081 pop {r4, r5, r6, r7, r8, pc} 731 .LVL51: 732 .L48: 1803:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 733 .loc 1 1803 7 is_stmt 1 view .LVU203 734 00a4 736D ldr r3, [r6, #84] 735 00a6 43F40033 orr r3, r3, #131072 736 00aa 7365 str r3, [r6, #84] 1806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 737 .loc 1 1806 7 view .LVU204 738 00ac 4FF48073 mov r3, #256 739 00b0 2360 str r3, [r4] 1808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 740 .loc 1 1808 7 view .LVU205 1858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 741 .loc 1 1858 10 is_stmt 0 view .LVU206 742 00b2 0020 movs r0, #0 1808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 743 .loc 1 1808 7 view .LVU207 744 00b4 F4E7 b .L46 745 .L53: 1813:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 746 .loc 1 1813 7 is_stmt 1 view .LVU208 747 00b6 736D ldr r3, [r6, #84] 748 00b8 43F48023 orr r3, r3, #262144 ARM GAS /tmp/ccIEHjf0.s page 184 749 00bc 7365 str r3, [r6, #84] 1816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 750 .loc 1 1816 7 view .LVU209 751 00be 4FF40073 mov r3, #512 752 00c2 2360 str r3, [r4] 1818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 753 .loc 1 1818 7 view .LVU210 1858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 754 .loc 1 1858 10 is_stmt 0 view .LVU211 755 00c4 0020 movs r0, #0 1818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 756 .loc 1 1818 7 view .LVU212 757 00c6 EBE7 b .L46 758 .L52: 1839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 759 .loc 1 1839 7 is_stmt 1 view .LVU213 1839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 760 .loc 1 1839 21 is_stmt 0 view .LVU214 761 00c8 336B ldr r3, [r6, #48] 1839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 762 .loc 1 1839 10 view .LVU215 763 00ca 4BB9 cbnz r3, .L55 1842:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 764 .loc 1 1842 9 is_stmt 1 view .LVU216 765 00cc 736D ldr r3, [r6, #84] 766 00ce 43F48063 orr r3, r3, #1024 767 00d2 7365 str r3, [r6, #84] 1845:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 768 .loc 1 1845 9 view .LVU217 769 00d4 B36D ldr r3, [r6, #88] 770 00d6 43F00203 orr r3, r3, #2 771 00da B365 str r3, [r6, #88] 1858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 772 .loc 1 1858 10 is_stmt 0 view .LVU218 773 00dc 0020 movs r0, #0 774 00de DFE7 b .L46 775 .L55: 1852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 776 .loc 1 1852 9 is_stmt 1 view .LVU219 777 00e0 1023 movs r3, #16 778 00e2 2360 str r3, [r4] 1858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 779 .loc 1 1858 10 is_stmt 0 view .LVU220 780 00e4 0020 movs r0, #0 781 00e6 DBE7 b .L46 782 .cfi_endproc 783 .LFE342: 785 .section .text.HAL_ADC_GetValue,"ax",%progbits 786 .align 1 787 .global HAL_ADC_GetValue 788 .syntax unified 789 .thumb 790 .thumb_func 792 HAL_ADC_GetValue: 793 .LVL52: 794 .LFB347: 1860:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 185 1861:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 1862:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group with interruption. 1863:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Interruptions enabled in this function according to initialization 1864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * setting : EOC (end of conversion), EOS (end of sequence), 1865:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * OVR overrun. 1866:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 1867:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1868:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * HAL_ADC_Start_IT() must be called for ADC Slave first, then for 1869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * ADC Master. 1870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For ADC Slave, ADC is enabled only (conversion is not started). 1871:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For ADC Master, ADC is enabled and multimode conversion is started. 1872:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note To guarantee a proper reset of all interruptions once all the needed 1873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * conversions are obtained, HAL_ADC_Stop_IT() must be called to ensure 1874:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * a correct stop of the IT-based conversions. 1875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note By default, HAL_ADC_Start_IT() does not enable the End Of Sampling 1876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * interruption. If required (e.g. in case of oversampling with trigger 1877:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * mode), the user must: 1878:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 1. first clear the EOSMP flag if set with macro __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EO 1879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 2. then enable the EOSMP interrupt with macro __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOSMP) 1880:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * before calling HAL_ADC_Start_IT(). 1881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 1882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 1883:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 1884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef *hadc) 1885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1886:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1887:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1888:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1890:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 1891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1892:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1893:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1895:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1896:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 1898:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1899:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable the ADC peripheral */ 1900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1902:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1904:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1905:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 1906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1907:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1908:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1909:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 1910:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1911:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1912:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1914:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1916:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1917:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) ARM GAS /tmp/ccIEHjf0.s page 186 1918:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1920:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1921:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1922:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code */ 1923:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 1925:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1926:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1927:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1928:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1929:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 1930:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1931:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset all ADC error code fields */ 1932:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1933:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1935:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1936:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1938:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1939:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 1940:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1941:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1943:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1944:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable all interruptions before enabling the desired ones */ 1945:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); 1946:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1947:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable ADC end of conversion interrupt */ 1948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1949:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1950:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1951:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOS); 1952:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1953:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1954:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 1955:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOC); 1956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1959:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable ADC overrun interrupt */ 1960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If hadc->Init.Overrun is set to ADC_OVR_DATA_PRESERVED, only then is 1961:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_OVR enabled; otherwise data overwrite is considered as normal 1962:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** behavior and no CPU time is lost for a non-processed interruption */ 1963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1964:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 1966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1967:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable conversion of regular group. */ 1969:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1970:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* trigger event. */ 1972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1973:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* enabled only (conversion is not started), */ ARM GAS /tmp/ccIEHjf0.s page 187 1975:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1978:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1979:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1981:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1982:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1984:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1985:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1986:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1987:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable as well injected interruptions in case 1988:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_InjectedStart_IT() has not been called beforehand. This 1989:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** allows to start regular and injected conversions when JAUTO is 1990:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** set with a single call to HAL_ADC_Start_IT() */ 1991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 1997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 1999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 2000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 2001:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 2002:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2003:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2005:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start ADC group regular conversion */ 2006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 2007:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2008:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2009:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2010:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 2011:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 2012:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 2013:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** are enabled nevertheless (for same reason as above) */ 2014:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 2016:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* First, update Slave State in setting HAL_ADC_STATE_INJ_BUSY bit 2018:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** and in resetting HAL_ADC_STATE_INJ_EOC bit */ 2019:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 2020:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 2021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 2022:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 2024:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 2025:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 2026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 2027:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 2028:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 2029:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 2030:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 2031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; ARM GAS /tmp/ccIEHjf0.s page 188 2032:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2033:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2034:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2036:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2037:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2040:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2041:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2042:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2043:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2044:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2045:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 2046:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2048:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 2049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 2050:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2051:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2052:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2053:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in 2054:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * case of auto_injection mode), disable interrution of 2055:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * end-of-conversion, disable ADC peripheral. 2056:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2057:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 2058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef *hadc) 2060:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2062:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2063:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2064:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2066:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 2068:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2069:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 2070:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 2071:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 2073:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2075:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC end of conversion interrupt for regular group */ 2076:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 2077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); 2078:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2079:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 2080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 2081:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2082:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 2083:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2085:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2086:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2087:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 2088:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY); ARM GAS /tmp/ccIEHjf0.s page 189 2089:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2090:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2091:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2092:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2094:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2095:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 2096:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 2097:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2098:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2099:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2100:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group and transfer result through DMA. 2101:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Interruptions enabled in this function: 2102:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * overrun (if applicable), DMA half transfer, DMA transfer complete. 2103:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 2104:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): HAL_ADC_Start_DMA() 2105:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * is designed for single-ADC mode only. For multimode, the dedicated 2106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * HAL_ADCEx_MultiModeStart_DMA() function must be used. 2107:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2108:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param pData Destination Buffer address. 2109:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param Length Number of data to be transferred from ADC peripheral to memory 2110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 2111:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2112:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) 2113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2115:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2116:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2117:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2118:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2119:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2120:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 2121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2122:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2123:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 2125:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2126:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Ensure that multimode regular conversions are not enabled. */ 2127:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */ 2128:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2129:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2130:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 2131:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 2132:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable the ADC peripheral */ 2134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 2135:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2136:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 2137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2138:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2139:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2140:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 2141:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 2142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2143:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 2144:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 2145:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 190 2146:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 2147:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 2148:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2151:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 2152:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2153:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 2154:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2155:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2156:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 2157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 2158:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2159:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 2160:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 2161:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2162:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2163:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2164:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset all ADC error code fields */ 2165:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 2166:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2167:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2168:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set the DMA transfer complete callback */ 2169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 2170:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2171:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set the DMA half transfer complete callback */ 2172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 2173:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2174:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set the DMA error callback */ 2175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 2176:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2177:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2178:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Manage ADC and DMA start: ADC overrun interruption, DMA start, */ 2179:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC start (in case of SW start): */ 2180:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2181:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ 2182:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ 2183:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* operations) */ 2184:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 2185:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2186:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2187:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 2188:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 2189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2190:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2191:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* With DMA, overrun event is always considered as an error even if 2192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore, 2193:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_OVR is enabled. */ 2194:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 2195:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2196:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable ADC DMA mode*/ 2197:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2198:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2200:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_SetDMATransferMode(hadc->Instance, ADC3_CFGR_DMACONTREQ((uint32_t)hadc->Init.D 2201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_EnableDMAReq(hadc->Instance); 2202:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 191 2203:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2204:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2205:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.C 2206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2207:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2208:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagemen 2210:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 2211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2212:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2213:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start the DMA channel */ 2214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_ 2215:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2216:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable conversion of regular group. */ 2217:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 2218:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 2219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* trigger event. */ 2220:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Start ADC group regular conversion */ 2221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 2222:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2223:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2225:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2227:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2228:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2229:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2230:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2231:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 2233:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2235:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2236:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2237:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2238:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2239:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 2240:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2241:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2242:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 2243:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 2244:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2245:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2246:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2247:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in 2248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * case of auto_injection mode), disable ADC DMA transfer, disable 2249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * ADC peripheral. 2250:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 2251:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * conversion on ADC group injected. If ADC group injected is under use, it 2252:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. 2253:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 2254:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * HAL_ADC_Stop_DMA() function is dedicated to single-ADC mode only. 2255:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For multimode, the dedicated HAL_ADCEx_MultiModeStop_DMA() API must be used. 2256:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2257:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 2258:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2259:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef *hadc) ARM GAS /tmp/ccIEHjf0.s page 192 2260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2261:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2262:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2263:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2264:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2265:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2266:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 2268:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2269:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 1. Stop potential ADC group regular conversion on going */ 2270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 2271:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2272:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 2273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2274:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2275:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC DMA (ADC DMA configuration of continuous requests is kept) */ 2276:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_DMNGT_0 | ADC_CFGR_DMNGT_1, 0UL); 2277:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2278:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable the DMA channel (in case of DMA in circular mode or stop */ 2279:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* while DMA transfer is on going) */ 2280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY) 2281:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); 2283:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2284:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if DMA channel effectively disabled */ 2285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status != HAL_OK) 2286:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2287:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 2288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 2289:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2290:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2291:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2292:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 2293:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); 2294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2295:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 2296:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update "tmp_hal_status" only if DMA channel disabling passed, */ 2297:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to keep in memory a potential failing status. */ 2298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2299:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 2301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2302:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (void)ADC_Disable(hadc); 2305:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2306:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 2308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2309:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2310:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2311:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2312:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 2313:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY); 2314:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2315:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2316:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 193 2317:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2318:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 2319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2320:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2321:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 2322:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 2323:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2324:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2325:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2326:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Get ADC regular group conversion result. 2327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Reading register DR automatically clears ADC flag EOC 2328:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (ADC group regular end of unitary conversion). 2329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note This function does not clear ADC flag EOS 2330:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (ADC group regular end of sequence conversion). 2331:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Occurrence of flag EOS rising: 2332:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * - If sequencer is composed of 1 rank, flag EOS is equivalent 2333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * to flag EOC. 2334:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * - If sequencer is composed of several ranks, during the scan 2335:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * sequence flag EOC only is raised, at the end of the scan sequence 2336:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * both flags EOC and EOS are raised. 2337:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * To clear this flag, either use function: 2338:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * in programming model IT: @ref HAL_ADC_IRQHandler(), in programming 2339:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * model polling: @ref HAL_ADC_PollForConversion() 2340:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). 2341:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2342:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval ADC group regular conversion data 2343:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2344:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t HAL_ADC_GetValue(const ADC_HandleTypeDef *hadc) 2345:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 795 .loc 1 2345 1 is_stmt 1 view -0 796 .cfi_startproc 797 @ args = 0, pretend = 0, frame = 0 798 @ frame_needed = 0, uses_anonymous_args = 0 799 @ link register save eliminated. 2346:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 800 .loc 1 2347 3 view .LVU222 2348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2349:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: EOC flag is not cleared here by software because automatically */ 2350:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* cleared by hardware when reading register DR. */ 2351:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2352:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return ADC converted value */ 2353:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return hadc->Instance->DR; 801 .loc 1 2353 3 view .LVU223 802 .loc 1 2353 14 is_stmt 0 view .LVU224 803 0000 0368 ldr r3, [r0] 804 .loc 1 2353 24 view .LVU225 805 0002 186C ldr r0, [r3, #64] 806 .LVL53: 2354:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 807 .loc 1 2354 1 view .LVU226 808 0004 7047 bx lr 809 .cfi_endproc 810 .LFE347: 812 .section .text.HAL_ADC_ConvCpltCallback,"ax",%progbits 813 .align 1 814 .weak HAL_ADC_ConvCpltCallback ARM GAS /tmp/ccIEHjf0.s page 194 815 .syntax unified 816 .thumb 817 .thumb_func 819 HAL_ADC_ConvCpltCallback: 820 .LVL54: 821 .LFB349: 2355:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2356:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2357:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Handle ADC interrupt request. 2358:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2359:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 2360:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2361:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** void HAL_ADC_IRQHandler(ADC_HandleTypeDef *hadc) 2362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2363:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 2364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 2365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 2366:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 2367:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 2368:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_cfgr; 2369:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 2370:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2371:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2372:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2373:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2374:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 2375:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2376:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check End of Sampling flag for ADC group regular ========== */ 2377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_EOSMP) == ADC_FLAG_EOSMP) && ((tmp_ier & ADC_IT_EOSMP) == ADC_IT_EOSMP)) 2378:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2379:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state machine on end of sampling status if not in error state */ 2380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2381:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2382:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2383:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 2384:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2385:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* End Of Sampling callback */ 2387:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2388:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->EndOfSamplingCallback(hadc); 2389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_EndOfSamplingCallback(hadc); 2391:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2392:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2393:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear regular group conversion flag */ 2394:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 2395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2396:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2397:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ====== Check ADC group regular end of unitary conversion sequence conversions ===== */ 2398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((((tmp_isr & ADC_FLAG_EOC) == ADC_FLAG_EOC) && ((tmp_ier & ADC_IT_EOC) == ADC_IT_EOC)) || 2399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 2400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2401:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2403:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2404:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2405:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); ARM GAS /tmp/ccIEHjf0.s page 195 2406:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 2409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 2410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to disable interruption. */ 2411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 2412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2415:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* available). */ 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2418:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2419:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 2420:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 2421:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2422:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* check CONT bit directly in handle ADC CFGR register */ 2423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2424:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2426:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2427:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* else need to check Master ADC CONT bit */ 2428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2430:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Carry on if continuous mode is disabled */ 2433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) != ADC_CFGR_CONT) 2434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2435:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 2437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2438:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ 2439:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ 2440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2441:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2442:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2443:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ 2444:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ 2445:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by overrun IRQ process below. */ 2446:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); 2447:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2448:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2449:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 2450:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2454:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2457:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2458:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Change ADC state to error state */ 2459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2461:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2462:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); ARM GAS /tmp/ccIEHjf0.s page 196 2463:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2464:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2466:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2467:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2468:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Conversion complete callback */ 2469:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Into callback function "HAL_ADC_ConvCpltCallback()", */ 2470:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to determine if conversion has been triggered from EOC or EOS, */ 2471:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* possibility to use: */ 2472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* " if( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_EOS)) " */ 2473:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2474:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 2475:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2476:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 2477:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2478:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2479:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear regular group conversion flag */ 2480:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: in case of overrun set to ADC_OVR_DATA_PRESERVED, end of */ 2481:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* conversion flags clear induces the release of the preserved data.*/ 2482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Therefore, if the preserved data value is needed, it must be */ 2483:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* read preliminarily into HAL_ADC_ConvCpltCallback(). */ 2484:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 2485:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ====== Check ADC group injected end of unitary conversion sequence conversions ===== */ 2488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((((tmp_isr & ADC_FLAG_JEOC) == ADC_FLAG_JEOC) && ((tmp_ier & ADC_IT_JEOC) == ADC_IT_JEOC)) || 2489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 2490:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2491:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2493:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2494:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 2496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2498:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC configuration */ 2499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_inj_is_trigger_source_sw_start = LL_ADC_INJ_IsTriggerSourceSWStart(hadc->Instance); 2500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 2501:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2502:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2503:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* available). */ 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_SIMULT) 2507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 2508:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 2509:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2511:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2512:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2516:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2517:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2518:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable interruption if no further conversion upcoming by injected */ 2519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* external trigger or by automatic injected conversion with regular */ ARM GAS /tmp/ccIEHjf0.s page 197 2520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* group having no further conversion upcoming (same conditions as */ 2521:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* regular group interruption disabling above), */ 2522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* and if injected scan sequence is completed. */ 2523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_adc_inj_is_trigger_source_sw_start != 0UL) 2524:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((READ_BIT(tmp_cfgr, ADC_CFGR_JAUTO) == 0UL) || 2526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 2527:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 2528:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS)) 2531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Particular case if injected contexts queue is enabled: */ 2533:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* when the last context has been fully processed, JSQR is reset */ 2534:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by the hardware. Even if no injected conversion is planned to come */ 2535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (queue empty, triggers are ignored), it can start again */ 2536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* immediately after setting a new context (JADSTART is still set). */ 2537:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Therefore, state of HAL ADC injected group is kept to busy. */ 2538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_JQM) == 0UL) 2539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2540:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_JEOC/ADC_IT_JEOS only if bit */ 2541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* JADSTART==0 (no conversion on going) */ 2542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) == 0UL) 2543:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2544:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC | ADC_IT_JEOS); 2546:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 2549:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_REG_BUSY) == 0UL) 2551:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2554:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2556:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2557:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 2558:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2559:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2560:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2561:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 2562:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2563:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2564:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2566:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2567:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2568:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Injected Conversion complete callback */ 2569:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: HAL_ADCEx_InjectedConvCpltCallback can resort to 2570:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOS)) or 2571:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOC)) to determine whether 2572:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** interruption has been triggered by end of conversion or end of 2573:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** sequence. */ 2574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2575:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedConvCpltCallback(hadc); 2576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else ARM GAS /tmp/ccIEHjf0.s page 198 2577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_InjectedConvCpltCallback(hadc); 2578:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2579:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear injected group conversion flag */ 2581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC | ADC_FLAG_JEOS); 2582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2583:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check Analog watchdog 1 flag ========== */ 2585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD1) == ADC_FLAG_AWD1) && ((tmp_ier & ADC_IT_AWD1) == ADC_IT_AWD1)) 2586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2587:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2588:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 2589:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Level out of window 1 callback */ 2591:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2592:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindowCallback(hadc); 2593:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_LevelOutOfWindowCallback(hadc); 2595:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2596:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2598:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 2599:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2600:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2601:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check analog watchdog 2 flag ========== */ 2602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD2) == ADC_FLAG_AWD2) && ((tmp_ier & ADC_IT_AWD2) == ADC_IT_AWD2)) 2603:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2604:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 2606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2607:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Level out of window 2 callback */ 2608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2609:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback(hadc); 2610:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow2Callback(hadc); 2612:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2613:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2614:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2615:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 2616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2617:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2618:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check analog watchdog 3 flag ========== */ 2619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD3) == ADC_FLAG_AWD3) && ((tmp_ier & ADC_IT_AWD3) == ADC_IT_AWD3)) 2620:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2621:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 2622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 2623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2624:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Level out of window 3 callback */ 2625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2626:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback(hadc); 2627:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow3Callback(hadc); 2629:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2630:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2631:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); 2633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 199 2634:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check Overrun flag ========== */ 2636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_OVR) == ADC_FLAG_OVR) && ((tmp_ier & ADC_IT_OVR) == ADC_IT_OVR)) 2637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2638:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If overrun is set to overwrite previous data (default setting), */ 2639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* overrun event is not considered as an error. */ 2640:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 2641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* overrun ") */ 2642:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Exception for usage with DMA overrun event always considered as an */ 2643:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* error. */ 2644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 2645:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2646:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** overrun_error = 1UL; 2647:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2648:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2649:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2650:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check DMA configuration */ 2651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (tmp_multimode_config != LL_ADC_MULTI_INDEPENDENT) 2652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2653:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Multimode (when feature is available) is enabled, 2654:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Common Control Register MDMA bits must be checked. */ 2655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_RE 2656:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2657:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** overrun_error = 1UL; 2658:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2659:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2661:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2662:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Multimode not set or feature not available or ADC independent */ 2663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Instance->CFGR & ADC_CFGR_DMNGT) != 0UL) 2664:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** overrun_error = 1UL; 2666:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2668:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2669:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2670:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (overrun_error == 1UL) 2671:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2672:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Change ADC state to error state */ 2673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 2674:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2675:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to overrun */ 2676:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 2677:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2678:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Error callback */ 2679:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: In case of overrun, ADC conversion data is preserved until */ 2680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* flag OVR is reset. */ 2681:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Therefore, old ADC conversion data can be retrieved in */ 2682:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* function "HAL_ADC_ErrorCallback()". */ 2683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2684:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback(hadc); 2685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 2687:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2688:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2689:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2690:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear ADC overrun flag */ ARM GAS /tmp/ccIEHjf0.s page 200 2691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 2692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2693:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2694:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ========== Check Injected context queue overflow flag ========== */ 2695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_JQOVF) == ADC_FLAG_JQOVF) && ((tmp_ier & ADC_IT_JQOVF) == ADC_IT_JQOVF)) 2696:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2697:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Change ADC state to overrun state */ 2698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); 2699:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2700:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 2701:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 2702:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear the Injected context queue overflow flag */ 2704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 2705:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2706:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Injected context queue overflow callback */ 2707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2708:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback(hadc); 2709:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADCEx_InjectedQueueOverflowCallback(hadc); 2711:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2712:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2713:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2715:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2716:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2717:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Conversion complete callback in non-blocking mode. 2718:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2719:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 2720:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2721:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) 2722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 822 .loc 1 2722 1 is_stmt 1 view -0 823 .cfi_startproc 824 @ args = 0, pretend = 0, frame = 0 825 @ frame_needed = 0, uses_anonymous_args = 0 826 @ link register save eliminated. 2723:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2724:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 827 .loc 1 2724 3 view .LVU228 2725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2726:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2727:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_ConvCpltCallback must be implemented in the user file. 2728:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2729:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 828 .loc 1 2729 1 is_stmt 0 view .LVU229 829 0000 7047 bx lr 830 .cfi_endproc 831 .LFE349: 833 .section .text.HAL_ADC_ConvHalfCpltCallback,"ax",%progbits 834 .align 1 835 .weak HAL_ADC_ConvHalfCpltCallback 836 .syntax unified 837 .thumb 838 .thumb_func 840 HAL_ADC_ConvHalfCpltCallback: 841 .LVL55: ARM GAS /tmp/ccIEHjf0.s page 201 842 .LFB350: 2730:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2731:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2732:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Conversion DMA half-transfer callback in non-blocking mode. 2733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2734:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 2735:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2736:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc) 2737:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 843 .loc 1 2737 1 is_stmt 1 view -0 844 .cfi_startproc 845 @ args = 0, pretend = 0, frame = 0 846 @ frame_needed = 0, uses_anonymous_args = 0 847 @ link register save eliminated. 2738:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2739:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 848 .loc 1 2739 3 view .LVU231 2740:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2742:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file. 2743:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2744:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 849 .loc 1 2744 1 is_stmt 0 view .LVU232 850 0000 7047 bx lr 851 .cfi_endproc 852 .LFE350: 854 .section .text.ADC_DMAHalfConvCplt,"ax",%progbits 855 .align 1 856 .global ADC_DMAHalfConvCplt 857 .syntax unified 858 .thumb 859 .thumb_func 861 ADC_DMAHalfConvCplt: 862 .LVL56: 863 .LFB361: 2745:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2746:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2747:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Analog watchdog 1 callback in non-blocking mode. 2748:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2749:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 2750:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2751:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef *hadc) 2752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2753:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 2755:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2756:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2757:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file. 2758:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2761:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2762:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief ADC error callback in non-blocking mode 2763:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (ADC conversion with interruption or transfer by DMA). 2764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note In case of error due to overrun when using ADC with DMA transfer 2765:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (HAL ADC handle parameter "ErrorCode" to state "HAL_ADC_ERROR_OVR"): 2766:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * - Reinitialize the DMA using function "HAL_ADC_Stop_DMA()". ARM GAS /tmp/ccIEHjf0.s page 202 2767:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * - If needed, restart a new ADC conversion using function 2768:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * "HAL_ADC_Start_DMA()" 2769:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * (this function is also clearing overrun flag) 2770:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2771:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 2772:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2773:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) 2774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2775:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** UNUSED(hadc); 2777:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2779:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** function HAL_ADC_ErrorCallback must be implemented in the user file. 2780:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2781:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2782:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2784:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 2785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2786:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group3 Peripheral Control functions 2788:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Peripheral Control functions 2789:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 2790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @verbatim 2791:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 2792:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### Peripheral Control functions ##### 2793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 2794:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] This section provides functions allowing to: 2795:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Configure channels on regular group 2796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Configure the analog watchdog 2797:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @endverbatim 2799:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 2800:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2801:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2802:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 2803:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Configure a channel to be assigned to ADC group regular. 2804:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note In case of usage of internal measurement channels: 2805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Vbat/VrefInt/TempSensor. 2806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * These internal paths can be disabled using function 2807:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * HAL_ADC_DeInit(). 2808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 2809:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This function initializes channel into ADC group regular, 2810:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * following calls to this function can be used to reconfigure 2811:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * some parameters of structure "ADC_ChannelConfTypeDef" on the fly, 2812:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * without resetting the ADC. 2813:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state: 2814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * Refer to comments of structure "ADC_ChannelConfTypeDef". 2815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 2816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param sConfig Structure of ADC channel assigned to ADC group regular. 2817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 2818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 2819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig) 2820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2823:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_config_internal_channel; ARM GAS /tmp/ccIEHjf0.s page 203 2824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0; 2825:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2826:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2827:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 2829:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2830:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); 2831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); 2832:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(sConfig->SingleDiff)); 2833:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(sConfig->OffsetNumber)); 2834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check offset range according to oversampling setting */ 2835:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 2836:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), sConfig->Offset / (hadc->Init.Oversampling. 2838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2840:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2841:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2842:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2844:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_RANGE(ADC_GET_RESOLUTION(hadc), sConfig->Offset)); 2845:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2846:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 2848:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), sConfig->Offset)); 2850:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2851:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is 2854:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ignored (considered as reset) */ 2855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENAB 2856:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2857:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verification of channel number */ 2858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED) 2859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2860:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(sConfig->Channel)); 2861:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2862:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2863:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC1) 2865:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2866:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC1_DIFF_CHANNEL(sConfig->Channel)); 2867:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2868:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC2) 2869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC2_DIFF_CHANNEL(sConfig->Channel)); 2871:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2872:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC3) 2873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC3 is not available on some STM32H7 products */ 2874:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_DIFF_CHANNEL(sConfig->Channel)); 2877:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2878:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 2879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2880:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 204 2881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 2883:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2886:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* conversion on going on regular group: */ 2887:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Channel number */ 2888:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Channel rank */ 2889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2890:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))) 2892:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2893:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance != ADC3) 2895:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2896:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC channels preselection */ 2897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Ch 2898:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2899:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 2900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC channels preselection */ 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) 2902:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 2903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2904:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2905:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC group regular sequence: channel on the selected scan sequence rank */ 2906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel); 2907:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2908:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2909:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2910:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* conversion on going on regular group: */ 2911:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Channel sampling time */ 2912:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Channel offset */ 2913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 2914:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2916:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2917:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 2918:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2920:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime); 2921:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2922:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure the offset: offset enable/disable, channel, offset value */ 2923:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution. */ 2925:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Offset has to be left-aligned on bit 11, the LSB (right bits) are set to 0 */ 2926:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2927:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2928:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2929:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset); 2930:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2931:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2932:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 2933:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset); 2935:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2936:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (sConfig->OffsetNumber != ADC_OFFSET_NONE) ARM GAS /tmp/ccIEHjf0.s page 205 2938:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2939:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset number */ 2940:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted) 2941:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2943:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2944:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2945:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_OFFSET_SIGN(sConfig->OffsetSign)); 2946:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSaturation)); 2947:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset sign & saturation */ 2948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetSign(hadc->Instance, sConfig->OffsetNumber, sConfig->OffsetSign); 2949:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSaturat 2950:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2951:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2952:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 2953:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2954:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation)); 2955:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset signed saturation */ 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetS 2957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift)); 2959:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset right shift */ 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShif 2961:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2962:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2964:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Scan OFR1, OFR2, OFR3, OFR4 to check if the selected channel is enabled. 2967:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** If this is the case, offset OFRx is disabled since 2968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** sConfig->OffsetNumber = ADC_OFFSET_NONE. */ 2969:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 2970:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 2971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_ 2973:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_1, LL_ADC_OFFSET_DISABLE); 2975:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_ 2977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2978:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_2, LL_ADC_OFFSET_DISABLE); 2979:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_ 2981:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2982:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_3, LL_ADC_OFFSET_DISABLE); 2983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2984:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_ 2985:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2986:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_4, LL_ADC_OFFSET_DISABLE); 2987:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2988:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2989:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 2990:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 2991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel)) 2993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE); ARM GAS /tmp/ccIEHjf0.s page 206 2995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel)) 2997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE); 2999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel)) 3001:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3002:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE); 3003:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel)) 3005:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE); 3007:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3008:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3009:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3010:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3011:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3012:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3013:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 3014:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ 3015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Single or differential mode */ 3016:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Internal measurement channels: Vbat/VrefInt/TempSensor */ 3017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3018:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3019:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set mode single-ended or differential input of the selected ADC channel */ 3020:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff); 3021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3022:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of differential mode */ 3023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED) 3024:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3025:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC channel preselection of corresponding negative channel */ 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetChannelPreselection(hadc->Instance, ADC_CHANNEL_DIFF_NEG_INPUT(hadc, sConfig->Cha 3027:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3028:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3029:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Management of internal measurement channels: Vbat/VrefInt/TempSensor. */ 3030:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If internal channel selected, enable dedicated internal buffers and */ 3031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* paths. */ 3032:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: these internal measurement paths can be disabled using */ 3033:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* HAL_ADC_DeInit(). */ 3034:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)) 3036:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3037:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of common ADC parameters */ 3038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc- 3040:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3041:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Software is allowed to change common parameters only when all ADCs */ 3042:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* of the common group are disabled. */ 3043:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0U 3044:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3045:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If the requested internal measurement path has already been enabled, */ 3046:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* bypass the configuration processing. */ 3047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_AD 3048:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc)) 3050:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3051:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_ ARM GAS /tmp/ccIEHjf0.s page 207 3052:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3053:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Delay for temperature sensor stabilization time */ 3054:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait loop initialization and execution */ 3055:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 3056:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 3057:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (10 3059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 3060:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** wait_loop_index--; 3062:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3063:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3064:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC 3066:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc)) 3068:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3069:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_ 3070:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3071:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ 3073:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (ADC_VREFINT_INSTANCE(hadc)) 3075:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3076:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_ 3077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3078:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3079:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3081:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* nothing to do */ 3082:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3083:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If the requested internal measurement path has already been */ 3085:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* enabled and other ADC of the common group are enabled, internal */ 3086:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* measurement paths cannot be enabled. */ 3087:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3088:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3089:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3090:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 3091:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3092:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 3093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3094:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3095:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3096:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3097:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3098:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If a conversion is on going on regular group, no update on regular */ 3099:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* channel could be done on neither of the channel configuration structure */ 3100:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* parameters. */ 3101:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3102:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3103:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3104:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 3105:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 3107:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3108:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 208 3109:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 3110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 3111:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3112:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 3113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 3114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3115:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3116:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3117:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Configure the analog watchdog. 3118:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 3119:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This function initializes the selected analog watchdog, successive 3120:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * calls to this function can be used to reconfigure some parameters 3121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * of structure "ADC_AnalogWDGConfTypeDef" on the fly, without resetting 3122:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * the ADC. 3123:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 3124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For parameters constraints, see comments of structure 3125:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * "ADC_AnalogWDGConfTypeDef". 3126:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note On this STM32 series, analog watchdog thresholds cannot be modified 3127:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * while ADC conversion is on going. 3128:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3129:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param AnalogWDGConfig Structure of ADC analog watchdog configuration 3130:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status 3131:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3132:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef *hadc, ADC_AnalogWDGConfTypeDef *Analog 3133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3135:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3136:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDLowThresholdShifted; 3137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3138:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3139:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3140:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3141:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(AnalogWDGConfig->WatchdogNumber)); 3143:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(AnalogWDGConfig->WatchdogMode)); 3144:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); 3145:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3146:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REG) || 3147:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 3148:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REGINJEC)) 3149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(AnalogWDGConfig->Channel)); 3151:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3152:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3153:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 3154:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3155:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 3156:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verify thresholds range */ 3158:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 3159:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3160:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case of oversampling enabled: thresholds are compared to oversampling 3161:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** intermediate computation (after ratio, before shift application) */ 3162:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold / (hadc-> 3163:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold / (hadc->I 3164:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3165:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else ARM GAS /tmp/ccIEHjf0.s page 209 3166:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3167:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verify if thresholds are within the selected ADC resolution */ 3168:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold)); 3169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC3_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); 3170:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3171:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3173:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 3174:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verify thresholds range */ 3176:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 3177:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3178:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case of oversampling enabled: thresholds are compared to oversampling 3179:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** intermediate computation (after ratio, before shift application) */ 3180:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold / (hadc->I 3181:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold / (hadc->In 3182:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3183:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3184:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3185:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verify if thresholds are within the selected ADC resolution */ 3186:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold)); 3187:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); 3188:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3190:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3191:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process locked */ 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_LOCK(hadc); 3193:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3194:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 3195:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 3196:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* conversion on going on ADC groups regular and injected: */ 3197:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Analog watchdog channels */ 3198:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Analog watchdog thresholds */ 3199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3200:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 3202:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3203:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3204:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3205:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Analog watchdog configuration */ 3206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_1) 3207:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3208:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configuration of analog watchdog: */ 3209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* - Set the analog watchdog enable mode: one or overall group of */ 3210:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* channels, on groups regular and-or injected. */ 3211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (AnalogWDGConfig->WatchdogMode) 3212:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3213:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3215:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 3216:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3217:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3218:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3220:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 3221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3222:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 210 3223:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REGINJEC: 3224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3225:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 3226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3227:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3228:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3229:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG) 3230:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3231:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: 3233:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_INJ) 3234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3235:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3236:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3237:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG_ 3238:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3239:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3240:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3241:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_DISABLE); 3242:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3243:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3244:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3245:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Shift the offset in function of the selected ADC resolution: */ 3246:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 11, the LSB (right bits) */ 3247:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* are set to 0 */ 3248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->HighTh 3249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThr 3250:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3251:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set the high and low thresholds */ 3252:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 3253:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 3254:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3255:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR1_TR1, 3256:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC3_TR1_AWDFILT, 3257:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** AnalogWDGConfig->FilteringConfig); 3258:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR1_TR1, ADC3_TR1_LT1, tmpAWDLowThresholdShifted); 3259:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR1_TR1, ADC3_TR1_HT1, (tmpAWDHighThresholdShifted << ADC3_TR1 3260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3261:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3262:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3263:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3264:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR1_TR1, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3265:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR1_TR2, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3266:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3268:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR1, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3269:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR1, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 3271:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3272:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state, clear previous result related to AWD1 */ 3273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD1); 3274:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3275:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3276:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3277:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3278:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3279:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_ClearFlag_AWD1(hadc->Instance); ARM GAS /tmp/ccIEHjf0.s page 211 3280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3281:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3283:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3284:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_EnableIT_AWD1(hadc->Instance); 3285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3286:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3287:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_DisableIT_AWD1(hadc->Instance); 3289:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3290:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3291:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case of ADC_ANALOGWATCHDOG_2 or ADC_ANALOGWATCHDOG_3 */ 3292:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3293:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (AnalogWDGConfig->WatchdogMode) 3295:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3296:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3297:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REGINJEC: 3299:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update AWD by bitfield to keep the possibility to monitor */ 3300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* several channels by successive calls of this function. */ 3301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3302:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD2CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConfig 3304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3305:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3306:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD3CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConfig 3308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3309:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3310:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3311:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3312:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: 3313:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3314:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3315:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 3316:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 3317:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3318:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, AnalogWDGConfig->WatchdogNumber, LL_ADC 3320:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3321:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3322:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3323:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3324:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /*ADC_VER_V5_V90*/ 3325:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update AWD by bitfield to keep the possibility to monitor */ 3326:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* several channels by successive calls of this function. */ 3327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3328:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD2CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConf 3330:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3331:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3332:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD3CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConf 3334:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3335:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 3336:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 212 3337:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /*ADC_VER_V5_V90*/ 3338:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3339:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3340:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3341:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, AnalogWDGConfig->WatchdogNumber, LL_ADC_A 3342:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3343:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3344:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3345:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Shift the thresholds in function of the selected ADC resolution */ 3346:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* have to be left-aligned on bit 15, the LSB (right bits) are set to 0 */ 3347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->HighT 3348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowTh 3349:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3350:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 3351:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (hadc->Instance == ADC3) 3352:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3353:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3354:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Analog watchdog thresholds configuration */ 3355:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber != ADC_ANALOGWATCHDOG_1) 3356:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3357:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution: */ 3358:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 7, the LSB (right bits) */ 3359:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* are set to 0. */ 3360:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->H 3361:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->L 3362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3363:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_ConfigAnalogWDThresholds(hadc->Instance, AnalogWDGConfig->WatchdogNumber, tmpAWDHigh 3366:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3367:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3368:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3369:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3370:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3371:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3372:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3373:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3374:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3375:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR2_DIFSEL, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3376:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR2_CALFACT, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3378:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3379:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3381:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR3_RES10, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3382:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR3_RES11, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3383:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3384:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3385:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3387:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3388:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR2, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR2, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3391:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3392:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3393:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 213 3394:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->LTR3, ADC_LTR_LT, tmpAWDLowThresholdShifted); 3396:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR3, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3397:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 3400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3401:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state, clear previous result related to AWD2 */ 3403:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD2); 3404:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3405:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3406:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_ClearFlag_AWD2(hadc->Instance); 3410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_EnableIT_AWD2(hadc->Instance); 3415:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3418:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_DisableIT_AWD2(hadc->Instance); 3419:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3420:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3421:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_3) */ 3422:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3424:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state, clear previous result related to AWD3 */ 3425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD3); 3426:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3427:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3430:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_ClearFlag_AWD3(hadc->Instance); 3432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3435:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_EnableIT_AWD3(hadc->Instance); 3437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3438:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3439:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_DisableIT_AWD3(hadc->Instance); 3441:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3442:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3443:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3444:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3445:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3446:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If a conversion is on going on ADC group regular or injected, no update */ 3447:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* could be done on neither of the AWD configuration structure parameters. */ 3448:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3449:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3450:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ ARM GAS /tmp/ccIEHjf0.s page 214 3451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 3452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 3454:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 3456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_UNLOCK(hadc); 3457:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3458:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return function status */ 3459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return tmp_hal_status; 3460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3461:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3462:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3463:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3464:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 3465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3466:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3467:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group4 Peripheral State functions 3468:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief ADC Peripheral State functions 3469:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * 3470:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @verbatim 3471:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 3472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ##### Peripheral state and errors functions ##### 3473:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** =============================================================================== 3474:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** [..] 3475:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** This subsection provides functions to get in run-time the status of the 3476:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** peripheral. 3477:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Check the ADC state 3478:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (+) Check the ADC error code 3479:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3480:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** @endverbatim 3481:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 3482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3483:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3484:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3485:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Return the ADC handle state. 3486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note ADC state machine is managed by bitfields, ADC status must be 3487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * compared with states bits. 3488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * For example: 3489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_REG_BUSY) != 0UL) " 3490:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " 3491:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval ADC handle state (bitfield on 32 bits) 3493:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3494:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t HAL_ADC_GetState(const ADC_HandleTypeDef *hadc) 3495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3498:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return ADC handle state */ 3500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return hadc->State; 3501:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3502:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3503:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Return the ADC error code. 3505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval ADC error code (bitfield on 32 bits) 3507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ ARM GAS /tmp/ccIEHjf0.s page 215 3508:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t HAL_ADC_GetError(const ADC_HandleTypeDef *hadc) 3509:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3511:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3512:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return hadc->ErrorCode; 3514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3516:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3517:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 3518:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3521:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @} 3522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3524:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** @defgroup ADC_Private_Functions ADC Private Functions 3525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @{ 3526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3527:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3528:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Stop ADC conversion. 3530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param ConversionGroup ADC group regular and/or injected. 3532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * This parameter can be one of the following values: 3533:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_REGULAR_GROUP ADC regular conversion type. 3534:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_INJECTED_GROUP ADC injected conversion type. 3535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @arg @ref ADC_REGULAR_INJECTED_GROUP ADC regular and injected conversion type. 3536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 3537:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef *hadc, uint32_t ConversionGroup) 3539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3540:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 3541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 3542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 3543:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 3544:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3546:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3549:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 3550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3551:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verification if ADC is not already stopped (on regular and injected */ 3552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* groups) to bypass this function if not needed. */ 3553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3554:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 3556:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 3557:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3558:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3559:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Particular case of continuous auto-injection mode combined with */ 3560:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* auto-delay mode. */ 3561:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* In auto-injection mode, regular group stop ADC_CR_ADSTP is used (not */ 3562:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* injected group stop ADC_CR_JADSTP). */ 3563:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Procedure to be followed: Wait until JEOS=1, clear JEOS, set ADSTP=1 */ 3564:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* (see reference manual). */ ARM GAS /tmp/ccIEHjf0.s page 216 3565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (((hadc->Instance->CFGR & ADC_CFGR_JAUTO) != 0UL) 3566:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3567:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.LowPowerAutoWait == ENABLE) 3568:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3569:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3570:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Use stop of regular group */ 3571:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** conversion_group_reassigned = ADC_REGULAR_GROUP; 3572:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3573:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait until JEOS=1 (maximum Timeout: 4 injected conversions) */ 3574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS) == 0UL) 3575:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (Conversion_Timeout_CPU_cycles >= (ADC_CONVERSION_TIME_MAX_CPU_CYCLES * 4UL)) 3577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3578:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3579:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3583:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Conversion_Timeout_CPU_cycles ++; 3587:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3588:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3589:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Clear JEOS */ 3590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOS); 3591:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3592:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3593:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Stop potential conversion on going on ADC group regular */ 3594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (conversion_group_reassigned != ADC_INJECTED_GROUP) 3595:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3596:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Software is allowed to set ADSTP only when ADSTART=1 and ADDIS=0 */ 3597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) != 0UL) 3598:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3599:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) 3600:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3601:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Stop ADC group regular conversion */ 3602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_REG_StopConversion(hadc->Instance); 3603:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3604:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3606:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3607:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Stop potential conversion on going on ADC group injected */ 3608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (conversion_group_reassigned != ADC_REGULAR_GROUP) 3609:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3610:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Software is allowed to set JADSTP only when JADSTART=1 and ADDIS=0 */ 3611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) != 0UL) 3612:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3613:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) 3614:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3615:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Stop ADC group injected conversion */ 3616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_INJ_StopConversion(hadc->Instance); 3617:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3618:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3620:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3621:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Selection of start and stop bits with respect to the regular or injected group */ ARM GAS /tmp/ccIEHjf0.s page 217 3622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (conversion_group_reassigned) 3623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3624:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_REGULAR_INJECTED_GROUP: 3625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = (ADC_CR_ADSTART | ADC_CR_JADSTART); 3626:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3627:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_INJECTED_GROUP: 3628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_JADSTART; 3629:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3630:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Case ADC_REGULAR_GROUP only*/ 3631:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 3632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_ADSTART; 3633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3634:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait for conversion effectively stopped */ 3637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tickstart = HAL_GetTick(); 3638:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3640:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_STOP_CONVERSION_TIMEOUT) 3642:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3643:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3645:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3646:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3647:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3648:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3649:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3650:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3653:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3654:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3656:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3657:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3658:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3659:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return HAL status */ 3660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_OK; 3661:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3662:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3664:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3666:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Enable the selected ADC. 3667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC must be disabled 3668:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * and voltage regulator must be enabled (done into HAL_ADC_Init()). 3669:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3670:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 3671:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3672:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc) 3673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3674:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 3675:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3676:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ 3677:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* enabling phase not yet completed: flag ADC ready not yet set). */ 3678:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ ARM GAS /tmp/ccIEHjf0.s page 218 3679:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* causes: ADC clock not running, ...). */ 3680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3681:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3682:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if conditions to enable the ADC are fulfilled */ 3683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Instance->CR & (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JADSTART | ADC_ 3684:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3687:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3688:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3689:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3690:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3693:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3694:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Enable the ADC peripheral */ 3695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3696:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3697:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait for ADC effectively enabled */ 3698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tickstart = HAL_GetTick(); 3699:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3700:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Poll for ADC ready flag raised except case of multimode enabled 3701:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** and ADC slave selected. */ 3702:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 3704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 3705:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3706:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3708:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3709:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* If ADEN bit is set less than 4 ADC clock cycles after the ADCAL bit 3710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** has been cleared (after a calibration), ADEN bit is reset by the 3711:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** calibration logic. 3712:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** The workaround is to continue setting ADEN until ADRDY is becomes 1. 3713:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this 3714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4 ADC clock cycle duration */ 3715:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: Test of ADC enabled required due to hardware constraint to */ 3716:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* not enable ADC if already enabled. */ 3717:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3718:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3719:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3720:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3721:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 3723:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3724:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3726:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3727:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3728:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3729:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3730:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3731:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3732:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3734:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3735:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 219 3736:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3737:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3738:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3739:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3740:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return HAL status */ 3741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_OK; 3742:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3743:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3744:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3745:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Disable the selected ADC. 3746:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be 3747:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * stopped. 3748:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3749:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval HAL status. 3750:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3751:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc) 3752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3753:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 3754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 3755:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3756:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Verification if ADC is not already disabled: */ 3757:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */ 3758:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* disabled. */ 3759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL) 3760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) 3761:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3762:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3763:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check if conditions to disable the ADC are fulfilled */ 3764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN) 3765:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3766:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Disable the ADC peripheral */ 3767:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_Disable(hadc->Instance); 3768:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 3769:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3770:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3771:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3772:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ 3773:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3775:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3777:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3779:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3780:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3781:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Wait for ADC effectively disabled */ 3782:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get tick count */ 3783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tickstart = HAL_GetTick(); 3784:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3786:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 3788:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3789:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3791:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3792:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update ADC state machine to error */ ARM GAS /tmp/ccIEHjf0.s page 220 3793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3794:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3795:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3797:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_ERROR; 3799:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3800:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3801:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3802:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3803:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3804:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Return HAL status */ 3805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** return HAL_OK; 3806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3807:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3808:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3809:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief DMA transfer complete callback. 3810:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3811:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 3812:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3813:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) 3814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 3817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3818:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 3819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL) 3820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 3822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 3823:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 3825:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 3826:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* to disable interruption. */ 3827:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Is it the end of the regular sequence ? */ 3828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL) 3829:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3830:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Are conversions software-triggered ? */ 3831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 3832:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3833:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Is CONT bit set ? */ 3834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL) 3835:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3836:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* CONT bit is not set, no more conversions expected */ 3837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3839:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3840:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3841:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3842:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3844:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3845:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3846:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* DMA End of Transfer interrupt was triggered but conversions sequence 3848:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** is not over. If DMACFG is set to 0, conversions are stopped. */ 3849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL) ARM GAS /tmp/ccIEHjf0.s page 221 3850:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3851:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* DMACFG bit is not set, conversions are stopped. */ 3852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3854:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3856:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3857:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3860:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Conversion complete callback */ 3861:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3862:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 3863:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 3865:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3866:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3867:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else /* DMA and-or internal error occurred */ 3868:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL) 3870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3871:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Call HAL ADC Error Callback function */ 3872:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3874:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 3876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3877:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3878:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3880:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Call ADC DMA error callback */ 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback(hdma); 3882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3883:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3886:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3887:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief DMA half transfer complete callback. 3888:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 3890:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) 3892:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 864 .loc 1 3892 1 is_stmt 1 view -0 865 .cfi_startproc 866 @ args = 0, pretend = 0, frame = 0 867 @ frame_needed = 0, uses_anonymous_args = 0 868 .loc 1 3892 1 is_stmt 0 view .LVU234 869 0000 08B5 push {r3, lr} 870 .cfi_def_cfa_offset 8 871 .cfi_offset 3, -8 872 .cfi_offset 14, -4 3893:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 873 .loc 1 3894 3 is_stmt 1 view .LVU235 874 .LVL57: 3895:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 222 3896:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Half conversion callback */ 3897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3898:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ConvHalfCpltCallback(hadc); 3899:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ConvHalfCpltCallback(hadc); 875 .loc 1 3900 3 view .LVU236 876 0002 806B ldr r0, [r0, #56] 877 .LVL58: 878 .loc 1 3900 3 is_stmt 0 view .LVU237 879 0004 FFF7FEFF bl HAL_ADC_ConvHalfCpltCallback 880 .LVL59: 3901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3902:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 881 .loc 1 3902 1 view .LVU238 882 0008 08BD pop {r3, pc} 883 .cfi_endproc 884 .LFE361: 886 .section .text.HAL_ADC_LevelOutOfWindowCallback,"ax",%progbits 887 .align 1 888 .weak HAL_ADC_LevelOutOfWindowCallback 889 .syntax unified 890 .thumb 891 .thumb_func 893 HAL_ADC_LevelOutOfWindowCallback: 894 .LVL60: 895 .LFB351: 2752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 896 .loc 1 2752 1 is_stmt 1 view -0 897 .cfi_startproc 898 @ args = 0, pretend = 0, frame = 0 899 @ frame_needed = 0, uses_anonymous_args = 0 900 @ link register save eliminated. 2754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 901 .loc 1 2754 3 view .LVU240 2759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 902 .loc 1 2759 1 is_stmt 0 view .LVU241 903 0000 7047 bx lr 904 .cfi_endproc 905 .LFE351: 907 .section .text.HAL_ADC_ErrorCallback,"ax",%progbits 908 .align 1 909 .weak HAL_ADC_ErrorCallback 910 .syntax unified 911 .thumb 912 .thumb_func 914 HAL_ADC_ErrorCallback: 915 .LVL61: 916 .LFB352: 2774:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 917 .loc 1 2774 1 is_stmt 1 view -0 918 .cfi_startproc 919 @ args = 0, pretend = 0, frame = 0 920 @ frame_needed = 0, uses_anonymous_args = 0 921 @ link register save eliminated. 2776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 922 .loc 1 2776 3 view .LVU243 2781:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 223 923 .loc 1 2781 1 is_stmt 0 view .LVU244 924 0000 7047 bx lr 925 .cfi_endproc 926 .LFE352: 928 .section .text.HAL_ADC_IRQHandler,"ax",%progbits 929 .align 1 930 .global HAL_ADC_IRQHandler 931 .syntax unified 932 .thumb 933 .thumb_func 935 HAL_ADC_IRQHandler: 936 .LVL62: 937 .LFB348: 2362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 938 .loc 1 2362 1 is_stmt 1 view -0 939 .cfi_startproc 940 @ args = 0, pretend = 0, frame = 0 941 @ frame_needed = 0, uses_anonymous_args = 0 2362:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 942 .loc 1 2362 1 is_stmt 0 view .LVU246 943 0000 F8B5 push {r3, r4, r5, r6, r7, lr} 944 .cfi_def_cfa_offset 24 945 .cfi_offset 3, -24 946 .cfi_offset 4, -20 947 .cfi_offset 5, -16 948 .cfi_offset 6, -12 949 .cfi_offset 7, -8 950 .cfi_offset 14, -4 951 0002 0446 mov r4, r0 2363:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 952 .loc 1 2363 3 is_stmt 1 view .LVU247 953 .LVL63: 2364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 954 .loc 1 2364 3 view .LVU248 2364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 955 .loc 1 2364 26 is_stmt 0 view .LVU249 956 0004 0368 ldr r3, [r0] 2364:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 957 .loc 1 2364 12 view .LVU250 958 0006 1F68 ldr r7, [r3] 959 .LVL64: 2365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 960 .loc 1 2365 3 is_stmt 1 view .LVU251 2365:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 961 .loc 1 2365 12 is_stmt 0 view .LVU252 962 0008 5D68 ldr r5, [r3, #4] 963 .LVL65: 2366:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 964 .loc 1 2366 3 is_stmt 1 view .LVU253 2367:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_cfgr; 965 .loc 1 2367 3 view .LVU254 2368:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 966 .loc 1 2368 3 view .LVU255 2369:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 967 .loc 1 2369 3 view .LVU256 2370:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 968 .loc 1 2370 3 view .LVU257 ARM GAS /tmp/ccIEHjf0.s page 224 969 .LBB226: 970 .LBI226: 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 971 .loc 2 6601 26 view .LVU258 972 .LBB227: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 973 .loc 2 6603 3 view .LVU259 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 974 .loc 2 6603 21 is_stmt 0 view .LVU260 975 000a 9A4B ldr r3, .L113 976 000c 9E68 ldr r6, [r3, #8] 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 977 .loc 2 6603 10 view .LVU261 978 000e 06F01F06 and r6, r6, #31 979 .LVL66: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 980 .loc 2 6603 10 view .LVU262 981 .LBE227: 982 .LBE226: 2373:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 983 .loc 1 2373 3 is_stmt 1 view .LVU263 2374:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 984 .loc 1 2374 3 view .LVU264 2377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 985 .loc 1 2377 3 view .LVU265 2377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 986 .loc 1 2377 6 is_stmt 0 view .LVU266 987 0012 17F0020F tst r7, #2 988 0016 10D0 beq .L67 2377:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 989 .loc 1 2377 54 discriminator 1 view .LVU267 990 0018 15F0020F tst r5, #2 991 001c 0DD0 beq .L67 2380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 992 .loc 1 2380 5 is_stmt 1 view .LVU268 2380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 993 .loc 1 2380 14 is_stmt 0 view .LVU269 994 001e 436D ldr r3, [r0, #84] 2380:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 995 .loc 1 2380 8 view .LVU270 996 0020 13F0100F tst r3, #16 997 0024 03D1 bne .L68 2383:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 998 .loc 1 2383 7 is_stmt 1 view .LVU271 999 0026 436D ldr r3, [r0, #84] 1000 0028 43F40063 orr r3, r3, #2048 1001 002c 4365 str r3, [r0, #84] 1002 .L68: 2390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1003 .loc 1 2390 5 view .LVU272 1004 002e 2046 mov r0, r4 1005 .LVL67: 2390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1006 .loc 1 2390 5 is_stmt 0 view .LVU273 1007 0030 FFF7FEFF bl HAL_ADCEx_EndOfSamplingCallback 1008 .LVL68: 2394:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 225 1009 .loc 1 2394 5 is_stmt 1 view .LVU274 1010 0034 2368 ldr r3, [r4] 1011 0036 0222 movs r2, #2 1012 0038 1A60 str r2, [r3] 1013 .L67: 2398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1014 .loc 1 2398 3 view .LVU275 2398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1015 .loc 1 2398 6 is_stmt 0 view .LVU276 1016 003a 17F0040F tst r7, #4 1017 003e 02D0 beq .L69 2398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1018 .loc 1 2398 51 discriminator 1 view .LVU277 1019 0040 15F0040F tst r5, #4 1020 0044 05D1 bne .L70 1021 .L69: 2398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1022 .loc 1 2398 94 discriminator 3 view .LVU278 1023 0046 17F0080F tst r7, #8 1024 004a 4DD0 beq .L71 2399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1025 .loc 1 2399 51 view .LVU279 1026 004c 15F0080F tst r5, #8 1027 0050 4AD0 beq .L71 1028 .L70: 2402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1029 .loc 1 2402 5 is_stmt 1 view .LVU280 2402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1030 .loc 1 2402 14 is_stmt 0 view .LVU281 1031 0052 636D ldr r3, [r4, #84] 2402:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1032 .loc 1 2402 8 view .LVU282 1033 0054 13F0100F tst r3, #16 1034 0058 03D1 bne .L72 2405:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1035 .loc 1 2405 7 is_stmt 1 view .LVU283 1036 005a 636D ldr r3, [r4, #84] 1037 005c 43F40073 orr r3, r3, #512 1038 0060 6365 str r3, [r4, #84] 1039 .L72: 2411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1040 .loc 1 2411 5 view .LVU284 2411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1041 .loc 1 2411 47 is_stmt 0 view .LVU285 1042 0062 2368 ldr r3, [r4] 1043 .LVL69: 1044 .LBB228: 1045 .LBI228: 3928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1046 .loc 2 3928 26 is_stmt 1 view .LVU286 1047 .LBB229: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1048 .loc 2 3930 3 view .LVU287 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1049 .loc 2 3930 12 is_stmt 0 view .LVU288 1050 0064 DA68 ldr r2, [r3, #12] 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 226 1051 .loc 2 3930 103 view .LVU289 1052 0066 12F4406F tst r2, #3072 1053 006a 37D1 bne .L73 1054 .LVL70: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1055 .loc 2 3930 103 view .LVU290 1056 .LBE229: 1057 .LBE228: 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1058 .loc 1 2416 7 is_stmt 1 view .LVU291 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1059 .loc 1 2416 12 is_stmt 0 view .LVU292 1060 006c 824A ldr r2, .L113+4 1061 006e 9342 cmp r3, r2 1062 0070 27D0 beq .L107 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1063 .loc 1 2416 12 discriminator 1 view .LVU293 1064 0072 1A46 mov r2, r3 1065 .L74: 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1066 .loc 1 2416 10 discriminator 4 view .LVU294 1067 0074 9342 cmp r3, r2 1068 0076 07D0 beq .L75 1069 0078 092E cmp r6, #9 1070 007a 25D8 bhi .L76 1071 007c 40F22121 movw r1, #545 1072 0080 F140 lsrs r1, r1, r6 1073 0082 11F0010F tst r1, #1 1074 0086 1FD0 beq .L76 1075 .L75: 2423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1076 .loc 1 2423 9 is_stmt 1 view .LVU295 2423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1077 .loc 1 2423 18 is_stmt 0 view .LVU296 1078 0088 DA68 ldr r2, [r3, #12] 1079 .LVL71: 1080 .L77: 2433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1081 .loc 1 2433 7 is_stmt 1 view .LVU297 2433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1082 .loc 1 2433 10 is_stmt 0 view .LVU298 1083 008a 12F4005F tst r2, #8192 1084 008e 25D1 bne .L73 2436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1085 .loc 1 2436 9 is_stmt 1 view .LVU299 2436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1086 .loc 1 2436 13 is_stmt 0 view .LVU300 1087 0090 1A68 ldr r2, [r3] 1088 .LVL72: 2436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1089 .loc 1 2436 12 view .LVU301 1090 0092 12F0080F tst r2, #8 1091 0096 21D0 beq .L73 2440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1092 .loc 1 2440 11 is_stmt 1 view .LVU302 1093 .LVL73: 1094 .LBB230: ARM GAS /tmp/ccIEHjf0.s page 227 1095 .LBI230: 6695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Set ADC multimode delay between 2 sampling phases. 6699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note The sampling delay range depends on ADC resolution: 6700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC resolution 12 bits can have maximum delay of 12 cycles. 6701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC resolution 10 bits can have maximum delay of 10 cycles. 6702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC resolution 8 bits can have maximum delay of 8 cycles. 6703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - ADC resolution 6 bits can have maximum delay of 6 cycles. 6704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 6707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 6708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 6709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 6710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_SetMultiTwoSamplingDelay 6711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param MultiTwoSamplingDelay This parameter can be one of the following values: 6714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE_5 6715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES_5 6716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES_5 6717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5 (1) 6718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5_8_BITS 6719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5 (2) 6720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5_10_BITS 6721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (3) 6722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5 (4) 6723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5_12_BITS 6724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES_5 (5) 6725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (6) 6726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (7) 6727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 6728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 16, 14, 12 or 10 bits. 6729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 16, 14 or 12 bits. 6730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 10 or 8 bits. 6731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (4) Parameter available only if ADC resolution is 16 or 14 bits. 6732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (5) Parameter available only if ADC resolution is 16 bits. 6733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (6) Parameter available only if ADC resolution is 12 bits. 6734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (7) Parameter available only if ADC resolution is 16 or 14 bits. 6735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Mul 6738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DELAY, MultiTwoSamplingDelay); 6740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC multimode delay between 2 sampling phases. 6744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_GetMultiTwoSamplingDelay 6745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE_5 6749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES_5 6750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES_5 ARM GAS /tmp/ccIEHjf0.s page 228 6751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5 (1) 6752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES_5_8_BITS 6753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5 (2) 6754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES_5_10_BITS 6755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (3) 6756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5 (4) 6757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES_5_12_BITS 6758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES_5 (5) 6759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (6) 6760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (7) 6761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * 6762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 16, 14, 12 or 10 bits. 6763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 16, 14 or 12 bits. 6764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 10 or 8 bits. 6765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (4) Parameter available only if ADC resolution is 16 or 14 bits. 6766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (5) Parameter available only if ADC resolution is 16 bits. 6767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (6) Parameter available only if ADC resolution is 12 bits. 6768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (7) Parameter available only if ADC resolution is 16 or 14 bits. 6769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiTwoSamplingDelay(const ADC_Common_TypeDef *ADCxy_COMMON) 6771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DELAY)); 6773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 6777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Instance Operation on ADC hierarchical scope: ADC instance 6779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 6780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Put ADC instance in deep power down state. 6784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down 6785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 6786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 6787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 6788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 6791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_EnableDeepPowerDown 6792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableDeepPowerDown(ADC_TypeDef *ADCx) 6796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_DEEPPWD); 6803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable ADC deep power down mode. 6807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down ARM GAS /tmp/ccIEHjf0.s page 229 6808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 6809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 6810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 6811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 6814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown 6815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx) 6819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS)); 6824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get the selected ADC instance deep power down state. 6828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled 6829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: deep power down is disabled, 1: deep power down is enabled. 6831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(const ADC_TypeDef *ADCx) 6833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL); 6835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable ADC instance internal voltage regulator. 6839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, after ADC internal voltage regulator enable, 6840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a delay for ADC internal voltage regulator stabilization 6841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is required before performing a ADC calibration or ADC enable. 6842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet, parameter tADCVREG_STUP. 6843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_INTERNAL_REGUL_STAB_US. 6844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 6847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator 6848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx) 6852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADVREGEN); 6859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable ADC internal voltage regulator. 6863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: ARM GAS /tmp/ccIEHjf0.s page 230 6865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 6866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_DisableInternalRegulator 6867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableInternalRegulator(ADC_TypeDef *ADCx) 6871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_ADVREGEN | ADC_CR_BITS_PROPERTY_RS)); 6873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get the selected ADC instance internal voltage regulator state. 6877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled 6878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: internal regulator is disabled, 1: internal regulator is enabled. 6880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(const ADC_TypeDef *ADCx) 6882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL); 6884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable the selected ADC instance. 6888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, after ADC enable, a delay for 6889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC internal analog stabilization is required before performing a 6890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC conversion start. 6891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to device datasheet, parameter tSTAB. 6892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 6893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled and when conversion clock is active. 6894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 6895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled and ADC internal voltage regulator enabled. 6898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_Enable 6899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx) 6903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADEN); 6910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable the selected ADC instance. 6914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be not disabled. Must be enabled without conversion on going 6917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * on either groups regular or injected. 6918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_Disable 6919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 231 6922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx) 6923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADDIS); 6930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get the selected ADC instance enable state. 6934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 6935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled and when conversion clock is active. 6936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 6937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_IsEnabled 6938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: ADC is disabled, 1: ADC is enabled. 6940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsEnabled(const ADC_TypeDef *ADCx) 6942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL); 6944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get the selected ADC instance disable state. 6948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing 6949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: no ADC disable command on going. 6951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(const ADC_TypeDef *ADCx) 6953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL); 6955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 6957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 6958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Start ADC calibration in the mode single-ended 6959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or differential (for devices with differential mode available). 6960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, a minimum number of ADC clock cycles 6961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * are required between ADC end of calibration and ADC enable. 6962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES. 6963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note Calibration duration: 6964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Calibration of offset: 520 ADC clock cycles 6965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - Calibration of linearity: 131072 ADC clock cycles 6966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with differential mode available: 6967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of offset is specific to each of 6968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 6969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (calibration run must be performed for each of these 6970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * differential modes, if used afterwards and if the application 6971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * requires their calibration). 6972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * Calibration of linearity is common to both 6973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * single-ended and differential modes 6974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (calibration run can be performed only once). 6975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 6977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be ADC disabled. 6978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_StartCalibration\n ARM GAS /tmp/ccIEHjf0.s page 232 6979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CR ADCALDIF LL_ADC_StartCalibration\n 6980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CR ADCALLIN LL_ADC_StartCalibration 6981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 6982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param CalibrationMode This parameter can be one of the following values: 6983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_OFFSET 6984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_CALIB_OFFSET_LINEARITY 6985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 6986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 6987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 6988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 6989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 6990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_StartCalibration(ADC_TypeDef *ADCx, uint32_t CalibrationMode, uint32_t 6991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADCALLIN | ADC_CR_ADCALDIF | ADC_CR_BITS_PROPERTY_RS, 6997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADCAL | (CalibrationMode & ADC_CALIB_MODE_MASK) | (SingleDiff & ADC_SINGLEDIFF_ 6998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC calibration state. 7002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_IsCalibrationOnGoing 7003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: calibration complete, 1: calibration in progress. 7005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsCalibrationOnGoing(const ADC_TypeDef *ADCx) 7007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL); 7009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 7013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Regular Operation on ADC hierarchical scope: group regu 7016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 7017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Start ADC group regular conversion. 7021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 7022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 7023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 7024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * starts immediately. 7025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 7026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 7027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * following the ADC start conversion command. 7028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 7030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 7031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without conversion stop command on going on group regular, 7032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without ADC disable command on going. 7033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_StartConversion 7034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None ARM GAS /tmp/ccIEHjf0.s page 233 7036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx) 7038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADSTART); 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Stop ADC group regular conversion. 7049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 7051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled with conversion on going on group regular, 7052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without ADC disable command on going. 7053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_StopConversion 7054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StopConversion(ADC_TypeDef *ADCx) 7058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_ADSTP); 7065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion state. 7069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing 7070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group regular. 7072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(const ADC_TypeDef *ADCx) 1096 .loc 2 7073 26 view .LVU303 1097 .LBB231: 7074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); 1098 .loc 2 7075 3 view .LVU304 1099 .loc 2 7075 12 is_stmt 0 view .LVU305 1100 0098 9A68 ldr r2, [r3, #8] 1101 .loc 2 7075 74 view .LVU306 1102 009a 12F0040F tst r2, #4 1103 009e 15D1 bne .L78 1104 .LVL74: 1105 .loc 2 7075 74 view .LVU307 1106 .LBE231: 1107 .LBE230: 2446:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1108 .loc 1 2446 13 is_stmt 1 view .LVU308 1109 00a0 5A68 ldr r2, [r3, #4] 1110 00a2 22F00C02 bic r2, r2, #12 1111 00a6 5A60 str r2, [r3, #4] ARM GAS /tmp/ccIEHjf0.s page 234 2449:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1112 .loc 1 2449 13 view .LVU309 1113 00a8 636D ldr r3, [r4, #84] 1114 00aa 23F48073 bic r3, r3, #256 1115 00ae 6365 str r3, [r4, #84] 2451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1116 .loc 1 2451 13 view .LVU310 2451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1117 .loc 1 2451 22 is_stmt 0 view .LVU311 1118 00b0 636D ldr r3, [r4, #84] 2451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1119 .loc 1 2451 16 view .LVU312 1120 00b2 13F4805F tst r3, #4096 1121 00b6 11D1 bne .L73 2453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1122 .loc 1 2453 15 is_stmt 1 view .LVU313 1123 00b8 636D ldr r3, [r4, #84] 1124 00ba 43F00103 orr r3, r3, #1 1125 00be 6365 str r3, [r4, #84] 1126 00c0 0CE0 b .L73 1127 .LVL75: 1128 .L107: 2416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1129 .loc 1 2416 12 is_stmt 0 discriminator 2 view .LVU314 1130 00c2 A2F58072 sub r2, r2, #256 1131 00c6 D5E7 b .L74 1132 .L76: 2428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1133 .loc 1 2428 9 is_stmt 1 view .LVU315 1134 .LVL76: 2429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1135 .loc 1 2429 9 view .LVU316 2429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1136 .loc 1 2429 18 is_stmt 0 view .LVU317 1137 00c8 D268 ldr r2, [r2, #12] 1138 .LVL77: 2429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1139 .loc 1 2429 18 view .LVU318 1140 00ca DEE7 b .L77 1141 .LVL78: 1142 .L78: 2459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1143 .loc 1 2459 13 is_stmt 1 view .LVU319 1144 00cc 636D ldr r3, [r4, #84] 1145 00ce 43F01003 orr r3, r3, #16 1146 00d2 6365 str r3, [r4, #84] 2462:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1147 .loc 1 2462 13 view .LVU320 1148 00d4 A36D ldr r3, [r4, #88] 1149 00d6 43F00103 orr r3, r3, #1 1150 00da A365 str r3, [r4, #88] 1151 .LVL79: 1152 .L73: 2476:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1153 .loc 1 2476 5 view .LVU321 1154 00dc 2046 mov r0, r4 1155 00de FFF7FEFF bl HAL_ADC_ConvCpltCallback ARM GAS /tmp/ccIEHjf0.s page 235 1156 .LVL80: 2484:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1157 .loc 1 2484 5 view .LVU322 1158 00e2 2368 ldr r3, [r4] 1159 00e4 0C22 movs r2, #12 1160 00e6 1A60 str r2, [r3] 1161 .L71: 2488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1162 .loc 1 2488 3 view .LVU323 2488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1163 .loc 1 2488 6 is_stmt 0 view .LVU324 1164 00e8 17F0200F tst r7, #32 1165 00ec 02D0 beq .L80 2488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1166 .loc 1 2488 53 discriminator 1 view .LVU325 1167 00ee 15F0200F tst r5, #32 1168 00f2 05D1 bne .L81 1169 .L80: 2488:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1170 .loc 1 2488 98 discriminator 3 view .LVU326 1171 00f4 17F0400F tst r7, #64 1172 00f8 63D0 beq .L82 2489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1173 .loc 1 2489 53 view .LVU327 1174 00fa 15F0400F tst r5, #64 1175 00fe 60D0 beq .L82 1176 .L81: 2492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1177 .loc 1 2492 5 is_stmt 1 view .LVU328 2492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1178 .loc 1 2492 14 is_stmt 0 view .LVU329 1179 0100 636D ldr r3, [r4, #84] 2492:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1180 .loc 1 2492 8 view .LVU330 1181 0102 13F0100F tst r3, #16 1182 0106 03D1 bne .L83 2495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1183 .loc 1 2495 7 is_stmt 1 view .LVU331 1184 0108 636D ldr r3, [r4, #84] 1185 010a 43F40053 orr r3, r3, #8192 1186 010e 6365 str r3, [r4, #84] 1187 .L83: 2499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1188 .loc 1 2499 5 view .LVU332 2499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1189 .loc 1 2499 84 is_stmt 0 view .LVU333 1190 0110 2368 ldr r3, [r4] 1191 .LVL81: 1192 .LBB232: 1193 .LBI232: 4715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1194 .loc 2 4715 26 is_stmt 1 view .LVU334 1195 .LBB233: 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1196 .loc 2 4717 3 view .LVU335 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1197 .loc 2 4717 12 is_stmt 0 view .LVU336 ARM GAS /tmp/ccIEHjf0.s page 236 1198 0112 DA6C ldr r2, [r3, #76] 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1199 .loc 2 4717 105 view .LVU337 1200 0114 12F4C07F tst r2, #384 1201 0118 19D1 bne .L103 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1202 .loc 2 4717 105 discriminator 1 view .LVU338 1203 011a 0121 movs r1, #1 1204 .L84: 1205 .LVL82: 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1206 .loc 2 4717 105 discriminator 1 view .LVU339 1207 .LBE233: 1208 .LBE232: 2500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1209 .loc 1 2500 5 is_stmt 1 view .LVU340 1210 .LBB235: 1211 .LBI235: 3928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1212 .loc 2 3928 26 view .LVU341 1213 .LBB236: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1214 .loc 2 3930 3 view .LVU342 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1215 .loc 2 3930 12 is_stmt 0 view .LVU343 1216 011c DA68 ldr r2, [r3, #12] 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1217 .loc 2 3930 103 view .LVU344 1218 011e 12F4406F tst r2, #3072 1219 0122 16D1 bne .L104 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1220 .loc 2 3930 103 discriminator 1 view .LVU345 1221 0124 0120 movs r0, #1 1222 .L85: 1223 .LVL83: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1224 .loc 2 3930 103 discriminator 1 view .LVU346 1225 .LBE236: 1226 .LBE235: 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1227 .loc 1 2504 5 is_stmt 1 view .LVU347 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1228 .loc 1 2504 10 is_stmt 0 view .LVU348 1229 0126 544A ldr r2, .L113+4 1230 0128 9342 cmp r3, r2 1231 012a 14D0 beq .L108 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1232 .loc 1 2504 10 discriminator 1 view .LVU349 1233 012c 1A46 mov r2, r3 1234 .L86: 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1235 .loc 1 2504 8 discriminator 4 view .LVU350 1236 012e 9342 cmp r3, r2 1237 0130 14D0 beq .L87 2506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 1238 .loc 1 2506 34 view .LVU351 1239 0132 062E cmp r6, #6 ARM GAS /tmp/ccIEHjf0.s page 237 1240 0134 14BF ite ne 1241 0136 4FF0000C movne ip, #0 1242 013a 4FF0010C moveq ip, #1 2506:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 1243 .loc 1 2506 9 view .LVU352 1244 013e 6EB1 cbz r6, .L87 1245 0140 BCF1000F cmp ip, #0 1246 0144 0AD1 bne .L87 2507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 1247 .loc 1 2507 9 view .LVU353 1248 0146 072E cmp r6, #7 1249 0148 08D0 beq .L87 2514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1250 .loc 1 2514 7 is_stmt 1 view .LVU354 1251 .LVL84: 2515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1252 .loc 1 2515 7 view .LVU355 2515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1253 .loc 1 2515 16 is_stmt 0 view .LVU356 1254 014a D268 ldr r2, [r2, #12] 1255 .LVL85: 2515:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1256 .loc 1 2515 16 view .LVU357 1257 014c 07E0 b .L89 1258 .LVL86: 1259 .L103: 1260 .LBB238: 1261 .LBB234: 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1262 .loc 2 4717 105 discriminator 2 view .LVU358 1263 014e 0021 movs r1, #0 1264 0150 E4E7 b .L84 1265 .LVL87: 1266 .L104: 4717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1267 .loc 2 4717 105 discriminator 2 view .LVU359 1268 .LBE234: 1269 .LBE238: 1270 .LBB239: 1271 .LBB237: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1272 .loc 2 3930 103 discriminator 2 view .LVU360 1273 0152 0020 movs r0, #0 1274 0154 E7E7 b .L85 1275 .LVL88: 1276 .L108: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1277 .loc 2 3930 103 discriminator 2 view .LVU361 1278 .LBE237: 1279 .LBE239: 2504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1280 .loc 1 2504 10 discriminator 2 view .LVU362 1281 0156 A2F58072 sub r2, r2, #256 1282 015a E8E7 b .L86 1283 .L87: 2510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1284 .loc 1 2510 7 is_stmt 1 view .LVU363 ARM GAS /tmp/ccIEHjf0.s page 238 2510:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1285 .loc 1 2510 16 is_stmt 0 view .LVU364 1286 015c DA68 ldr r2, [r3, #12] 1287 .LVL89: 1288 .L89: 2523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1289 .loc 1 2523 5 is_stmt 1 view .LVU365 2523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1290 .loc 1 2523 8 is_stmt 0 view .LVU366 1291 015e 51B3 cbz r1, .L90 2525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1292 .loc 1 2525 7 is_stmt 1 view .LVU367 2525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1293 .loc 1 2525 10 is_stmt 0 view .LVU368 1294 0160 12F0007F tst r2, #33554432 1295 0164 03D0 beq .L91 2525:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1296 .loc 1 2525 55 discriminator 1 view .LVU369 1297 0166 30B3 cbz r0, .L90 2526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 1298 .loc 1 2526 60 view .LVU370 1299 0168 12F4005F tst r2, #8192 1300 016c 23D1 bne .L90 1301 .L91: 2530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1302 .loc 1 2530 9 is_stmt 1 view .LVU371 2530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1303 .loc 1 2530 13 is_stmt 0 view .LVU372 1304 016e 1968 ldr r1, [r3] 1305 .LVL90: 2530:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1306 .loc 1 2530 12 view .LVU373 1307 0170 11F0400F tst r1, #64 1308 0174 1FD0 beq .L90 2538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1309 .loc 1 2538 11 is_stmt 1 view .LVU374 2538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1310 .loc 1 2538 14 is_stmt 0 view .LVU375 1311 0176 12F4001F tst r2, #2097152 1312 017a 1CD1 bne .L90 2542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1313 .loc 1 2542 13 is_stmt 1 view .LVU376 1314 .LVL91: 1315 .LBB240: 1316 .LBI240: 7076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular command of conversion stop state 7080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_IsStopConversionOngoing 7081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group regular. 7083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsStopConversionOngoing(const ADC_TypeDef *ADCx) 7085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTP) == (ADC_CR_ADSTP)) ? 1UL : 0UL); 7087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 239 7088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 7092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * all oversampling increased data width (for devices 7093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with feature oversampling). 7094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData32 7095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32(const ADC_TypeDef *ADCx) 7099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 16 bits. 7106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData16 7110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFFFF 7112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData16(const ADC_TypeDef *ADCx) 7114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 14 bits. 7121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData14 7125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x3FF 7127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData14(const ADC_TypeDef *ADCx) 7129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 12 bits. 7136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData12 7140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 7142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12(const ADC_TypeDef *ADCx) 7144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 240 7145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 10 bits. 7151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData10 7155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 7157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10(const ADC_TypeDef *ADCx) 7159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 8 bits. 7166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData8 7170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 7172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8(const ADC_TypeDef *ADCx) 7174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint8_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC multimode conversion data of ADC master, ADC slave 7179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * or raw data with ADC master and slave concatenated. 7180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note If raw data with ADC master and slave concatenated is retrieved, 7181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * a macro is available to get the conversion data of 7182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 7183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 7184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (however this macro is mainly intended for multimode 7185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * transfer by DMA, because this function can do the same 7186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * by getting multimode conversion data of ADC master or ADC slave 7187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * separately). 7188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CDR RDATA_MST LL_ADC_REG_ReadMultiConversionData32\n 7189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_REG_ReadMultiConversionData32 7190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ConversionData This parameter can be one of the following values: 7193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 7194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 7195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER_SLAVE 7196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32(const ADC_Common_TypeDef *ADCxy_COMMO 7199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CDR, 7201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ConversionData) ARM GAS /tmp/ccIEHjf0.s page 241 7202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** >> (POSITION_VAL(ConversionData) & 0x1FUL) 7203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 7208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Injected Operation on ADC hierarchical scope: group inj 7211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 7212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Start ADC group injected conversion. 7216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 7217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 7218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 7219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * starts immediately. 7220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 7221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 7222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * following the ADC start conversion command. 7223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 7225:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled without conversion on going on group injected, 7226:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without conversion stop command on going on group injected, 7227:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without ADC disable command on going. 7228:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_StartConversion 7229:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7230:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7231:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7232:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StartConversion(ADC_TypeDef *ADCx) 7233:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7234:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7235:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7236:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7237:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7238:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7239:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_JADSTART); 7240:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7241:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7242:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7243:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Stop ADC group injected conversion. 7244:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7245:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC state: 7246:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC must be enabled with conversion on going on group injected, 7247:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * without ADC disable command on going. 7248:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_StopConversion 7249:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7250:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7251:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StopConversion(ADC_TypeDef *ADCx) 7253:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7254:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7255:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7256:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7258:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, ARM GAS /tmp/ccIEHjf0.s page 242 7259:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_JADSTP); 7260:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7261:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7262:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7263:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion state. 7264:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing 7265:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7266:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group injected. 7267:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(const ADC_TypeDef *ADCx) 1317 .loc 2 7268 26 view .LVU377 1318 .LBB241: 7269:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL); 1319 .loc 2 7270 3 view .LVU378 1320 .loc 2 7270 12 is_stmt 0 view .LVU379 1321 017c 9A68 ldr r2, [r3, #8] 1322 .LVL92: 1323 .loc 2 7270 76 view .LVU380 1324 017e 12F0080F tst r2, #8 1325 0182 10D1 bne .L92 1326 .LVL93: 1327 .loc 2 7270 76 view .LVU381 1328 .LBE241: 1329 .LBE240: 2545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1330 .loc 1 2545 15 is_stmt 1 view .LVU382 1331 0184 5A68 ldr r2, [r3, #4] 1332 0186 22F06002 bic r2, r2, #96 1333 018a 5A60 str r2, [r3, #4] 2548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1334 .loc 1 2548 15 view .LVU383 1335 018c 636D ldr r3, [r4, #84] 1336 018e 23F48053 bic r3, r3, #4096 1337 0192 6365 str r3, [r4, #84] 2550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1338 .loc 1 2550 15 view .LVU384 2550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1339 .loc 1 2550 24 is_stmt 0 view .LVU385 1340 0194 636D ldr r3, [r4, #84] 2550:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1341 .loc 1 2550 18 view .LVU386 1342 0196 13F4807F tst r3, #256 1343 019a 0CD1 bne .L90 2552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1344 .loc 1 2552 17 is_stmt 1 view .LVU387 1345 019c 636D ldr r3, [r4, #84] 1346 019e 43F00103 orr r3, r3, #1 1347 01a2 6365 str r3, [r4, #84] 1348 01a4 07E0 b .L90 1349 .LVL94: 1350 .L92: 2558:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1351 .loc 1 2558 15 view .LVU388 1352 01a6 636D ldr r3, [r4, #84] 1353 01a8 43F01003 orr r3, r3, #16 1354 01ac 6365 str r3, [r4, #84] ARM GAS /tmp/ccIEHjf0.s page 243 2561:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1355 .loc 1 2561 15 view .LVU389 1356 01ae A36D ldr r3, [r4, #88] 1357 01b0 43F00103 orr r3, r3, #1 1358 01b4 A365 str r3, [r4, #88] 1359 .L90: 2577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1360 .loc 1 2577 5 view .LVU390 1361 01b6 2046 mov r0, r4 1362 .LVL95: 2577:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1363 .loc 1 2577 5 is_stmt 0 view .LVU391 1364 01b8 FFF7FEFF bl HAL_ADCEx_InjectedConvCpltCallback 1365 .LVL96: 2581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1366 .loc 1 2581 5 is_stmt 1 view .LVU392 1367 01bc 2368 ldr r3, [r4] 1368 01be 6022 movs r2, #96 1369 01c0 1A60 str r2, [r3] 1370 .LVL97: 1371 .L82: 2585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1372 .loc 1 2585 3 view .LVU393 2585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1373 .loc 1 2585 6 is_stmt 0 view .LVU394 1374 01c2 17F0800F tst r7, #128 1375 01c6 02D0 beq .L94 2585:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1376 .loc 1 2585 52 discriminator 1 view .LVU395 1377 01c8 15F0800F tst r5, #128 1378 01cc 2FD1 bne .L109 1379 .L94: 2602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1380 .loc 1 2602 3 is_stmt 1 view .LVU396 2602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1381 .loc 1 2602 6 is_stmt 0 view .LVU397 1382 01ce 17F4807F tst r7, #256 1383 01d2 02D0 beq .L95 2602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1384 .loc 1 2602 52 discriminator 1 view .LVU398 1385 01d4 15F4807F tst r5, #256 1386 01d8 34D1 bne .L110 1387 .L95: 2619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1388 .loc 1 2619 3 is_stmt 1 view .LVU399 2619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1389 .loc 1 2619 6 is_stmt 0 view .LVU400 1390 01da 17F4007F tst r7, #512 1391 01de 02D0 beq .L96 2619:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1392 .loc 1 2619 52 discriminator 1 view .LVU401 1393 01e0 15F4007F tst r5, #512 1394 01e4 3AD1 bne .L111 1395 .L96: 2636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1396 .loc 1 2636 3 is_stmt 1 view .LVU402 2636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 244 1397 .loc 1 2636 6 is_stmt 0 view .LVU403 1398 01e6 17F0100F tst r7, #16 1399 01ea 19D0 beq .L97 2636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1400 .loc 1 2636 50 discriminator 1 view .LVU404 1401 01ec 15F0100F tst r5, #16 1402 01f0 16D0 beq .L97 2644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1403 .loc 1 2644 5 is_stmt 1 view .LVU405 2644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1404 .loc 1 2644 19 is_stmt 0 view .LVU406 1405 01f2 236B ldr r3, [r4, #48] 2644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1406 .loc 1 2644 8 view .LVU407 1407 01f4 33B1 cbz r3, .L98 2651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1408 .loc 1 2651 7 is_stmt 1 view .LVU408 2651:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1409 .loc 1 2651 10 is_stmt 0 view .LVU409 1410 01f6 002E cmp r6, #0 1411 01f8 40D0 beq .L99 2655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1412 .loc 1 2655 9 is_stmt 1 view .LVU410 1413 .LVL98: 1414 .LBB242: 1415 .LBI242: 6692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1416 .loc 2 6692 26 view .LVU411 1417 .LBB243: 6694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1418 .loc 2 6694 3 view .LVU412 6694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1419 .loc 2 6694 21 is_stmt 0 view .LVU413 1420 01fa 1E4B ldr r3, .L113 1421 01fc 9B68 ldr r3, [r3, #8] 1422 .LVL99: 6694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1423 .loc 2 6694 21 view .LVU414 1424 .LBE243: 1425 .LBE242: 2655:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1426 .loc 1 2655 12 discriminator 1 view .LVU415 1427 01fe 13F4404F tst r3, #49152 1428 0202 0AD0 beq .L100 1429 .L98: 1430 .LVL100: 2673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1431 .loc 1 2673 7 is_stmt 1 view .LVU416 1432 0204 636D ldr r3, [r4, #84] 1433 0206 43F48063 orr r3, r3, #1024 1434 020a 6365 str r3, [r4, #84] 2676:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1435 .loc 1 2676 7 view .LVU417 1436 020c A36D ldr r3, [r4, #88] 1437 020e 43F00203 orr r3, r3, #2 1438 0212 A365 str r3, [r4, #88] 2686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ ARM GAS /tmp/ccIEHjf0.s page 245 1439 .loc 1 2686 7 view .LVU418 1440 0214 2046 mov r0, r4 1441 0216 FFF7FEFF bl HAL_ADC_ErrorCallback 1442 .LVL101: 1443 .L100: 2691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1444 .loc 1 2691 5 view .LVU419 1445 021a 2368 ldr r3, [r4] 1446 021c 1022 movs r2, #16 1447 021e 1A60 str r2, [r3] 1448 .L97: 2695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1449 .loc 1 2695 3 view .LVU420 2695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1450 .loc 1 2695 6 is_stmt 0 view .LVU421 1451 0220 17F4806F tst r7, #1024 1452 0224 02D0 beq .L66 2695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1453 .loc 1 2695 54 discriminator 1 view .LVU422 1454 0226 15F4806F tst r5, #1024 1455 022a 2DD1 bne .L112 1456 .L66: 2714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1457 .loc 1 2714 1 view .LVU423 1458 022c F8BD pop {r3, r4, r5, r6, r7, pc} 1459 .LVL102: 1460 .L109: 2588:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1461 .loc 1 2588 5 is_stmt 1 view .LVU424 1462 022e 636D ldr r3, [r4, #84] 1463 0230 43F48033 orr r3, r3, #65536 1464 0234 6365 str r3, [r4, #84] 2594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1465 .loc 1 2594 5 view .LVU425 1466 0236 2046 mov r0, r4 1467 0238 FFF7FEFF bl HAL_ADC_LevelOutOfWindowCallback 1468 .LVL103: 2598:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1469 .loc 1 2598 5 view .LVU426 1470 023c 2368 ldr r3, [r4] 1471 023e 8022 movs r2, #128 1472 0240 1A60 str r2, [r3] 1473 0242 C4E7 b .L94 1474 .L110: 2605:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1475 .loc 1 2605 5 view .LVU427 1476 0244 636D ldr r3, [r4, #84] 1477 0246 43F40033 orr r3, r3, #131072 1478 024a 6365 str r3, [r4, #84] 2611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1479 .loc 1 2611 5 view .LVU428 1480 024c 2046 mov r0, r4 1481 024e FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow2Callback 1482 .LVL104: 2615:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1483 .loc 1 2615 5 view .LVU429 1484 0252 2368 ldr r3, [r4] ARM GAS /tmp/ccIEHjf0.s page 246 1485 0254 4FF48072 mov r2, #256 1486 0258 1A60 str r2, [r3] 1487 025a BEE7 b .L95 1488 .L111: 2622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1489 .loc 1 2622 5 view .LVU430 1490 025c 636D ldr r3, [r4, #84] 1491 025e 43F48023 orr r3, r3, #262144 1492 0262 6365 str r3, [r4, #84] 2628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1493 .loc 1 2628 5 view .LVU431 1494 0264 2046 mov r0, r4 1495 0266 FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow3Callback 1496 .LVL105: 2632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1497 .loc 1 2632 5 view .LVU432 1498 026a 2368 ldr r3, [r4] 1499 026c 4FF40072 mov r2, #512 1500 0270 1A60 str r2, [r3] 1501 0272 B8E7 b .L96 1502 .L114: 1503 .align 2 1504 .L113: 1505 0274 00230240 .word 1073881856 1506 0278 00210240 .word 1073881344 1507 .L99: 2663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1508 .loc 1 2663 9 view .LVU433 2663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1509 .loc 1 2663 18 is_stmt 0 view .LVU434 1510 027c 2368 ldr r3, [r4] 2663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1511 .loc 1 2663 28 view .LVU435 1512 027e DB68 ldr r3, [r3, #12] 2663:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1513 .loc 1 2663 12 view .LVU436 1514 0280 13F0030F tst r3, #3 1515 0284 C9D0 beq .L100 1516 0286 BDE7 b .L98 1517 .LVL106: 1518 .L112: 2698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1519 .loc 1 2698 5 is_stmt 1 view .LVU437 1520 0288 636D ldr r3, [r4, #84] 1521 028a 43F48043 orr r3, r3, #16384 1522 028e 6365 str r3, [r4, #84] 2701:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1523 .loc 1 2701 5 view .LVU438 1524 0290 A36D ldr r3, [r4, #88] 1525 0292 43F00803 orr r3, r3, #8 1526 0296 A365 str r3, [r4, #88] 2704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1527 .loc 1 2704 5 view .LVU439 1528 0298 2368 ldr r3, [r4] 1529 029a 4FF48062 mov r2, #1024 1530 029e 1A60 str r2, [r3] 2710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ ARM GAS /tmp/ccIEHjf0.s page 247 1531 .loc 1 2710 5 view .LVU440 1532 02a0 2046 mov r0, r4 1533 02a2 FFF7FEFF bl HAL_ADCEx_InjectedQueueOverflowCallback 1534 .LVL107: 2714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1535 .loc 1 2714 1 is_stmt 0 view .LVU441 1536 02a6 C1E7 b .L66 1537 .cfi_endproc 1538 .LFE348: 1540 .section .text.ADC_DMAConvCplt,"ax",%progbits 1541 .align 1 1542 .global ADC_DMAConvCplt 1543 .syntax unified 1544 .thumb 1545 .thumb_func 1547 ADC_DMAConvCplt: 1548 .LVL108: 1549 .LFB360: 3814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 1550 .loc 1 3814 1 is_stmt 1 view -0 1551 .cfi_startproc 1552 @ args = 0, pretend = 0, frame = 0 1553 @ frame_needed = 0, uses_anonymous_args = 0 3814:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 1554 .loc 1 3814 1 is_stmt 0 view .LVU443 1555 0000 08B5 push {r3, lr} 1556 .cfi_def_cfa_offset 8 1557 .cfi_offset 3, -8 1558 .cfi_offset 14, -4 1559 0002 0346 mov r3, r0 3816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1560 .loc 1 3816 3 is_stmt 1 view .LVU444 3816:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1561 .loc 1 3816 22 is_stmt 0 view .LVU445 1562 0004 806B ldr r0, [r0, #56] 1563 .LVL109: 3819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1564 .loc 1 3819 3 is_stmt 1 view .LVU446 3819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1565 .loc 1 3819 12 is_stmt 0 view .LVU447 1566 0006 426D ldr r2, [r0, #84] 3819:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1567 .loc 1 3819 6 view .LVU448 1568 0008 12F0500F tst r2, #80 1569 000c 30D1 bne .L116 3822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1570 .loc 1 3822 5 is_stmt 1 view .LVU449 1571 000e 436D ldr r3, [r0, #84] 1572 .LVL110: 3822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1573 .loc 1 3822 5 is_stmt 0 view .LVU450 1574 0010 43F40073 orr r3, r3, #512 1575 0014 4365 str r3, [r0, #84] 3828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1576 .loc 1 3828 5 is_stmt 1 view .LVU451 3828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1577 .loc 1 3828 14 is_stmt 0 view .LVU452 ARM GAS /tmp/ccIEHjf0.s page 248 1578 0016 0368 ldr r3, [r0] 3828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1579 .loc 1 3828 24 view .LVU453 1580 0018 1A68 ldr r2, [r3] 3828:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1581 .loc 1 3828 8 view .LVU454 1582 001a 12F0080F tst r2, #8 1583 001e 14D0 beq .L117 3831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1584 .loc 1 3831 7 is_stmt 1 view .LVU455 1585 .LVL111: 1586 .LBB244: 1587 .LBI244: 3928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1588 .loc 2 3928 26 view .LVU456 1589 .LBB245: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1590 .loc 2 3930 3 view .LVU457 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1591 .loc 2 3930 12 is_stmt 0 view .LVU458 1592 0020 DA68 ldr r2, [r3, #12] 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1593 .loc 2 3930 103 view .LVU459 1594 0022 12F4406F tst r2, #3072 1595 0026 20D1 bne .L118 1596 .LVL112: 3930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1597 .loc 2 3930 103 view .LVU460 1598 .LBE245: 1599 .LBE244: 3834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1600 .loc 1 3834 9 is_stmt 1 view .LVU461 3834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1601 .loc 1 3834 13 is_stmt 0 view .LVU462 1602 0028 DB68 ldr r3, [r3, #12] 3834:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1603 .loc 1 3834 12 view .LVU463 1604 002a 13F4005F tst r3, #8192 1605 002e 1CD1 bne .L118 3837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 1606 .loc 1 3837 11 is_stmt 1 view .LVU464 1607 0030 436D ldr r3, [r0, #84] 1608 0032 23F48073 bic r3, r3, #256 1609 0036 4365 str r3, [r0, #84] 3838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1610 .loc 1 3838 11 view .LVU465 3838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1611 .loc 1 3838 20 is_stmt 0 view .LVU466 1612 0038 436D ldr r3, [r0, #84] 3838:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1613 .loc 1 3838 14 view .LVU467 1614 003a 13F4805F tst r3, #4096 1615 003e 14D1 bne .L118 3840:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1616 .loc 1 3840 13 is_stmt 1 view .LVU468 1617 0040 436D ldr r3, [r0, #84] 1618 0042 43F00103 orr r3, r3, #1 ARM GAS /tmp/ccIEHjf0.s page 249 1619 0046 4365 str r3, [r0, #84] 1620 0048 0FE0 b .L118 1621 .L117: 3849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1622 .loc 1 3849 7 view .LVU469 3849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1623 .loc 1 3849 11 is_stmt 0 view .LVU470 1624 004a DB68 ldr r3, [r3, #12] 3849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1625 .loc 1 3849 10 view .LVU471 1626 004c 13F0030F tst r3, #3 1627 0050 0BD1 bne .L118 3852:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 1628 .loc 1 3852 9 is_stmt 1 view .LVU472 1629 0052 436D ldr r3, [r0, #84] 1630 0054 23F48073 bic r3, r3, #256 1631 0058 4365 str r3, [r0, #84] 3853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1632 .loc 1 3853 9 view .LVU473 3853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1633 .loc 1 3853 18 is_stmt 0 view .LVU474 1634 005a 436D ldr r3, [r0, #84] 3853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1635 .loc 1 3853 12 view .LVU475 1636 005c 13F4805F tst r3, #4096 1637 0060 03D1 bne .L118 3855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1638 .loc 1 3855 11 is_stmt 1 view .LVU476 1639 0062 436D ldr r3, [r0, #84] 1640 0064 43F00103 orr r3, r3, #1 1641 0068 4365 str r3, [r0, #84] 1642 .L118: 3864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1643 .loc 1 3864 5 view .LVU477 1644 006a FFF7FEFF bl HAL_ADC_ConvCpltCallback 1645 .LVL113: 1646 .L115: 3884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1647 .loc 1 3884 1 is_stmt 0 view .LVU478 1648 006e 08BD pop {r3, pc} 1649 .LVL114: 1650 .L116: 3869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1651 .loc 1 3869 5 is_stmt 1 view .LVU479 3869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1652 .loc 1 3869 14 is_stmt 0 view .LVU480 1653 0070 426D ldr r2, [r0, #84] 3869:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1654 .loc 1 3869 8 view .LVU481 1655 0072 12F0100F tst r2, #16 1656 0076 04D1 bne .L122 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1657 .loc 1 3881 7 is_stmt 1 view .LVU482 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1658 .loc 1 3881 11 is_stmt 0 view .LVU483 1659 0078 C26C ldr r2, [r0, #76] 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 250 1660 .loc 1 3881 23 view .LVU484 1661 007a D26C ldr r2, [r2, #76] 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1662 .loc 1 3881 7 view .LVU485 1663 007c 1846 mov r0, r3 1664 .LVL115: 3881:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1665 .loc 1 3881 7 view .LVU486 1666 007e 9047 blx r2 1667 .LVL116: 3884:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1668 .loc 1 3884 1 view .LVU487 1669 0080 F5E7 b .L115 1670 .LVL117: 1671 .L122: 3875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1672 .loc 1 3875 7 is_stmt 1 view .LVU488 1673 0082 FFF7FEFF bl HAL_ADC_ErrorCallback 1674 .LVL118: 3875:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1675 .loc 1 3875 7 is_stmt 0 view .LVU489 1676 0086 F2E7 b .L115 1677 .cfi_endproc 1678 .LFE360: 1680 .section .text.ADC_DMAError,"ax",%progbits 1681 .align 1 1682 .global ADC_DMAError 1683 .syntax unified 1684 .thumb 1685 .thumb_func 1687 ADC_DMAError: 1688 .LVL119: 1689 .LFB362: 3903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3904:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3905:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief DMA error callback. 3906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3907:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None 3908:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3909:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** void ADC_DMAError(DMA_HandleTypeDef *hdma) 3910:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1690 .loc 1 3910 1 is_stmt 1 view -0 1691 .cfi_startproc 1692 @ args = 0, pretend = 0, frame = 0 1693 @ frame_needed = 0, uses_anonymous_args = 0 1694 .loc 1 3910 1 is_stmt 0 view .LVU491 1695 0000 08B5 push {r3, lr} 1696 .cfi_def_cfa_offset 8 1697 .cfi_offset 3, -8 1698 .cfi_offset 14, -4 3911:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3912:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 1699 .loc 1 3912 3 is_stmt 1 view .LVU492 1700 .loc 1 3912 22 is_stmt 0 view .LVU493 1701 0002 806B ldr r0, [r0, #56] 1702 .LVL120: 3913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 251 3914:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC state */ 3915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 1703 .loc 1 3915 3 is_stmt 1 view .LVU494 1704 0004 436D ldr r3, [r0, #84] 1705 0006 43F04003 orr r3, r3, #64 1706 000a 4365 str r3, [r0, #84] 3916:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3917:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC error code to DMA error */ 3918:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 1707 .loc 1 3918 3 view .LVU495 1708 000c 836D ldr r3, [r0, #88] 1709 000e 43F00403 orr r3, r3, #4 1710 0012 8365 str r3, [r0, #88] 3919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3920:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Error callback */ 3921:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3922:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3923:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 3924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 1711 .loc 1 3924 3 view .LVU496 1712 0014 FFF7FEFF bl HAL_ADC_ErrorCallback 1713 .LVL121: 3925:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3926:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1714 .loc 1 3926 1 is_stmt 0 view .LVU497 1715 0018 08BD pop {r3, pc} 1716 .cfi_endproc 1717 .LFE362: 1719 .section .text.HAL_ADC_ConfigChannel,"ax",%progbits 1720 .align 1 1721 .global HAL_ADC_ConfigChannel 1722 .syntax unified 1723 .thumb 1724 .thumb_func 1726 HAL_ADC_ConfigChannel: 1727 .LVL122: 1728 .LFB353: 2820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 1729 .loc 1 2820 1 is_stmt 1 view -0 1730 .cfi_startproc 1731 @ args = 0, pretend = 0, frame = 8 1732 @ frame_needed = 0, uses_anonymous_args = 0 2820:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 1733 .loc 1 2820 1 is_stmt 0 view .LVU499 1734 0000 F0B5 push {r4, r5, r6, r7, lr} 1735 .cfi_def_cfa_offset 20 1736 .cfi_offset 4, -20 1737 .cfi_offset 5, -16 1738 .cfi_offset 6, -12 1739 .cfi_offset 7, -8 1740 .cfi_offset 14, -4 1741 0002 83B0 sub sp, sp, #12 1742 .cfi_def_cfa_offset 32 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 1743 .loc 1 2821 3 is_stmt 1 view .LVU500 1744 .LVL123: 2822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_config_internal_channel; ARM GAS /tmp/ccIEHjf0.s page 252 1745 .loc 1 2822 3 view .LVU501 2823:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0; 1746 .loc 1 2823 3 view .LVU502 2824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 1747 .loc 1 2824 3 view .LVU503 2824:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 1748 .loc 1 2824 17 is_stmt 0 view .LVU504 1749 0004 0023 movs r3, #0 1750 0006 0193 str r3, [sp, #4] 2825:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 1751 .loc 1 2825 3 is_stmt 1 view .LVU505 2826:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1752 .loc 1 2826 3 view .LVU506 2829:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); 1753 .loc 1 2829 3 view .LVU507 2830:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); 1754 .loc 1 2830 3 view .LVU508 2831:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(sConfig->SingleDiff)); 1755 .loc 1 2831 3 view .LVU509 2832:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(sConfig->OffsetNumber)); 1756 .loc 1 2832 3 view .LVU510 2833:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check offset range according to oversampling setting */ 1757 .loc 1 2833 3 view .LVU511 2835:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1758 .loc 1 2835 3 view .LVU512 2837:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1759 .loc 1 2837 5 view .LVU513 2849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1760 .loc 1 2849 7 view .LVU514 2855:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1761 .loc 1 2855 3 view .LVU515 2858:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1762 .loc 1 2858 3 view .LVU516 2864:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1763 .loc 1 2864 5 view .LVU517 2866:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1764 .loc 1 2866 7 view .LVU518 2868:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1765 .loc 1 2868 5 view .LVU519 2870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1766 .loc 1 2870 7 view .LVU520 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1767 .loc 1 2882 3 view .LVU521 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1768 .loc 1 2882 3 view .LVU522 1769 0008 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 1770 000c 012B cmp r3, #1 1771 000e 00F0FD81 beq .L152 1772 0012 0446 mov r4, r0 1773 0014 0D46 mov r5, r1 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1774 .loc 1 2882 3 discriminator 2 view .LVU523 1775 0016 0123 movs r3, #1 1776 0018 80F85030 strb r3, [r0, #80] 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1777 .loc 1 2882 3 view .LVU524 2889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 253 1778 .loc 1 2889 3 view .LVU525 2889:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1779 .loc 1 2889 42 is_stmt 0 view .LVU526 1780 001c 0268 ldr r2, [r0] 1781 .LVL124: 1782 .LBB246: 1783 .LBI246: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1784 .loc 2 7073 26 is_stmt 1 view .LVU527 1785 .LBB247: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1786 .loc 2 7075 3 view .LVU528 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1787 .loc 2 7075 12 is_stmt 0 view .LVU529 1788 001e 9368 ldr r3, [r2, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1789 .loc 2 7075 74 view .LVU530 1790 0020 13F0040F tst r3, #4 1791 0024 09D0 beq .L127 1792 .LVL125: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1793 .loc 2 7075 74 view .LVU531 1794 .LBE247: 1795 .LBE246: 3104:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1796 .loc 1 3104 5 is_stmt 1 view .LVU532 1797 0026 436D ldr r3, [r0, #84] 1798 0028 43F02003 orr r3, r3, #32 1799 002c 4365 str r3, [r0, #84] 3106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1800 .loc 1 3106 5 view .LVU533 1801 .LVL126: 3106:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1802 .loc 1 3106 20 is_stmt 0 view .LVU534 1803 002e 0120 movs r0, #1 1804 .LVL127: 1805 .L128: 3110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1806 .loc 1 3110 3 is_stmt 1 view .LVU535 3110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1807 .loc 1 3110 3 view .LVU536 1808 0030 0023 movs r3, #0 1809 0032 84F85030 strb r3, [r4, #80] 3110:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1810 .loc 1 3110 3 view .LVU537 3113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 1811 .loc 1 3113 3 view .LVU538 1812 .LVL128: 1813 .L126: 3114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1814 .loc 1 3114 1 is_stmt 0 view .LVU539 1815 0036 03B0 add sp, sp, #12 1816 .cfi_remember_state 1817 .cfi_def_cfa_offset 20 1818 @ sp needed 1819 0038 F0BD pop {r4, r5, r6, r7, pc} 1820 .LVL129: ARM GAS /tmp/ccIEHjf0.s page 254 1821 .L127: 1822 .cfi_restore_state 2891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1823 .loc 1 2891 5 is_stmt 1 view .LVU540 2891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1824 .loc 1 2891 11 is_stmt 0 view .LVU541 1825 003a 0B68 ldr r3, [r1] 2891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1826 .loc 1 2891 8 view .LVU542 1827 003c 002B cmp r3, #0 1828 003e 0ADB blt .L129 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1829 .loc 1 2901 7 is_stmt 1 view .LVU543 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1830 .loc 1 2901 41 is_stmt 0 view .LVU544 1831 0040 C3F31301 ubfx r1, r3, #0, #20 1832 .LVL130: 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1833 .loc 1 2901 37 view .LVU545 1834 0044 0029 cmp r1, #0 1835 0046 3AD1 bne .L130 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1836 .loc 1 2901 41 discriminator 1 view .LVU546 1837 0048 C3F38463 ubfx r3, r3, #26, #5 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1838 .loc 1 2901 37 discriminator 1 view .LVU547 1839 004c 0121 movs r1, #1 1840 004e 9940 lsls r1, r1, r3 1841 .L131: 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1842 .loc 1 2901 21 discriminator 4 view .LVU548 1843 0050 D369 ldr r3, [r2, #28] 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1844 .loc 1 2901 29 discriminator 4 view .LVU549 1845 0052 0B43 orrs r3, r3, r1 1846 0054 D361 str r3, [r2, #28] 1847 .L129: 2906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1848 .loc 1 2906 5 is_stmt 1 view .LVU550 1849 0056 2A68 ldr r2, [r5] 1850 0058 6968 ldr r1, [r5, #4] 1851 005a 2068 ldr r0, [r4] 1852 .LVL131: 2906:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1853 .loc 1 2906 5 is_stmt 0 view .LVU551 1854 005c FFF7FEFF bl LL_ADC_REG_SetSequencerRanks 1855 .LVL132: 2913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 1856 .loc 1 2913 5 is_stmt 1 view .LVU552 2913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 1857 .loc 1 2913 81 is_stmt 0 view .LVU553 1858 0060 2068 ldr r0, [r4] 1859 .LVL133: 1860 .LBB248: 1861 .LBI248: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1862 .loc 2 7073 26 is_stmt 1 view .LVU554 ARM GAS /tmp/ccIEHjf0.s page 255 1863 .LBB249: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1864 .loc 2 7075 3 view .LVU555 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1865 .loc 2 7075 12 is_stmt 0 view .LVU556 1866 0062 8668 ldr r6, [r0, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1867 .loc 2 7075 74 view .LVU557 1868 0064 16F00406 ands r6, r6, #4 1869 0068 00D0 beq .L133 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1870 .loc 2 7075 74 discriminator 1 view .LVU558 1871 006a 0126 movs r6, #1 1872 .L133: 1873 .LVL134: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1874 .loc 2 7075 74 discriminator 1 view .LVU559 1875 .LBE249: 1876 .LBE248: 2914:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 1877 .loc 1 2914 5 is_stmt 1 view .LVU560 1878 .LBB250: 1879 .LBI250: 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1880 .loc 2 7268 26 view .LVU561 1881 .LBB251: 1882 .loc 2 7270 3 view .LVU562 1883 .loc 2 7270 12 is_stmt 0 view .LVU563 1884 006c 8368 ldr r3, [r0, #8] 1885 .loc 2 7270 76 view .LVU564 1886 006e 13F0080F tst r3, #8 1887 0072 00D1 bne .L134 1888 .LVL135: 1889 .loc 2 7270 76 view .LVU565 1890 .LBE251: 1891 .LBE250: 2915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 1892 .loc 1 2915 5 is_stmt 1 view .LVU566 2915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 1893 .loc 1 2915 8 is_stmt 0 view .LVU567 1894 0074 7EB3 cbz r6, .L180 1895 .LVL136: 1896 .L134: 3017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1897 .loc 1 3017 5 is_stmt 1 view .LVU568 3017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1898 .loc 1 3017 30 is_stmt 0 view .LVU569 1899 0076 2068 ldr r0, [r4] 1900 .LVL137: 1901 .LBB252: 1902 .LBI252: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1903 .loc 2 6941 26 is_stmt 1 view .LVU570 1904 .LBB253: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1905 .loc 2 6943 3 view .LVU571 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 256 1906 .loc 2 6943 12 is_stmt 0 view .LVU572 1907 0078 8168 ldr r1, [r0, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1908 .loc 2 6943 68 view .LVU573 1909 007a 11F00101 ands r1, r1, #1 1910 007e 40F0C181 bne .L155 1911 .LVL138: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 1912 .loc 2 6943 68 view .LVU574 1913 .LBE253: 1914 .LBE252: 3020:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 1915 .loc 1 3020 7 is_stmt 1 view .LVU575 1916 0082 2B68 ldr r3, [r5] 1917 0084 EE68 ldr r6, [r5, #12] 1918 .LVL139: 1919 .LBB254: 1920 .LBI254: 5555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 1921 .loc 2 5555 22 view .LVU576 1922 .LBB255: 5577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 1923 .loc 2 5577 3 view .LVU577 1924 0086 D0F8C020 ldr r2, [r0, #192] 1925 008a C3F3130C ubfx ip, r3, #0, #20 1926 008e 22EA0C02 bic r2, r2, ip 1927 0092 06F0180C and ip, r6, #24 1928 0096 9B4E ldr r6, .L196 1929 .LVL140: 5577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 1930 .loc 2 5577 3 is_stmt 0 view .LVU578 1931 0098 26FA0CF6 lsr r6, r6, ip 1932 009c 3340 ands r3, r3, r6 1933 .LVL141: 5577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 1934 .loc 2 5577 3 view .LVU579 1935 009e C3F31303 ubfx r3, r3, #0, #20 1936 00a2 1343 orrs r3, r3, r2 1937 00a4 C0F8C030 str r3, [r0, #192] 1938 .LVL142: 5577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 1939 .loc 2 5577 3 view .LVU580 1940 .LBE255: 1941 .LBE254: 3023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1942 .loc 1 3023 7 is_stmt 1 view .LVU581 3023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1943 .loc 1 3023 18 is_stmt 0 view .LVU582 1944 00a8 EA68 ldr r2, [r5, #12] 3023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1945 .loc 1 3023 10 view .LVU583 1946 00aa 974B ldr r3, .L196+4 1947 00ac 9A42 cmp r2, r3 1948 00ae 00F08F80 beq .L181 1949 .L143: 3035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1950 .loc 1 3035 7 is_stmt 1 view .LVU584 ARM GAS /tmp/ccIEHjf0.s page 257 3035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1951 .loc 1 3035 11 is_stmt 0 view .LVU585 1952 00b2 2B68 ldr r3, [r5] 3035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 1953 .loc 1 3035 10 view .LVU586 1954 00b4 002B cmp r3, #0 1955 00b6 C0F20681 blt .L182 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 1956 .loc 1 2821 21 view .LVU587 1957 00ba 0020 movs r0, #0 1958 00bc B8E7 b .L128 1959 .LVL143: 1960 .L130: 1961 .LBB256: 1962 .LBI256: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1963 .loc 3 1048 31 is_stmt 1 view .LVU588 1964 .LBB257: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 1965 .loc 3 1050 3 view .LVU589 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 1966 .loc 3 1055 4 view .LVU590 1967 .syntax unified 1968 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 1969 00be 93FAA3F3 rbit r3, r3 1970 @ 0 "" 2 1971 .LVL144: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1972 .loc 3 1068 3 view .LVU591 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 1973 .loc 3 1068 3 is_stmt 0 view .LVU592 1974 .thumb 1975 .syntax unified 1976 .LBE257: 1977 .LBE256: 1978 .LBB258: 1979 .LBI258: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1980 .loc 3 1078 30 is_stmt 1 view .LVU593 1981 .LBB259: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1982 .loc 3 1089 3 view .LVU594 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1983 .loc 3 1089 6 is_stmt 0 view .LVU595 1984 00c2 33B1 cbz r3, .L153 1985 .loc 3 1093 3 is_stmt 1 view .LVU596 1986 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU597 1987 00c4 B3FA83F3 clz r3, r3 1988 .LVL145: 1989 .L132: 1990 .loc 3 1093 10 discriminator 1 view .LVU598 1991 .LBE259: 1992 .LBE258: 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 1993 .loc 1 2901 100 discriminator 2 view .LVU599 1994 00c8 03F01F03 and r3, r3, #31 2901:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ ARM GAS /tmp/ccIEHjf0.s page 258 1995 .loc 1 2901 37 discriminator 2 view .LVU600 1996 00cc 0121 movs r1, #1 1997 00ce 9940 lsls r1, r1, r3 1998 00d0 BEE7 b .L131 1999 .LVL146: 2000 .L153: 2001 .LBB261: 2002 .LBB260: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2003 .loc 3 1091 12 view .LVU601 2004 00d2 2023 movs r3, #32 2005 .LVL147: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2006 .loc 3 1091 12 view .LVU602 2007 00d4 F8E7 b .L132 2008 .LVL148: 2009 .L180: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2010 .loc 3 1091 12 view .LVU603 2011 .LBE260: 2012 .LBE261: 2920:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2013 .loc 1 2920 7 is_stmt 1 view .LVU604 2014 00d6 AA68 ldr r2, [r5, #8] 2015 00d8 2968 ldr r1, [r5] 2016 00da FFF7FEFF bl LL_ADC_SetChannelSamplingTime 2017 .LVL149: 2934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2018 .loc 1 2934 9 view .LVU605 2934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2019 .loc 1 2934 28 is_stmt 0 view .LVU606 2020 00de 2368 ldr r3, [r4] 2021 00e0 DA68 ldr r2, [r3, #12] 2022 00e2 12F0100F tst r2, #16 2023 00e6 31D1 bne .L135 2934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2024 .loc 1 2934 28 discriminator 1 view .LVU607 2025 00e8 6A69 ldr r2, [r5, #20] 2026 00ea D968 ldr r1, [r3, #12] 2027 00ec C1F38201 ubfx r1, r1, #2, #3 2028 00f0 4900 lsls r1, r1, #1 2029 00f2 8A40 lsls r2, r2, r1 2030 .L136: 2031 .LVL150: 2937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2032 .loc 1 2937 7 is_stmt 1 view .LVU608 2937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2033 .loc 1 2937 18 is_stmt 0 view .LVU609 2034 00f4 2F69 ldr r7, [r5, #16] 2937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2035 .loc 1 2937 10 view .LVU610 2036 00f6 042F cmp r7, #4 2037 00f8 36D0 beq .L137 2940:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2038 .loc 1 2940 9 is_stmt 1 view .LVU611 2039 00fa 2868 ldr r0, [r5] 2040 .LVL151: ARM GAS /tmp/ccIEHjf0.s page 259 2041 .LBB262: 2042 .LBI262: 3379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2043 .loc 2 3379 22 view .LVU612 2044 .LBB263: 3381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2045 .loc 2 3381 3 view .LVU613 3381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** #if defined(ADC_VER_V5_V90) 2046 .loc 2 3381 25 is_stmt 0 view .LVU614 2047 00fc 6033 adds r3, r3, #96 2048 .LVL152: 3392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2049 .loc 2 3392 5 is_stmt 1 view .LVU615 2050 00fe 53F82710 ldr r1, [r3, r7, lsl #2] 2051 0102 01F00041 and r1, r1, #-2147483648 2052 0106 00F0F840 and r0, r0, #2080374784 2053 .LVL153: 3392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2054 .loc 2 3392 5 is_stmt 0 view .LVU616 2055 010a 0243 orrs r2, r2, r0 2056 .LVL154: 3392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2057 .loc 2 3392 5 view .LVU617 2058 010c 0A43 orrs r2, r2, r1 2059 010e 43F82720 str r2, [r3, r7, lsl #2] 2060 .LVL155: 3392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2061 .loc 2 3392 5 view .LVU618 2062 .LBE263: 2063 .LBE262: 2954:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset signed saturation */ 2064 .loc 1 2954 11 is_stmt 1 view .LVU619 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2065 .loc 1 2956 11 view .LVU620 2066 0112 2368 ldr r3, [r4] 2067 0114 2869 ldr r0, [r5, #16] 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2068 .loc 1 2956 91 is_stmt 0 view .LVU621 2069 0116 6A7E ldrb r2, [r5, #25] @ zero_extendqisi2 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2070 .loc 1 2956 11 view .LVU622 2071 0118 012A cmp r2, #1 2072 011a 1FD0 beq .L183 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2073 .loc 1 2956 11 discriminator 2 view .LVU623 2074 011c 3246 mov r2, r6 2075 .L138: 2076 .LVL156: 2077 .LBB264: 2078 .LBI264: 3552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2079 .loc 2 3552 22 is_stmt 1 view .LVU624 2080 .LBB265: 3562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation); 2081 .loc 2 3562 5 view .LVU625 3562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation); 2082 .loc 2 3562 27 is_stmt 0 view .LVU626 ARM GAS /tmp/ccIEHjf0.s page 260 2083 011e 6033 adds r3, r3, #96 2084 .LVL157: 3563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2085 .loc 2 3563 5 is_stmt 1 view .LVU627 2086 0120 53F82010 ldr r1, [r3, r0, lsl #2] 2087 0124 21F00041 bic r1, r1, #-2147483648 2088 0128 0A43 orrs r2, r2, r1 2089 .LVL158: 3563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2090 .loc 2 3563 5 is_stmt 0 view .LVU628 2091 012a 43F82020 str r2, [r3, r0, lsl #2] 2092 .LVL159: 3563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2093 .loc 2 3563 5 view .LVU629 2094 .LBE265: 2095 .LBE264: 2958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Set ADC selected offset right shift */ 2096 .loc 1 2958 11 is_stmt 1 view .LVU630 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2097 .loc 1 2960 11 view .LVU631 2098 012e 2068 ldr r0, [r4] 2099 0130 2969 ldr r1, [r5, #16] 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2100 .loc 1 2960 83 is_stmt 0 view .LVU632 2101 0132 2B7E ldrb r3, [r5, #24] @ zero_extendqisi2 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2102 .loc 1 2960 11 view .LVU633 2103 0134 012B cmp r3, #1 2104 0136 14D0 beq .L184 2105 .LVL160: 2106 .L139: 2107 .LBB266: 2108 .LBI266: 3510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2109 .loc 2 3510 22 is_stmt 1 view .LVU634 2110 .LBB267: 3512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2111 .loc 2 3512 3 view .LVU635 2112 0138 0269 ldr r2, [r0, #16] 2113 013a 22F4F042 bic r2, r2, #30720 2114 013e 01F01F03 and r3, r1, #31 2115 0142 06FA03F3 lsl r3, r6, r3 2116 0146 1343 orrs r3, r3, r2 2117 0148 0361 str r3, [r0, #16] 2118 .LVL161: 3513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2119 .loc 2 3513 1 is_stmt 0 view .LVU636 2120 014a 94E7 b .L134 2121 .LVL162: 2122 .L135: 3513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2123 .loc 2 3513 1 view .LVU637 2124 .LBE267: 2125 .LBE266: 2934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2126 .loc 1 2934 28 discriminator 2 view .LVU638 2127 014c 6A69 ldr r2, [r5, #20] ARM GAS /tmp/ccIEHjf0.s page 261 2128 014e D968 ldr r1, [r3, #12] 2129 0150 8908 lsrs r1, r1, #2 2130 0152 01F00401 and r1, r1, #4 2131 0156 4900 lsls r1, r1, #1 2132 0158 8A40 lsls r2, r2, r1 2133 015a CBE7 b .L136 2134 .LVL163: 2135 .L183: 2956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2136 .loc 1 2956 11 discriminator 1 view .LVU639 2137 015c 4FF00042 mov r2, #-2147483648 2138 0160 DDE7 b .L138 2139 .L184: 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2140 .loc 1 2960 11 discriminator 1 view .LVU640 2141 0162 4FF40066 mov r6, #2048 2142 .LVL164: 2960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2143 .loc 1 2960 11 discriminator 1 view .LVU641 2144 0166 E7E7 b .L139 2145 .LVL165: 2146 .L137: 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2147 .loc 1 2992 11 is_stmt 1 view .LVU642 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2148 .loc 1 2992 31 is_stmt 0 view .LVU643 2149 0168 1A6E ldr r2, [r3, #96] 2150 .LVL166: 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2151 .loc 1 2992 39 view .LVU644 2152 016a 02F0F842 and r2, r2, #2080374784 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2153 .loc 1 2992 65 view .LVU645 2154 016e 2968 ldr r1, [r5] 2992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2155 .loc 1 2992 14 view .LVU646 2156 0170 B2EB816F cmp r2, r1, lsl #26 2157 0174 1DD0 beq .L185 2158 .L140: 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2159 .loc 1 2996 11 is_stmt 1 view .LVU647 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2160 .loc 1 2996 21 is_stmt 0 view .LVU648 2161 0176 2268 ldr r2, [r4] 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2162 .loc 1 2996 31 view .LVU649 2163 0178 536E ldr r3, [r2, #100] 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2164 .loc 1 2996 39 view .LVU650 2165 017a 03F0F843 and r3, r3, #2080374784 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2166 .loc 1 2996 65 view .LVU651 2167 017e 2968 ldr r1, [r5] 2996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2168 .loc 1 2996 14 view .LVU652 2169 0180 B3EB816F cmp r3, r1, lsl #26 2170 0184 1AD0 beq .L186 ARM GAS /tmp/ccIEHjf0.s page 262 2171 .L141: 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2172 .loc 1 3000 11 is_stmt 1 view .LVU653 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2173 .loc 1 3000 21 is_stmt 0 view .LVU654 2174 0186 2268 ldr r2, [r4] 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2175 .loc 1 3000 31 view .LVU655 2176 0188 936E ldr r3, [r2, #104] 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2177 .loc 1 3000 39 view .LVU656 2178 018a 03F0F843 and r3, r3, #2080374784 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2179 .loc 1 3000 65 view .LVU657 2180 018e 2968 ldr r1, [r5] 3000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2181 .loc 1 3000 14 view .LVU658 2182 0190 B3EB816F cmp r3, r1, lsl #26 2183 0194 17D0 beq .L187 2184 .L142: 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2185 .loc 1 3004 11 is_stmt 1 view .LVU659 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2186 .loc 1 3004 21 is_stmt 0 view .LVU660 2187 0196 2268 ldr r2, [r4] 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2188 .loc 1 3004 31 view .LVU661 2189 0198 D36E ldr r3, [r2, #108] 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2190 .loc 1 3004 39 view .LVU662 2191 019a 03F0F843 and r3, r3, #2080374784 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2192 .loc 1 3004 65 view .LVU663 2193 019e 2968 ldr r1, [r5] 3004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2194 .loc 1 3004 14 view .LVU664 2195 01a0 B3EB816F cmp r3, r1, lsl #26 2196 01a4 7FF467AF bne .L134 3006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2197 .loc 1 3006 13 is_stmt 1 view .LVU665 2198 01a8 D36E ldr r3, [r2, #108] 2199 01aa 23F00043 bic r3, r3, #-2147483648 2200 01ae D366 str r3, [r2, #108] 2201 01b0 61E7 b .L134 2202 .L185: 2994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2203 .loc 1 2994 13 view .LVU666 2204 01b2 1A6E ldr r2, [r3, #96] 2205 01b4 22F00042 bic r2, r2, #-2147483648 2206 01b8 1A66 str r2, [r3, #96] 2207 01ba DCE7 b .L140 2208 .L186: 2998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2209 .loc 1 2998 13 view .LVU667 2210 01bc 536E ldr r3, [r2, #100] 2211 01be 23F00043 bic r3, r3, #-2147483648 2212 01c2 5366 str r3, [r2, #100] ARM GAS /tmp/ccIEHjf0.s page 263 2213 01c4 DFE7 b .L141 2214 .L187: 3002:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2215 .loc 1 3002 13 view .LVU668 2216 01c6 936E ldr r3, [r2, #104] 2217 01c8 23F00043 bic r3, r3, #-2147483648 2218 01cc 9366 str r3, [r2, #104] 2219 01ce E2E7 b .L142 2220 .LVL167: 2221 .L181: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2222 .loc 1 3026 9 view .LVU669 2223 01d0 2068 ldr r0, [r4] 2224 01d2 4E4B ldr r3, .L196+8 2225 01d4 9842 cmp r0, r3 2226 01d6 05D0 beq .L188 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2227 .loc 1 3026 55 is_stmt 0 discriminator 2 view .LVU670 2228 01d8 4D4B ldr r3, .L196+12 2229 01da 9842 cmp r0, r3 2230 01dc 2BD0 beq .L189 2231 .L145: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2232 .loc 1 3026 9 discriminator 84 view .LVU671 2233 01de FFF7FEFF bl LL_ADC_SetChannelPreselection 2234 .LVL168: 2235 01e2 66E7 b .L143 2236 .L188: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2237 .loc 1 3026 55 discriminator 1 view .LVU672 2238 01e4 2B68 ldr r3, [r5] 2239 01e6 4B4A ldr r2, .L196+16 2240 01e8 9342 cmp r3, r2 2241 01ea 4AD0 beq .L156 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2242 .loc 1 3026 55 discriminator 3 view .LVU673 2243 01ec 4A4A ldr r2, .L196+20 2244 01ee 9342 cmp r3, r2 2245 01f0 49D0 beq .L157 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2246 .loc 1 3026 55 discriminator 5 view .LVU674 2247 01f2 4A4A ldr r2, .L196+24 2248 01f4 9342 cmp r3, r2 2249 01f6 48D0 beq .L158 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2250 .loc 1 3026 55 discriminator 7 view .LVU675 2251 01f8 494A ldr r2, .L196+28 2252 01fa 9342 cmp r3, r2 2253 01fc 47D0 beq .L159 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2254 .loc 1 3026 55 discriminator 9 view .LVU676 2255 01fe 02F18662 add r2, r2, #70254592 2256 0202 1032 adds r2, r2, #16 2257 0204 9342 cmp r3, r2 2258 0206 44D0 beq .L160 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2259 .loc 1 3026 55 discriminator 11 view .LVU677 ARM GAS /tmp/ccIEHjf0.s page 264 2260 0208 464A ldr r2, .L196+32 2261 020a 9342 cmp r3, r2 2262 020c 43D0 beq .L161 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2263 .loc 1 3026 55 discriminator 13 view .LVU678 2264 020e 02F10422 add r2, r2, #67109888 2265 0212 02F54012 add r2, r2, #3145728 2266 0216 9342 cmp r3, r2 2267 0218 3FD0 beq .L162 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2268 .loc 1 3026 55 discriminator 15 view .LVU679 2269 021a 02F18662 add r2, r2, #70254592 2270 021e 02F50062 add r2, r2, #2048 2271 0222 9342 cmp r3, r2 2272 0224 3BD0 beq .L163 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2273 .loc 1 3026 55 discriminator 17 view .LVU680 2274 0226 404A ldr r2, .L196+36 2275 0228 9342 cmp r3, r2 2276 022a 3AD0 beq .L164 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2277 .loc 1 3026 55 discriminator 19 view .LVU681 2278 022c 3F4A ldr r2, .L196+40 2279 022e 9342 cmp r3, r2 2280 0230 D5D1 bne .L145 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2281 .loc 1 3026 55 discriminator 21 view .LVU682 2282 0232 3F49 ldr r1, .L196+44 2283 0234 D3E7 b .L145 2284 .L189: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2285 .loc 1 3026 55 discriminator 44 view .LVU683 2286 0236 2B68 ldr r3, [r5] 2287 0238 364A ldr r2, .L196+16 2288 023a 9342 cmp r3, r2 2289 023c 33D0 beq .L165 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2290 .loc 1 3026 55 discriminator 46 view .LVU684 2291 023e 364A ldr r2, .L196+20 2292 0240 9342 cmp r3, r2 2293 0242 32D0 beq .L166 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2294 .loc 1 3026 55 discriminator 48 view .LVU685 2295 0244 354A ldr r2, .L196+24 2296 0246 9342 cmp r3, r2 2297 0248 31D0 beq .L167 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2298 .loc 1 3026 55 discriminator 50 view .LVU686 2299 024a 354A ldr r2, .L196+28 2300 024c 9342 cmp r3, r2 2301 024e 30D0 beq .L168 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2302 .loc 1 3026 55 discriminator 52 view .LVU687 2303 0250 02F18662 add r2, r2, #70254592 2304 0254 1032 adds r2, r2, #16 2305 0256 9342 cmp r3, r2 2306 0258 2DD0 beq .L169 ARM GAS /tmp/ccIEHjf0.s page 265 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2307 .loc 1 3026 55 discriminator 54 view .LVU688 2308 025a 324A ldr r2, .L196+32 2309 025c 9342 cmp r3, r2 2310 025e 2CD0 beq .L170 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2311 .loc 1 3026 55 discriminator 56 view .LVU689 2312 0260 02F10422 add r2, r2, #67109888 2313 0264 02F54012 add r2, r2, #3145728 2314 0268 9342 cmp r3, r2 2315 026a 28D0 beq .L171 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2316 .loc 1 3026 55 discriminator 58 view .LVU690 2317 026c 02F18662 add r2, r2, #70254592 2318 0270 02F50062 add r2, r2, #2048 2319 0274 9342 cmp r3, r2 2320 0276 24D0 beq .L172 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2321 .loc 1 3026 55 discriminator 60 view .LVU691 2322 0278 2C4A ldr r2, .L196+40 2323 027a 9342 cmp r3, r2 2324 027c AFD1 bne .L145 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2325 .loc 1 3026 55 discriminator 62 view .LVU692 2326 027e 2C49 ldr r1, .L196+44 2327 0280 ADE7 b .L145 2328 .L156: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2329 .loc 1 3026 55 discriminator 4 view .LVU693 2330 0282 0121 movs r1, #1 2331 0284 ABE7 b .L145 2332 .L157: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2333 .loc 1 3026 55 discriminator 6 view .LVU694 2334 0286 2B49 ldr r1, .L196+48 2335 0288 A9E7 b .L145 2336 .L158: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2337 .loc 1 3026 55 discriminator 8 view .LVU695 2338 028a 2B49 ldr r1, .L196+52 2339 028c A7E7 b .L145 2340 .L159: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2341 .loc 1 3026 55 discriminator 10 view .LVU696 2342 028e 2B49 ldr r1, .L196+56 2343 0290 A5E7 b .L145 2344 .L160: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2345 .loc 1 3026 55 discriminator 12 view .LVU697 2346 0292 2B49 ldr r1, .L196+60 2347 0294 A3E7 b .L145 2348 .L161: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2349 .loc 1 3026 55 discriminator 14 view .LVU698 2350 0296 2B49 ldr r1, .L196+64 2351 0298 A1E7 b .L145 2352 .L162: ARM GAS /tmp/ccIEHjf0.s page 266 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2353 .loc 1 3026 55 discriminator 16 view .LVU699 2354 029a 2B49 ldr r1, .L196+68 2355 029c 9FE7 b .L145 2356 .L163: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2357 .loc 1 3026 55 discriminator 18 view .LVU700 2358 029e 2B49 ldr r1, .L196+72 2359 02a0 9DE7 b .L145 2360 .L164: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2361 .loc 1 3026 55 discriminator 20 view .LVU701 2362 02a2 2B49 ldr r1, .L196+76 2363 02a4 9BE7 b .L145 2364 .L165: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2365 .loc 1 3026 55 discriminator 47 view .LVU702 2366 02a6 0121 movs r1, #1 2367 02a8 99E7 b .L145 2368 .L166: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2369 .loc 1 3026 55 discriminator 49 view .LVU703 2370 02aa 2249 ldr r1, .L196+48 2371 02ac 97E7 b .L145 2372 .L167: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2373 .loc 1 3026 55 discriminator 51 view .LVU704 2374 02ae 2249 ldr r1, .L196+52 2375 02b0 95E7 b .L145 2376 .L168: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2377 .loc 1 3026 55 discriminator 53 view .LVU705 2378 02b2 2249 ldr r1, .L196+56 2379 02b4 93E7 b .L145 2380 .L169: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2381 .loc 1 3026 55 discriminator 55 view .LVU706 2382 02b6 2249 ldr r1, .L196+60 2383 02b8 91E7 b .L145 2384 .L170: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2385 .loc 1 3026 55 discriminator 57 view .LVU707 2386 02ba 2249 ldr r1, .L196+64 2387 02bc 8FE7 b .L145 2388 .L171: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2389 .loc 1 3026 55 discriminator 59 view .LVU708 2390 02be 2249 ldr r1, .L196+68 2391 02c0 8DE7 b .L145 2392 .L172: 3026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2393 .loc 1 3026 55 discriminator 61 view .LVU709 2394 02c2 2249 ldr r1, .L196+72 2395 02c4 8BE7 b .L145 2396 .L182: 3039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2397 .loc 1 3039 9 is_stmt 1 view .LVU710 ARM GAS /tmp/ccIEHjf0.s page 267 2398 .LVL169: 2399 .LBB268: 2400 .LBI268: 2753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2401 .loc 2 2753 26 view .LVU711 2402 .LBB269: 2755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2403 .loc 2 2755 3 view .LVU712 2755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2404 .loc 2 2755 21 is_stmt 0 view .LVU713 2405 02c6 234A ldr r2, .L196+80 2406 02c8 9168 ldr r1, [r2, #8] 2755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2407 .loc 2 2755 10 view .LVU714 2408 02ca 01F0E075 and r5, r1, #29360128 2409 .LVL170: 2755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2410 .loc 2 2755 10 view .LVU715 2411 .LBE269: 2412 .LBE268: 3043:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2413 .loc 1 3043 9 is_stmt 1 view .LVU716 2414 .LBB270: 2415 .LBI270: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2416 .loc 2 6941 26 view .LVU717 2417 .LBB271: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2418 .loc 2 6943 3 view .LVU718 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2419 .loc 2 6943 12 is_stmt 0 view .LVU719 2420 02ce A2F54072 sub r2, r2, #768 2421 02d2 9268 ldr r2, [r2, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2422 .loc 2 6943 68 view .LVU720 2423 02d4 12F00102 ands r2, r2, #1 2424 02d8 00D0 beq .L146 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2425 .loc 2 6943 68 discriminator 1 view .LVU721 2426 02da 0122 movs r2, #1 2427 .L146: 2428 .LVL171: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2429 .loc 2 6943 68 discriminator 1 view .LVU722 2430 .LBE271: 2431 .LBE270: 2432 .LBB272: 2433 .LBI272: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2434 .loc 2 6941 26 is_stmt 1 view .LVU723 2435 .LBB273: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2436 .loc 2 6943 3 view .LVU724 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2437 .loc 2 6943 12 is_stmt 0 view .LVU725 2438 02dc 0C48 ldr r0, .L196+12 2439 02de 8068 ldr r0, [r0, #8] ARM GAS /tmp/ccIEHjf0.s page 268 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2440 .loc 2 6943 68 view .LVU726 2441 02e0 10F0010F tst r0, #1 2442 02e4 40F08880 bne .L147 2443 .LVL172: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2444 .loc 2 6943 68 view .LVU727 2445 .LBE273: 2446 .LBE272: 3043:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2447 .loc 1 3043 12 discriminator 2 view .LVU728 2448 02e8 002A cmp r2, #0 2449 02ea 40F08580 bne .L147 3047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2450 .loc 1 3047 11 is_stmt 1 view .LVU729 3047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2451 .loc 1 3047 14 is_stmt 0 view .LVU730 2452 02ee 1A4A ldr r2, .L196+84 2453 02f0 9342 cmp r3, r2 2454 02f2 37D0 beq .L190 2455 .L148: 3065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2456 .loc 1 3065 16 is_stmt 1 view .LVU731 3065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2457 .loc 1 3065 19 is_stmt 0 view .LVU732 2458 02f4 194A ldr r2, .L196+88 2459 02f6 9342 cmp r3, r2 2460 02f8 58D0 beq .L191 2461 .L151: 3072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2462 .loc 1 3072 16 is_stmt 1 view .LVU733 3072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2463 .loc 1 3072 19 is_stmt 0 view .LVU734 2464 02fa 194A ldr r2, .L196+92 2465 02fc 9342 cmp r3, r2 2466 02fe 68D0 beq .L192 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2467 .loc 1 2821 21 view .LVU735 2468 0300 0020 movs r0, #0 2469 0302 95E6 b .L128 2470 .L197: 2471 .align 2 2472 .L196: 2473 0304 FFFF0F00 .word 1048575 2474 0308 0000FF47 .word 1207894016 2475 030c 00200240 .word 1073881088 2476 0310 00210240 .word 1073881344 2477 0314 02003004 .word 70254594 2478 0318 04006008 .word 140509188 2479 031c 0800900C .word 210763784 2480 0320 1000C010 .word 281018384 2481 0324 0004002A .word 704644096 2482 0328 00002143 .word 1126236160 2483 032c 0000844B .word 1266941952 2484 0330 0000B84F .word 1337458688 2485 0334 40002019 .word 421527616 2486 0338 8000501D .word 491782272 ARM GAS /tmp/ccIEHjf0.s page 269 2487 033c 00018021 .word 562036992 2488 0340 0002B025 .word 632291840 2489 0344 0008302E .word 774899712 2490 0348 00106032 .word 845156352 2491 034c 00209036 .word 915415040 2492 0350 00005247 .word 1196556288 2493 0354 00230240 .word 1073881856 2494 0358 000084CB .word -880541696 2495 035c 0040C0BA .word -1161805824 2496 0360 0000B8CF .word -810024960 2497 .L190: 3047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2498 .loc 1 3047 60 discriminator 1 view .LVU736 2499 0364 11F4000F tst r1, #8388608 2500 0368 C4D1 bne .L148 3049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2501 .loc 1 3049 13 is_stmt 1 view .LVU737 3049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2502 .loc 1 3049 17 is_stmt 0 view .LVU738 2503 036a 2268 ldr r2, [r4] 3049:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2504 .loc 1 3049 16 view .LVU739 2505 036c 284B ldr r3, .L198 2506 036e 9A42 cmp r2, r3 2507 0370 01D0 beq .L193 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2508 .loc 1 2821 21 view .LVU740 2509 0372 0020 movs r0, #0 2510 0374 5CE6 b .L128 2511 .L193: 3051:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2512 .loc 1 3051 15 is_stmt 1 view .LVU741 2513 0376 45F40003 orr r3, r5, #8388608 2514 .LVL173: 2515 .LBB274: 2516 .LBI274: 2731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2517 .loc 2 2731 22 view .LVU742 2518 .LBB275: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2519 .loc 2 2733 3 view .LVU743 2520 037a 2649 ldr r1, .L198+4 2521 037c 8A68 ldr r2, [r1, #8] 2522 037e 22F0E072 bic r2, r2, #29360128 2523 0382 1343 orrs r3, r3, r2 2524 .LVL174: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2525 .loc 2 2733 3 is_stmt 0 view .LVU744 2526 0384 8B60 str r3, [r1, #8] 2527 .LVL175: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2528 .loc 2 2733 3 view .LVU745 2529 .LBE275: 2530 .LBE274: 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 2531 .loc 1 3058 15 is_stmt 1 view .LVU746 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) ARM GAS /tmp/ccIEHjf0.s page 270 2532 .loc 1 3058 95 is_stmt 0 view .LVU747 2533 0386 244B ldr r3, .L198+8 2534 0388 1B68 ldr r3, [r3] 2535 038a 9B09 lsrs r3, r3, #6 2536 038c 234A ldr r2, .L198+12 2537 038e A2FB0323 umull r2, r3, r2, r3 2538 0392 9B09 lsrs r3, r3, #6 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 2539 .loc 1 3058 115 view .LVU748 2540 0394 0133 adds r3, r3, #1 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 2541 .loc 1 3058 75 view .LVU749 2542 0396 5B00 lsls r3, r3, #1 3058:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 2543 .loc 1 3058 31 view .LVU750 2544 0398 0193 str r3, [sp, #4] 3059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2545 .loc 1 3059 15 is_stmt 1 view .LVU751 3059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2546 .loc 1 3059 21 is_stmt 0 view .LVU752 2547 039a 02E0 b .L149 2548 .L150: 3061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2549 .loc 1 3061 17 is_stmt 1 view .LVU753 3061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2550 .loc 1 3061 32 is_stmt 0 view .LVU754 2551 039c 019B ldr r3, [sp, #4] 2552 039e 013B subs r3, r3, #1 2553 03a0 0193 str r3, [sp, #4] 2554 .L149: 3059:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2555 .loc 1 3059 38 is_stmt 1 view .LVU755 2556 03a2 019B ldr r3, [sp, #4] 2557 03a4 002B cmp r3, #0 2558 03a6 F9D1 bne .L150 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2559 .loc 1 2821 21 is_stmt 0 view .LVU756 2560 03a8 0020 movs r0, #0 2561 03aa 41E6 b .L128 2562 .L191: 3065:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2563 .loc 1 3065 59 discriminator 1 view .LVU757 2564 03ac 11F0807F tst r1, #16777216 2565 03b0 A3D1 bne .L151 3067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2566 .loc 1 3067 13 is_stmt 1 view .LVU758 3067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2567 .loc 1 3067 17 is_stmt 0 view .LVU759 2568 03b2 2268 ldr r2, [r4] 3067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2569 .loc 1 3067 16 view .LVU760 2570 03b4 164B ldr r3, .L198 2571 03b6 9A42 cmp r2, r3 2572 03b8 01D0 beq .L194 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2573 .loc 1 2821 21 view .LVU761 2574 03ba 0020 movs r0, #0 ARM GAS /tmp/ccIEHjf0.s page 271 2575 03bc 38E6 b .L128 2576 .L194: 3069:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2577 .loc 1 3069 15 is_stmt 1 view .LVU762 2578 03be 45F08073 orr r3, r5, #16777216 2579 .LVL176: 2580 .LBB276: 2581 .LBI276: 2731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2582 .loc 2 2731 22 view .LVU763 2583 .LBB277: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2584 .loc 2 2733 3 view .LVU764 2585 03c2 1449 ldr r1, .L198+4 2586 03c4 8A68 ldr r2, [r1, #8] 2587 03c6 22F0E072 bic r2, r2, #29360128 2588 03ca 1343 orrs r3, r3, r2 2589 .LVL177: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2590 .loc 2 2733 3 is_stmt 0 view .LVU765 2591 03cc 8B60 str r3, [r1, #8] 2592 .LVL178: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2593 .loc 2 2733 3 view .LVU766 2594 .LBE277: 2595 .LBE276: 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2596 .loc 1 2821 21 view .LVU767 2597 03ce 0020 movs r0, #0 2598 .LBB279: 2599 .LBB278: 2734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2600 .loc 2 2734 1 view .LVU768 2601 03d0 2EE6 b .L128 2602 .L192: 2734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2603 .loc 2 2734 1 view .LVU769 2604 .LBE278: 2605 .LBE279: 3072:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2606 .loc 1 3072 62 discriminator 1 view .LVU770 2607 03d2 11F4800F tst r1, #4194304 2608 03d6 17D1 bne .L177 3074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2609 .loc 1 3074 13 is_stmt 1 view .LVU771 3074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2610 .loc 1 3074 17 is_stmt 0 view .LVU772 2611 03d8 2268 ldr r2, [r4] 3074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2612 .loc 1 3074 16 view .LVU773 2613 03da 0D4B ldr r3, .L198 2614 03dc 9A42 cmp r2, r3 2615 03de 01D0 beq .L195 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2616 .loc 1 2821 21 view .LVU774 2617 03e0 0020 movs r0, #0 2618 03e2 25E6 b .L128 ARM GAS /tmp/ccIEHjf0.s page 272 2619 .L195: 3076:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2620 .loc 1 3076 15 is_stmt 1 view .LVU775 2621 03e4 45F48003 orr r3, r5, #4194304 2622 .LVL179: 2623 .LBB280: 2624 .LBI280: 2731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2625 .loc 2 2731 22 view .LVU776 2626 .LBB281: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2627 .loc 2 2733 3 view .LVU777 2628 03e8 0A49 ldr r1, .L198+4 2629 03ea 8A68 ldr r2, [r1, #8] 2630 03ec 22F0E072 bic r2, r2, #29360128 2631 03f0 1343 orrs r3, r3, r2 2632 .LVL180: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2633 .loc 2 2733 3 is_stmt 0 view .LVU778 2634 03f2 8B60 str r3, [r1, #8] 2635 .LVL181: 2733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2636 .loc 2 2733 3 view .LVU779 2637 .LBE281: 2638 .LBE280: 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2639 .loc 1 2821 21 view .LVU780 2640 03f4 0020 movs r0, #0 2641 .LBB283: 2642 .LBB282: 2734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2643 .loc 2 2734 1 view .LVU781 2644 03f6 1BE6 b .L128 2645 .L147: 2734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2646 .loc 2 2734 1 view .LVU782 2647 .LBE282: 2648 .LBE283: 3090:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2649 .loc 1 3090 11 is_stmt 1 view .LVU783 2650 03f8 636D ldr r3, [r4, #84] 2651 03fa 43F02003 orr r3, r3, #32 2652 03fe 6365 str r3, [r4, #84] 3092:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2653 .loc 1 3092 11 view .LVU784 2654 .LVL182: 3092:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2655 .loc 1 3092 26 is_stmt 0 view .LVU785 2656 0400 0120 movs r0, #1 2657 0402 15E6 b .L128 2658 .LVL183: 2659 .L155: 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2660 .loc 1 2821 21 view .LVU786 2661 0404 0020 movs r0, #0 2662 .LVL184: 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; ARM GAS /tmp/ccIEHjf0.s page 273 2663 .loc 1 2821 21 view .LVU787 2664 0406 13E6 b .L128 2665 .LVL185: 2666 .L177: 2821:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2667 .loc 1 2821 21 view .LVU788 2668 0408 0020 movs r0, #0 2669 040a 11E6 b .L128 2670 .LVL186: 2671 .L152: 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2672 .loc 1 2882 3 discriminator 1 view .LVU789 2673 040c 0220 movs r0, #2 2674 .LVL187: 2882:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2675 .loc 1 2882 3 discriminator 1 view .LVU790 2676 040e 12E6 b .L126 2677 .L199: 2678 .align 2 2679 .L198: 2680 0410 00210240 .word 1073881344 2681 0414 00230240 .word 1073881856 2682 0418 00000000 .word SystemCoreClock 2683 041c 632D3E05 .word 87960931 2684 .cfi_endproc 2685 .LFE353: 2687 .section .text.HAL_ADC_AnalogWDGConfig,"ax",%progbits 2688 .align 1 2689 .global HAL_ADC_AnalogWDGConfig 2690 .syntax unified 2691 .thumb 2692 .thumb_func 2694 HAL_ADC_AnalogWDGConfig: 2695 .LVL188: 2696 .LFB354: 3133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2697 .loc 1 3133 1 is_stmt 1 view -0 2698 .cfi_startproc 2699 @ args = 0, pretend = 0, frame = 0 2700 @ frame_needed = 0, uses_anonymous_args = 0 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 2701 .loc 1 3134 3 view .LVU792 3135:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDLowThresholdShifted; 2702 .loc 1 3135 3 view .LVU793 3136:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2703 .loc 1 3136 3 view .LVU794 3137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2704 .loc 1 3137 3 view .LVU795 3138:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2705 .loc 1 3138 3 view .LVU796 3141:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(AnalogWDGConfig->WatchdogNumber)); 2706 .loc 1 3141 3 view .LVU797 3142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(AnalogWDGConfig->WatchdogMode)); 2707 .loc 1 3142 3 view .LVU798 3143:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); 2708 .loc 1 3143 3 view .LVU799 3144:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 274 2709 .loc 1 3144 3 view .LVU800 3146:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 2710 .loc 1 3146 3 view .LVU801 3150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2711 .loc 1 3150 5 view .LVU802 3176:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2712 .loc 1 3176 5 view .LVU803 3180:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold / (hadc->In 2713 .loc 1 3180 7 view .LVU804 3181:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2714 .loc 1 3181 7 view .LVU805 3186:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); 2715 .loc 1 3186 7 view .LVU806 3187:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2716 .loc 1 3187 7 view .LVU807 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2717 .loc 1 3192 3 view .LVU808 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2718 .loc 1 3192 3 view .LVU809 2719 0000 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 2720 0004 012B cmp r3, #1 2721 0006 00F0CE81 beq .L248 3133:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2722 .loc 1 3133 1 is_stmt 0 view .LVU810 2723 000a 70B5 push {r4, r5, r6, lr} 2724 .cfi_def_cfa_offset 16 2725 .cfi_offset 4, -16 2726 .cfi_offset 5, -12 2727 .cfi_offset 6, -8 2728 .cfi_offset 14, -4 2729 000c 0446 mov r4, r0 2730 000e 0D46 mov r5, r1 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2731 .loc 1 3192 3 is_stmt 1 discriminator 2 view .LVU811 2732 0010 0123 movs r3, #1 2733 0012 80F85030 strb r3, [r0, #80] 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2734 .loc 1 3192 3 view .LVU812 3199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2735 .loc 1 3199 3 view .LVU813 3199:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2736 .loc 1 3199 79 is_stmt 0 view .LVU814 2737 0016 0068 ldr r0, [r0] 2738 .LVL189: 2739 .LBB284: 2740 .LBI284: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2741 .loc 2 7073 26 is_stmt 1 view .LVU815 2742 .LBB285: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2743 .loc 2 7075 3 view .LVU816 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2744 .loc 2 7075 12 is_stmt 0 view .LVU817 2745 0018 8368 ldr r3, [r0, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2746 .loc 2 7075 74 view .LVU818 2747 001a 13F00403 ands r3, r3, #4 ARM GAS /tmp/ccIEHjf0.s page 275 2748 001e 00D0 beq .L202 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2749 .loc 2 7075 74 discriminator 1 view .LVU819 2750 0020 0123 movs r3, #1 2751 .L202: 2752 .LVL190: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 2753 .loc 2 7075 74 discriminator 1 view .LVU820 2754 .LBE285: 2755 .LBE284: 3200:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2756 .loc 1 3200 3 is_stmt 1 view .LVU821 2757 .LBB286: 2758 .LBI286: 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2759 .loc 2 7268 26 view .LVU822 2760 .LBB287: 2761 .loc 2 7270 3 view .LVU823 2762 .loc 2 7270 12 is_stmt 0 view .LVU824 2763 0022 8268 ldr r2, [r0, #8] 2764 .loc 2 7270 76 view .LVU825 2765 0024 12F0080F tst r2, #8 2766 0028 40F0B481 bne .L203 2767 .LVL191: 2768 .loc 2 7270 76 view .LVU826 2769 .LBE287: 2770 .LBE286: 3201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2771 .loc 1 3201 3 is_stmt 1 view .LVU827 3201:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2772 .loc 1 3201 6 is_stmt 0 view .LVU828 2773 002c 002B cmp r3, #0 2774 002e 40F0B181 bne .L203 3206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2775 .loc 1 3206 5 is_stmt 1 view .LVU829 3206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2776 .loc 1 3206 24 is_stmt 0 view .LVU830 2777 0032 2968 ldr r1, [r5] 2778 .LVL192: 3206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2779 .loc 1 3206 8 view .LVU831 2780 0034 AE4B ldr r3, .L265 2781 .LVL193: 3206:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2782 .loc 1 3206 8 view .LVU832 2783 0036 9942 cmp r1, r3 2784 0038 25D0 beq .L257 3294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2785 .loc 1 3294 7 is_stmt 1 view .LVU833 3294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2786 .loc 1 3294 30 is_stmt 0 view .LVU834 2787 003a 6B68 ldr r3, [r5, #4] 3294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2788 .loc 1 3294 7 view .LVU835 2789 003c B3F1A07F cmp r3, #20971520 2790 0040 00F00481 beq .L220 2791 0044 00F2B580 bhi .L221 ARM GAS /tmp/ccIEHjf0.s page 276 2792 0048 B3F5400F cmp r3, #12582912 2793 004c 00F0FE80 beq .L220 2794 0050 B3F1807F cmp r3, #16777216 2795 0054 03D0 beq .L222 2796 0056 B3F5000F cmp r3, #8388608 2797 005a 40F0B180 bne .L223 2798 .L222: 3327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2799 .loc 1 3327 13 is_stmt 1 view .LVU836 3327:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2800 .loc 1 3327 16 is_stmt 0 view .LVU837 2801 005e A54B ldr r3, .L265+4 2802 0060 9942 cmp r1, r3 2803 0062 00F02A81 beq .L258 3333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2804 .loc 1 3333 15 is_stmt 1 view .LVU838 2805 0066 AB68 ldr r3, [r5, #8] 2806 0068 C3F31302 ubfx r2, r3, #0, #20 2807 006c 002A cmp r2, #0 2808 006e 40F04581 bne .L236 3333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2809 .loc 1 3333 15 is_stmt 0 discriminator 1 view .LVU839 2810 0072 C3F38463 ubfx r3, r3, #26, #5 2811 0076 0122 movs r2, #1 2812 0078 9A40 lsls r2, r2, r3 2813 .L237: 3333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2814 .loc 1 3333 15 discriminator 4 view .LVU840 2815 007a D0F8A430 ldr r3, [r0, #164] 2816 007e 1343 orrs r3, r3, r2 2817 0080 C0F8A430 str r3, [r0, #164] 2818 0084 9FE0 b .L228 2819 .L257: 3211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2820 .loc 1 3211 7 is_stmt 1 view .LVU841 3211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2821 .loc 1 3211 30 is_stmt 0 view .LVU842 2822 0086 6B68 ldr r3, [r5, #4] 3211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2823 .loc 1 3211 7 view .LVU843 2824 0088 B3F1A07F cmp r3, #20971520 2825 008c 5CD0 beq .L205 2826 008e 0FD8 bhi .L206 2827 0090 B3F5400F cmp r3, #12582912 2828 0094 1DD0 beq .L207 2829 0096 B3F1807F cmp r3, #16777216 2830 009a 60D0 beq .L208 2831 009c B3F5000F cmp r3, #8388608 2832 00a0 6BD1 bne .L210 3229:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 2833 .loc 1 3229 11 is_stmt 1 view .LVU844 2834 .LVL194: 2835 .LBB288: 2836 .LBI288: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2837 .loc 2 5774 22 view .LVU845 2838 .LBB289: ARM GAS /tmp/ccIEHjf0.s page 277 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 2839 .loc 2 5780 3 view .LVU846 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2840 .loc 2 5783 3 view .LVU847 2841 00a2 C268 ldr r2, [r0, #12] 2842 00a4 944B ldr r3, .L265+8 2843 00a6 1340 ands r3, r3, r2 2844 00a8 43F40003 orr r3, r3, #8388608 2845 00ac C360 str r3, [r0, #12] 2846 .LVL195: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2847 .loc 2 5783 3 is_stmt 0 view .LVU848 2848 .LBE289: 2849 .LBE288: 3230:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2850 .loc 1 3230 11 is_stmt 1 view .LVU849 2851 .LBB291: 2852 .LBB290: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2853 .loc 2 5786 1 is_stmt 0 view .LVU850 2854 00ae 1AE0 b .L213 2855 .L206: 2856 .LBE290: 2857 .LBE291: 3211:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2858 .loc 1 3211 7 view .LVU851 2859 00b0 B3F1C07F cmp r3, #25165824 2860 00b4 5AD0 beq .L211 2861 00b6 B3F1E07F cmp r3, #29360128 2862 00ba 5ED1 bne .L210 3224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 2863 .loc 1 3224 11 is_stmt 1 view .LVU852 3224:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 2864 .loc 1 3224 72 is_stmt 0 view .LVU853 2865 00bc AA68 ldr r2, [r5, #8] 2866 .LVL196: 2867 .LBB292: 2868 .LBI292: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2869 .loc 2 5774 22 is_stmt 1 view .LVU854 2870 .LBB293: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 2871 .loc 2 5780 3 view .LVU855 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2872 .loc 2 5783 3 view .LVU856 2873 00be C168 ldr r1, [r0, #12] 2874 00c0 8D4B ldr r3, .L265+8 2875 00c2 0B40 ands r3, r3, r1 2876 00c4 02F0F842 and r2, r2, #2080374784 2877 .LVL197: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2878 .loc 2 5783 3 is_stmt 0 view .LVU857 2879 00c8 42F0E072 orr r2, r2, #29360128 2880 00cc 1343 orrs r3, r3, r2 2881 00ce C360 str r3, [r0, #12] 2882 .LVL198: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), ARM GAS /tmp/ccIEHjf0.s page 278 2883 .loc 2 5783 3 view .LVU858 2884 .LBE293: 2885 .LBE292: 3226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2886 .loc 1 3226 11 is_stmt 1 view .LVU859 2887 .LBB295: 2888 .LBB294: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2889 .loc 2 5786 1 is_stmt 0 view .LVU860 2890 00d0 09E0 b .L213 2891 .L207: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 2892 .loc 2 5786 1 view .LVU861 2893 .LBE294: 2894 .LBE295: 3214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 2895 .loc 1 3214 11 is_stmt 1 view .LVU862 3214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 2896 .loc 1 3214 72 is_stmt 0 view .LVU863 2897 00d2 AA68 ldr r2, [r5, #8] 2898 .LVL199: 2899 .LBB296: 2900 .LBI296: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 2901 .loc 2 5774 22 is_stmt 1 view .LVU864 2902 .LBB297: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 2903 .loc 2 5780 3 view .LVU865 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2904 .loc 2 5783 3 view .LVU866 2905 00d4 C168 ldr r1, [r0, #12] 2906 00d6 884B ldr r3, .L265+8 2907 00d8 0B40 ands r3, r3, r1 2908 00da 02F0F842 and r2, r2, #2080374784 2909 .LVL200: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2910 .loc 2 5783 3 is_stmt 0 view .LVU867 2911 00de 42F44002 orr r2, r2, #12582912 2912 00e2 1343 orrs r3, r3, r2 2913 00e4 C360 str r3, [r0, #12] 2914 .LVL201: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 2915 .loc 2 5783 3 view .LVU868 2916 .LBE297: 2917 .LBE296: 3216:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2918 .loc 1 3216 11 is_stmt 1 view .LVU869 2919 .L213: 3248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThr 2920 .loc 1 3248 7 view .LVU870 3248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThr 2921 .loc 1 3248 36 is_stmt 0 view .LVU871 2922 00e6 2368 ldr r3, [r4] 2923 00e8 DA68 ldr r2, [r3, #12] 2924 00ea 12F0100F tst r2, #16 2925 00ee 49D1 bne .L214 3248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThr ARM GAS /tmp/ccIEHjf0.s page 279 2926 .loc 1 3248 36 discriminator 1 view .LVU872 2927 00f0 2969 ldr r1, [r5, #16] 2928 00f2 DA68 ldr r2, [r3, #12] 2929 00f4 C2F38202 ubfx r2, r2, #2, #3 2930 00f8 5200 lsls r2, r2, #1 2931 00fa 9140 lsls r1, r1, r2 2932 .L215: 2933 .LVL202: 3249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2934 .loc 1 3249 7 is_stmt 1 view .LVU873 3249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2935 .loc 1 3249 36 is_stmt 0 view .LVU874 2936 00fc DA68 ldr r2, [r3, #12] 2937 00fe 12F0100F tst r2, #16 2938 0102 47D1 bne .L216 3249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2939 .loc 1 3249 36 discriminator 1 view .LVU875 2940 0104 6869 ldr r0, [r5, #20] 2941 0106 DA68 ldr r2, [r3, #12] 2942 0108 C2F38202 ubfx r2, r2, #2, #3 2943 010c 5200 lsls r2, r2, #1 2944 010e 9040 lsls r0, r0, r2 2945 .L217: 2946 .LVL203: 3268:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR1, ADC_HTR_HT, tmpAWDHighThresholdShifted); 2947 .loc 1 3268 7 is_stmt 1 view .LVU876 2948 0110 1A6A ldr r2, [r3, #32] 2949 0112 02F07C42 and r2, r2, #-67108864 2950 0116 0243 orrs r2, r2, r0 2951 0118 1A62 str r2, [r3, #32] 3269:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 2952 .loc 1 3269 7 view .LVU877 2953 011a 2268 ldr r2, [r4] 2954 011c 536A ldr r3, [r2, #36] 2955 011e 03F07C43 and r3, r3, #-67108864 2956 0122 0B43 orrs r3, r3, r1 2957 0124 5362 str r3, [r2, #36] 3273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2958 .loc 1 3273 7 view .LVU878 2959 0126 636D ldr r3, [r4, #84] 2960 0128 23F48033 bic r3, r3, #65536 2961 012c 6365 str r3, [r4, #84] 3279:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 2962 .loc 1 3279 7 view .LVU879 2963 012e 2368 ldr r3, [r4] 2964 .LVL204: 2965 .LBB298: 2966 .LBI298: 7271:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7272:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7273:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7274:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected command of conversion stop state 7275:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_IsStopConversionOngoing 7276:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7277:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group injected. 7278:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7279:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsStopConversionOngoing(const ADC_TypeDef *ADCx) ARM GAS /tmp/ccIEHjf0.s page 280 7280:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7281:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTP) == (ADC_CR_JADSTP)) ? 1UL : 0UL); 7282:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7283:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7284:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7285:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7286:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 7287:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * all oversampling increased data width (for devices 7288:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * with feature oversampling). 7289:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32\n 7290:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData32\n 7291:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData32\n 7292:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData32 7293:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7294:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7295:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7296:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7297:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7298:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7299:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7300:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7301:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32(const ADC_TypeDef *ADCx, uint32_t Rank) 7302:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7303:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7304:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7305:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 7306:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7307:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7308:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7309:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7310:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7311:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7312:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 16 bits. 7313:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7314:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7315:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7316:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData16\n 7317:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData16\n 7318:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData16\n 7319:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData16 7320:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7321:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7322:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7323:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7324:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7325:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7326:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFFF 7327:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7328:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData16(const ADC_TypeDef *ADCx, uint32_t Rank) 7329:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7330:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7331:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7332:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7333:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7334:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7335:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7336:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 281 7337:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7338:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7339:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 14 bits. 7340:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7341:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7342:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7343:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData14\n 7344:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData14\n 7345:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData14\n 7346:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData14 7347:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7348:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7349:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7350:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7351:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7352:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7353:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FFF 7354:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7355:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData14(const ADC_TypeDef *ADCx, uint32_t Rank) 7356:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7357:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7358:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7359:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7360:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7361:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7362:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7363:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7364:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7365:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7366:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 12 bits. 7367:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7368:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7369:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7370:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData12\n 7371:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData12\n 7372:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData12\n 7373:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData12 7374:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7375:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7376:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7377:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7378:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7379:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7380:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 7381:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7382:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12(const ADC_TypeDef *ADCx, uint32_t Rank) 7383:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7384:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7385:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7386:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7387:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7388:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7389:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7390:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7391:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7392:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7393:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 10 bits. ARM GAS /tmp/ccIEHjf0.s page 282 7394:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7395:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7396:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7397:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData10\n 7398:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData10\n 7399:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData10\n 7400:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData10 7401:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7402:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7403:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7404:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7405:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7406:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7407:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 7408:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7409:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10(const ADC_TypeDef *ADCx, uint32_t Rank) 7410:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7411:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7412:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7413:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7414:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7415:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7416:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7417:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7418:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7420:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * ADC resolution 8 bits. 7421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7422:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * can increase data width, function for extended range 7423:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7424:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData8\n 7425:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData8\n 7426:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData8\n 7427:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData8 7428:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7429:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7430:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7431:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7432:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7433:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7434:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 7435:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7436:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8(const ADC_TypeDef *ADCx, uint32_t Rank) 7437:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7438:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7439:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7440:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return (uint8_t)(READ_BIT(*preg, 7441:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_JDR1_JDATA) 7442:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ); 7443:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7444:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7445:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7446:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 7447:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7448:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7449:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_FLAG_Management ADC flag management 7450:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ ARM GAS /tmp/ccIEHjf0.s page 283 7451:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7452:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7453:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7454:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC ready. 7455:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7456:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled and when conversion clock is active. 7457:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7458:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_IsActiveFlag_ADRDY 7459:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7460:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7461:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7462:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_ADRDY(const ADC_TypeDef *ADCx) 7463:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7464:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_ADRDY) == (LL_ADC_FLAG_ADRDY)) ? 1UL : 0UL); 7465:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7466:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7467:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7468:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group regular end of unitary conversion. 7469:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_IsActiveFlag_EOC 7470:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7471:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7472:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7473:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOC(const ADC_TypeDef *ADCx) 7474:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7475:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, ADC_ISR_EOC) == (ADC_ISR_EOC)) ? 1UL : 0UL); 7476:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7477:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7478:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7479:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group regular end of sequence conversions. 7480:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_IsActiveFlag_EOS 7481:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7482:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7483:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7484:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOS(const ADC_TypeDef *ADCx) 7485:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7486:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOS) == (LL_ADC_FLAG_EOS)) ? 1UL : 0UL); 7487:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7488:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7489:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7490:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group regular overrun. 7491:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_IsActiveFlag_OVR 7492:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7493:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7494:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7495:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_OVR(const ADC_TypeDef *ADCx) 7496:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7497:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_OVR) == (LL_ADC_FLAG_OVR)) ? 1UL : 0UL); 7498:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7499:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7500:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7501:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group regular end of sampling phase. 7502:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_IsActiveFlag_EOSMP 7503:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7504:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7505:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7506:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOSMP(const ADC_TypeDef *ADCx) 7507:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 284 7508:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOSMP) == (LL_ADC_FLAG_EOSMP)) ? 1UL : 0UL); 7509:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7510:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7511:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7512:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group injected end of unitary conversion. 7513:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_IsActiveFlag_JEOC 7514:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7515:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7516:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7517:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOC(const ADC_TypeDef *ADCx) 7518:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7519:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOC) == (LL_ADC_FLAG_JEOC)) ? 1UL : 0UL); 7520:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7521:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7522:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7523:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group injected end of sequence conversions. 7524:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_IsActiveFlag_JEOS 7525:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7526:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7527:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7528:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOS(const ADC_TypeDef *ADCx) 7529:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7530:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOS) == (LL_ADC_FLAG_JEOS)) ? 1UL : 0UL); 7531:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7532:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7533:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7534:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC group injected contexts queue overflow. 7535:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_IsActiveFlag_JQOVF 7536:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7537:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7538:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7539:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JQOVF(const ADC_TypeDef *ADCx) 7540:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7541:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JQOVF) == (LL_ADC_FLAG_JQOVF)) ? 1UL : 0UL); 7542:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7543:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7544:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7545:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC LDO output voltage ready bit. 7546:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR LDORDY LL_ADC_IsActiveFlag_LDORDY 7547:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7548:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7549:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7550:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_LDORDY(const ADC_TypeDef *ADCx) 7551:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7552:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_LDORDY) == (LL_ADC_FLAG_LDORDY)) ? 1UL : 0UL); 7553:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7554:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7555:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7556:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 1 flag 7557:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_IsActiveFlag_AWD1 7558:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7559:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7560:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7561:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD1(const ADC_TypeDef *ADCx) 7562:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7563:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD1) == (LL_ADC_FLAG_AWD1)) ? 1UL : 0UL); 7564:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 285 7565:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7566:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7567:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 2. 7568:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_IsActiveFlag_AWD2 7569:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7570:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7571:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7572:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD2(const ADC_TypeDef *ADCx) 7573:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7574:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD2) == (LL_ADC_FLAG_AWD2)) ? 1UL : 0UL); 7575:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7576:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7577:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7578:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 3. 7579:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_IsActiveFlag_AWD3 7580:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7581:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7582:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7583:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD3(const ADC_TypeDef *ADCx) 7584:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7585:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD3) == (LL_ADC_FLAG_AWD3)) ? 1UL : 0UL); 7586:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7587:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7588:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7589:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC ready. 7590:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7591:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * is enabled and when conversion clock is active. 7592:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7593:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_ClearFlag_ADRDY 7594:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7595:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7596:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7597:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_ADRDY(ADC_TypeDef *ADCx) 7598:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7599:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_ADRDY); 7600:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7602:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group regular end of unitary conversion. 7604:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_ClearFlag_EOC 7605:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7606:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7607:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7608:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOC(ADC_TypeDef *ADCx) 7609:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7610:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOC); 7611:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7612:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7613:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7614:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sequence conversions. 7615:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_ClearFlag_EOS 7616:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7617:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7618:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7619:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOS(ADC_TypeDef *ADCx) 7620:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7621:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOS); ARM GAS /tmp/ccIEHjf0.s page 286 7622:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7623:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7624:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7625:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group regular overrun. 7626:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_ClearFlag_OVR 7627:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7628:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7629:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7630:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_OVR(ADC_TypeDef *ADCx) 7631:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7632:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_OVR); 7633:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7634:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7635:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7636:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sampling phase. 7637:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_ClearFlag_EOSMP 7638:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7639:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7640:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7641:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOSMP(ADC_TypeDef *ADCx) 7642:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7643:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOSMP); 7644:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7645:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7646:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7647:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group injected end of unitary conversion. 7648:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_ClearFlag_JEOC 7649:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7650:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7651:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7652:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOC(ADC_TypeDef *ADCx) 7653:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7654:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOC); 7655:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7656:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7657:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7658:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group injected end of sequence conversions. 7659:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_ClearFlag_JEOS 7660:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7661:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7662:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOS(ADC_TypeDef *ADCx) 7664:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOS); 7666:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7667:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7668:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7669:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC group injected contexts queue overflow. 7670:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_ClearFlag_JQOVF 7671:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7672:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7673:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7674:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JQOVF(ADC_TypeDef *ADCx) 7675:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7676:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JQOVF); 7677:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7678:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 287 7679:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7680:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 1. 7681:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_ClearFlag_AWD1 7682:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7683:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7684:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7685:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx) 2967 .loc 2 7685 22 view .LVU880 2968 .LBB299: 7686:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7687:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD1); 2969 .loc 2 7687 3 view .LVU881 2970 0130 8022 movs r2, #128 2971 0132 1A60 str r2, [r3] 2972 .LVL205: 2973 .loc 2 7687 3 is_stmt 0 view .LVU882 2974 .LBE299: 2975 .LBE298: 3282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2976 .loc 1 3282 7 is_stmt 1 view .LVU883 3282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2977 .loc 1 3282 26 is_stmt 0 view .LVU884 2978 0134 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 2979 .loc 1 3282 10 view .LVU885 2980 0136 012B cmp r3, #1 2981 0138 34D0 beq .L259 3288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 2982 .loc 1 3288 9 is_stmt 1 view .LVU886 2983 013a 2268 ldr r2, [r4] 2984 .LVL206: 2985 .LBB300: 2986 .LBI300: 7688:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7689:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7690:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7691:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 2. 7692:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_ClearFlag_AWD2 7693:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7694:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7695:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD2(ADC_TypeDef *ADCx) 7697:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD2); 7699:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7700:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7701:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7702:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 3. 7703:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_ClearFlag_AWD3 7704:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7705:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7706:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD3(ADC_TypeDef *ADCx) 7708:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD3); 7710:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7711:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 288 7712:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7713:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC master. 7714:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR ADRDY_MST LL_ADC_IsActiveFlag_MST_ADRDY 7715:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7716:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7717:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7718:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7719:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_ADRDY(const ADC_Common_TypeDef *ADCxy_COMMON) 7720:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7721:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_ADRDY_MST) == (LL_ADC_FLAG_ADRDY_MST)) ? 1UL : 0 7722:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7723:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7724:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7725:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC slave. 7726:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR ADRDY_SLV LL_ADC_IsActiveFlag_SLV_ADRDY 7727:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7728:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7729:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7730:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7731:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_ADRDY(const ADC_Common_TypeDef *ADCxy_COMMON) 7732:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7733:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_ADRDY_SLV) == (LL_ADC_FLAG_ADRDY_SLV)) ? 1UL : 0 7734:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7735:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7736:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7737:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC master. 7738:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOC_MST LL_ADC_IsActiveFlag_MST_EOC 7739:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7740:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7741:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7742:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7743:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOC(const ADC_Common_TypeDef *ADCxy_COMMON) 7744:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7745:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOC_SLV) == (LL_ADC_FLAG_EOC_SLV)) ? 1UL : 0UL); 7746:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7747:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7748:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7749:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC slave. 7750:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOC_SLV LL_ADC_IsActiveFlag_SLV_EOC 7751:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7752:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7753:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7754:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7755:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOC(const ADC_Common_TypeDef *ADCxy_COMMON) 7756:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7757:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOC_SLV) == (LL_ADC_FLAG_EOC_SLV)) ? 1UL : 0UL); 7758:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7759:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7760:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7761:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC master. 7762:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOS_MST LL_ADC_IsActiveFlag_MST_EOS 7763:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7764:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7765:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7766:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7767:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOS(const ADC_Common_TypeDef *ADCxy_COMMON) 7768:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 289 7769:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOS_MST) == (LL_ADC_FLAG_EOS_MST)) ? 1UL : 0UL); 7770:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7771:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7772:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7773:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC slave. 7774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOS_SLV LL_ADC_IsActiveFlag_SLV_EOS 7775:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7776:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7777:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7778:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7779:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOS(const ADC_Common_TypeDef *ADCxy_COMMON) 7780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7781:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOS_SLV) == (LL_ADC_FLAG_EOS_SLV)) ? 1UL : 0UL); 7782:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7784:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7785:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC master. 7786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR OVR_MST LL_ADC_IsActiveFlag_MST_OVR 7787:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7788:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7789:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7790:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7791:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_OVR(const ADC_Common_TypeDef *ADCxy_COMMON) 7792:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7793:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_MST) == (LL_ADC_FLAG_OVR_MST)) ? 1UL : 0UL); 7794:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7795:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7796:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7797:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC slave. 7798:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR OVR_SLV LL_ADC_IsActiveFlag_SLV_OVR 7799:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7800:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7801:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7802:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7803:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_OVR(const ADC_Common_TypeDef *ADCxy_COMMON) 7804:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7805:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_SLV) == (LL_ADC_FLAG_OVR_SLV)) ? 1UL : 0UL); 7806:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7807:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7808:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7809:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC master. 7810:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOSMP_MST LL_ADC_IsActiveFlag_MST_EOSMP 7811:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7812:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7813:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7814:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7815:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOSMP(const ADC_Common_TypeDef *ADCxy_COMMON) 7816:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7817:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOSMP_MST) == (LL_ADC_FLAG_EOSMP_MST)) ? 1UL : 0 7818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7819:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7820:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7821:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC slave. 7822:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR EOSMP_SLV LL_ADC_IsActiveFlag_SLV_EOSMP 7823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7824:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7825:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). ARM GAS /tmp/ccIEHjf0.s page 290 7826:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7827:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOSMP(const ADC_Common_TypeDef *ADCxy_COMMON) 7828:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7829:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOSMP_SLV) == (LL_ADC_FLAG_EOSMP_SLV)) ? 1UL : 0 7830:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7831:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7833:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC master. 7834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JEOC_MST LL_ADC_IsActiveFlag_MST_JEOC 7835:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7836:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7837:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7838:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7839:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOC(const ADC_Common_TypeDef *ADCxy_COMMON) 7840:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7841:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOC_MST) == (LL_ADC_FLAG_JEOC_MST)) ? 1UL : 0UL 7842:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7843:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7844:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7845:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC slave. 7846:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JEOC_SLV LL_ADC_IsActiveFlag_SLV_JEOC 7847:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7848:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7849:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7850:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOC(const ADC_Common_TypeDef *ADCxy_COMMON) 7852:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7853:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOC_SLV) == (LL_ADC_FLAG_JEOC_SLV)) ? 1UL : 0UL 7854:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7855:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7857:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC master. 7858:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JEOS_MST LL_ADC_IsActiveFlag_MST_JEOS 7859:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7860:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7861:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7862:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7863:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOS(const ADC_Common_TypeDef *ADCxy_COMMON) 7864:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7865:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOS_MST) == (LL_ADC_FLAG_JEOS_MST)) ? 1UL : 0UL 7866:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7867:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7868:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7869:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC slave. 7870:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JEOS_SLV LL_ADC_IsActiveFlag_SLV_JEOS 7871:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7872:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7873:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7874:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7875:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOS(const ADC_Common_TypeDef *ADCxy_COMMON) 7876:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7877:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOS_SLV) == (LL_ADC_FLAG_JEOS_SLV)) ? 1UL : 0UL 7878:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7879:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7880:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC master. 7882:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JQOVF_MST LL_ADC_IsActiveFlag_MST_JQOVF ARM GAS /tmp/ccIEHjf0.s page 291 7883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7884:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7885:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7886:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7887:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JQOVF(const ADC_Common_TypeDef *ADCxy_COMMON) 7888:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7889:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JQOVF_MST) == (LL_ADC_FLAG_JQOVF_MST)) ? 1UL : 0 7890:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7891:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7892:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7893:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC slave. 7894:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR JQOVF_SLV LL_ADC_IsActiveFlag_SLV_JQOVF 7895:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7896:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7897:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7898:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7899:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JQOVF(const ADC_Common_TypeDef *ADCxy_COMMON) 7900:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7901:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JQOVF_SLV) == (LL_ADC_FLAG_JQOVF_SLV)) ? 1UL : 0 7902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7903:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7904:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7905:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 1 of the ADC master. 7906:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD1_MST LL_ADC_IsActiveFlag_MST_AWD1 7907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7908:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7909:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7910:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7911:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD1(const ADC_Common_TypeDef *ADCxy_COMMON) 7912:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7913:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_MST) == (LL_ADC_FLAG_AWD1_MST)) ? 1UL : 0UL 7914:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7915:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7916:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7917:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode analog watchdog 1 of the ADC slave. 7918:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD1_SLV LL_ADC_IsActiveFlag_SLV_AWD1 7919:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7920:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7921:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7923:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD1(const ADC_Common_TypeDef *ADCxy_COMMON) 7924:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7925:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_SLV) == (LL_ADC_FLAG_AWD1_SLV)) ? 1UL : 0UL 7926:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7928:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7929:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC master. 7930:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD2_MST LL_ADC_IsActiveFlag_MST_AWD2 7931:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7932:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7933:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7934:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7935:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD2(const ADC_Common_TypeDef *ADCxy_COMMON) 7936:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7937:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD2_MST) == (LL_ADC_FLAG_AWD2_MST)) ? 1UL : 0UL 7938:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7939:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ARM GAS /tmp/ccIEHjf0.s page 292 7940:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC slave. 7942:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD2_SLV LL_ADC_IsActiveFlag_SLV_AWD2 7943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7944:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7945:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7946:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7947:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD2(const ADC_Common_TypeDef *ADCxy_COMMON) 7948:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7949:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD2_SLV) == (LL_ADC_FLAG_AWD2_SLV)) ? 1UL : 0UL 7950:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7951:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7953:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC master. 7954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD3_MST LL_ADC_IsActiveFlag_MST_AWD3 7955:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7956:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7957:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7958:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7959:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD3(const ADC_Common_TypeDef *ADCxy_COMMON) 7960:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7961:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD3_MST) == (LL_ADC_FLAG_AWD3_MST)) ? 1UL : 0UL 7962:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7963:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7964:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7965:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC slave. 7966:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll CSR AWD3_SLV LL_ADC_IsActiveFlag_SLV_AWD3 7967:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7968:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7969:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval State of bit (1 or 0). 7970:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7971:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD3(const ADC_Common_TypeDef *ADCxy_COMMON) 7972:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7973:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD3_SLV) == (LL_ADC_FLAG_AWD3_SLV)) ? 1UL : 0UL 7974:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7975:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7976:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7977:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @} 7978:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7979:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7980:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** @defgroup ADC_LL_EF_IT_Management ADC IT management 7981:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @{ 7982:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7983:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7984:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7985:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable ADC ready. 7986:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_EnableIT_ADRDY 7987:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7988:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 7989:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 7990:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_ADRDY(ADC_TypeDef *ADCx) 7991:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 7992:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 7993:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 7994:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 7995:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 7996:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of unitary conversion. ARM GAS /tmp/ccIEHjf0.s page 293 7997:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_EnableIT_EOC 7998:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 7999:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8000:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8001:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOC(ADC_TypeDef *ADCx) 8002:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8003:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOC); 8004:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8005:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8006:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8007:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sequence conversions. 8008:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_EnableIT_EOS 8009:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8010:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8011:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8012:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOS(ADC_TypeDef *ADCx) 8013:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8014:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOS); 8015:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8016:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8017:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8018:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable ADC group regular interruption overrun. 8019:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_EnableIT_OVR 8020:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8021:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8022:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8023:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_OVR(ADC_TypeDef *ADCx) 8024:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8025:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_OVR); 8026:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8027:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8028:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8029:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sampling. 8030:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_EnableIT_EOSMP 8031:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8032:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8033:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8034:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOSMP(ADC_TypeDef *ADCx) 8035:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8036:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 8037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8038:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8039:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8040:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of unitary conversion. 8041:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_EnableIT_JEOC 8042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8043:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8044:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOC(ADC_TypeDef *ADCx) 8046:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8047:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOC); 8048:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8049:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8050:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8051:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of sequence conversions. 8052:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_EnableIT_JEOS 8053:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/ccIEHjf0.s page 294 8054:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8055:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8056:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOS(ADC_TypeDef *ADCx) 8057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8058:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOS); 8059:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8060:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8061:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC group injected context queue overflow. 8063:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_EnableIT_JQOVF 8064:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8065:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8066:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8067:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JQOVF(ADC_TypeDef *ADCx) 8068:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8069:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 8070:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8071:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8072:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 1. 8074:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_EnableIT_AWD1 8075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8076:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8077:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD1(ADC_TypeDef *ADCx) 8079:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD1); 8081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8082:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8083:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8084:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 2. 8085:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_EnableIT_AWD2 8086:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8087:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8088:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD2(ADC_TypeDef *ADCx) 8090:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD2); 8092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8093:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8094:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8095:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 3. 8096:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_EnableIT_AWD3 8097:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8098:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8099:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD3(ADC_TypeDef *ADCx) 8101:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD3); 8103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8104:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8105:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8106:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC ready. 8107:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_DisableIT_ADRDY 8108:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8109:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8110:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ ARM GAS /tmp/ccIEHjf0.s page 295 8111:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_ADRDY(ADC_TypeDef *ADCx) 8112:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8113:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 8114:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8115:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8116:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8117:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. 8118:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_DisableIT_EOC 8119:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8120:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8121:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8122:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOC(ADC_TypeDef *ADCx) 8123:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8124:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOC); 8125:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8126:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8127:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8128:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sequence conversions. 8129:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_DisableIT_EOS 8130:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8131:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8132:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8133:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOS(ADC_TypeDef *ADCx) 8134:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8135:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOS); 8136:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8137:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8138:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8139:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group regular overrun. 8140:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_DisableIT_OVR 8141:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8142:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8143:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8144:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_OVR(ADC_TypeDef *ADCx) 8145:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8146:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_OVR); 8147:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8148:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8149:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8150:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sampling. 8151:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_DisableIT_EOSMP 8152:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8153:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8154:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8155:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOSMP(ADC_TypeDef *ADCx) 8156:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8157:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 8158:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8159:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8160:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8161:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. 8162:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_DisableIT_JEOC 8163:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8164:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8165:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8166:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOC(ADC_TypeDef *ADCx) 8167:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 296 8168:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOC); 8169:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8170:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8171:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8172:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group injected end of sequence conversions. 8173:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_DisableIT_JEOS 8174:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8175:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8176:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8177:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOS(ADC_TypeDef *ADCx) 8178:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8179:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOS); 8180:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8181:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8182:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8183:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC group injected context queue overflow. 8184:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_DisableIT_JQOVF 8185:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8186:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8187:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8188:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JQOVF(ADC_TypeDef *ADCx) 8189:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8190:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 8191:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8192:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8193:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8194:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 1. 8195:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_DisableIT_AWD1 8196:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8197:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8198:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8199:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD1(ADC_TypeDef *ADCx) 2987 .loc 2 8199 22 view .LVU887 2988 .LBB301: 8200:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8201:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD1); 2989 .loc 2 8201 3 view .LVU888 2990 013c 5368 ldr r3, [r2, #4] 2991 013e 23F08003 bic r3, r3, #128 2992 0142 5360 str r3, [r2, #4] 2993 .LVL207: 2994 .loc 2 8201 3 is_stmt 0 view .LVU889 2995 .LBE301: 2996 .LBE300: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 2997 .loc 1 3134 21 view .LVU890 2998 0144 0020 movs r0, #0 2999 .LVL208: 3000 .LBB303: 3001 .LBB302: 8202:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3002 .loc 2 8202 1 view .LVU891 3003 0146 2AE1 b .L219 3004 .LVL209: 3005 .L205: 3006 .loc 2 8202 1 view .LVU892 3007 .LBE302: ARM GAS /tmp/ccIEHjf0.s page 297 3008 .LBE303: 3219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 3009 .loc 1 3219 11 is_stmt 1 view .LVU893 3219:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 3010 .loc 1 3219 72 is_stmt 0 view .LVU894 3011 0148 AA68 ldr r2, [r5, #8] 3012 .LVL210: 3013 .LBB304: 3014 .LBI304: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3015 .loc 2 5774 22 is_stmt 1 view .LVU895 3016 .LBB305: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 3017 .loc 2 5780 3 view .LVU896 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3018 .loc 2 5783 3 view .LVU897 3019 014a C168 ldr r1, [r0, #12] 3020 014c 6A4B ldr r3, .L265+8 3021 014e 0B40 ands r3, r3, r1 3022 0150 02F0F842 and r2, r2, #2080374784 3023 .LVL211: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3024 .loc 2 5783 3 is_stmt 0 view .LVU898 3025 0154 42F0A072 orr r2, r2, #20971520 3026 0158 1343 orrs r3, r3, r2 3027 015a C360 str r3, [r0, #12] 3028 .LVL212: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3029 .loc 2 5783 3 view .LVU899 3030 .LBE305: 3031 .LBE304: 3221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3032 .loc 1 3221 11 is_stmt 1 view .LVU900 3033 .LBB307: 3034 .LBB306: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3035 .loc 2 5786 1 is_stmt 0 view .LVU901 3036 015c C3E7 b .L213 3037 .L208: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3038 .loc 2 5786 1 view .LVU902 3039 .LBE306: 3040 .LBE307: 3233:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3041 .loc 1 3233 11 is_stmt 1 view .LVU903 3042 .LVL213: 3043 .LBB308: 3044 .LBI308: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3045 .loc 2 5774 22 view .LVU904 3046 .LBB309: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 3047 .loc 2 5780 3 view .LVU905 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3048 .loc 2 5783 3 view .LVU906 3049 015e C268 ldr r2, [r0, #12] 3050 0160 654B ldr r3, .L265+8 ARM GAS /tmp/ccIEHjf0.s page 298 3051 0162 1340 ands r3, r3, r2 3052 0164 43F08073 orr r3, r3, #16777216 3053 0168 C360 str r3, [r0, #12] 3054 .LVL214: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3055 .loc 2 5783 3 is_stmt 0 view .LVU907 3056 .LBE309: 3057 .LBE308: 3234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3058 .loc 1 3234 11 is_stmt 1 view .LVU908 3059 .LBB311: 3060 .LBB310: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3061 .loc 2 5786 1 is_stmt 0 view .LVU909 3062 016a BCE7 b .L213 3063 .L211: 3064 .LBE310: 3065 .LBE311: 3237:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3066 .loc 1 3237 11 is_stmt 1 view .LVU910 3067 .LVL215: 3068 .LBB312: 3069 .LBI312: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3070 .loc 2 5774 22 view .LVU911 3071 .LBB313: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 3072 .loc 2 5780 3 view .LVU912 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3073 .loc 2 5783 3 view .LVU913 3074 016c C268 ldr r2, [r0, #12] 3075 016e 624B ldr r3, .L265+8 3076 0170 1340 ands r3, r3, r2 3077 0172 43F0C073 orr r3, r3, #25165824 3078 0176 C360 str r3, [r0, #12] 3079 .LVL216: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3080 .loc 2 5783 3 is_stmt 0 view .LVU914 3081 .LBE313: 3082 .LBE312: 3238:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3083 .loc 1 3238 11 is_stmt 1 view .LVU915 3084 .LBB315: 3085 .LBB314: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3086 .loc 2 5786 1 is_stmt 0 view .LVU916 3087 0178 B5E7 b .L213 3088 .L210: 3089 .LBE314: 3090 .LBE315: 3241:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3091 .loc 1 3241 11 is_stmt 1 view .LVU917 3092 .LVL217: 3093 .LBB316: 3094 .LBI316: 5774:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3095 .loc 2 5774 22 view .LVU918 ARM GAS /tmp/ccIEHjf0.s page 299 3096 .LBB317: 5780:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * 3097 .loc 2 5780 3 view .LVU919 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3098 .loc 2 5783 3 view .LVU920 3099 017a C268 ldr r2, [r0, #12] 3100 017c 5E4B ldr r3, .L265+8 3101 017e 1340 ands r3, r3, r2 3102 0180 C360 str r3, [r0, #12] 3103 .LVL218: 5783:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3104 .loc 2 5783 3 is_stmt 0 view .LVU921 3105 .LBE317: 3106 .LBE316: 3242:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3107 .loc 1 3242 11 is_stmt 1 view .LVU922 3108 .LBB319: 3109 .LBB318: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3110 .loc 2 5786 1 is_stmt 0 view .LVU923 3111 0182 B0E7 b .L213 3112 .L214: 5786:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3113 .loc 2 5786 1 view .LVU924 3114 .LBE318: 3115 .LBE319: 3248:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThr 3116 .loc 1 3248 36 discriminator 2 view .LVU925 3117 0184 2969 ldr r1, [r5, #16] 3118 0186 DA68 ldr r2, [r3, #12] 3119 0188 9208 lsrs r2, r2, #2 3120 018a 02F00402 and r2, r2, #4 3121 018e 5200 lsls r2, r2, #1 3122 0190 9140 lsls r1, r1, r2 3123 0192 B3E7 b .L215 3124 .LVL219: 3125 .L216: 3249:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3126 .loc 1 3249 36 discriminator 2 view .LVU926 3127 0194 6869 ldr r0, [r5, #20] 3128 0196 DA68 ldr r2, [r3, #12] 3129 0198 9208 lsrs r2, r2, #2 3130 019a 02F00402 and r2, r2, #4 3131 019e 5200 lsls r2, r2, #1 3132 01a0 9040 lsls r0, r0, r2 3133 01a2 B5E7 b .L217 3134 .LVL220: 3135 .L259: 3284:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3136 .loc 1 3284 9 is_stmt 1 view .LVU927 3137 01a4 2268 ldr r2, [r4] 3138 .LVL221: 3139 .LBB320: 3140 .LBI320: 8078:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3141 .loc 2 8078 22 view .LVU928 3142 .LBB321: ARM GAS /tmp/ccIEHjf0.s page 300 8080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3143 .loc 2 8080 3 view .LVU929 3144 01a6 5368 ldr r3, [r2, #4] 3145 01a8 43F08003 orr r3, r3, #128 3146 01ac 5360 str r3, [r2, #4] 3147 .LVL222: 8080:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3148 .loc 2 8080 3 is_stmt 0 view .LVU930 3149 .LBE321: 3150 .LBE320: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3151 .loc 1 3134 21 view .LVU931 3152 01ae 0020 movs r0, #0 3153 .LVL223: 3154 .LBB323: 3155 .LBB322: 8081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3156 .loc 2 8081 1 view .LVU932 3157 01b0 F5E0 b .L219 3158 .LVL224: 3159 .L221: 8081:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3160 .loc 2 8081 1 view .LVU933 3161 .LBE322: 3162 .LBE323: 3294:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3163 .loc 1 3294 7 view .LVU934 3164 01b2 B3F1C07F cmp r3, #25165824 3165 01b6 3FF452AF beq .L222 3166 01ba B3F1E07F cmp r3, #29360128 3167 01be 45D0 beq .L220 3168 .L223: 3341:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3169 .loc 1 3341 11 is_stmt 1 view .LVU935 3170 01c0 0022 movs r2, #0 3171 01c2 FFF7FEFF bl LL_ADC_SetAnalogWDMonitChannels 3172 .LVL225: 3342:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3173 .loc 1 3342 11 view .LVU936 3174 .L228: 3347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowTh 3175 .loc 1 3347 7 view .LVU937 3347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowTh 3176 .loc 1 3347 36 is_stmt 0 view .LVU938 3177 01c6 2368 ldr r3, [r4] 3178 01c8 DA68 ldr r2, [r3, #12] 3179 01ca 12F0100F tst r2, #16 3180 01ce 40F0A180 bne .L239 3347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowTh 3181 .loc 1 3347 36 discriminator 1 view .LVU939 3182 01d2 2A69 ldr r2, [r5, #16] 3183 01d4 D968 ldr r1, [r3, #12] 3184 01d6 C1F38201 ubfx r1, r1, #2, #3 3185 01da 4900 lsls r1, r1, #1 3186 01dc 8A40 lsls r2, r2, r1 3187 .L240: 3188 .LVL226: ARM GAS /tmp/ccIEHjf0.s page 301 3348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3189 .loc 1 3348 7 is_stmt 1 view .LVU940 3348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3190 .loc 1 3348 36 is_stmt 0 view .LVU941 3191 01de D968 ldr r1, [r3, #12] 3192 01e0 11F0100F tst r1, #16 3193 01e4 40F09E80 bne .L241 3348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3194 .loc 1 3348 36 discriminator 1 view .LVU942 3195 01e8 6969 ldr r1, [r5, #20] 3196 01ea D868 ldr r0, [r3, #12] 3197 01ec C0F38200 ubfx r0, r0, #2, #3 3198 01f0 4000 lsls r0, r0, #1 3199 01f2 8140 lsls r1, r1, r0 3200 .L242: 3201 .LVL227: 3386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3202 .loc 1 3386 7 is_stmt 1 view .LVU943 3386:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3203 .loc 1 3386 10 is_stmt 0 view .LVU944 3204 01f4 3F48 ldr r0, .L265+4 3205 01f6 2E68 ldr r6, [r5] 3206 01f8 8642 cmp r6, r0 3207 01fa 00F09B80 beq .L260 3395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR3, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3208 .loc 1 3395 9 is_stmt 1 view .LVU945 3209 01fe D3F8B800 ldr r0, [r3, #184] 3210 0202 00F07C40 and r0, r0, #-67108864 3211 0206 0143 orrs r1, r1, r0 3212 .LVL228: 3395:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR3, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3213 .loc 1 3395 9 is_stmt 0 view .LVU946 3214 0208 C3F8B810 str r1, [r3, #184] 3396:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3215 .loc 1 3396 9 is_stmt 1 view .LVU947 3216 020c 2168 ldr r1, [r4] 3217 020e D1F8BC30 ldr r3, [r1, #188] 3218 0212 03F07C43 and r3, r3, #-67108864 3219 0216 1343 orrs r3, r3, r2 3220 0218 C1F8BC30 str r3, [r1, #188] 3221 .L244: 3400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3222 .loc 1 3400 7 view .LVU948 3400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3223 .loc 1 3400 26 is_stmt 0 view .LVU949 3224 021c 2A68 ldr r2, [r5] 3225 .LVL229: 3400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3226 .loc 1 3400 10 view .LVU950 3227 021e 354B ldr r3, .L265+4 3228 0220 9A42 cmp r2, r3 3229 0222 00F09780 beq .L261 3425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3230 .loc 1 3425 9 is_stmt 1 view .LVU951 3231 0226 636D ldr r3, [r4, #84] 3232 0228 23F48023 bic r3, r3, #262144 3233 022c 6365 str r3, [r4, #84] ARM GAS /tmp/ccIEHjf0.s page 302 3431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3234 .loc 1 3431 9 view .LVU952 3235 022e 2368 ldr r3, [r4] 3236 .LVL230: 3237 .LBB324: 3238 .LBI324: 7707:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3239 .loc 2 7707 22 view .LVU953 3240 .LBB325: 7709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3241 .loc 2 7709 3 view .LVU954 3242 0230 4FF40072 mov r2, #512 3243 0234 1A60 str r2, [r3] 3244 .LVL231: 7709:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3245 .loc 2 7709 3 is_stmt 0 view .LVU955 3246 .LBE325: 3247 .LBE324: 3434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3248 .loc 1 3434 9 is_stmt 1 view .LVU956 3434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3249 .loc 1 3434 28 is_stmt 0 view .LVU957 3250 0236 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3251 .loc 1 3434 12 view .LVU958 3252 0238 012B cmp r3, #1 3253 023a 00F0A480 beq .L262 3440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3254 .loc 1 3440 11 is_stmt 1 view .LVU959 3255 023e 2268 ldr r2, [r4] 3256 .LVL232: 3257 .LBB326: 3258 .LBI326: 8203:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8204:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8205:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 2. 8206:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_DisableIT_AWD2 8207:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8208:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8209:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD2(ADC_TypeDef *ADCx) 8211:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD2); 8213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 8214:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 8215:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** /** 8216:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 3. 8217:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_DisableIT_AWD3 8218:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @param ADCx ADC instance 8219:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** * @retval None 8220:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** */ 8221:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD3(ADC_TypeDef *ADCx) 3259 .loc 2 8221 22 view .LVU960 3260 .LBB327: 8222:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 8223:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD3); 3261 .loc 2 8223 3 view .LVU961 ARM GAS /tmp/ccIEHjf0.s page 303 3262 0240 5368 ldr r3, [r2, #4] 3263 0242 23F40073 bic r3, r3, #512 3264 0246 5360 str r3, [r2, #4] 3265 .LVL233: 3266 .loc 2 8223 3 is_stmt 0 view .LVU962 3267 .LBE327: 3268 .LBE326: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3269 .loc 1 3134 21 view .LVU963 3270 0248 0020 movs r0, #0 3271 .LBB329: 3272 .LBB328: 8224:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3273 .loc 2 8224 1 view .LVU964 3274 024a A8E0 b .L219 3275 .LVL234: 3276 .L220: 3277 .loc 2 8224 1 view .LVU965 3278 .LBE328: 3279 .LBE329: 3301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3280 .loc 1 3301 11 is_stmt 1 view .LVU966 3301:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3281 .loc 1 3301 14 is_stmt 0 view .LVU967 3282 024c 294B ldr r3, .L265+4 3283 024e 9942 cmp r1, r3 3284 0250 0DD0 beq .L263 3307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3285 .loc 1 3307 13 is_stmt 1 view .LVU968 3286 0252 AB68 ldr r3, [r5, #8] 3287 0254 C3F31302 ubfx r2, r3, #0, #20 3288 0258 1ABB cbnz r2, .L229 3307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3289 .loc 1 3307 13 is_stmt 0 discriminator 1 view .LVU969 3290 025a C3F38463 ubfx r3, r3, #26, #5 3291 025e 0122 movs r2, #1 3292 0260 9A40 lsls r2, r2, r3 3293 .L230: 3307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3294 .loc 1 3307 13 discriminator 4 view .LVU970 3295 0262 D0F8A430 ldr r3, [r0, #164] 3296 0266 1343 orrs r3, r3, r2 3297 0268 C0F8A430 str r3, [r0, #164] 3298 026c ABE7 b .L228 3299 .L263: 3303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3300 .loc 1 3303 13 is_stmt 1 view .LVU971 3301 026e AB68 ldr r3, [r5, #8] 3302 0270 C3F31302 ubfx r2, r3, #0, #20 3303 0274 4AB9 cbnz r2, .L225 3303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3304 .loc 1 3303 13 is_stmt 0 discriminator 1 view .LVU972 3305 0276 C3F38463 ubfx r3, r3, #26, #5 3306 027a 0122 movs r2, #1 3307 027c 9A40 lsls r2, r2, r3 3308 .L226: 3303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 304 3309 .loc 1 3303 13 discriminator 4 view .LVU973 3310 027e D0F8A030 ldr r3, [r0, #160] 3311 0282 1343 orrs r3, r3, r2 3312 0284 C0F8A030 str r3, [r0, #160] 3313 0288 9DE7 b .L228 3314 .L225: 3315 .LVL235: 3316 .LBB330: 3317 .LBI330: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3318 .loc 3 1048 31 is_stmt 1 view .LVU974 3319 .LBB331: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3320 .loc 3 1050 3 view .LVU975 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3321 .loc 3 1055 4 view .LVU976 3322 .syntax unified 3323 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3324 028a 93FAA3F3 rbit r3, r3 3325 @ 0 "" 2 3326 .LVL236: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3327 .loc 3 1068 3 view .LVU977 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3328 .loc 3 1068 3 is_stmt 0 view .LVU978 3329 .thumb 3330 .syntax unified 3331 .LBE331: 3332 .LBE330: 3333 .LBB332: 3334 .LBI332: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3335 .loc 3 1078 30 is_stmt 1 view .LVU979 3336 .LBB333: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3337 .loc 3 1089 3 view .LVU980 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3338 .loc 3 1089 6 is_stmt 0 view .LVU981 3339 028e 33B1 cbz r3, .L249 3340 .loc 3 1093 3 is_stmt 1 view .LVU982 3341 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU983 3342 0290 B3FA83F3 clz r3, r3 3343 .LVL237: 3344 .L227: 3345 .loc 3 1093 10 discriminator 1 view .LVU984 3346 .LBE333: 3347 .LBE332: 3303:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3348 .loc 1 3303 13 discriminator 2 view .LVU985 3349 0294 03F01F03 and r3, r3, #31 3350 0298 0122 movs r2, #1 3351 029a 9A40 lsls r2, r2, r3 3352 029c EFE7 b .L226 3353 .LVL238: 3354 .L249: 3355 .LBB335: 3356 .LBB334: ARM GAS /tmp/ccIEHjf0.s page 305 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3357 .loc 3 1091 12 view .LVU986 3358 029e 2023 movs r3, #32 3359 .LVL239: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3360 .loc 3 1091 12 view .LVU987 3361 02a0 F8E7 b .L227 3362 .LVL240: 3363 .L229: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3364 .loc 3 1091 12 view .LVU988 3365 .LBE334: 3366 .LBE335: 3367 .LBB336: 3368 .LBI336: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3369 .loc 3 1048 31 is_stmt 1 view .LVU989 3370 .LBB337: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3371 .loc 3 1050 3 view .LVU990 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3372 .loc 3 1055 4 view .LVU991 3373 .syntax unified 3374 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3375 02a2 93FAA3F3 rbit r3, r3 3376 @ 0 "" 2 3377 .LVL241: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3378 .loc 3 1068 3 view .LVU992 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3379 .loc 3 1068 3 is_stmt 0 view .LVU993 3380 .thumb 3381 .syntax unified 3382 .LBE337: 3383 .LBE336: 3384 .LBB338: 3385 .LBI338: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3386 .loc 3 1078 30 is_stmt 1 view .LVU994 3387 .LBB339: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3388 .loc 3 1089 3 view .LVU995 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3389 .loc 3 1089 6 is_stmt 0 view .LVU996 3390 02a6 33B1 cbz r3, .L250 3391 .loc 3 1093 3 is_stmt 1 view .LVU997 3392 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU998 3393 02a8 B3FA83F3 clz r3, r3 3394 .LVL242: 3395 .L231: 3396 .loc 3 1093 10 discriminator 1 view .LVU999 3397 .LBE339: 3398 .LBE338: 3307:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3399 .loc 1 3307 13 discriminator 2 view .LVU1000 3400 02ac 03F01F03 and r3, r3, #31 3401 02b0 0122 movs r2, #1 ARM GAS /tmp/ccIEHjf0.s page 306 3402 02b2 9A40 lsls r2, r2, r3 3403 02b4 D5E7 b .L230 3404 .LVL243: 3405 .L250: 3406 .LBB341: 3407 .LBB340: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3408 .loc 3 1091 12 view .LVU1001 3409 02b6 2023 movs r3, #32 3410 .LVL244: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3411 .loc 3 1091 12 view .LVU1002 3412 02b8 F8E7 b .L231 3413 .LVL245: 3414 .L258: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3415 .loc 3 1091 12 view .LVU1003 3416 .LBE340: 3417 .LBE341: 3329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3418 .loc 1 3329 15 is_stmt 1 view .LVU1004 3419 02ba AB68 ldr r3, [r5, #8] 3420 02bc C3F31302 ubfx r2, r3, #0, #20 3421 02c0 4AB9 cbnz r2, .L233 3329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3422 .loc 1 3329 15 is_stmt 0 discriminator 1 view .LVU1005 3423 02c2 C3F38463 ubfx r3, r3, #26, #5 3424 02c6 0122 movs r2, #1 3425 02c8 9A40 lsls r2, r2, r3 3426 .L234: 3329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3427 .loc 1 3329 15 discriminator 4 view .LVU1006 3428 02ca D0F8A030 ldr r3, [r0, #160] 3429 02ce 1343 orrs r3, r3, r2 3430 02d0 C0F8A030 str r3, [r0, #160] 3431 02d4 77E7 b .L228 3432 .L233: 3433 .LVL246: 3434 .LBB342: 3435 .LBI342: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3436 .loc 3 1048 31 is_stmt 1 view .LVU1007 3437 .LBB343: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3438 .loc 3 1050 3 view .LVU1008 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3439 .loc 3 1055 4 view .LVU1009 3440 .syntax unified 3441 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3442 02d6 93FAA3F3 rbit r3, r3 3443 @ 0 "" 2 3444 .LVL247: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3445 .loc 3 1068 3 view .LVU1010 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3446 .loc 3 1068 3 is_stmt 0 view .LVU1011 3447 .thumb ARM GAS /tmp/ccIEHjf0.s page 307 3448 .syntax unified 3449 .LBE343: 3450 .LBE342: 3451 .LBB344: 3452 .LBI344: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3453 .loc 3 1078 30 is_stmt 1 view .LVU1012 3454 .LBB345: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3455 .loc 3 1089 3 view .LVU1013 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3456 .loc 3 1089 6 is_stmt 0 view .LVU1014 3457 02da 33B1 cbz r3, .L251 3458 .loc 3 1093 3 is_stmt 1 view .LVU1015 3459 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1016 3460 02dc B3FA83F3 clz r3, r3 3461 .LVL248: 3462 .L235: 3463 .loc 3 1093 10 discriminator 1 view .LVU1017 3464 .LBE345: 3465 .LBE344: 3329:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3466 .loc 1 3329 15 discriminator 2 view .LVU1018 3467 02e0 03F01F03 and r3, r3, #31 3468 02e4 0122 movs r2, #1 3469 02e6 9A40 lsls r2, r2, r3 3470 02e8 EFE7 b .L234 3471 .LVL249: 3472 .L251: 3473 .LBB347: 3474 .LBB346: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3475 .loc 3 1091 12 view .LVU1019 3476 02ea 2023 movs r3, #32 3477 .LVL250: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3478 .loc 3 1091 12 view .LVU1020 3479 02ec F8E7 b .L235 3480 .L266: 3481 02ee 00BF .align 2 3482 .L265: 3483 02f0 0000C07D .word 2109734912 3484 02f4 FFFF1F00 .word 2097151 3485 02f8 FFFF3F82 .word -2109734913 3486 .LVL251: 3487 .L236: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3488 .loc 3 1091 12 view .LVU1021 3489 .LBE346: 3490 .LBE347: 3491 .LBB348: 3492 .LBI348: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3493 .loc 3 1048 31 is_stmt 1 view .LVU1022 3494 .LBB349: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3495 .loc 3 1050 3 view .LVU1023 ARM GAS /tmp/ccIEHjf0.s page 308 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3496 .loc 3 1055 4 view .LVU1024 3497 .syntax unified 3498 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3499 02fc 93FAA3F3 rbit r3, r3 3500 @ 0 "" 2 3501 .LVL252: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3502 .loc 3 1068 3 view .LVU1025 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3503 .loc 3 1068 3 is_stmt 0 view .LVU1026 3504 .thumb 3505 .syntax unified 3506 .LBE349: 3507 .LBE348: 3508 .LBB350: 3509 .LBI350: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3510 .loc 3 1078 30 is_stmt 1 view .LVU1027 3511 .LBB351: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3512 .loc 3 1089 3 view .LVU1028 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3513 .loc 3 1089 6 is_stmt 0 view .LVU1029 3514 0300 33B1 cbz r3, .L252 3515 .loc 3 1093 3 is_stmt 1 view .LVU1030 3516 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1031 3517 0302 B3FA83F3 clz r3, r3 3518 .LVL253: 3519 .L238: 3520 .loc 3 1093 10 discriminator 1 view .LVU1032 3521 .LBE351: 3522 .LBE350: 3333:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3523 .loc 1 3333 15 discriminator 2 view .LVU1033 3524 0306 03F01F03 and r3, r3, #31 3525 030a 0122 movs r2, #1 3526 030c 9A40 lsls r2, r2, r3 3527 030e B4E6 b .L237 3528 .LVL254: 3529 .L252: 3530 .LBB353: 3531 .LBB352: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3532 .loc 3 1091 12 view .LVU1034 3533 0310 2023 movs r3, #32 3534 .LVL255: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3535 .loc 3 1091 12 view .LVU1035 3536 0312 F8E7 b .L238 3537 .LVL256: 3538 .L239: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3539 .loc 3 1091 12 view .LVU1036 3540 .LBE352: 3541 .LBE353: 3347:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowTh ARM GAS /tmp/ccIEHjf0.s page 309 3542 .loc 1 3347 36 discriminator 2 view .LVU1037 3543 0314 2A69 ldr r2, [r5, #16] 3544 0316 D968 ldr r1, [r3, #12] 3545 0318 8908 lsrs r1, r1, #2 3546 031a 01F00401 and r1, r1, #4 3547 031e 4900 lsls r1, r1, #1 3548 0320 8A40 lsls r2, r2, r1 3549 0322 5CE7 b .L240 3550 .LVL257: 3551 .L241: 3348:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3552 .loc 1 3348 36 discriminator 2 view .LVU1038 3553 0324 6969 ldr r1, [r5, #20] 3554 0326 D868 ldr r0, [r3, #12] 3555 0328 8008 lsrs r0, r0, #2 3556 032a 00F00400 and r0, r0, #4 3557 032e 4000 lsls r0, r0, #1 3558 0330 8140 lsls r1, r1, r0 3559 0332 5FE7 b .L242 3560 .LVL258: 3561 .L260: 3389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR2, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3562 .loc 1 3389 9 is_stmt 1 view .LVU1039 3563 0334 D3F8B000 ldr r0, [r3, #176] 3564 0338 00F07C40 and r0, r0, #-67108864 3565 033c 0143 orrs r1, r1, r0 3566 .LVL259: 3389:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->HTR2, ADC_HTR_HT, tmpAWDHighThresholdShifted); 3567 .loc 1 3389 9 is_stmt 0 view .LVU1040 3568 033e C3F8B010 str r1, [r3, #176] 3390:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3569 .loc 1 3390 9 is_stmt 1 view .LVU1041 3570 0342 2168 ldr r1, [r4] 3571 0344 D1F8B430 ldr r3, [r1, #180] 3572 0348 03F07C43 and r3, r3, #-67108864 3573 034c 1343 orrs r3, r3, r2 3574 034e C1F8B430 str r3, [r1, #180] 3575 0352 63E7 b .L244 3576 .LVL260: 3577 .L261: 3403:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3578 .loc 1 3403 9 view .LVU1042 3579 0354 636D ldr r3, [r4, #84] 3580 0356 23F40033 bic r3, r3, #131072 3581 035a 6365 str r3, [r4, #84] 3409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3582 .loc 1 3409 9 view .LVU1043 3583 035c 2368 ldr r3, [r4] 3584 .LVL261: 3585 .LBB354: 3586 .LBI354: 7696:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3587 .loc 2 7696 22 view .LVU1044 3588 .LBB355: 7698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3589 .loc 2 7698 3 view .LVU1045 3590 035e 4FF48072 mov r2, #256 ARM GAS /tmp/ccIEHjf0.s page 310 3591 0362 1A60 str r2, [r3] 3592 .LVL262: 7698:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3593 .loc 2 7698 3 is_stmt 0 view .LVU1046 3594 .LBE355: 3595 .LBE354: 3412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3596 .loc 1 3412 9 is_stmt 1 view .LVU1047 3412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3597 .loc 1 3412 28 is_stmt 0 view .LVU1048 3598 0364 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3599 .loc 1 3412 12 view .LVU1049 3600 0366 012B cmp r3, #1 3601 0368 06D0 beq .L264 3418:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3602 .loc 1 3418 11 is_stmt 1 view .LVU1050 3603 036a 2268 ldr r2, [r4] 3604 .LVL263: 3605 .LBB356: 3606 .LBI356: 8210:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3607 .loc 2 8210 22 view .LVU1051 3608 .LBB357: 8212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3609 .loc 2 8212 3 view .LVU1052 3610 036c 5368 ldr r3, [r2, #4] 3611 036e 23F48073 bic r3, r3, #256 3612 0372 5360 str r3, [r2, #4] 3613 .LVL264: 8212:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3614 .loc 2 8212 3 is_stmt 0 view .LVU1053 3615 .LBE357: 3616 .LBE356: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3617 .loc 1 3134 21 view .LVU1054 3618 0374 0020 movs r0, #0 3619 .LBB359: 3620 .LBB358: 8213:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3621 .loc 2 8213 1 view .LVU1055 3622 0376 12E0 b .L219 3623 .L264: 3624 .LBE358: 3625 .LBE359: 3414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3626 .loc 1 3414 11 is_stmt 1 view .LVU1056 3627 0378 2268 ldr r2, [r4] 3628 .LVL265: 3629 .LBB360: 3630 .LBI360: 8089:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3631 .loc 2 8089 22 view .LVU1057 3632 .LBB361: 8091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3633 .loc 2 8091 3 view .LVU1058 3634 037a 5368 ldr r3, [r2, #4] ARM GAS /tmp/ccIEHjf0.s page 311 3635 037c 43F48073 orr r3, r3, #256 3636 0380 5360 str r3, [r2, #4] 3637 .LVL266: 8091:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3638 .loc 2 8091 3 is_stmt 0 view .LVU1059 3639 .LBE361: 3640 .LBE360: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3641 .loc 1 3134 21 view .LVU1060 3642 0382 0020 movs r0, #0 3643 .LBB363: 3644 .LBB362: 8092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3645 .loc 2 8092 1 view .LVU1061 3646 0384 0BE0 b .L219 3647 .L262: 8092:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3648 .loc 2 8092 1 view .LVU1062 3649 .LBE362: 3650 .LBE363: 3436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3651 .loc 1 3436 11 is_stmt 1 view .LVU1063 3652 0386 2268 ldr r2, [r4] 3653 .LVL267: 3654 .LBB364: 3655 .LBI364: 8100:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3656 .loc 2 8100 22 view .LVU1064 3657 .LBB365: 8102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3658 .loc 2 8102 3 view .LVU1065 3659 0388 5368 ldr r3, [r2, #4] 3660 038a 43F40073 orr r3, r3, #512 3661 038e 5360 str r3, [r2, #4] 3662 .LVL268: 8102:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3663 .loc 2 8102 3 is_stmt 0 view .LVU1066 3664 .LBE365: 3665 .LBE364: 3134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3666 .loc 1 3134 21 view .LVU1067 3667 0390 0020 movs r0, #0 3668 .LBB367: 3669 .LBB366: 8103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3670 .loc 2 8103 1 view .LVU1068 3671 0392 04E0 b .L219 3672 .LVL269: 3673 .L203: 8103:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 3674 .loc 2 8103 1 view .LVU1069 3675 .LBE366: 3676 .LBE367: 3451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3677 .loc 1 3451 5 is_stmt 1 view .LVU1070 3678 0394 636D ldr r3, [r4, #84] 3679 .LVL270: ARM GAS /tmp/ccIEHjf0.s page 312 3451:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3680 .loc 1 3451 5 is_stmt 0 view .LVU1071 3681 0396 43F02003 orr r3, r3, #32 3682 039a 6365 str r3, [r4, #84] 3453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3683 .loc 1 3453 5 is_stmt 1 view .LVU1072 3684 .LVL271: 3453:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3685 .loc 1 3453 20 is_stmt 0 view .LVU1073 3686 039c 0120 movs r0, #1 3687 .LVL272: 3688 .L219: 3456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3689 .loc 1 3456 3 is_stmt 1 view .LVU1074 3456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3690 .loc 1 3456 3 view .LVU1075 3691 039e 0023 movs r3, #0 3692 03a0 84F85030 strb r3, [r4, #80] 3456:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3693 .loc 1 3456 3 view .LVU1076 3459:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3694 .loc 1 3459 3 view .LVU1077 3460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3695 .loc 1 3460 1 is_stmt 0 view .LVU1078 3696 03a4 70BD pop {r4, r5, r6, pc} 3697 .LVL273: 3698 .L248: 3699 .cfi_def_cfa_offset 0 3700 .cfi_restore 4 3701 .cfi_restore 5 3702 .cfi_restore 6 3703 .cfi_restore 14 3192:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3704 .loc 1 3192 3 discriminator 1 view .LVU1079 3705 03a6 0220 movs r0, #2 3706 .LVL274: 3460:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3707 .loc 1 3460 1 view .LVU1080 3708 03a8 7047 bx lr 3709 .cfi_endproc 3710 .LFE354: 3712 03aa 00BF .section .text.HAL_ADC_GetState,"ax",%progbits 3713 .align 1 3714 .global HAL_ADC_GetState 3715 .syntax unified 3716 .thumb 3717 .thumb_func 3719 HAL_ADC_GetState: 3720 .LVL275: 3721 .LFB355: 3495:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3722 .loc 1 3495 1 is_stmt 1 view -0 3723 .cfi_startproc 3724 @ args = 0, pretend = 0, frame = 0 3725 @ frame_needed = 0, uses_anonymous_args = 0 3726 @ link register save eliminated. 3497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 313 3727 .loc 1 3497 3 view .LVU1082 3500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3728 .loc 1 3500 3 view .LVU1083 3500:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3729 .loc 1 3500 14 is_stmt 0 view .LVU1084 3730 0000 406D ldr r0, [r0, #84] 3731 .LVL276: 3501:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3732 .loc 1 3501 1 view .LVU1085 3733 0002 7047 bx lr 3734 .cfi_endproc 3735 .LFE355: 3737 .section .text.HAL_ADC_GetError,"ax",%progbits 3738 .align 1 3739 .global HAL_ADC_GetError 3740 .syntax unified 3741 .thumb 3742 .thumb_func 3744 HAL_ADC_GetError: 3745 .LVL277: 3746 .LFB356: 3509:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Check the parameters */ 3747 .loc 1 3509 1 is_stmt 1 view -0 3748 .cfi_startproc 3749 @ args = 0, pretend = 0, frame = 0 3750 @ frame_needed = 0, uses_anonymous_args = 0 3751 @ link register save eliminated. 3511:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3752 .loc 1 3511 3 view .LVU1087 3513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3753 .loc 1 3513 3 view .LVU1088 3513:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3754 .loc 1 3513 14 is_stmt 0 view .LVU1089 3755 0000 806D ldr r0, [r0, #88] 3756 .LVL278: 3514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3757 .loc 1 3514 1 view .LVU1090 3758 0002 7047 bx lr 3759 .cfi_endproc 3760 .LFE356: 3762 .section .text.ADC_ConversionStop,"ax",%progbits 3763 .align 1 3764 .global ADC_ConversionStop 3765 .syntax unified 3766 .thumb 3767 .thumb_func 3769 ADC_ConversionStop: 3770 .LVL279: 3771 .LFB357: 3539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 3772 .loc 1 3539 1 is_stmt 1 view -0 3773 .cfi_startproc 3774 @ args = 0, pretend = 0, frame = 0 3775 @ frame_needed = 0, uses_anonymous_args = 0 3539:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 3776 .loc 1 3539 1 is_stmt 0 view .LVU1092 3777 0000 70B5 push {r4, r5, r6, lr} ARM GAS /tmp/ccIEHjf0.s page 314 3778 .cfi_def_cfa_offset 16 3779 .cfi_offset 4, -16 3780 .cfi_offset 5, -12 3781 .cfi_offset 6, -8 3782 .cfi_offset 14, -4 3783 0002 0446 mov r4, r0 3540:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 3784 .loc 1 3540 3 is_stmt 1 view .LVU1093 3541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 3785 .loc 1 3541 3 view .LVU1094 3786 .LVL280: 3542:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 3787 .loc 1 3542 3 view .LVU1095 3543:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3788 .loc 1 3543 3 view .LVU1096 3544:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3789 .loc 1 3544 3 view .LVU1097 3545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3790 .loc 1 3545 3 view .LVU1098 3548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 3791 .loc 1 3548 3 view .LVU1099 3549:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3792 .loc 1 3549 3 view .LVU1100 3553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3793 .loc 1 3553 3 view .LVU1101 3553:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3794 .loc 1 3553 79 is_stmt 0 view .LVU1102 3795 0004 0368 ldr r3, [r0] 3796 .LVL281: 3797 .LBB368: 3798 .LBI368: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3799 .loc 2 7073 26 is_stmt 1 view .LVU1103 3800 .LBB369: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3801 .loc 2 7075 3 view .LVU1104 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3802 .loc 2 7075 12 is_stmt 0 view .LVU1105 3803 0006 9A68 ldr r2, [r3, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3804 .loc 2 7075 74 view .LVU1106 3805 0008 12F00402 ands r2, r2, #4 3806 000c 00D0 beq .L270 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3807 .loc 2 7075 74 discriminator 1 view .LVU1107 3808 000e 0122 movs r2, #1 3809 .L270: 3810 .LVL282: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3811 .loc 2 7075 74 discriminator 1 view .LVU1108 3812 .LBE369: 3813 .LBE368: 3554:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 3814 .loc 1 3554 3 is_stmt 1 view .LVU1109 3815 .LBB370: 3816 .LBI370: 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 315 3817 .loc 2 7268 26 view .LVU1110 3818 .LBB371: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3819 .loc 2 7270 3 view .LVU1111 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3820 .loc 2 7270 12 is_stmt 0 view .LVU1112 3821 0010 9868 ldr r0, [r3, #8] 3822 .LVL283: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3823 .loc 2 7270 76 view .LVU1113 3824 0012 10F0080F tst r0, #8 3825 0016 01D1 bne .L271 3826 .LVL284: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3827 .loc 2 7270 76 view .LVU1114 3828 .LBE371: 3829 .LBE370: 3555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 3830 .loc 1 3555 3 is_stmt 1 view .LVU1115 3555:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 3831 .loc 1 3555 6 is_stmt 0 view .LVU1116 3832 0018 002A cmp r2, #0 3833 001a 69D0 beq .L284 3834 .LVL285: 3835 .L271: 3565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3836 .loc 1 3565 5 is_stmt 1 view .LVU1117 3565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3837 .loc 1 3565 25 is_stmt 0 view .LVU1118 3838 001c DA68 ldr r2, [r3, #12] 3839 .LVL286: 3565:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3840 .loc 1 3565 8 view .LVU1119 3841 001e 12F0007F tst r2, #33554432 3842 0022 04D0 beq .L273 3567:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 3843 .loc 1 3567 9 view .LVU1120 3844 0024 A08A ldrh r0, [r4, #20] 3845 0026 40F20112 movw r2, #257 3846 002a 9042 cmp r0, r2 3847 002c 4AD0 beq .L290 3848 .L273: 3594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3849 .loc 1 3594 5 is_stmt 1 view .LVU1121 3594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3850 .loc 1 3594 8 is_stmt 0 view .LVU1122 3851 002e 0229 cmp r1, #2 3852 0030 10D0 beq .L278 3853 .LVL287: 3854 .L277: 3597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3855 .loc 1 3597 7 is_stmt 1 view .LVU1123 3597:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3856 .loc 1 3597 46 is_stmt 0 view .LVU1124 3857 0032 2368 ldr r3, [r4] 3858 .LVL288: 3859 .LBB372: ARM GAS /tmp/ccIEHjf0.s page 316 3860 .LBI372: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3861 .loc 2 7073 26 is_stmt 1 view .LVU1125 3862 .LBB373: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3863 .loc 2 7075 3 view .LVU1126 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3864 .loc 2 7075 12 is_stmt 0 view .LVU1127 3865 0034 9A68 ldr r2, [r3, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3866 .loc 2 7075 74 view .LVU1128 3867 0036 12F0040F tst r2, #4 3868 003a 09D0 beq .L279 3869 .LVL289: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3870 .loc 2 7075 74 view .LVU1129 3871 .LBE373: 3872 .LBE372: 3599:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3873 .loc 1 3599 9 is_stmt 1 view .LVU1130 3874 .LBB374: 3875 .LBI374: 6952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3876 .loc 2 6952 26 view .LVU1131 3877 .LBB375: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3878 .loc 2 6954 3 view .LVU1132 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3879 .loc 2 6954 12 is_stmt 0 view .LVU1133 3880 003c 9A68 ldr r2, [r3, #8] 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3881 .loc 2 6954 70 view .LVU1134 3882 003e 12F0020F tst r2, #2 3883 0042 05D1 bne .L279 3884 .LVL290: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3885 .loc 2 6954 70 view .LVU1135 3886 .LBE375: 3887 .LBE374: 3602:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3888 .loc 1 3602 11 is_stmt 1 view .LVU1136 3889 .LBB376: 3890 .LBI376: 7057:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3891 .loc 2 7057 22 view .LVU1137 3892 .LBB377: 7062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 3893 .loc 2 7062 3 view .LVU1138 3894 0044 9868 ldr r0, [r3, #8] 3895 0046 2B4A ldr r2, .L294 3896 0048 0240 ands r2, r2, r0 3897 004a 42F01002 orr r2, r2, #16 3898 004e 9A60 str r2, [r3, #8] 3899 .LVL291: 3900 .L279: 7062:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 3901 .loc 2 7062 3 is_stmt 0 view .LVU1139 ARM GAS /tmp/ccIEHjf0.s page 317 3902 .LBE377: 3903 .LBE376: 3608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3904 .loc 1 3608 5 is_stmt 1 view .LVU1140 3608:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3905 .loc 1 3608 8 is_stmt 0 view .LVU1141 3906 0050 0129 cmp r1, #1 3907 0052 45D0 beq .L286 3908 .L278: 3611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3909 .loc 1 3611 7 is_stmt 1 view .LVU1142 3611:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3910 .loc 1 3611 46 is_stmt 0 view .LVU1143 3911 0054 2368 ldr r3, [r4] 3912 .LVL292: 3913 .LBB378: 3914 .LBI378: 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3915 .loc 2 7268 26 is_stmt 1 view .LVU1144 3916 .LBB379: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3917 .loc 2 7270 3 view .LVU1145 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3918 .loc 2 7270 12 is_stmt 0 view .LVU1146 3919 0056 9A68 ldr r2, [r3, #8] 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3920 .loc 2 7270 76 view .LVU1147 3921 0058 12F0080F tst r2, #8 3922 005c 09D0 beq .L281 3923 .LVL293: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3924 .loc 2 7270 76 view .LVU1148 3925 .LBE379: 3926 .LBE378: 3613:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3927 .loc 1 3613 9 is_stmt 1 view .LVU1149 3928 .LBB380: 3929 .LBI380: 6952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3930 .loc 2 6952 26 view .LVU1150 3931 .LBB381: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3932 .loc 2 6954 3 view .LVU1151 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3933 .loc 2 6954 12 is_stmt 0 view .LVU1152 3934 005e 9A68 ldr r2, [r3, #8] 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3935 .loc 2 6954 70 view .LVU1153 3936 0060 12F0020F tst r2, #2 3937 0064 05D1 bne .L281 3938 .LVL294: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 3939 .loc 2 6954 70 view .LVU1154 3940 .LBE381: 3941 .LBE380: 3616:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3942 .loc 1 3616 11 is_stmt 1 view .LVU1155 ARM GAS /tmp/ccIEHjf0.s page 318 3943 .LBB382: 3944 .LBI382: 7252:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 3945 .loc 2 7252 22 view .LVU1156 3946 .LBB383: 7257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 3947 .loc 2 7257 3 view .LVU1157 3948 0066 9868 ldr r0, [r3, #8] 3949 0068 224A ldr r2, .L294 3950 006a 0240 ands r2, r2, r0 3951 006c 42F02002 orr r2, r2, #32 3952 0070 9A60 str r2, [r3, #8] 3953 .LVL295: 3954 .L281: 7257:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 3955 .loc 2 7257 3 is_stmt 0 view .LVU1158 3956 .LBE383: 3957 .LBE382: 3622:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3958 .loc 1 3622 5 is_stmt 1 view .LVU1159 3959 0072 0229 cmp r1, #2 3960 0074 36D0 beq .L287 3961 0076 0329 cmp r1, #3 3962 0078 36D1 bne .L288 3963 007a 0C25 movs r5, #12 3964 .L280: 3965 .LVL296: 3637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3966 .loc 1 3637 5 view .LVU1160 3637:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3967 .loc 1 3637 17 is_stmt 0 view .LVU1161 3968 007c FFF7FEFF bl HAL_GetTick 3969 .LVL297: 3970 0080 0646 mov r6, r0 3971 .LVL298: 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3972 .loc 1 3639 5 is_stmt 1 view .LVU1162 3973 .L282: 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3974 .loc 1 3639 63 view .LVU1163 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3975 .loc 1 3639 17 is_stmt 0 view .LVU1164 3976 0082 2368 ldr r3, [r4] 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3977 .loc 1 3639 27 view .LVU1165 3978 0084 9B68 ldr r3, [r3, #8] 3639:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3979 .loc 1 3639 63 view .LVU1166 3980 0086 2B42 tst r3, r5 3981 0088 30D0 beq .L291 3641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3982 .loc 1 3641 7 is_stmt 1 view .LVU1167 3641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3983 .loc 1 3641 12 is_stmt 0 view .LVU1168 3984 008a FFF7FEFF bl HAL_GetTick 3985 .LVL299: 3641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 319 3986 .loc 1 3641 26 discriminator 1 view .LVU1169 3987 008e 801B subs r0, r0, r6 3641:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3988 .loc 1 3641 10 discriminator 1 view .LVU1170 3989 0090 0528 cmp r0, #5 3990 0092 F6D9 bls .L282 3644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3991 .loc 1 3644 9 is_stmt 1 view .LVU1171 3644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3992 .loc 1 3644 17 is_stmt 0 view .LVU1172 3993 0094 2368 ldr r3, [r4] 3644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3994 .loc 1 3644 27 view .LVU1173 3995 0096 9B68 ldr r3, [r3, #8] 3644:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3996 .loc 1 3644 11 view .LVU1174 3997 0098 2B42 tst r3, r5 3998 009a F2D0 beq .L282 3647:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3999 .loc 1 3647 11 is_stmt 1 view .LVU1175 4000 009c 636D ldr r3, [r4, #84] 4001 009e 43F01003 orr r3, r3, #16 4002 00a2 6365 str r3, [r4, #84] 3650:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4003 .loc 1 3650 11 view .LVU1176 4004 00a4 A36D ldr r3, [r4, #88] 4005 00a6 43F00103 orr r3, r3, #1 4006 00aa A365 str r3, [r4, #88] 3652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4007 .loc 1 3652 11 view .LVU1177 3652:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4008 .loc 1 3652 18 is_stmt 0 view .LVU1178 4009 00ac 0120 movs r0, #1 4010 00ae 1EE0 b .L272 4011 .LVL300: 4012 .L293: 3579:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4013 .loc 1 3579 11 is_stmt 1 view .LVU1179 4014 00b0 636D ldr r3, [r4, #84] 4015 00b2 43F01003 orr r3, r3, #16 4016 00b6 6365 str r3, [r4, #84] 3582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4017 .loc 1 3582 11 view .LVU1180 4018 00b8 A36D ldr r3, [r4, #88] 4019 00ba 43F00103 orr r3, r3, #1 4020 00be A365 str r3, [r4, #88] 3584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4021 .loc 1 3584 11 view .LVU1181 3584:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4022 .loc 1 3584 18 is_stmt 0 view .LVU1182 4023 00c0 0120 movs r0, #1 4024 00c2 14E0 b .L272 4025 .LVL301: 4026 .L290: 3541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 4027 .loc 1 3541 12 view .LVU1183 4028 00c4 0022 movs r2, #0 ARM GAS /tmp/ccIEHjf0.s page 320 4029 .LVL302: 4030 .L274: 3574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4031 .loc 1 3574 54 is_stmt 1 view .LVU1184 3574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4032 .loc 1 3574 14 is_stmt 0 view .LVU1185 4033 00c6 1968 ldr r1, [r3] 3574:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4034 .loc 1 3574 54 view .LVU1186 4035 00c8 11F0400F tst r1, #64 4036 00cc 04D1 bne .L292 3576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4037 .loc 1 3576 9 is_stmt 1 view .LVU1187 3576:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4038 .loc 1 3576 12 is_stmt 0 view .LVU1188 4039 00ce 0A49 ldr r1, .L294+4 4040 00d0 8A42 cmp r2, r1 4041 00d2 EDD8 bhi .L293 3586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4042 .loc 1 3586 9 is_stmt 1 view .LVU1189 3586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4043 .loc 1 3586 39 is_stmt 0 view .LVU1190 4044 00d4 0132 adds r2, r2, #1 4045 .LVL303: 3586:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4046 .loc 1 3586 39 view .LVU1191 4047 00d6 F6E7 b .L274 4048 .L292: 3590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4049 .loc 1 3590 7 is_stmt 1 view .LVU1192 4050 00d8 4022 movs r2, #64 4051 .LVL304: 3590:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4052 .loc 1 3590 7 is_stmt 0 view .LVU1193 4053 00da 1A60 str r2, [r3] 4054 .LVL305: 3594:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4055 .loc 1 3594 5 is_stmt 1 view .LVU1194 3571:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4056 .loc 1 3571 35 is_stmt 0 view .LVU1195 4057 00dc 0121 movs r1, #1 4058 00de A8E7 b .L277 4059 .LVL306: 4060 .L286: 3632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4061 .loc 1 3632 37 view .LVU1196 4062 00e0 0425 movs r5, #4 4063 00e2 CBE7 b .L280 4064 .L287: 3628:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4065 .loc 1 3628 37 view .LVU1197 4066 00e4 0825 movs r5, #8 4067 00e6 C9E7 b .L280 4068 .L288: 3632:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4069 .loc 1 3632 37 view .LVU1198 4070 00e8 0425 movs r5, #4 ARM GAS /tmp/ccIEHjf0.s page 321 4071 00ea C7E7 b .L280 4072 .LVL307: 4073 .L291: 3660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4074 .loc 1 3660 10 view .LVU1199 4075 00ec 0020 movs r0, #0 4076 .LVL308: 4077 .L272: 3661:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4078 .loc 1 3661 1 view .LVU1200 4079 00ee 70BD pop {r4, r5, r6, pc} 4080 .LVL309: 4081 .L284: 3660:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4082 .loc 1 3660 10 view .LVU1201 4083 00f0 0020 movs r0, #0 4084 00f2 FCE7 b .L272 4085 .L295: 4086 .align 2 4087 .L294: 4088 00f4 C0FFFF7F .word 2147483584 4089 00f8 FFDB0C00 .word 842751 4090 .cfi_endproc 4091 .LFE357: 4093 .section .text.ADC_Enable,"ax",%progbits 4094 .align 1 4095 .global ADC_Enable 4096 .syntax unified 4097 .thumb 4098 .thumb_func 4100 ADC_Enable: 4101 .LVL310: 4102 .LFB358: 3673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 4103 .loc 1 3673 1 is_stmt 1 view -0 4104 .cfi_startproc 4105 @ args = 0, pretend = 0, frame = 0 4106 @ frame_needed = 0, uses_anonymous_args = 0 3673:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 4107 .loc 1 3673 1 is_stmt 0 view .LVU1203 4108 0000 38B5 push {r3, r4, r5, lr} 4109 .cfi_def_cfa_offset 16 4110 .cfi_offset 3, -16 4111 .cfi_offset 4, -12 4112 .cfi_offset 5, -8 4113 .cfi_offset 14, -4 3674:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4114 .loc 1 3674 3 is_stmt 1 view .LVU1204 3680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4115 .loc 1 3680 3 view .LVU1205 3680:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4116 .loc 1 3680 28 is_stmt 0 view .LVU1206 4117 0002 0368 ldr r3, [r0] 4118 .LVL311: 4119 .LBB384: 4120 .LBI384: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { ARM GAS /tmp/ccIEHjf0.s page 322 4121 .loc 2 6941 26 is_stmt 1 view .LVU1207 4122 .LBB385: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4123 .loc 2 6943 3 view .LVU1208 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4124 .loc 2 6943 12 is_stmt 0 view .LVU1209 4125 0004 9A68 ldr r2, [r3, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4126 .loc 2 6943 68 view .LVU1210 4127 0006 12F0010F tst r2, #1 4128 000a 4DD1 bne .L304 4129 000c 0446 mov r4, r0 4130 .LVL312: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4131 .loc 2 6943 68 view .LVU1211 4132 .LBE385: 4133 .LBE384: 4134 .LBB386: 3683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4135 .loc 1 3683 5 is_stmt 1 view .LVU1212 3683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4136 .loc 1 3683 24 is_stmt 0 view .LVU1213 4137 000e 9968 ldr r1, [r3, #8] 3683:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4138 .loc 1 3683 8 view .LVU1214 4139 0010 264A ldr r2, .L309 4140 0012 1142 tst r1, r2 4141 0014 09D0 beq .L298 3686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4142 .loc 1 3686 7 is_stmt 1 view .LVU1215 4143 0016 436D ldr r3, [r0, #84] 4144 0018 43F01003 orr r3, r3, #16 4145 001c 4365 str r3, [r0, #84] 3689:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4146 .loc 1 3689 7 view .LVU1216 4147 001e 836D ldr r3, [r0, #88] 4148 0020 43F00103 orr r3, r3, #1 4149 0024 8365 str r3, [r0, #88] 3691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4150 .loc 1 3691 7 view .LVU1217 3691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4151 .loc 1 3691 14 is_stmt 0 view .LVU1218 4152 0026 0120 movs r0, #1 4153 .LVL313: 3691:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4154 .loc 1 3691 14 view .LVU1219 4155 0028 3FE0 b .L297 4156 .LVL314: 4157 .L298: 3695:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4158 .loc 1 3695 5 is_stmt 1 view .LVU1220 4159 .LBB387: 4160 .LBI387: 6902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4161 .loc 2 6902 22 view .LVU1221 4162 .LBB388: 6907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, ARM GAS /tmp/ccIEHjf0.s page 323 4163 .loc 2 6907 3 view .LVU1222 4164 002a 9968 ldr r1, [r3, #8] 4165 002c 204A ldr r2, .L309+4 4166 002e 0A40 ands r2, r2, r1 4167 0030 42F00102 orr r2, r2, #1 4168 0034 9A60 str r2, [r3, #8] 4169 .LVL315: 6907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4170 .loc 2 6907 3 is_stmt 0 view .LVU1223 4171 .LBE388: 4172 .LBE387: 3698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4173 .loc 1 3698 5 is_stmt 1 view .LVU1224 3698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4174 .loc 1 3698 17 is_stmt 0 view .LVU1225 4175 0036 FFF7FEFF bl HAL_GetTick 4176 .LVL316: 3698:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4177 .loc 1 3698 17 view .LVU1226 4178 003a 0546 mov r5, r0 4179 .LVL317: 3702:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 4180 .loc 1 3702 5 is_stmt 1 view .LVU1227 4181 .LBB389: 4182 .LBI389: 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4183 .loc 2 6601 26 view .LVU1228 4184 .LBB390: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4185 .loc 2 6603 3 view .LVU1229 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4186 .loc 2 6603 21 is_stmt 0 view .LVU1230 4187 003c 1D4B ldr r3, .L309+8 4188 003e 9B68 ldr r3, [r3, #8] 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4189 .loc 2 6603 10 view .LVU1231 4190 0040 03F01F03 and r3, r3, #31 4191 .LVL318: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4192 .loc 2 6603 10 view .LVU1232 4193 .LBE390: 4194 .LBE389: 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4195 .loc 1 3703 5 is_stmt 1 view .LVU1233 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4196 .loc 1 3703 10 is_stmt 0 view .LVU1234 4197 0044 2268 ldr r2, [r4] 4198 0046 1C49 ldr r1, .L309+12 4199 0048 8A42 cmp r2, r1 4200 004a 05D0 beq .L307 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4201 .loc 1 3703 10 discriminator 1 view .LVU1235 4202 004c 1146 mov r1, r2 4203 .L299: 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4204 .loc 1 3703 8 discriminator 4 view .LVU1236 4205 004e 8A42 cmp r2, r1 ARM GAS /tmp/ccIEHjf0.s page 324 4206 0050 05D0 beq .L302 3704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 4207 .loc 1 3704 9 view .LVU1237 4208 0052 23B1 cbz r3, .L302 4209 .LBE386: 3741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4210 .loc 1 3741 10 view .LVU1238 4211 0054 0020 movs r0, #0 4212 .LVL319: 3741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4213 .loc 1 3741 10 view .LVU1239 4214 0056 28E0 b .L297 4215 .LVL320: 4216 .L307: 4217 .LBB395: 3703:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4218 .loc 1 3703 10 discriminator 2 view .LVU1240 4219 0058 A1F58071 sub r1, r1, #256 4220 005c F7E7 b .L299 4221 .LVL321: 4222 .L302: 3707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4223 .loc 1 3707 53 is_stmt 1 view .LVU1241 3707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4224 .loc 1 3707 14 is_stmt 0 view .LVU1242 4225 005e 2368 ldr r3, [r4] 4226 0060 1A68 ldr r2, [r3] 3707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4227 .loc 1 3707 53 view .LVU1243 4228 0062 12F0010F tst r2, #1 4229 0066 1DD1 bne .L308 3717:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4230 .loc 1 3717 9 is_stmt 1 view .LVU1244 4231 .LVL322: 4232 .LBB391: 4233 .LBI391: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4234 .loc 2 6941 26 view .LVU1245 4235 .LBB392: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4236 .loc 2 6943 3 view .LVU1246 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4237 .loc 2 6943 12 is_stmt 0 view .LVU1247 4238 0068 9A68 ldr r2, [r3, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4239 .loc 2 6943 68 view .LVU1248 4240 006a 12F0010F tst r2, #1 4241 006e 05D1 bne .L301 4242 .LVL323: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4243 .loc 2 6943 68 view .LVU1249 4244 .LBE392: 4245 .LBE391: 3719:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4246 .loc 1 3719 11 is_stmt 1 view .LVU1250 4247 .LBB393: 4248 .LBI393: ARM GAS /tmp/ccIEHjf0.s page 325 6902:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4249 .loc 2 6902 22 view .LVU1251 4250 .LBB394: 6907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4251 .loc 2 6907 3 view .LVU1252 4252 0070 9968 ldr r1, [r3, #8] 4253 0072 0F4A ldr r2, .L309+4 4254 0074 0A40 ands r2, r2, r1 4255 0076 42F00102 orr r2, r2, #1 4256 007a 9A60 str r2, [r3, #8] 4257 .LVL324: 4258 .L301: 6907:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4259 .loc 2 6907 3 is_stmt 0 view .LVU1253 4260 .LBE394: 4261 .LBE393: 3722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4262 .loc 1 3722 9 is_stmt 1 view .LVU1254 3722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4263 .loc 1 3722 14 is_stmt 0 view .LVU1255 4264 007c FFF7FEFF bl HAL_GetTick 4265 .LVL325: 3722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4266 .loc 1 3722 28 discriminator 1 view .LVU1256 4267 0080 401B subs r0, r0, r5 3722:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4268 .loc 1 3722 12 discriminator 1 view .LVU1257 4269 0082 0228 cmp r0, #2 4270 0084 EBD9 bls .L302 3725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4271 .loc 1 3725 11 is_stmt 1 view .LVU1258 3725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4272 .loc 1 3725 15 is_stmt 0 view .LVU1259 4273 0086 2368 ldr r3, [r4] 4274 0088 1B68 ldr r3, [r3] 3725:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4275 .loc 1 3725 14 view .LVU1260 4276 008a 13F0010F tst r3, #1 4277 008e E6D1 bne .L302 3728:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4278 .loc 1 3728 13 is_stmt 1 view .LVU1261 4279 0090 636D ldr r3, [r4, #84] 4280 0092 43F01003 orr r3, r3, #16 4281 0096 6365 str r3, [r4, #84] 3731:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4282 .loc 1 3731 13 view .LVU1262 4283 0098 A36D ldr r3, [r4, #88] 4284 009a 43F00103 orr r3, r3, #1 4285 009e A365 str r3, [r4, #88] 3733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4286 .loc 1 3733 13 view .LVU1263 3733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4287 .loc 1 3733 20 is_stmt 0 view .LVU1264 4288 00a0 0120 movs r0, #1 4289 00a2 02E0 b .L297 4290 .L308: 3733:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 326 4291 .loc 1 3733 20 view .LVU1265 4292 .LBE395: 3741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4293 .loc 1 3741 10 view .LVU1266 4294 00a4 0020 movs r0, #0 4295 .LBB396: 4296 00a6 00E0 b .L297 4297 .LVL326: 4298 .L304: 3741:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4299 .loc 1 3741 10 view .LVU1267 4300 .LBE396: 4301 00a8 0020 movs r0, #0 4302 .LVL327: 4303 .L297: 3742:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4304 .loc 1 3742 1 view .LVU1268 4305 00aa 38BD pop {r3, r4, r5, pc} 4306 .L310: 4307 .align 2 4308 .L309: 4309 00ac 3F000080 .word -2147483585 4310 00b0 C0FFFF7F .word 2147483584 4311 00b4 00230240 .word 1073881856 4312 00b8 00210240 .word 1073881344 4313 .cfi_endproc 4314 .LFE358: 4316 .section .text.HAL_ADC_Start,"ax",%progbits 4317 .align 1 4318 .global HAL_ADC_Start 4319 .syntax unified 4320 .thumb 4321 .thumb_func 4323 HAL_ADC_Start: 4324 .LVL328: 4325 .LFB339: 1398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4326 .loc 1 1398 1 is_stmt 1 view -0 4327 .cfi_startproc 4328 @ args = 0, pretend = 0, frame = 0 4329 @ frame_needed = 0, uses_anonymous_args = 0 1398:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4330 .loc 1 1398 1 is_stmt 0 view .LVU1270 4331 0000 38B5 push {r3, r4, r5, lr} 4332 .cfi_def_cfa_offset 16 4333 .cfi_offset 3, -16 4334 .cfi_offset 4, -12 4335 .cfi_offset 5, -8 4336 .cfi_offset 14, -4 1399:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 4337 .loc 1 1399 3 is_stmt 1 view .LVU1271 1400:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 4338 .loc 1 1400 3 view .LVU1272 1401:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4339 .loc 1 1401 3 view .LVU1273 4340 .LVL329: 4341 .LBB397: ARM GAS /tmp/ccIEHjf0.s page 327 4342 .LBI397: 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4343 .loc 2 6601 26 view .LVU1274 4344 .LBB398: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4345 .loc 2 6603 3 view .LVU1275 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4346 .loc 2 6603 21 is_stmt 0 view .LVU1276 4347 0002 3A4B ldr r3, .L330 4348 0004 9D68 ldr r5, [r3, #8] 4349 .LVL330: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4350 .loc 2 6603 21 view .LVU1277 4351 .LBE398: 4352 .LBE397: 1404:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4353 .loc 1 1404 3 is_stmt 1 view .LVU1278 1407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4354 .loc 1 1407 3 view .LVU1279 1407:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4355 .loc 1 1407 42 is_stmt 0 view .LVU1280 4356 0006 0368 ldr r3, [r0] 4357 .LVL331: 4358 .LBB399: 4359 .LBI399: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4360 .loc 2 7073 26 is_stmt 1 view .LVU1281 4361 .LBB400: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4362 .loc 2 7075 3 view .LVU1282 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4363 .loc 2 7075 12 is_stmt 0 view .LVU1283 4364 0008 9B68 ldr r3, [r3, #8] 4365 .LVL332: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4366 .loc 2 7075 74 view .LVU1284 4367 000a 13F0040F tst r3, #4 4368 000e 69D1 bne .L323 4369 0010 0446 mov r4, r0 4370 0012 05F01F05 and r5, r5, #31 4371 .LVL333: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4372 .loc 2 7075 74 view .LVU1285 4373 .LBE400: 4374 .LBE399: 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4375 .loc 1 1410 5 is_stmt 1 view .LVU1286 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4376 .loc 1 1410 5 view .LVU1287 4377 0016 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 4378 001a 012B cmp r3, #1 4379 001c 64D0 beq .L324 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4380 .loc 1 1410 5 discriminator 2 view .LVU1288 4381 001e 0123 movs r3, #1 4382 0020 80F85030 strb r3, [r0, #80] 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 328 4383 .loc 1 1410 5 view .LVU1289 1413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4384 .loc 1 1413 5 view .LVU1290 1413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4385 .loc 1 1413 22 is_stmt 0 view .LVU1291 4386 0024 FFF7FEFF bl ADC_Enable 4387 .LVL334: 1416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4388 .loc 1 1416 5 is_stmt 1 view .LVU1292 1416:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4389 .loc 1 1416 8 is_stmt 0 view .LVU1293 4390 0028 0028 cmp r0, #0 4391 002a 57D1 bne .L313 1421:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 4392 .loc 1 1421 7 is_stmt 1 view .LVU1294 4393 002c 626D ldr r2, [r4, #84] 4394 002e A0F60273 subw r3, r0, #3842 4395 0032 1340 ands r3, r3, r2 4396 0034 43F48073 orr r3, r3, #256 4397 0038 6365 str r3, [r4, #84] 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4398 .loc 1 1428 7 view .LVU1295 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4399 .loc 1 1428 12 is_stmt 0 view .LVU1296 4400 003a 2368 ldr r3, [r4] 4401 003c 2C4A ldr r2, .L330+4 4402 003e 9342 cmp r3, r2 4403 0040 34D0 beq .L328 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4404 .loc 1 1428 12 discriminator 1 view .LVU1297 4405 0042 1A46 mov r2, r3 4406 .L314: 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4407 .loc 1 1428 10 discriminator 4 view .LVU1298 4408 0044 9342 cmp r3, r2 4409 0046 00D0 beq .L315 1429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 4410 .loc 1 1429 11 view .LVU1299 4411 0048 1DB9 cbnz r5, .L316 4412 .L315: 1432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4413 .loc 1 1432 9 is_stmt 1 view .LVU1300 4414 004a 626D ldr r2, [r4, #84] 4415 004c 22F48012 bic r2, r2, #1048576 4416 0050 6265 str r2, [r4, #84] 4417 .L316: 1437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4418 .loc 1 1437 7 view .LVU1301 1437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4419 .loc 1 1437 11 is_stmt 0 view .LVU1302 4420 0052 626D ldr r2, [r4, #84] 1437:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4421 .loc 1 1437 10 view .LVU1303 4422 0054 12F4805F tst r2, #4096 4423 0058 2BD0 beq .L317 1440:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4424 .loc 1 1440 9 is_stmt 1 view .LVU1304 ARM GAS /tmp/ccIEHjf0.s page 329 4425 005a A26D ldr r2, [r4, #88] 4426 005c 22F00602 bic r2, r2, #6 4427 0060 A265 str r2, [r4, #88] 4428 .L318: 1450:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4429 .loc 1 1450 7 view .LVU1305 4430 0062 1C22 movs r2, #28 4431 0064 1A60 str r2, [r3] 1455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4432 .loc 1 1455 7 view .LVU1306 1455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4433 .loc 1 1455 7 view .LVU1307 4434 0066 0023 movs r3, #0 4435 0068 84F85030 strb r3, [r4, #80] 1455:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4436 .loc 1 1455 7 view .LVU1308 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4437 .loc 1 1465 7 view .LVU1309 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4438 .loc 1 1465 12 is_stmt 0 view .LVU1310 4439 006c 2368 ldr r3, [r4] 4440 006e 204A ldr r2, .L330+4 4441 0070 9342 cmp r3, r2 4442 0072 21D0 beq .L329 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4443 .loc 1 1465 12 discriminator 1 view .LVU1311 4444 0074 1A46 mov r2, r3 4445 .L319: 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4446 .loc 1 1465 10 discriminator 4 view .LVU1312 4447 0076 9342 cmp r3, r2 4448 0078 07D0 beq .L320 4449 007a 092D cmp r5, #9 4450 007c 1FD8 bhi .L321 4451 007e 40F22121 movw r1, #545 4452 0082 E940 lsrs r1, r1, r5 4453 0084 11F0010F tst r1, #1 4454 0088 19D0 beq .L321 4455 .L320: 1472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4456 .loc 1 1472 9 is_stmt 1 view .LVU1313 1472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4457 .loc 1 1472 13 is_stmt 0 view .LVU1314 4458 008a DA68 ldr r2, [r3, #12] 1472:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4459 .loc 1 1472 12 view .LVU1315 4460 008c 12F0007F tst r2, #33554432 4461 0090 05D0 beq .L322 1474:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4462 .loc 1 1474 11 is_stmt 1 view .LVU1316 4463 0092 626D ldr r2, [r4, #84] 4464 0094 22F44052 bic r2, r2, #12288 4465 0098 42F48052 orr r2, r2, #4096 4466 009c 6265 str r2, [r4, #84] 4467 .L322: 1478:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4468 .loc 1 1478 9 view .LVU1317 ARM GAS /tmp/ccIEHjf0.s page 330 4469 .LVL335: 4470 .LBB401: 4471 .LBI401: 7037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4472 .loc 2 7037 22 view .LVU1318 4473 .LBB402: 7042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4474 .loc 2 7042 3 view .LVU1319 4475 009e 9968 ldr r1, [r3, #8] 4476 00a0 144A ldr r2, .L330+8 4477 00a2 0A40 ands r2, r2, r1 4478 00a4 42F00402 orr r2, r2, #4 4479 00a8 9A60 str r2, [r3, #8] 4480 .LVL336: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4481 .loc 2 7045 1 is_stmt 0 view .LVU1320 4482 00aa 1CE0 b .L312 4483 .L328: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4484 .loc 2 7045 1 view .LVU1321 4485 .LBE402: 4486 .LBE401: 1428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4487 .loc 1 1428 12 discriminator 2 view .LVU1322 4488 00ac A2F58072 sub r2, r2, #256 4489 00b0 C8E7 b .L314 4490 .L317: 1445:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4491 .loc 1 1445 9 is_stmt 1 view .LVU1323 4492 00b2 0022 movs r2, #0 4493 00b4 A265 str r2, [r4, #88] 4494 00b6 D4E7 b .L318 4495 .L329: 1465:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4496 .loc 1 1465 12 is_stmt 0 discriminator 2 view .LVU1324 4497 00b8 A2F58072 sub r2, r2, #256 4498 00bc DBE7 b .L319 4499 .L321: 1483:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 4500 .loc 1 1483 9 is_stmt 1 view .LVU1325 4501 00be 636D ldr r3, [r4, #84] 4502 00c0 43F48013 orr r3, r3, #1048576 4503 00c4 6365 str r3, [r4, #84] 1486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 4504 .loc 1 1486 9 view .LVU1326 4505 .LVL337: 1487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4506 .loc 1 1487 9 view .LVU1327 1487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4507 .loc 1 1487 13 is_stmt 0 view .LVU1328 4508 00c6 D368 ldr r3, [r2, #12] 1487:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4509 .loc 1 1487 12 view .LVU1329 4510 00c8 13F0007F tst r3, #33554432 4511 00cc 0BD0 beq .L312 1489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4512 .loc 1 1489 11 is_stmt 1 view .LVU1330 ARM GAS /tmp/ccIEHjf0.s page 331 4513 00ce 636D ldr r3, [r4, #84] 4514 00d0 23F44053 bic r3, r3, #12288 4515 00d4 43F48053 orr r3, r3, #4096 4516 00d8 6365 str r3, [r4, #84] 4517 00da 04E0 b .L312 4518 .LVL338: 4519 .L313: 1497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4520 .loc 1 1497 7 view .LVU1331 1497:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4521 .loc 1 1497 7 view .LVU1332 4522 00dc 0023 movs r3, #0 4523 00de 84F85030 strb r3, [r4, #80] 4524 00e2 00E0 b .L312 4525 .LVL339: 4526 .L323: 1502:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4527 .loc 1 1502 20 is_stmt 0 view .LVU1333 4528 00e4 0220 movs r0, #2 4529 .LVL340: 4530 .L312: 1507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4531 .loc 1 1507 1 view .LVU1334 4532 00e6 38BD pop {r3, r4, r5, pc} 4533 .LVL341: 4534 .L324: 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4535 .loc 1 1410 5 discriminator 1 view .LVU1335 4536 00e8 0220 movs r0, #2 4537 .LVL342: 1410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4538 .loc 1 1410 5 discriminator 1 view .LVU1336 4539 00ea FCE7 b .L312 4540 .L331: 4541 .align 2 4542 .L330: 4543 00ec 00230240 .word 1073881856 4544 00f0 00210240 .word 1073881344 4545 00f4 C0FFFF7F .word 2147483584 4546 .cfi_endproc 4547 .LFE339: 4549 .section .text.HAL_ADC_Start_IT,"ax",%progbits 4550 .align 1 4551 .global HAL_ADC_Start_IT 4552 .syntax unified 4553 .thumb 4554 .thumb_func 4556 HAL_ADC_Start_IT: 4557 .LVL343: 4558 .LFB343: 1885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4559 .loc 1 1885 1 is_stmt 1 view -0 4560 .cfi_startproc 4561 @ args = 0, pretend = 0, frame = 0 4562 @ frame_needed = 0, uses_anonymous_args = 0 1885:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4563 .loc 1 1885 1 is_stmt 0 view .LVU1338 ARM GAS /tmp/ccIEHjf0.s page 332 4564 0000 38B5 push {r3, r4, r5, lr} 4565 .cfi_def_cfa_offset 16 4566 .cfi_offset 3, -16 4567 .cfi_offset 4, -12 4568 .cfi_offset 5, -8 4569 .cfi_offset 14, -4 1886:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 4570 .loc 1 1886 3 is_stmt 1 view .LVU1339 1887:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 4571 .loc 1 1887 3 view .LVU1340 1888:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4572 .loc 1 1888 3 view .LVU1341 4573 .LVL344: 4574 .LBB403: 4575 .LBI403: 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4576 .loc 2 6601 26 view .LVU1342 4577 .LBB404: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4578 .loc 2 6603 3 view .LVU1343 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4579 .loc 2 6603 21 is_stmt 0 view .LVU1344 4580 0002 5F4B ldr r3, .L359 4581 0004 9D68 ldr r5, [r3, #8] 4582 .LVL345: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4583 .loc 2 6603 21 view .LVU1345 4584 .LBE404: 4585 .LBE403: 1891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4586 .loc 1 1891 3 is_stmt 1 view .LVU1346 1894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4587 .loc 1 1894 3 view .LVU1347 1894:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4588 .loc 1 1894 42 is_stmt 0 view .LVU1348 4589 0006 0368 ldr r3, [r0] 4590 .LVL346: 4591 .LBB405: 4592 .LBI405: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4593 .loc 2 7073 26 is_stmt 1 view .LVU1349 4594 .LBB406: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4595 .loc 2 7075 3 view .LVU1350 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4596 .loc 2 7075 12 is_stmt 0 view .LVU1351 4597 0008 9B68 ldr r3, [r3, #8] 4598 .LVL347: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4599 .loc 2 7075 74 view .LVU1352 4600 000a 13F0040F tst r3, #4 4601 000e 40F0B380 bne .L349 4602 0012 0446 mov r4, r0 4603 0014 05F01F05 and r5, r5, #31 4604 .LVL348: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4605 .loc 2 7075 74 view .LVU1353 ARM GAS /tmp/ccIEHjf0.s page 333 4606 .LBE406: 4607 .LBE405: 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4608 .loc 1 1897 5 is_stmt 1 view .LVU1354 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4609 .loc 1 1897 5 view .LVU1355 4610 0018 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 4611 001c 012B cmp r3, #1 4612 001e 00F0AD80 beq .L350 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4613 .loc 1 1897 5 discriminator 2 view .LVU1356 4614 0022 0123 movs r3, #1 4615 0024 80F85030 strb r3, [r0, #80] 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4616 .loc 1 1897 5 view .LVU1357 1900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4617 .loc 1 1900 5 view .LVU1358 1900:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4618 .loc 1 1900 22 is_stmt 0 view .LVU1359 4619 0028 FFF7FEFF bl ADC_Enable 4620 .LVL349: 1903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4621 .loc 1 1903 5 is_stmt 1 view .LVU1360 1903:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4622 .loc 1 1903 8 is_stmt 0 view .LVU1361 4623 002c 0028 cmp r0, #0 4624 002e 40F09F80 bne .L334 1908:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 4625 .loc 1 1908 7 is_stmt 1 view .LVU1362 4626 0032 626D ldr r2, [r4, #84] 4627 0034 A0F60273 subw r3, r0, #3842 4628 0038 1340 ands r3, r3, r2 4629 003a 43F48073 orr r3, r3, #256 4630 003e 6365 str r3, [r4, #84] 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4631 .loc 1 1915 7 view .LVU1363 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4632 .loc 1 1915 12 is_stmt 0 view .LVU1364 4633 0040 2368 ldr r3, [r4] 4634 0042 504A ldr r2, .L359+4 4635 0044 9342 cmp r3, r2 4636 0046 55D0 beq .L354 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4637 .loc 1 1915 12 discriminator 1 view .LVU1365 4638 0048 1A46 mov r2, r3 4639 .L335: 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4640 .loc 1 1915 10 discriminator 4 view .LVU1366 4641 004a 9342 cmp r3, r2 4642 004c 00D0 beq .L336 1916:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 4643 .loc 1 1916 11 view .LVU1367 4644 004e 1DB9 cbnz r5, .L337 4645 .L336: 1919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4646 .loc 1 1919 9 is_stmt 1 view .LVU1368 4647 0050 626D ldr r2, [r4, #84] ARM GAS /tmp/ccIEHjf0.s page 334 4648 0052 22F48012 bic r2, r2, #1048576 4649 0056 6265 str r2, [r4, #84] 4650 .L337: 1924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4651 .loc 1 1924 7 view .LVU1369 1924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4652 .loc 1 1924 16 is_stmt 0 view .LVU1370 4653 0058 626D ldr r2, [r4, #84] 1924:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4654 .loc 1 1924 10 view .LVU1371 4655 005a 12F4805F tst r2, #4096 4656 005e 4CD0 beq .L338 1927:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4657 .loc 1 1927 9 is_stmt 1 view .LVU1372 4658 0060 A26D ldr r2, [r4, #88] 4659 0062 22F00602 bic r2, r2, #6 4660 0066 A265 str r2, [r4, #88] 4661 .L339: 1937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4662 .loc 1 1937 7 view .LVU1373 4663 0068 1C22 movs r2, #28 4664 006a 1A60 str r2, [r3] 1942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4665 .loc 1 1942 7 view .LVU1374 1942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4666 .loc 1 1942 7 view .LVU1375 4667 006c 0023 movs r3, #0 4668 006e 84F85030 strb r3, [r4, #80] 1942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4669 .loc 1 1942 7 view .LVU1376 1945:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4670 .loc 1 1945 7 view .LVU1377 4671 0072 2268 ldr r2, [r4] 4672 0074 5368 ldr r3, [r2, #4] 4673 0076 23F01C03 bic r3, r3, #28 4674 007a 5360 str r3, [r2, #4] 1948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4675 .loc 1 1948 7 view .LVU1378 1948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4676 .loc 1 1948 25 is_stmt 0 view .LVU1379 4677 007c 2369 ldr r3, [r4, #16] 1948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4678 .loc 1 1948 7 view .LVU1380 4679 007e 082B cmp r3, #8 4680 0080 3ED0 beq .L355 1955:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4681 .loc 1 1955 11 is_stmt 1 view .LVU1381 4682 0082 2268 ldr r2, [r4] 4683 0084 5368 ldr r3, [r2, #4] 4684 0086 43F00403 orr r3, r3, #4 4685 008a 5360 str r3, [r2, #4] 1956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4686 .loc 1 1956 11 view .LVU1382 4687 .L341: 1963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4688 .loc 1 1963 7 view .LVU1383 1963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 335 4689 .loc 1 1963 21 is_stmt 0 view .LVU1384 4690 008c 236B ldr r3, [r4, #48] 1963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4691 .loc 1 1963 10 view .LVU1385 4692 008e 23B9 cbnz r3, .L342 1965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4693 .loc 1 1965 9 is_stmt 1 view .LVU1386 4694 0090 2268 ldr r2, [r4] 4695 0092 5368 ldr r3, [r2, #4] 4696 0094 43F01003 orr r3, r3, #16 4697 0098 5360 str r3, [r2, #4] 4698 .L342: 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4699 .loc 1 1976 7 view .LVU1387 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4700 .loc 1 1976 12 is_stmt 0 view .LVU1388 4701 009a 2368 ldr r3, [r4] 4702 009c 394A ldr r2, .L359+4 4703 009e 9342 cmp r3, r2 4704 00a0 34D0 beq .L356 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4705 .loc 1 1976 12 discriminator 1 view .LVU1389 4706 00a2 1A46 mov r2, r3 4707 .L343: 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4708 .loc 1 1976 10 discriminator 4 view .LVU1390 4709 00a4 9342 cmp r3, r2 4710 00a6 07D0 beq .L344 4711 00a8 092D cmp r5, #9 4712 00aa 3CD8 bhi .L345 4713 00ac 40F22121 movw r1, #545 4714 00b0 E940 lsrs r1, r1, r5 4715 00b2 11F0010F tst r1, #1 4716 00b6 36D0 beq .L345 4717 .L344: 1983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4718 .loc 1 1983 9 is_stmt 1 view .LVU1391 1983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4719 .loc 1 1983 13 is_stmt 0 view .LVU1392 4720 00b8 DA68 ldr r2, [r3, #12] 1983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4721 .loc 1 1983 12 view .LVU1393 4722 00ba 12F0007F tst r2, #33554432 4723 00be 11D0 beq .L346 1985:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4724 .loc 1 1985 11 is_stmt 1 view .LVU1394 4725 00c0 626D ldr r2, [r4, #84] 4726 00c2 22F44052 bic r2, r2, #12288 4727 00c6 42F48052 orr r2, r2, #4096 4728 00ca 6265 str r2, [r4, #84] 1991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4729 .loc 1 1991 11 view .LVU1395 1991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4730 .loc 1 1991 29 is_stmt 0 view .LVU1396 4731 00cc 2269 ldr r2, [r4, #16] 1991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4732 .loc 1 1991 11 view .LVU1397 ARM GAS /tmp/ccIEHjf0.s page 336 4733 00ce 082A cmp r2, #8 4734 00d0 1FD0 beq .L357 1999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 4735 .loc 1 1999 15 is_stmt 1 view .LVU1398 4736 00d2 5A68 ldr r2, [r3, #4] 4737 00d4 22F04002 bic r2, r2, #64 4738 00d8 5A60 str r2, [r3, #4] 2000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4739 .loc 1 2000 15 view .LVU1399 4740 00da 2268 ldr r2, [r4] 4741 00dc 5368 ldr r3, [r2, #4] 4742 00de 43F02003 orr r3, r3, #32 4743 00e2 5360 str r3, [r2, #4] 2001:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4744 .loc 1 2001 15 view .LVU1400 4745 .L346: 2006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4746 .loc 1 2006 9 view .LVU1401 4747 00e4 2268 ldr r2, [r4] 4748 .LVL350: 4749 .LBB407: 4750 .LBI407: 7037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4751 .loc 2 7037 22 view .LVU1402 4752 .LBB408: 7042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4753 .loc 2 7042 3 view .LVU1403 4754 00e6 9168 ldr r1, [r2, #8] 4755 00e8 274B ldr r3, .L359+8 4756 00ea 0B40 ands r3, r3, r1 4757 00ec 43F00403 orr r3, r3, #4 4758 00f0 9360 str r3, [r2, #8] 4759 .LVL351: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4760 .loc 2 7045 1 is_stmt 0 view .LVU1404 4761 00f2 42E0 b .L333 4762 .L354: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 4763 .loc 2 7045 1 view .LVU1405 4764 .LBE408: 4765 .LBE407: 1915:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4766 .loc 1 1915 12 discriminator 2 view .LVU1406 4767 00f4 A2F58072 sub r2, r2, #256 4768 00f8 A7E7 b .L335 4769 .L338: 1932:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4770 .loc 1 1932 9 is_stmt 1 view .LVU1407 4771 00fa 0022 movs r2, #0 4772 00fc A265 str r2, [r4, #88] 4773 00fe B3E7 b .L339 4774 .L355: 1951:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4775 .loc 1 1951 11 view .LVU1408 4776 0100 2268 ldr r2, [r4] 4777 0102 5368 ldr r3, [r2, #4] 4778 0104 43F00803 orr r3, r3, #8 ARM GAS /tmp/ccIEHjf0.s page 337 4779 0108 5360 str r3, [r2, #4] 1952:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 4780 .loc 1 1952 11 view .LVU1409 4781 010a BFE7 b .L341 4782 .L356: 1976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4783 .loc 1 1976 12 is_stmt 0 discriminator 2 view .LVU1410 4784 010c A2F58072 sub r2, r2, #256 4785 0110 C8E7 b .L343 4786 .L357: 1994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 4787 .loc 1 1994 15 is_stmt 1 view .LVU1411 4788 0112 5A68 ldr r2, [r3, #4] 4789 0114 22F02002 bic r2, r2, #32 4790 0118 5A60 str r2, [r3, #4] 1995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4791 .loc 1 1995 15 view .LVU1412 4792 011a 2268 ldr r2, [r4] 4793 011c 5368 ldr r3, [r2, #4] 4794 011e 43F04003 orr r3, r3, #64 4795 0122 5360 str r3, [r2, #4] 1996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 4796 .loc 1 1996 15 view .LVU1413 4797 0124 DEE7 b .L346 4798 .L345: 2011:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 4799 .loc 1 2011 9 view .LVU1414 4800 0126 616D ldr r1, [r4, #84] 4801 0128 41F48011 orr r1, r1, #1048576 4802 012c 6165 str r1, [r4, #84] 2014:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 4803 .loc 1 2014 9 view .LVU1415 4804 .LVL352: 2015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4805 .loc 1 2015 9 view .LVU1416 2015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4806 .loc 1 2015 13 is_stmt 0 view .LVU1417 4807 012e D268 ldr r2, [r2, #12] 4808 .LVL353: 2015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4809 .loc 1 2015 12 view .LVU1418 4810 0130 12F0007F tst r2, #33554432 4811 0134 21D0 beq .L333 2019:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 4812 .loc 1 2019 11 is_stmt 1 view .LVU1419 4813 0136 626D ldr r2, [r4, #84] 4814 0138 22F44052 bic r2, r2, #12288 4815 013c 42F48052 orr r2, r2, #4096 4816 0140 6265 str r2, [r4, #84] 2021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4817 .loc 1 2021 11 view .LVU1420 2021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4818 .loc 1 2021 29 is_stmt 0 view .LVU1421 4819 0142 2269 ldr r2, [r4, #16] 2021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4820 .loc 1 2021 11 view .LVU1422 4821 0144 082A cmp r2, #8 ARM GAS /tmp/ccIEHjf0.s page 338 4822 0146 09D0 beq .L358 2029:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 4823 .loc 1 2029 15 is_stmt 1 view .LVU1423 4824 0148 5A68 ldr r2, [r3, #4] 4825 014a 22F04002 bic r2, r2, #64 4826 014e 5A60 str r2, [r3, #4] 2030:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4827 .loc 1 2030 15 view .LVU1424 4828 0150 2268 ldr r2, [r4] 4829 0152 5368 ldr r3, [r2, #4] 4830 0154 43F02003 orr r3, r3, #32 4831 0158 5360 str r3, [r2, #4] 2031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4832 .loc 1 2031 15 view .LVU1425 4833 015a 0EE0 b .L333 4834 .L358: 2024:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 4835 .loc 1 2024 15 view .LVU1426 4836 015c 5A68 ldr r2, [r3, #4] 4837 015e 22F02002 bic r2, r2, #32 4838 0162 5A60 str r2, [r3, #4] 2025:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 4839 .loc 1 2025 15 view .LVU1427 4840 0164 2268 ldr r2, [r4] 4841 0166 5368 ldr r3, [r2, #4] 4842 0168 43F04003 orr r3, r3, #64 4843 016c 5360 str r3, [r2, #4] 2026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 4844 .loc 1 2026 15 view .LVU1428 4845 016e 04E0 b .L333 4846 .LVL354: 4847 .L334: 2039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4848 .loc 1 2039 7 view .LVU1429 2039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4849 .loc 1 2039 7 view .LVU1430 4850 0170 0023 movs r3, #0 4851 0172 84F85030 strb r3, [r4, #80] 4852 0176 00E0 b .L333 4853 .LVL355: 4854 .L349: 2045:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4855 .loc 1 2045 20 is_stmt 0 view .LVU1431 4856 0178 0220 movs r0, #2 4857 .LVL356: 4858 .L333: 2050:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4859 .loc 1 2050 1 view .LVU1432 4860 017a 38BD pop {r3, r4, r5, pc} 4861 .LVL357: 4862 .L350: 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4863 .loc 1 1897 5 discriminator 1 view .LVU1433 4864 017c 0220 movs r0, #2 4865 .LVL358: 1897:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4866 .loc 1 1897 5 discriminator 1 view .LVU1434 ARM GAS /tmp/ccIEHjf0.s page 339 4867 017e FCE7 b .L333 4868 .L360: 4869 .align 2 4870 .L359: 4871 0180 00230240 .word 1073881856 4872 0184 00210240 .word 1073881344 4873 0188 C0FFFF7F .word 2147483584 4874 .cfi_endproc 4875 .LFE343: 4877 .section .text.HAL_ADC_Start_DMA,"ax",%progbits 4878 .align 1 4879 .global HAL_ADC_Start_DMA 4880 .syntax unified 4881 .thumb 4882 .thumb_func 4884 HAL_ADC_Start_DMA: 4885 .LVL359: 4886 .LFB345: 2113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4887 .loc 1 2113 1 is_stmt 1 view -0 4888 .cfi_startproc 4889 @ args = 0, pretend = 0, frame = 0 4890 @ frame_needed = 0, uses_anonymous_args = 0 2113:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 4891 .loc 1 2113 1 is_stmt 0 view .LVU1436 4892 0000 F8B5 push {r3, r4, r5, r6, r7, lr} 4893 .cfi_def_cfa_offset 24 4894 .cfi_offset 3, -24 4895 .cfi_offset 4, -20 4896 .cfi_offset 5, -16 4897 .cfi_offset 6, -12 4898 .cfi_offset 7, -8 4899 .cfi_offset 14, -4 4900 0002 0446 mov r4, r0 2114:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 4901 .loc 1 2114 3 is_stmt 1 view .LVU1437 2115:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4902 .loc 1 2115 3 view .LVU1438 4903 .LVL360: 4904 .LBB409: 4905 .LBI409: 6601:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4906 .loc 2 6601 26 view .LVU1439 4907 .LBB410: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4908 .loc 2 6603 3 view .LVU1440 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4909 .loc 2 6603 21 is_stmt 0 view .LVU1441 4910 0004 3B4B ldr r3, .L376 4911 0006 9D68 ldr r5, [r3, #8] 4912 .LVL361: 6603:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4913 .loc 2 6603 21 view .LVU1442 4914 .LBE410: 4915 .LBE409: 2118:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4916 .loc 1 2118 3 is_stmt 1 view .LVU1443 ARM GAS /tmp/ccIEHjf0.s page 340 2121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4917 .loc 1 2121 3 view .LVU1444 2121:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4918 .loc 1 2121 42 is_stmt 0 view .LVU1445 4919 0008 0068 ldr r0, [r0] 4920 .LVL362: 4921 .LBB411: 4922 .LBI411: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 4923 .loc 2 7073 26 is_stmt 1 view .LVU1446 4924 .LBB412: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4925 .loc 2 7075 3 view .LVU1447 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4926 .loc 2 7075 12 is_stmt 0 view .LVU1448 4927 000a 8068 ldr r0, [r0, #8] 4928 .LVL363: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4929 .loc 2 7075 74 view .LVU1449 4930 000c 10F0040F tst r0, #4 4931 0010 6BD1 bne .L370 4932 0012 0E46 mov r6, r1 4933 0014 1746 mov r7, r2 4934 0016 05F01F05 and r5, r5, #31 4935 .LVL364: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 4936 .loc 2 7075 74 view .LVU1450 4937 .LBE412: 4938 .LBE411: 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4939 .loc 1 2124 5 is_stmt 1 view .LVU1451 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4940 .loc 1 2124 5 view .LVU1452 4941 001a 94F85030 ldrb r3, [r4, #80] @ zero_extendqisi2 4942 001e 012B cmp r3, #1 4943 0020 65D0 beq .L371 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4944 .loc 1 2124 5 discriminator 2 view .LVU1453 4945 0022 0123 movs r3, #1 4946 0024 84F85030 strb r3, [r4, #80] 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4947 .loc 1 2124 5 view .LVU1454 2128:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 4948 .loc 1 2128 5 view .LVU1455 4949 0028 092D cmp r5, #9 4950 002a 05D8 bhi .L363 4951 002c 40F22123 movw r3, #545 4952 0030 EB40 lsrs r3, r3, r5 4953 0032 13F0010F tst r3, #1 4954 0036 04D1 bne .L374 4955 .L363: 2232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 4956 .loc 1 2232 7 view .LVU1456 4957 .LVL365: 2234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4958 .loc 1 2234 7 view .LVU1457 2234:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 341 4959 .loc 1 2234 7 view .LVU1458 4960 0038 0023 movs r3, #0 4961 003a 84F85030 strb r3, [r4, #80] 2232:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Process unlocked */ 4962 .loc 1 2232 22 is_stmt 0 view .LVU1459 4963 003e 0120 movs r0, #1 4964 0040 54E0 b .L362 4965 .LVL366: 4966 .L374: 2134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4967 .loc 1 2134 7 is_stmt 1 view .LVU1460 2134:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4968 .loc 1 2134 24 is_stmt 0 view .LVU1461 4969 0042 2046 mov r0, r4 4970 0044 FFF7FEFF bl ADC_Enable 4971 .LVL367: 2137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4972 .loc 1 2137 7 is_stmt 1 view .LVU1462 2137:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4973 .loc 1 2137 10 is_stmt 0 view .LVU1463 4974 0048 0028 cmp r0, #0 4975 004a 4AD1 bne .L364 2142:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 4976 .loc 1 2142 9 is_stmt 1 view .LVU1464 4977 004c 626D ldr r2, [r4, #84] 4978 004e A0F60273 subw r3, r0, #3842 4979 0052 1340 ands r3, r3, r2 4980 0054 43F48073 orr r3, r3, #256 4981 0058 6365 str r3, [r4, #84] 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4982 .loc 1 2149 9 view .LVU1465 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4983 .loc 1 2149 14 is_stmt 0 view .LVU1466 4984 005a 2368 ldr r3, [r4] 4985 005c 264A ldr r2, .L376+4 4986 005e 9342 cmp r3, r2 4987 0060 39D0 beq .L375 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4988 .loc 1 2149 14 discriminator 1 view .LVU1467 4989 0062 1A46 mov r2, r3 4990 .L365: 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 4991 .loc 1 2149 12 discriminator 4 view .LVU1468 4992 0064 9342 cmp r3, r2 4993 0066 00D0 beq .L366 2150:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 4994 .loc 1 2150 13 view .LVU1469 4995 0068 1DB9 cbnz r5, .L367 4996 .L366: 2153:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4997 .loc 1 2153 11 is_stmt 1 view .LVU1470 4998 006a 636D ldr r3, [r4, #84] 4999 006c 23F48013 bic r3, r3, #1048576 5000 0070 6365 str r3, [r4, #84] 5001 .L367: 2157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5002 .loc 1 2157 9 view .LVU1471 ARM GAS /tmp/ccIEHjf0.s page 342 2157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5003 .loc 1 2157 18 is_stmt 0 view .LVU1472 5004 0072 636D ldr r3, [r4, #84] 2157:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5005 .loc 1 2157 12 view .LVU1473 5006 0074 13F4805F tst r3, #4096 5007 0078 30D0 beq .L368 2160:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5008 .loc 1 2160 11 is_stmt 1 view .LVU1474 5009 007a A36D ldr r3, [r4, #88] 5010 007c 23F00603 bic r3, r3, #6 5011 0080 A365 str r3, [r4, #88] 5012 .L369: 2169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5013 .loc 1 2169 9 view .LVU1475 2169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5014 .loc 1 2169 13 is_stmt 0 view .LVU1476 5015 0082 E36C ldr r3, [r4, #76] 2169:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5016 .loc 1 2169 44 view .LVU1477 5017 0084 1D4A ldr r2, .L376+8 5018 0086 DA63 str r2, [r3, #60] 2172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5019 .loc 1 2172 9 is_stmt 1 view .LVU1478 2172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5020 .loc 1 2172 13 is_stmt 0 view .LVU1479 5021 0088 E36C ldr r3, [r4, #76] 2172:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5022 .loc 1 2172 48 view .LVU1480 5023 008a 1D4A ldr r2, .L376+12 5024 008c 1A64 str r2, [r3, #64] 2175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5025 .loc 1 2175 9 is_stmt 1 view .LVU1481 2175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5026 .loc 1 2175 13 is_stmt 0 view .LVU1482 5027 008e E36C ldr r3, [r4, #76] 2175:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5028 .loc 1 2175 45 view .LVU1483 5029 0090 1C4A ldr r2, .L376+16 5030 0092 DA64 str r2, [r3, #76] 2184:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5031 .loc 1 2184 9 is_stmt 1 view .LVU1484 5032 0094 2368 ldr r3, [r4] 5033 0096 1C22 movs r2, #28 5034 0098 1A60 str r2, [r3] 2189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5035 .loc 1 2189 9 view .LVU1485 2189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5036 .loc 1 2189 9 view .LVU1486 5037 009a 0023 movs r3, #0 5038 009c 84F85030 strb r3, [r4, #80] 2189:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5039 .loc 1 2189 9 view .LVU1487 2194:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5040 .loc 1 2194 9 view .LVU1488 5041 00a0 2268 ldr r2, [r4] 5042 00a2 5368 ldr r3, [r2, #4] ARM GAS /tmp/ccIEHjf0.s page 343 5043 00a4 43F01003 orr r3, r3, #16 5044 00a8 5360 str r3, [r2, #4] 2209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 5045 .loc 1 2209 9 view .LVU1489 5046 00aa 2168 ldr r1, [r4] 2209:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 5047 .loc 1 2209 76 is_stmt 0 view .LVU1490 5048 00ac E36A ldr r3, [r4, #44] 5049 .LVL368: 5050 .LBB413: 5051 .LBI413: 4419:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5052 .loc 2 4419 22 is_stmt 1 view .LVU1491 5053 .LBB414: 4421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5054 .loc 2 4421 3 view .LVU1492 5055 00ae CA68 ldr r2, [r1, #12] 5056 00b0 22F00302 bic r2, r2, #3 5057 00b4 1343 orrs r3, r3, r2 5058 .LVL369: 4421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5059 .loc 2 4421 3 is_stmt 0 view .LVU1493 5060 00b6 CB60 str r3, [r1, #12] 5061 .LVL370: 4421:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5062 .loc 2 4421 3 view .LVU1494 5063 .LBE414: 5064 .LBE413: 2214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5065 .loc 1 2214 9 is_stmt 1 view .LVU1495 2214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5066 .loc 1 2214 76 is_stmt 0 view .LVU1496 5067 00b8 2168 ldr r1, [r4] 2214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5068 .loc 1 2214 26 view .LVU1497 5069 00ba 3B46 mov r3, r7 5070 00bc 3246 mov r2, r6 5071 00be 4031 adds r1, r1, #64 5072 00c0 E06C ldr r0, [r4, #76] 5073 .LVL371: 2214:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5074 .loc 1 2214 26 view .LVU1498 5075 00c2 FFF7FEFF bl HAL_DMA_Start_IT 5076 .LVL372: 2221:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5077 .loc 1 2221 9 is_stmt 1 view .LVU1499 5078 00c6 2268 ldr r2, [r4] 5079 .LVL373: 5080 .LBB415: 5081 .LBI415: 7037:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5082 .loc 2 7037 22 view .LVU1500 5083 .LBB416: 7042:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5084 .loc 2 7042 3 view .LVU1501 5085 00c8 9168 ldr r1, [r2, #8] 5086 00ca 0F4B ldr r3, .L376+20 ARM GAS /tmp/ccIEHjf0.s page 344 5087 00cc 0B40 ands r3, r3, r1 5088 00ce 43F00403 orr r3, r3, #4 5089 00d2 9360 str r3, [r2, #8] 5090 .LVL374: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5091 .loc 2 7045 1 is_stmt 0 view .LVU1502 5092 00d4 0AE0 b .L362 5093 .L375: 7045:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** 5094 .loc 2 7045 1 view .LVU1503 5095 .LBE416: 5096 .LBE415: 2149:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5097 .loc 1 2149 14 discriminator 2 view .LVU1504 5098 00d6 A2F58072 sub r2, r2, #256 5099 00da C3E7 b .L365 5100 .L368: 2165:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5101 .loc 1 2165 11 is_stmt 1 view .LVU1505 5102 00dc 0023 movs r3, #0 5103 00de A365 str r3, [r4, #88] 5104 00e0 CFE7 b .L369 5105 .L364: 2226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5106 .loc 1 2226 9 view .LVU1506 2226:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5107 .loc 1 2226 9 view .LVU1507 5108 00e2 0023 movs r3, #0 5109 00e4 84F85030 strb r3, [r4, #80] 5110 00e8 00E0 b .L362 5111 .LVL375: 5112 .L370: 2239:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5113 .loc 1 2239 20 is_stmt 0 view .LVU1508 5114 00ea 0220 movs r0, #2 5115 .LVL376: 5116 .L362: 2244:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5117 .loc 1 2244 1 view .LVU1509 5118 00ec F8BD pop {r3, r4, r5, r6, r7, pc} 5119 .LVL377: 5120 .L371: 2124:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5121 .loc 1 2124 5 discriminator 1 view .LVU1510 5122 00ee 0220 movs r0, #2 5123 00f0 FCE7 b .L362 5124 .L377: 5125 00f2 00BF .align 2 5126 .L376: 5127 00f4 00230240 .word 1073881856 5128 00f8 00210240 .word 1073881344 5129 00fc 00000000 .word ADC_DMAConvCplt 5130 0100 00000000 .word ADC_DMAHalfConvCplt 5131 0104 00000000 .word ADC_DMAError 5132 0108 C0FFFF7F .word 2147483584 5133 .cfi_endproc 5134 .LFE345: ARM GAS /tmp/ccIEHjf0.s page 345 5136 .section .text.ADC_Disable,"ax",%progbits 5137 .align 1 5138 .global ADC_Disable 5139 .syntax unified 5140 .thumb 5141 .thumb_func 5143 ADC_Disable: 5144 .LVL378: 5145 .LFB359: 3752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 5146 .loc 1 3752 1 is_stmt 1 view -0 5147 .cfi_startproc 5148 @ args = 0, pretend = 0, frame = 0 5149 @ frame_needed = 0, uses_anonymous_args = 0 3752:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tickstart; 5150 .loc 1 3752 1 is_stmt 0 view .LVU1512 5151 0000 38B5 push {r3, r4, r5, lr} 5152 .cfi_def_cfa_offset 16 5153 .cfi_offset 3, -16 5154 .cfi_offset 4, -12 5155 .cfi_offset 5, -8 5156 .cfi_offset 14, -4 5157 0002 0446 mov r4, r0 3753:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 5158 .loc 1 3753 3 is_stmt 1 view .LVU1513 3754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5159 .loc 1 3754 3 view .LVU1514 3754:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5160 .loc 1 3754 76 is_stmt 0 view .LVU1515 5161 0004 0268 ldr r2, [r0] 5162 .LVL379: 5163 .LBB417: 5164 .LBI417: 6952:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5165 .loc 2 6952 26 is_stmt 1 view .LVU1516 5166 .LBB418: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5167 .loc 2 6954 3 view .LVU1517 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5168 .loc 2 6954 12 is_stmt 0 view .LVU1518 5169 0006 9368 ldr r3, [r2, #8] 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5170 .loc 2 6954 70 view .LVU1519 5171 0008 13F00203 ands r3, r3, #2 5172 000c 00D0 beq .L379 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5173 .loc 2 6954 70 discriminator 1 view .LVU1520 5174 000e 0123 movs r3, #1 5175 .L379: 5176 .LVL380: 6954:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5177 .loc 2 6954 70 discriminator 1 view .LVU1521 5178 .LBE418: 5179 .LBE417: 3759:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) 5180 .loc 1 3759 3 is_stmt 1 view .LVU1522 5181 .LBB419: ARM GAS /tmp/ccIEHjf0.s page 346 5182 .LBI419: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5183 .loc 2 6941 26 view .LVU1523 5184 .LBB420: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5185 .loc 2 6943 3 view .LVU1524 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5186 .loc 2 6943 12 is_stmt 0 view .LVU1525 5187 0010 9168 ldr r1, [r2, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5188 .loc 2 6943 68 view .LVU1526 5189 0012 11F0010F tst r1, #1 5190 0016 37D0 beq .L384 5191 .LVL381: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5192 .loc 2 6943 68 view .LVU1527 5193 .LBE420: 5194 .LBE419: 3760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 5195 .loc 1 3760 7 view .LVU1528 5196 0018 002B cmp r3, #0 5197 001a 37D1 bne .L385 3764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5198 .loc 1 3764 5 is_stmt 1 view .LVU1529 3764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5199 .loc 1 3764 24 is_stmt 0 view .LVU1530 5200 001c 9368 ldr r3, [r2, #8] 5201 .LVL382: 3764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5202 .loc 1 3764 29 view .LVU1531 5203 001e 03F00D03 and r3, r3, #13 3764:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5204 .loc 1 3764 8 view .LVU1532 5205 0022 012B cmp r3, #1 5206 0024 09D0 beq .L387 3773:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5207 .loc 1 3773 7 is_stmt 1 view .LVU1533 5208 0026 636D ldr r3, [r4, #84] 5209 0028 43F01003 orr r3, r3, #16 5210 002c 6365 str r3, [r4, #84] 3776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5211 .loc 1 3776 7 view .LVU1534 5212 002e A36D ldr r3, [r4, #88] 5213 0030 43F00103 orr r3, r3, #1 5214 0034 A365 str r3, [r4, #88] 3778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5215 .loc 1 3778 7 view .LVU1535 3778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5216 .loc 1 3778 14 is_stmt 0 view .LVU1536 5217 0036 0120 movs r0, #1 5218 .LVL383: 3778:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5219 .loc 1 3778 14 view .LVU1537 5220 0038 27E0 b .L380 5221 .LVL384: 5222 .L387: 3767:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); ARM GAS /tmp/ccIEHjf0.s page 347 5223 .loc 1 3767 7 is_stmt 1 view .LVU1538 5224 .LBB421: 5225 .LBI421: 6922:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5226 .loc 2 6922 22 view .LVU1539 5227 .LBB422: 6927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5228 .loc 2 6927 3 view .LVU1540 5229 003a 9168 ldr r1, [r2, #8] 5230 003c 144B ldr r3, .L389 5231 003e 0B40 ands r3, r3, r1 5232 0040 43F00203 orr r3, r3, #2 5233 0044 9360 str r3, [r2, #8] 5234 .LVL385: 6927:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5235 .loc 2 6927 3 is_stmt 0 view .LVU1541 5236 .LBE422: 5237 .LBE421: 3768:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5238 .loc 1 3768 7 is_stmt 1 view .LVU1542 5239 0046 2368 ldr r3, [r4] 5240 0048 0322 movs r2, #3 5241 004a 1A60 str r2, [r3] 3783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5242 .loc 1 3783 5 view .LVU1543 3783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5243 .loc 1 3783 17 is_stmt 0 view .LVU1544 5244 004c FFF7FEFF bl HAL_GetTick 5245 .LVL386: 3783:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5246 .loc 1 3783 17 view .LVU1545 5247 0050 0546 mov r5, r0 5248 .LVL387: 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5249 .loc 1 3785 5 is_stmt 1 view .LVU1546 5250 .L382: 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5251 .loc 1 3785 47 view .LVU1547 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5252 .loc 1 3785 17 is_stmt 0 view .LVU1548 5253 0052 2368 ldr r3, [r4] 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5254 .loc 1 3785 27 view .LVU1549 5255 0054 9B68 ldr r3, [r3, #8] 3785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5256 .loc 1 3785 47 view .LVU1550 5257 0056 13F0010F tst r3, #1 5258 005a 13D0 beq .L388 3787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5259 .loc 1 3787 7 is_stmt 1 view .LVU1551 3787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5260 .loc 1 3787 12 is_stmt 0 view .LVU1552 5261 005c FFF7FEFF bl HAL_GetTick 5262 .LVL388: 3787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5263 .loc 1 3787 26 discriminator 1 view .LVU1553 5264 0060 401B subs r0, r0, r5 ARM GAS /tmp/ccIEHjf0.s page 348 3787:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5265 .loc 1 3787 10 discriminator 1 view .LVU1554 5266 0062 0228 cmp r0, #2 5267 0064 F5D9 bls .L382 3790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5268 .loc 1 3790 9 is_stmt 1 view .LVU1555 3790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5269 .loc 1 3790 18 is_stmt 0 view .LVU1556 5270 0066 2368 ldr r3, [r4] 3790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5271 .loc 1 3790 28 view .LVU1557 5272 0068 9B68 ldr r3, [r3, #8] 3790:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5273 .loc 1 3790 12 view .LVU1558 5274 006a 13F0010F tst r3, #1 5275 006e F0D0 beq .L382 3793:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5276 .loc 1 3793 11 is_stmt 1 view .LVU1559 5277 0070 636D ldr r3, [r4, #84] 5278 0072 43F01003 orr r3, r3, #16 5279 0076 6365 str r3, [r4, #84] 3796:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5280 .loc 1 3796 11 view .LVU1560 5281 0078 A36D ldr r3, [r4, #88] 5282 007a 43F00103 orr r3, r3, #1 5283 007e A365 str r3, [r4, #88] 3798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5284 .loc 1 3798 11 view .LVU1561 3798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5285 .loc 1 3798 18 is_stmt 0 view .LVU1562 5286 0080 0120 movs r0, #1 5287 0082 02E0 b .L380 5288 .L388: 3805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5289 .loc 1 3805 10 view .LVU1563 5290 0084 0020 movs r0, #0 5291 0086 00E0 b .L380 5292 .LVL389: 5293 .L384: 3805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5294 .loc 1 3805 10 view .LVU1564 5295 0088 0020 movs r0, #0 5296 .LVL390: 5297 .L380: 3806:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5298 .loc 1 3806 1 view .LVU1565 5299 008a 38BD pop {r3, r4, r5, pc} 5300 .LVL391: 5301 .L385: 3805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5302 .loc 1 3805 10 view .LVU1566 5303 008c 0020 movs r0, #0 5304 .LVL392: 3805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5305 .loc 1 3805 10 view .LVU1567 5306 008e FCE7 b .L380 5307 .L390: ARM GAS /tmp/ccIEHjf0.s page 349 5308 .align 2 5309 .L389: 5310 0090 C0FFFF7F .word 2147483584 5311 .cfi_endproc 5312 .LFE359: 5314 .section .text.HAL_ADC_DeInit,"ax",%progbits 5315 .align 1 5316 .global HAL_ADC_DeInit 5317 .syntax unified 5318 .thumb 5319 .thumb_func 5321 HAL_ADC_DeInit: 5322 .LVL393: 5323 .LFB336: 843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5324 .loc 1 843 1 is_stmt 1 view -0 5325 .cfi_startproc 5326 @ args = 0, pretend = 0, frame = 0 5327 @ frame_needed = 0, uses_anonymous_args = 0 843:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5328 .loc 1 843 1 is_stmt 0 view .LVU1569 5329 0000 38B5 push {r3, r4, r5, lr} 5330 .cfi_def_cfa_offset 16 5331 .cfi_offset 3, -16 5332 .cfi_offset 4, -12 5333 .cfi_offset 5, -8 5334 .cfi_offset 14, -4 844:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5335 .loc 1 844 3 is_stmt 1 view .LVU1570 847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5336 .loc 1 847 3 view .LVU1571 847:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5337 .loc 1 847 6 is_stmt 0 view .LVU1572 5338 0002 0028 cmp r0, #0 5339 0004 00F0C580 beq .L396 5340 0008 0446 mov r4, r0 853:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5341 .loc 1 853 3 is_stmt 1 view .LVU1573 856:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5342 .loc 1 856 3 view .LVU1574 5343 000a 436D ldr r3, [r0, #84] 5344 000c 43F00203 orr r3, r3, #2 5345 0010 4365 str r3, [r0, #84] 859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5346 .loc 1 859 3 view .LVU1575 859:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5347 .loc 1 859 20 is_stmt 0 view .LVU1576 5348 0012 0321 movs r1, #3 5349 0014 FFF7FEFF bl ADC_ConversionStop 5350 .LVL394: 867:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5351 .loc 1 867 3 is_stmt 1 view .LVU1577 5352 0018 2268 ldr r2, [r4] 5353 001a D368 ldr r3, [r2, #12] 5354 001c 43F40013 orr r3, r3, #2097152 5355 0020 D360 str r3, [r2, #12] 870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { ARM GAS /tmp/ccIEHjf0.s page 350 5356 .loc 1 870 3 view .LVU1578 870:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5357 .loc 1 870 6 is_stmt 0 view .LVU1579 5358 0022 0546 mov r5, r0 5359 0024 0028 cmp r0, #0 5360 0026 00F0A180 beq .L398 5361 .L393: 5362 .LVL395: 891:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 5363 .loc 1 891 3 is_stmt 1 view .LVU1580 5364 002a 2268 ldr r2, [r4] 5365 002c 5368 ldr r3, [r2, #4] 5366 002e 6FF30A03 bfc r3, #0, #11 5367 0032 5360 str r3, [r2, #4] 898:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 5368 .loc 1 898 3 view .LVU1581 5369 0034 2368 ldr r3, [r4] 5370 0036 40F2FF72 movw r2, #2047 5371 003a 1A60 str r2, [r3] 909:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 5372 .loc 1 909 3 view .LVU1582 5373 003c 2268 ldr r2, [r4] 5374 003e 9368 ldr r3, [r2, #8] 5375 0040 23F0A043 bic r3, r3, #1342177280 5376 0044 9360 str r3, [r2, #8] 910:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5377 .loc 1 910 3 view .LVU1583 5378 0046 2268 ldr r2, [r4] 5379 0048 9368 ldr r3, [r2, #8] 5380 004a 43F00053 orr r3, r3, #536870912 5381 004e 9360 str r3, [r2, #8] 913:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL | ADC_CFGR_JQM | 5382 .loc 1 913 3 view .LVU1584 5383 0050 2268 ldr r2, [r4] 5384 0052 D368 ldr r3, [r2, #12] 5385 0054 03F08023 and r3, r3, #-2147450880 5386 0058 D360 str r3, [r2, #12] 919:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5387 .loc 1 919 3 view .LVU1585 5388 005a 2268 ldr r2, [r4] 5389 005c D368 ldr r3, [r2, #12] 5390 005e 43F00043 orr r3, r3, #-2147483648 5391 0062 D360 str r3, [r2, #12] 922:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 5392 .loc 1 922 3 view .LVU1586 5393 0064 2268 ldr r2, [r4] 5394 0066 1169 ldr r1, [r2, #16] 5395 0068 4B4B ldr r3, .L400 5396 006a 0B40 ands r3, r3, r1 5397 006c 1361 str r3, [r2, #16] 926:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5398 .loc 1 926 3 view .LVU1587 5399 006e 2268 ldr r2, [r4] 5400 0070 5369 ldr r3, [r2, #20] 5401 0072 03F04043 and r3, r3, #-1073741824 5402 0076 5361 str r3, [r2, #20] 929:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | ARM GAS /tmp/ccIEHjf0.s page 351 5403 .loc 1 929 3 view .LVU1588 5404 0078 2268 ldr r2, [r4] 5405 007a 9369 ldr r3, [r2, #24] 5406 007c 03F07843 and r3, r3, #-134217728 5407 0080 9361 str r3, [r2, #24] 958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR1, ADC_HTR_HT); 5408 .loc 1 958 3 view .LVU1589 5409 0082 2268 ldr r2, [r4] 5410 0084 136A ldr r3, [r2, #32] 5411 0086 03F07C43 and r3, r3, #-67108864 5412 008a 1362 str r3, [r2, #32] 959:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5413 .loc 1 959 3 view .LVU1590 5414 008c 2268 ldr r2, [r4] 5415 008e 536A ldr r3, [r2, #36] 5416 0090 03F07C43 and r3, r3, #-67108864 5417 0094 5362 str r3, [r2, #36] 962:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR2, ADC_HTR_HT); 5418 .loc 1 962 3 view .LVU1591 5419 0096 2268 ldr r2, [r4] 5420 0098 D2F8B030 ldr r3, [r2, #176] 5421 009c 03F07C43 and r3, r3, #-67108864 5422 00a0 C2F8B030 str r3, [r2, #176] 963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5423 .loc 1 963 3 view .LVU1592 5424 00a4 2268 ldr r2, [r4] 5425 00a6 D2F8B430 ldr r3, [r2, #180] 5426 00aa 03F07C43 and r3, r3, #-67108864 5427 00ae C2F8B430 str r3, [r2, #180] 966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->HTR3, ADC_HTR_HT); 5428 .loc 1 966 3 view .LVU1593 5429 00b2 2268 ldr r2, [r4] 5430 00b4 D2F8B830 ldr r3, [r2, #184] 5431 00b8 03F07C43 and r3, r3, #-67108864 5432 00bc C2F8B830 str r3, [r2, #184] 967:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 5433 .loc 1 967 3 view .LVU1594 5434 00c0 2268 ldr r2, [r4] 5435 00c2 D2F8BC30 ldr r3, [r2, #188] 5436 00c6 03F07C43 and r3, r3, #-67108864 5437 00ca C2F8BC30 str r3, [r2, #188] 972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 5438 .loc 1 972 3 view .LVU1595 5439 00ce 2268 ldr r2, [r4] 5440 00d0 116B ldr r1, [r2, #48] 5441 00d2 324B ldr r3, .L400+4 5442 00d4 0B40 ands r3, r3, r1 5443 00d6 1363 str r3, [r2, #48] 976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 5444 .loc 1 976 3 view .LVU1596 5445 00d8 2268 ldr r2, [r4] 5446 00da 536B ldr r3, [r2, #52] 5447 00dc 3049 ldr r1, .L400+8 5448 00de 0B40 ands r3, r3, r1 5449 00e0 5363 str r3, [r2, #52] 980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 5450 .loc 1 980 3 view .LVU1597 ARM GAS /tmp/ccIEHjf0.s page 352 5451 00e2 2268 ldr r2, [r4] 5452 00e4 936B ldr r3, [r2, #56] 5453 00e6 0B40 ands r3, r3, r1 5454 00e8 9363 str r3, [r2, #56] 984:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5455 .loc 1 984 3 view .LVU1598 5456 00ea 2268 ldr r2, [r4] 5457 00ec D16B ldr r1, [r2, #60] 5458 00ee 2D4B ldr r3, .L400+12 5459 00f0 0B40 ands r3, r3, r1 5460 00f2 D363 str r3, [r2, #60] 992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR2 */ 5461 .loc 1 992 3 view .LVU1599 5462 00f4 2268 ldr r2, [r4] 5463 00f6 136E ldr r3, [r2, #96] 5464 00f8 0023 movs r3, #0 5465 00fa 1366 str r3, [r2, #96] 994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR3 */ 5466 .loc 1 994 3 view .LVU1600 5467 00fc 2268 ldr r2, [r4] 5468 00fe 516E ldr r1, [r2, #100] 5469 0100 5366 str r3, [r2, #100] 996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /* Reset register OFR4 */ 5470 .loc 1 996 3 view .LVU1601 5471 0102 2268 ldr r2, [r4] 5472 0104 916E ldr r1, [r2, #104] 5473 0106 9366 str r3, [r2, #104] 998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5474 .loc 1 998 3 view .LVU1602 5475 0108 2268 ldr r2, [r4] 5476 010a D16E ldr r1, [r2, #108] 5477 010c D366 str r3, [r2, #108] 1004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5478 .loc 1 1004 3 view .LVU1603 5479 010e 2168 ldr r1, [r4] 5480 0110 D1F8A030 ldr r3, [r1, #160] 5481 0114 244A ldr r2, .L400+16 5482 0116 1340 ands r3, r3, r2 5483 0118 C1F8A030 str r3, [r1, #160] 1007:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5484 .loc 1 1007 3 view .LVU1604 5485 011c 2168 ldr r1, [r4] 5486 011e D1F8A430 ldr r3, [r1, #164] 5487 0122 1340 ands r3, r3, r2 5488 0124 C1F8A430 str r3, [r1, #164] 1028:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5489 .loc 1 1028 3 view .LVU1605 5490 0128 2168 ldr r1, [r4] 5491 012a D1F8C030 ldr r3, [r1, #192] 5492 012e 1340 ands r3, r3, r2 5493 0130 C1F8C030 str r3, [r1, #192] 1031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_V90 */ 5494 .loc 1 1031 3 view .LVU1606 5495 0134 2268 ldr r2, [r4] 5496 0136 D2F8C430 ldr r3, [r2, #196] 5497 013a 03F0F823 and r3, r3, #-134154240 5498 013e C2F8C430 str r3, [r2, #196] ARM GAS /tmp/ccIEHjf0.s page 353 1038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5499 .loc 1 1038 3 view .LVU1607 5500 .LVL396: 5501 .LBB423: 5502 .LBI423: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5503 .loc 2 6941 26 view .LVU1608 5504 .LBB424: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5505 .loc 2 6943 3 view .LVU1609 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5506 .loc 2 6943 12 is_stmt 0 view .LVU1610 5507 0142 1A4B ldr r3, .L400+20 5508 0144 9B68 ldr r3, [r3, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5509 .loc 2 6943 68 view .LVU1611 5510 0146 13F00103 ands r3, r3, #1 5511 014a 00D0 beq .L394 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5512 .loc 2 6943 68 discriminator 1 view .LVU1612 5513 014c 0123 movs r3, #1 5514 .L394: 5515 .LVL397: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5516 .loc 2 6943 68 discriminator 1 view .LVU1613 5517 .LBE424: 5518 .LBE423: 5519 .LBB425: 5520 .LBI425: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 5521 .loc 2 6941 26 is_stmt 1 view .LVU1614 5522 .LBB426: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5523 .loc 2 6943 3 view .LVU1615 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5524 .loc 2 6943 12 is_stmt 0 view .LVU1616 5525 014e 184A ldr r2, .L400+24 5526 0150 9268 ldr r2, [r2, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5527 .loc 2 6943 68 view .LVU1617 5528 0152 12F0010F tst r2, #1 5529 0156 00D1 bne .L395 5530 .LVL398: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 5531 .loc 2 6943 68 view .LVU1618 5532 .LBE426: 5533 .LBE425: 1038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5534 .loc 1 1038 6 discriminator 2 view .LVU1619 5535 0158 93B1 cbz r3, .L399 5536 .L395: 1074:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5537 .loc 1 1074 3 is_stmt 1 view .LVU1620 5538 015a 0023 movs r3, #0 5539 015c A365 str r3, [r4, #88] 1077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 5540 .loc 1 1077 3 view .LVU1621 ARM GAS /tmp/ccIEHjf0.s page 354 1077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 5541 .loc 1 1077 38 is_stmt 0 view .LVU1622 5542 015e E365 str r3, [r4, #92] 1078:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5543 .loc 1 1078 3 is_stmt 1 view .LVU1623 1078:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5544 .loc 1 1078 38 is_stmt 0 view .LVU1624 5545 0160 2366 str r3, [r4, #96] 1081:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5546 .loc 1 1081 3 is_stmt 1 view .LVU1625 1081:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5547 .loc 1 1081 15 is_stmt 0 view .LVU1626 5548 0162 6365 str r3, [r4, #84] 1084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5549 .loc 1 1084 3 is_stmt 1 view .LVU1627 1084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5550 .loc 1 1084 3 view .LVU1628 5551 0164 84F85030 strb r3, [r4, #80] 1084:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5552 .loc 1 1084 3 view .LVU1629 1087:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5553 .loc 1 1087 3 view .LVU1630 5554 .LVL399: 5555 .L392: 1088:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5556 .loc 1 1088 1 is_stmt 0 view .LVU1631 5557 0168 2846 mov r0, r5 5558 016a 38BD pop {r3, r4, r5, pc} 5559 .LVL400: 5560 .L398: 873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5561 .loc 1 873 5 is_stmt 1 view .LVU1632 873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5562 .loc 1 873 22 is_stmt 0 view .LVU1633 5563 016c 2046 mov r0, r4 5564 .LVL401: 873:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5565 .loc 1 873 22 view .LVU1634 5566 016e FFF7FEFF bl ADC_Disable 5567 .LVL402: 876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5568 .loc 1 876 5 is_stmt 1 view .LVU1635 876:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5569 .loc 1 876 8 is_stmt 0 view .LVU1636 5570 0172 0546 mov r5, r0 5571 0174 0028 cmp r0, #0 5572 0176 7FF458AF bne .L393 879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5573 .loc 1 879 7 is_stmt 1 view .LVU1637 879:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5574 .loc 1 879 19 is_stmt 0 view .LVU1638 5575 017a 0123 movs r3, #1 5576 017c 6365 str r3, [r4, #84] 5577 017e 54E7 b .L393 5578 .LVL403: 5579 .L399: 1047:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ARM GAS /tmp/ccIEHjf0.s page 355 5580 .loc 1 1047 5 is_stmt 1 view .LVU1639 5581 0180 0C4A ldr r2, .L400+28 5582 0182 9168 ldr r1, [r2, #8] 5583 0184 0C4B ldr r3, .L400+32 5584 0186 0B40 ands r3, r3, r1 5585 0188 9360 str r3, [r2, #8] 1068:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 5586 .loc 1 1068 5 view .LVU1640 5587 018a 2046 mov r0, r4 5588 018c FFF7FEFF bl HAL_ADC_MspDeInit 5589 .LVL404: 5590 0190 E3E7 b .L395 5591 .LVL405: 5592 .L396: 849:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5593 .loc 1 849 12 is_stmt 0 view .LVU1641 5594 0192 0125 movs r5, #1 5595 0194 E8E7 b .L392 5596 .L401: 5597 0196 00BF .align 2 5598 .L400: 5599 0198 1CF800FC .word -67045348 5600 019c 300882E0 .word -528349136 5601 01a0 200882E0 .word -528349152 5602 01a4 20F8FFFF .word -2016 5603 01a8 0000F0FF .word -1048576 5604 01ac 00200240 .word 1073881088 5605 01b0 00210240 .word 1073881344 5606 01b4 00230240 .word 1073881856 5607 01b8 E03000FE .word -33541920 5608 .cfi_endproc 5609 .LFE336: 5611 .section .text.HAL_ADC_Stop,"ax",%progbits 5612 .align 1 5613 .global HAL_ADC_Stop 5614 .syntax unified 5615 .thumb 5616 .thumb_func 5618 HAL_ADC_Stop: 5619 .LVL406: 5620 .LFB340: 1519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5621 .loc 1 1519 1 is_stmt 1 view -0 5622 .cfi_startproc 5623 @ args = 0, pretend = 0, frame = 0 5624 @ frame_needed = 0, uses_anonymous_args = 0 1520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5625 .loc 1 1520 3 view .LVU1643 1523:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5626 .loc 1 1523 3 view .LVU1644 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5627 .loc 1 1526 3 view .LVU1645 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5628 .loc 1 1526 3 view .LVU1646 5629 0000 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 5630 0004 012B cmp r3, #1 5631 0006 18D0 beq .L405 ARM GAS /tmp/ccIEHjf0.s page 356 1519:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5632 .loc 1 1519 1 is_stmt 0 view .LVU1647 5633 0008 10B5 push {r4, lr} 5634 .cfi_def_cfa_offset 8 5635 .cfi_offset 4, -8 5636 .cfi_offset 14, -4 5637 000a 0446 mov r4, r0 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5638 .loc 1 1526 3 is_stmt 1 discriminator 2 view .LVU1648 5639 000c 0123 movs r3, #1 5640 000e 80F85030 strb r3, [r0, #80] 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5641 .loc 1 1526 3 view .LVU1649 1529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5642 .loc 1 1529 3 view .LVU1650 1529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5643 .loc 1 1529 20 is_stmt 0 view .LVU1651 5644 0012 0321 movs r1, #3 5645 0014 FFF7FEFF bl ADC_ConversionStop 5646 .LVL407: 1532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5647 .loc 1 1532 3 is_stmt 1 view .LVU1652 1532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5648 .loc 1 1532 6 is_stmt 0 view .LVU1653 5649 0018 18B1 cbz r0, .L410 5650 .L404: 1548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5651 .loc 1 1548 3 is_stmt 1 view .LVU1654 1548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5652 .loc 1 1548 3 view .LVU1655 5653 001a 0023 movs r3, #0 5654 001c 84F85030 strb r3, [r4, #80] 1548:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5655 .loc 1 1548 3 view .LVU1656 1551:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5656 .loc 1 1551 3 view .LVU1657 1552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5657 .loc 1 1552 1 is_stmt 0 view .LVU1658 5658 0020 10BD pop {r4, pc} 5659 .LVL408: 5660 .L410: 1535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5661 .loc 1 1535 5 is_stmt 1 view .LVU1659 1535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5662 .loc 1 1535 22 is_stmt 0 view .LVU1660 5663 0022 2046 mov r0, r4 5664 .LVL409: 1535:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5665 .loc 1 1535 22 view .LVU1661 5666 0024 FFF7FEFF bl ADC_Disable 5667 .LVL410: 1538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5668 .loc 1 1538 5 is_stmt 1 view .LVU1662 1538:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5669 .loc 1 1538 8 is_stmt 0 view .LVU1663 5670 0028 0028 cmp r0, #0 5671 002a F6D1 bne .L404 ARM GAS /tmp/ccIEHjf0.s page 357 1541:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 5672 .loc 1 1541 7 is_stmt 1 view .LVU1664 5673 002c 626D ldr r2, [r4, #84] 5674 002e 044B ldr r3, .L411 5675 0030 1340 ands r3, r3, r2 5676 0032 43F00103 orr r3, r3, #1 5677 0036 6365 str r3, [r4, #84] 5678 0038 EFE7 b .L404 5679 .LVL411: 5680 .L405: 5681 .cfi_def_cfa_offset 0 5682 .cfi_restore 4 5683 .cfi_restore 14 1526:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5684 .loc 1 1526 3 is_stmt 0 discriminator 1 view .LVU1665 5685 003a 0220 movs r0, #2 5686 .LVL412: 1552:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5687 .loc 1 1552 1 view .LVU1666 5688 003c 7047 bx lr 5689 .L412: 5690 003e 00BF .align 2 5691 .L411: 5692 0040 FEEEFFFF .word -4354 5693 .cfi_endproc 5694 .LFE340: 5696 .section .text.HAL_ADC_Stop_IT,"ax",%progbits 5697 .align 1 5698 .global HAL_ADC_Stop_IT 5699 .syntax unified 5700 .thumb 5701 .thumb_func 5703 HAL_ADC_Stop_IT: 5704 .LVL413: 5705 .LFB344: 2060:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5706 .loc 1 2060 1 is_stmt 1 view -0 5707 .cfi_startproc 5708 @ args = 0, pretend = 0, frame = 0 5709 @ frame_needed = 0, uses_anonymous_args = 0 2061:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5710 .loc 1 2061 3 view .LVU1668 2064:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5711 .loc 1 2064 3 view .LVU1669 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5712 .loc 1 2067 3 view .LVU1670 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5713 .loc 1 2067 3 view .LVU1671 5714 0000 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 5715 0004 012B cmp r3, #1 5716 0006 1DD0 beq .L416 2060:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5717 .loc 1 2060 1 is_stmt 0 view .LVU1672 5718 0008 10B5 push {r4, lr} 5719 .cfi_def_cfa_offset 8 5720 .cfi_offset 4, -8 5721 .cfi_offset 14, -4 ARM GAS /tmp/ccIEHjf0.s page 358 5722 000a 0446 mov r4, r0 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5723 .loc 1 2067 3 is_stmt 1 discriminator 2 view .LVU1673 5724 000c 0123 movs r3, #1 5725 000e 80F85030 strb r3, [r0, #80] 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5726 .loc 1 2067 3 view .LVU1674 2070:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5727 .loc 1 2070 3 view .LVU1675 2070:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5728 .loc 1 2070 20 is_stmt 0 view .LVU1676 5729 0012 0321 movs r1, #3 5730 0014 FFF7FEFF bl ADC_ConversionStop 5731 .LVL414: 2073:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5732 .loc 1 2073 3 is_stmt 1 view .LVU1677 2073:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5733 .loc 1 2073 6 is_stmt 0 view .LVU1678 5734 0018 18B1 cbz r0, .L421 5735 .L415: 2093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5736 .loc 1 2093 3 is_stmt 1 view .LVU1679 2093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5737 .loc 1 2093 3 view .LVU1680 5738 001a 0023 movs r3, #0 5739 001c 84F85030 strb r3, [r4, #80] 2093:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5740 .loc 1 2093 3 view .LVU1681 2096:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5741 .loc 1 2096 3 view .LVU1682 2097:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5742 .loc 1 2097 1 is_stmt 0 view .LVU1683 5743 0020 10BD pop {r4, pc} 5744 .LVL415: 5745 .L421: 2077:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5746 .loc 1 2077 5 is_stmt 1 view .LVU1684 5747 0022 2268 ldr r2, [r4] 5748 0024 5368 ldr r3, [r2, #4] 5749 0026 23F01C03 bic r3, r3, #28 5750 002a 5360 str r3, [r2, #4] 2080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5751 .loc 1 2080 5 view .LVU1685 2080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5752 .loc 1 2080 22 is_stmt 0 view .LVU1686 5753 002c 2046 mov r0, r4 5754 .LVL416: 2080:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5755 .loc 1 2080 22 view .LVU1687 5756 002e FFF7FEFF bl ADC_Disable 5757 .LVL417: 2083:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5758 .loc 1 2083 5 is_stmt 1 view .LVU1688 2083:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5759 .loc 1 2083 8 is_stmt 0 view .LVU1689 5760 0032 0028 cmp r0, #0 5761 0034 F1D1 bne .L415 ARM GAS /tmp/ccIEHjf0.s page 359 2086:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 5762 .loc 1 2086 7 is_stmt 1 view .LVU1690 5763 0036 626D ldr r2, [r4, #84] 5764 0038 034B ldr r3, .L422 5765 003a 1340 ands r3, r3, r2 5766 003c 43F00103 orr r3, r3, #1 5767 0040 6365 str r3, [r4, #84] 5768 0042 EAE7 b .L415 5769 .LVL418: 5770 .L416: 5771 .cfi_def_cfa_offset 0 5772 .cfi_restore 4 5773 .cfi_restore 14 2067:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5774 .loc 1 2067 3 is_stmt 0 discriminator 1 view .LVU1691 5775 0044 0220 movs r0, #2 5776 .LVL419: 2097:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5777 .loc 1 2097 1 view .LVU1692 5778 0046 7047 bx lr 5779 .L423: 5780 .align 2 5781 .L422: 5782 0048 FEEEFFFF .word -4354 5783 .cfi_endproc 5784 .LFE344: 5786 .section .text.HAL_ADC_Stop_DMA,"ax",%progbits 5787 .align 1 5788 .global HAL_ADC_Stop_DMA 5789 .syntax unified 5790 .thumb 5791 .thumb_func 5793 HAL_ADC_Stop_DMA: 5794 .LVL420: 5795 .LFB346: 2260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5796 .loc 1 2260 1 is_stmt 1 view -0 5797 .cfi_startproc 5798 @ args = 0, pretend = 0, frame = 0 5799 @ frame_needed = 0, uses_anonymous_args = 0 2260:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5800 .loc 1 2260 1 is_stmt 0 view .LVU1694 5801 0000 38B5 push {r3, r4, r5, lr} 5802 .cfi_def_cfa_offset 16 5803 .cfi_offset 3, -16 5804 .cfi_offset 4, -12 5805 .cfi_offset 5, -8 5806 .cfi_offset 14, -4 2261:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5807 .loc 1 2261 3 is_stmt 1 view .LVU1695 2264:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5808 .loc 1 2264 3 view .LVU1696 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5809 .loc 1 2267 3 view .LVU1697 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5810 .loc 1 2267 3 view .LVU1698 5811 0002 90F85030 ldrb r3, [r0, #80] @ zero_extendqisi2 ARM GAS /tmp/ccIEHjf0.s page 360 5812 0006 012B cmp r3, #1 5813 0008 36D0 beq .L430 5814 000a 0446 mov r4, r0 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5815 .loc 1 2267 3 discriminator 2 view .LVU1699 5816 000c 0123 movs r3, #1 5817 000e 80F85030 strb r3, [r0, #80] 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5818 .loc 1 2267 3 view .LVU1700 2270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5819 .loc 1 2270 3 view .LVU1701 2270:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5820 .loc 1 2270 20 is_stmt 0 view .LVU1702 5821 0012 0321 movs r1, #3 5822 0014 FFF7FEFF bl ADC_ConversionStop 5823 .LVL421: 2273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5824 .loc 1 2273 3 is_stmt 1 view .LVU1703 2273:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5825 .loc 1 2273 6 is_stmt 0 view .LVU1704 5826 0018 0546 mov r5, r0 5827 001a D0B9 cbnz r0, .L426 2276:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5828 .loc 1 2276 5 is_stmt 1 view .LVU1705 5829 001c 2268 ldr r2, [r4] 5830 001e D368 ldr r3, [r2, #12] 5831 0020 23F00303 bic r3, r3, #3 5832 0024 D360 str r3, [r2, #12] 2280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5833 .loc 1 2280 5 view .LVU1706 2280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5834 .loc 1 2280 13 is_stmt 0 view .LVU1707 5835 0026 E06C ldr r0, [r4, #76] 5836 .LVL422: 2280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5837 .loc 1 2280 25 view .LVU1708 5838 0028 90F83530 ldrb r3, [r0, #53] @ zero_extendqisi2 2280:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5839 .loc 1 2280 8 view .LVU1709 5840 002c 022B cmp r3, #2 5841 002e 15D0 beq .L432 5842 .LVL423: 5843 .L427: 2293:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5844 .loc 1 2293 5 is_stmt 1 view .LVU1710 5845 0030 2268 ldr r2, [r4] 5846 0032 5368 ldr r3, [r2, #4] 5847 0034 23F01003 bic r3, r3, #16 5848 0038 5360 str r3, [r2, #4] 2298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5849 .loc 1 2298 5 view .LVU1711 2298:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5850 .loc 1 2298 8 is_stmt 0 view .LVU1712 5851 003a CDB9 cbnz r5, .L428 2300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5852 .loc 1 2300 7 is_stmt 1 view .LVU1713 2300:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 361 5853 .loc 1 2300 24 is_stmt 0 view .LVU1714 5854 003c 2046 mov r0, r4 5855 003e FFF7FEFF bl ADC_Disable 5856 .LVL424: 5857 0042 0546 mov r5, r0 5858 .LVL425: 5859 .L429: 2308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5860 .loc 1 2308 5 is_stmt 1 view .LVU1715 2308:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5861 .loc 1 2308 8 is_stmt 0 view .LVU1716 5862 0044 2DB9 cbnz r5, .L426 2311:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 5863 .loc 1 2311 7 is_stmt 1 view .LVU1717 5864 0046 626D ldr r2, [r4, #84] 5865 0048 0C4B ldr r3, .L433 5866 004a 1340 ands r3, r3, r2 5867 004c 43F00103 orr r3, r3, #1 5868 0050 6365 str r3, [r4, #84] 5869 .LVL426: 5870 .L426: 2319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5871 .loc 1 2319 3 view .LVU1718 2319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5872 .loc 1 2319 3 view .LVU1719 5873 0052 0023 movs r3, #0 5874 0054 84F85030 strb r3, [r4, #80] 2319:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5875 .loc 1 2319 3 view .LVU1720 2322:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5876 .loc 1 2322 3 view .LVU1721 5877 .LVL427: 5878 .L425: 2323:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5879 .loc 1 2323 1 is_stmt 0 view .LVU1722 5880 0058 2846 mov r0, r5 5881 005a 38BD pop {r3, r4, r5, pc} 5882 .LVL428: 5883 .L432: 2282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5884 .loc 1 2282 7 is_stmt 1 view .LVU1723 2282:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5885 .loc 1 2282 24 is_stmt 0 view .LVU1724 5886 005c FFF7FEFF bl HAL_DMA_Abort 5887 .LVL429: 2285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5888 .loc 1 2285 7 is_stmt 1 view .LVU1725 2285:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5889 .loc 1 2285 10 is_stmt 0 view .LVU1726 5890 0060 0546 mov r5, r0 5891 0062 0028 cmp r0, #0 5892 0064 E4D0 beq .L427 2288:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5893 .loc 1 2288 9 is_stmt 1 view .LVU1727 5894 0066 636D ldr r3, [r4, #84] 5895 0068 43F04003 orr r3, r3, #64 5896 006c 6365 str r3, [r4, #84] ARM GAS /tmp/ccIEHjf0.s page 362 5897 006e DFE7 b .L427 5898 .LVL430: 5899 .L428: 2304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5900 .loc 1 2304 7 view .LVU1728 2304:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5901 .loc 1 2304 13 is_stmt 0 view .LVU1729 5902 0070 2046 mov r0, r4 5903 0072 FFF7FEFF bl ADC_Disable 5904 .LVL431: 5905 0076 E5E7 b .L429 5906 .LVL432: 5907 .L430: 2267:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 5908 .loc 1 2267 3 discriminator 1 view .LVU1730 5909 0078 0225 movs r5, #2 5910 007a EDE7 b .L425 5911 .L434: 5912 .align 2 5913 .L433: 5914 007c FEEEFFFF .word -4354 5915 .cfi_endproc 5916 .LFE346: 5918 .section .text.ADC_ConfigureBoostMode,"ax",%progbits 5919 .align 1 5920 .global ADC_ConfigureBoostMode 5921 .syntax unified 5922 .thumb 5923 .thumb_func 5925 ADC_ConfigureBoostMode: 5926 .LVL433: 5927 .LFB363: 3927:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3928:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** /** 3929:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @brief Configure boost mode of selected ADC. 3930:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be 3931:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * stopped. 3932:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @param hadc ADC handle 3933:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** * @retval None. 3934:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** */ 3935:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc) 3936:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 5928 .loc 1 3936 1 is_stmt 1 view -0 5929 .cfi_startproc 5930 @ args = 0, pretend = 0, frame = 0 5931 @ frame_needed = 0, uses_anonymous_args = 0 5932 .loc 1 3936 1 is_stmt 0 view .LVU1732 5933 0000 10B5 push {r4, lr} 5934 .cfi_def_cfa_offset 8 5935 .cfi_offset 4, -8 5936 .cfi_offset 14, -4 5937 0002 0446 mov r4, r0 3937:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t freq; 5938 .loc 1 3937 3 is_stmt 1 view .LVU1733 3938:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc)) 5939 .loc 1 3938 3 view .LVU1734 5940 .loc 1 3938 7 is_stmt 0 view .LVU1735 ARM GAS /tmp/ccIEHjf0.s page 363 5941 0004 3A4B ldr r3, .L455 5942 0006 9B68 ldr r3, [r3, #8] 5943 .loc 1 3938 6 view .LVU1736 5944 0008 13F4403F tst r3, #196608 5945 000c 19D0 beq .L436 3939:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3940:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq = HAL_RCC_GetHCLKFreq(); 5946 .loc 1 3940 5 is_stmt 1 view .LVU1737 5947 .loc 1 3940 12 is_stmt 0 view .LVU1738 5948 000e FFF7FEFF bl HAL_RCC_GetHCLKFreq 5949 .LVL434: 3941:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.ClockPrescaler) 5950 .loc 1 3941 5 is_stmt 1 view .LVU1739 5951 .loc 1 3941 23 is_stmt 0 view .LVU1740 5952 0012 6368 ldr r3, [r4, #4] 5953 .loc 1 3941 5 view .LVU1741 5954 0014 B3F5003F cmp r3, #131072 5955 0018 05D0 beq .L437 5956 001a B3F5403F cmp r3, #196608 5957 001e 0ED0 beq .L438 5958 0020 B3F5803F cmp r3, #65536 5959 0024 02D1 bne .L439 5960 .L437: 3942:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3943:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_SYNC_PCLK_DIV1: 3944:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_SYNC_PCLK_DIV2: 3945:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos); 5961 .loc 1 3945 9 is_stmt 1 view .LVU1742 5962 .loc 1 3945 44 is_stmt 0 view .LVU1743 5963 0026 1B0C lsrs r3, r3, #16 5964 .loc 1 3945 14 view .LVU1744 5965 0028 B0FBF3F0 udiv r0, r0, r3 5966 .LVL435: 3946:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 5967 .loc 1 3946 9 is_stmt 1 view .LVU1745 5968 .L439: 3947:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_SYNC_PCLK_DIV4: 3948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 4UL; 3949:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3950:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 3951:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3952:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3953:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3954:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else 3955:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC); 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.ClockPrescaler) 3958:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3959:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV2: 3960:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV4: 3961:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV6: 3962:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV8: 3963:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV10: 3964:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV12: 3965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL); 3966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3967:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV16: ARM GAS /tmp/ccIEHjf0.s page 364 3968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 16UL; 3969:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3970:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV32: 3971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 32UL; 3972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3973:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV64: 3974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 64UL; 3975:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3976:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV128: 3977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 128UL; 3978:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3979:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV256: 3980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 256UL; 3981:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3982:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 3983:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 3984:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3985:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3986:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 3987:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_3) || defined(ADC_VER_V5_V90) 3988:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 2U; 5969 .loc 1 3988 3 view .LVU1746 3989:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (freq <= 6250000UL) 5970 .loc 1 3989 3 view .LVU1747 5971 .loc 1 3989 6 is_stmt 0 view .LVU1748 5972 002c 314B ldr r3, .L455+4 5973 002e 9842 cmp r0, r3 5974 0030 41D8 bhi .L449 3990:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3991:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL); 5975 .loc 1 3991 5 is_stmt 1 view .LVU1749 5976 0032 2268 ldr r2, [r4] 5977 0034 9368 ldr r3, [r2, #8] 5978 0036 23F44073 bic r3, r3, #768 5979 003a 9360 str r3, [r2, #8] 5980 .L435: 3992:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (freq <= 12500000UL) 3994:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0); 3996:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 3997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (freq <= 25000000UL) 3998:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 3999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1); 4000:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4001:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else /* if(freq > 25000000UL) */ 4002:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4003:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0); 4004:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4005:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #else 4006:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */ 4007:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4008:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (freq > 20000000UL) 4009:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4010:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0); 4011:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4012:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else ARM GAS /tmp/ccIEHjf0.s page 365 4013:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4014:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0); 4015:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4016:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4017:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else /* STM32H7 silicon Rev.V */ 4018:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4019:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** freq /= 2U; /* divider by 2 for Rev.V */ 4020:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 4021:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if (freq <= 6250000UL) 4022:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4023:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL); 4024:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4025:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (freq <= 12500000UL) 4026:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4027:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0); 4028:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4029:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else if (freq <= 25000000UL) 4030:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4031:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1); 4032:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4033:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** else /* if(freq > 25000000UL) */ 4034:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 4035:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0); 4036:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4037:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 4038:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* ADC_VER_V5_3 */ 4039:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 5981 .loc 1 4039 1 is_stmt 0 view .LVU1750 5982 003c 10BD pop {r4, pc} 5983 .LVL436: 5984 .L438: 3948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 5985 .loc 1 3948 9 is_stmt 1 view .LVU1751 3948:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 5986 .loc 1 3948 14 is_stmt 0 view .LVU1752 5987 003e 8008 lsrs r0, r0, #2 5988 .LVL437: 3949:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 5989 .loc 1 3949 9 is_stmt 1 view .LVU1753 5990 0040 F4E7 b .L439 5991 .LVL438: 5992 .L436: 3956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.ClockPrescaler) 5993 .loc 1 3956 5 view .LVU1754 3956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.ClockPrescaler) 5994 .loc 1 3956 12 is_stmt 0 view .LVU1755 5995 0042 4FF40020 mov r0, #524288 5996 .LVL439: 3956:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** switch (hadc->Init.ClockPrescaler) 5997 .loc 1 3956 12 view .LVU1756 5998 0046 0021 movs r1, #0 5999 0048 FFF7FEFF bl HAL_RCCEx_GetPeriphCLKFreq 6000 .LVL440: 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6001 .loc 1 3957 5 is_stmt 1 view .LVU1757 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6002 .loc 1 3957 23 is_stmt 0 view .LVU1758 ARM GAS /tmp/ccIEHjf0.s page 366 6003 004c 6368 ldr r3, [r4, #4] 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6004 .loc 1 3957 5 view .LVU1759 6005 004e B3F5101F cmp r3, #2359296 6006 0052 2CD0 beq .L440 6007 0054 21D8 bhi .L441 6008 0056 B3F5E01F cmp r3, #1835008 6009 005a 26D0 beq .L442 6010 005c 04D9 bls .L454 6011 005e B3F5001F cmp r3, #2097152 6012 0062 E3D1 bne .L439 3971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6013 .loc 1 3971 9 is_stmt 1 view .LVU1760 3971:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6014 .loc 1 3971 14 is_stmt 0 view .LVU1761 6015 0064 4009 lsrs r0, r0, #5 6016 .LVL441: 3972:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV64: 6017 .loc 1 3972 9 is_stmt 1 view .LVU1762 6018 0066 E1E7 b .L439 6019 .L454: 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6020 .loc 1 3957 5 is_stmt 0 view .LVU1763 6021 0068 B3F5801F cmp r3, #1048576 6022 006c 10D0 beq .L444 6023 006e 09D8 bhi .L445 6024 0070 B3F5002F cmp r3, #524288 6025 0074 0CD0 beq .L444 6026 0076 B3F5402F cmp r3, #786432 6027 007a 09D0 beq .L444 6028 007c B3F5802F cmp r3, #262144 6029 0080 06D0 beq .L444 6030 0082 D3E7 b .L439 6031 .L445: 6032 0084 B3F5A01F cmp r3, #1310720 6033 0088 02D0 beq .L444 6034 008a B3F5C01F cmp r3, #1572864 6035 008e CDD1 bne .L439 6036 .L444: 3965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6037 .loc 1 3965 9 is_stmt 1 view .LVU1764 3965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6038 .loc 1 3965 45 is_stmt 0 view .LVU1765 6039 0090 9B0C lsrs r3, r3, #18 3965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6040 .loc 1 3965 67 view .LVU1766 6041 0092 5B00 lsls r3, r3, #1 3965:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6042 .loc 1 3965 14 view .LVU1767 6043 0094 B0FBF3F0 udiv r0, r0, r3 6044 .LVL442: 3966:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV16: 6045 .loc 1 3966 9 is_stmt 1 view .LVU1768 6046 0098 C8E7 b .L439 6047 .L441: 3957:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6048 .loc 1 3957 5 is_stmt 0 view .LVU1769 ARM GAS /tmp/ccIEHjf0.s page 367 6049 009a B3F5201F cmp r3, #2621440 6050 009e 08D0 beq .L447 6051 00a0 B3F5301F cmp r3, #2883584 6052 00a4 C2D1 bne .L439 3980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6053 .loc 1 3980 9 is_stmt 1 view .LVU1770 3980:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6054 .loc 1 3980 14 is_stmt 0 view .LVU1771 6055 00a6 000A lsrs r0, r0, #8 6056 .LVL443: 3981:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** default: 6057 .loc 1 3981 9 is_stmt 1 view .LVU1772 6058 00a8 C0E7 b .L439 6059 .L442: 3968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6060 .loc 1 3968 9 view .LVU1773 3968:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6061 .loc 1 3968 14 is_stmt 0 view .LVU1774 6062 00aa 0009 lsrs r0, r0, #4 6063 .LVL444: 3969:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV32: 6064 .loc 1 3969 9 is_stmt 1 view .LVU1775 6065 00ac BEE7 b .L439 6066 .L440: 3974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6067 .loc 1 3974 9 view .LVU1776 3974:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6068 .loc 1 3974 14 is_stmt 0 view .LVU1777 6069 00ae 8009 lsrs r0, r0, #6 6070 .LVL445: 3975:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV128: 6071 .loc 1 3975 9 is_stmt 1 view .LVU1778 6072 00b0 BCE7 b .L439 6073 .L447: 3977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6074 .loc 1 3977 9 view .LVU1779 3977:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** break; 6075 .loc 1 3977 14 is_stmt 0 view .LVU1780 6076 00b2 C009 lsrs r0, r0, #7 6077 .LVL446: 3978:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** case ADC_CLOCK_ASYNC_DIV256: 6078 .loc 1 3978 9 is_stmt 1 view .LVU1781 6079 00b4 BAE7 b .L439 6080 .LVL447: 6081 .L449: 3993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6082 .loc 1 3993 8 view .LVU1782 3993:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6083 .loc 1 3993 11 is_stmt 0 view .LVU1783 6084 00b6 104B ldr r3, .L455+8 6085 00b8 9842 cmp r0, r3 6086 00ba 07D8 bhi .L451 3995:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6087 .loc 1 3995 5 is_stmt 1 view .LVU1784 6088 00bc 2268 ldr r2, [r4] 6089 00be 9368 ldr r3, [r2, #8] 6090 00c0 23F44073 bic r3, r3, #768 ARM GAS /tmp/ccIEHjf0.s page 368 6091 00c4 43F48073 orr r3, r3, #256 6092 00c8 9360 str r3, [r2, #8] 6093 00ca B7E7 b .L435 6094 .L451: 3997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6095 .loc 1 3997 8 view .LVU1785 3997:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6096 .loc 1 3997 11 is_stmt 0 view .LVU1786 6097 00cc 0B4B ldr r3, .L455+12 6098 00ce 9842 cmp r0, r3 6099 00d0 07D8 bhi .L452 3999:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6100 .loc 1 3999 5 is_stmt 1 view .LVU1787 6101 00d2 2268 ldr r2, [r4] 6102 00d4 9368 ldr r3, [r2, #8] 6103 00d6 23F44073 bic r3, r3, #768 6104 00da 43F40073 orr r3, r3, #512 6105 00de 9360 str r3, [r2, #8] 6106 00e0 ACE7 b .L435 6107 .L452: 4003:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6108 .loc 1 4003 5 view .LVU1788 6109 00e2 2268 ldr r2, [r4] 6110 00e4 9368 ldr r3, [r2, #8] 6111 00e6 43F44073 orr r3, r3, #768 6112 00ea 9360 str r3, [r2, #8] 6113 .loc 1 4039 1 is_stmt 0 view .LVU1789 6114 00ec A6E7 b .L435 6115 .L456: 6116 00ee 00BF .align 2 6117 .L455: 6118 00f0 00230240 .word 1073881856 6119 00f4 21BCBE00 .word 12500001 6120 00f8 41787D01 .word 25000001 6121 00fc 81F0FA02 .word 50000001 6122 .cfi_endproc 6123 .LFE363: 6125 .section .text.HAL_ADC_Init,"ax",%progbits 6126 .align 1 6127 .global HAL_ADC_Init 6128 .syntax unified 6129 .thumb 6130 .thumb_func 6132 HAL_ADC_Init: 6133 .LVL448: 6134 .LFB335: 408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 6135 .loc 1 408 1 is_stmt 1 view -0 6136 .cfi_startproc 6137 @ args = 0, pretend = 0, frame = 8 6138 @ frame_needed = 0, uses_anonymous_args = 0 408:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 6139 .loc 1 408 1 is_stmt 0 view .LVU1791 6140 0000 30B5 push {r4, r5, lr} 6141 .cfi_def_cfa_offset 12 6142 .cfi_offset 4, -12 6143 .cfi_offset 5, -8 ARM GAS /tmp/ccIEHjf0.s page 369 6144 .cfi_offset 14, -4 6145 0002 83B0 sub sp, sp, #12 6146 .cfi_def_cfa_offset 24 409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpCFGR; 6147 .loc 1 409 3 is_stmt 1 view .LVU1792 6148 .LVL449: 410:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_reg_is_conversion_on_going; 6149 .loc 1 410 3 view .LVU1793 411:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 6150 .loc 1 411 3 view .LVU1794 412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 6151 .loc 1 412 3 view .LVU1795 412:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 6152 .loc 1 412 17 is_stmt 0 view .LVU1796 6153 0004 0023 movs r3, #0 6154 0006 0193 str r3, [sp, #4] 413:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 6155 .loc 1 413 3 is_stmt 1 view .LVU1797 414:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6156 .loc 1 414 3 view .LVU1798 417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6157 .loc 1 417 3 view .LVU1799 417:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6158 .loc 1 417 6 is_stmt 0 view .LVU1800 6159 0008 0028 cmp r0, #0 6160 000a 00F0DF80 beq .L477 6161 000e 0446 mov r4, r0 423:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); 6162 .loc 1 423 3 is_stmt 1 view .LVU1801 424:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); 6163 .loc 1 424 3 view .LVU1802 425:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); 6164 .loc 1 425 3 view .LVU1803 426:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); 6165 .loc 1 426 3 view .LVU1804 427:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); 6166 .loc 1 427 3 view .LVU1805 428:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); 6167 .loc 1 428 3 view .LVU1806 429:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_CONVERSIONDATAMGT(hadc->Init.ConversionDataManagement)); 6168 .loc 1 429 3 view .LVU1807 430:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 6169 .loc 1 430 3 view .LVU1808 431:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); 6170 .loc 1 431 3 view .LVU1809 432:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); 6171 .loc 1 432 3 view .LVU1810 433:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); 6172 .loc 1 433 3 view .LVU1811 434:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6173 .loc 1 434 3 view .LVU1812 436:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6174 .loc 1 436 3 view .LVU1813 438:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); 6175 .loc 1 438 5 view .LVU1814 439:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6176 .loc 1 439 5 view .LVU1815 ARM GAS /tmp/ccIEHjf0.s page 370 441:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6177 .loc 1 441 5 view .LVU1816 443:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6178 .loc 1 443 7 view .LVU1817 448:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6179 .loc 1 448 3 view .LVU1818 452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6180 .loc 1 452 3 view .LVU1819 452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6181 .loc 1 452 11 is_stmt 0 view .LVU1820 6182 0010 436D ldr r3, [r0, #84] 452:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6183 .loc 1 452 6 view .LVU1821 6184 0012 EBB1 cbz r3, .L480 6185 .LVL450: 6186 .L459: 486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6187 .loc 1 486 3 is_stmt 1 view .LVU1822 486:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6188 .loc 1 486 41 is_stmt 0 view .LVU1823 6189 0014 2368 ldr r3, [r4] 6190 .LVL451: 6191 .LBB427: 6192 .LBI427: 6832:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6193 .loc 2 6832 26 is_stmt 1 view .LVU1824 6194 .LBB428: 6834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6195 .loc 2 6834 3 view .LVU1825 6834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6196 .loc 2 6834 12 is_stmt 0 view .LVU1826 6197 0016 9A68 ldr r2, [r3, #8] 6834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6198 .loc 2 6834 74 view .LVU1827 6199 0018 12F0005F tst r2, #536870912 6200 001c 03D0 beq .L460 6201 .LVL452: 6834:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6202 .loc 2 6834 74 view .LVU1828 6203 .LBE428: 6204 .LBE427: 489:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6205 .loc 1 489 5 is_stmt 1 view .LVU1829 6206 .LBB429: 6207 .LBI429: 6818:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6208 .loc 2 6818 22 view .LVU1830 6209 .LBB430: 6823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6210 .loc 2 6823 3 view .LVU1831 6211 001e 9968 ldr r1, [r3, #8] 6212 0020 6B4A ldr r2, .L484 6213 0022 0A40 ands r2, r2, r1 6214 0024 9A60 str r2, [r3, #8] 6215 .LVL453: 6216 .L460: 6823:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } ARM GAS /tmp/ccIEHjf0.s page 371 6217 .loc 2 6823 3 is_stmt 0 view .LVU1832 6218 .LBE430: 6219 .LBE429: 496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6220 .loc 1 496 3 is_stmt 1 view .LVU1833 496:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6221 .loc 1 496 45 is_stmt 0 view .LVU1834 6222 0026 2368 ldr r3, [r4] 6223 .LVL454: 6224 .LBB431: 6225 .LBI431: 6881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6226 .loc 2 6881 26 is_stmt 1 view .LVU1835 6227 .LBB432: 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6228 .loc 2 6883 3 view .LVU1836 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6229 .loc 2 6883 12 is_stmt 0 view .LVU1837 6230 0028 9A68 ldr r2, [r3, #8] 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6231 .loc 2 6883 76 view .LVU1838 6232 002a 12F0805F tst r2, #268435456 6233 002e 1CD1 bne .L461 6234 .LVL455: 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6235 .loc 2 6883 76 view .LVU1839 6236 .LBE432: 6237 .LBE431: 499:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6238 .loc 1 499 5 is_stmt 1 view .LVU1840 6239 .LBB433: 6240 .LBI433: 6851:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6241 .loc 2 6851 22 view .LVU1841 6242 .LBB434: 6856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6243 .loc 2 6856 3 view .LVU1842 6244 0030 9968 ldr r1, [r3, #8] 6245 0032 684A ldr r2, .L484+4 6246 0034 0A40 ands r2, r2, r1 6247 0036 42F08052 orr r2, r2, #268435456 6248 003a 9A60 str r2, [r3, #8] 6249 .LVL456: 6856:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6250 .loc 2 6856 3 is_stmt 0 view .LVU1843 6251 .LBE434: 6252 .LBE433: 504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 6253 .loc 1 504 5 is_stmt 1 view .LVU1844 504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 6254 .loc 1 504 89 is_stmt 0 view .LVU1845 6255 003c 664B ldr r3, .L484+8 6256 003e 1B68 ldr r3, [r3] 6257 0040 9B09 lsrs r3, r3, #6 6258 0042 664A ldr r2, .L484+12 6259 0044 A2FB0323 umull r2, r3, r2, r3 6260 0048 9B09 lsrs r3, r3, #6 ARM GAS /tmp/ccIEHjf0.s page 372 504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 6261 .loc 1 504 69 view .LVU1846 6262 004a 0133 adds r3, r3, #1 504:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** while (wait_loop_index != 0UL) 6263 .loc 1 504 21 view .LVU1847 6264 004c 0193 str r3, [sp, #4] 505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6265 .loc 1 505 5 is_stmt 1 view .LVU1848 505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6266 .loc 1 505 11 is_stmt 0 view .LVU1849 6267 004e 09E0 b .L462 6268 .LVL457: 6269 .L480: 475:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 6270 .loc 1 475 5 is_stmt 1 view .LVU1850 6271 0050 FFF7FEFF bl HAL_ADC_MspInit 6272 .LVL458: 479:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6273 .loc 1 479 5 view .LVU1851 6274 0054 0023 movs r3, #0 6275 0056 A365 str r3, [r4, #88] 482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6276 .loc 1 482 5 view .LVU1852 482:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6277 .loc 1 482 16 is_stmt 0 view .LVU1853 6278 0058 84F85030 strb r3, [r4, #80] 6279 005c DAE7 b .L459 6280 .L463: 507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6281 .loc 1 507 7 is_stmt 1 view .LVU1854 507:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6282 .loc 1 507 22 is_stmt 0 view .LVU1855 6283 005e 019B ldr r3, [sp, #4] 6284 0060 013B subs r3, r3, #1 6285 0062 0193 str r3, [sp, #4] 6286 .L462: 505:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6287 .loc 1 505 28 is_stmt 1 view .LVU1856 6288 0064 019B ldr r3, [sp, #4] 6289 0066 002B cmp r3, #0 6290 0068 F9D1 bne .L463 6291 .L461: 514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6292 .loc 1 514 3 view .LVU1857 514:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6293 .loc 1 514 45 is_stmt 0 view .LVU1858 6294 006a 2268 ldr r2, [r4] 6295 .LVL459: 6296 .LBB435: 6297 .LBI435: 6881:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6298 .loc 2 6881 26 is_stmt 1 view .LVU1859 6299 .LBB436: 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6300 .loc 2 6883 3 view .LVU1860 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6301 .loc 2 6883 12 is_stmt 0 view .LVU1861 ARM GAS /tmp/ccIEHjf0.s page 373 6302 006c 9368 ldr r3, [r2, #8] 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6303 .loc 2 6883 76 view .LVU1862 6304 006e 13F0805F tst r3, #268435456 6305 0072 40F08180 bne .L478 6306 .LVL460: 6883:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6307 .loc 2 6883 76 view .LVU1863 6308 .LBE436: 6309 .LBE435: 517:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6310 .loc 1 517 5 is_stmt 1 view .LVU1864 6311 0076 636D ldr r3, [r4, #84] 6312 0078 43F01003 orr r3, r3, #16 6313 007c 6365 str r3, [r4, #84] 520:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6314 .loc 1 520 5 view .LVU1865 6315 007e A36D ldr r3, [r4, #88] 6316 0080 43F00103 orr r3, r3, #1 6317 0084 A365 str r3, [r4, #88] 522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6318 .loc 1 522 5 view .LVU1866 6319 .LVL461: 522:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6320 .loc 1 522 20 is_stmt 0 view .LVU1867 6321 0086 0125 movs r5, #1 6322 .LVL462: 6323 .L464: 529:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6324 .loc 1 529 3 is_stmt 1 view .LVU1868 6325 .LBB437: 6326 .LBI437: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6327 .loc 2 7073 26 view .LVU1869 6328 .LBB438: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6329 .loc 2 7075 3 view .LVU1870 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6330 .loc 2 7075 12 is_stmt 0 view .LVU1871 6331 0088 9368 ldr r3, [r2, #8] 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6332 .loc 2 7075 74 view .LVU1872 6333 008a 13F00403 ands r3, r3, #4 6334 008e 00D0 beq .L465 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6335 .loc 2 7075 74 discriminator 1 view .LVU1873 6336 0090 0123 movs r3, #1 6337 .L465: 6338 .LVL463: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6339 .loc 2 7075 74 discriminator 1 view .LVU1874 6340 .LBE438: 6341 .LBE437: 531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 6342 .loc 1 531 3 is_stmt 1 view .LVU1875 531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 6343 .loc 1 531 13 is_stmt 0 view .LVU1876 ARM GAS /tmp/ccIEHjf0.s page 374 6344 0092 616D ldr r1, [r4, #84] 531:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 6345 .loc 1 531 6 view .LVU1877 6346 0094 11F0100F tst r1, #16 6347 0098 40F09080 bne .L466 532:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ) 6348 .loc 1 532 7 view .LVU1878 6349 009c 002B cmp r3, #0 6350 009e 40F08D80 bne .L466 536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 6351 .loc 1 536 5 is_stmt 1 view .LVU1879 6352 00a2 636D ldr r3, [r4, #84] 6353 .LVL464: 536:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 6354 .loc 1 536 5 is_stmt 0 view .LVU1880 6355 00a4 23F48173 bic r3, r3, #258 6356 00a8 43F00203 orr r3, r3, #2 6357 00ac 6365 str r3, [r4, #84] 545:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6358 .loc 1 545 5 is_stmt 1 view .LVU1881 6359 .LVL465: 6360 .LBB439: 6361 .LBI439: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6362 .loc 2 6941 26 view .LVU1882 6363 .LBB440: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6364 .loc 2 6943 3 view .LVU1883 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6365 .loc 2 6943 12 is_stmt 0 view .LVU1884 6366 00ae 9368 ldr r3, [r2, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6367 .loc 2 6943 68 view .LVU1885 6368 00b0 13F0010F tst r3, #1 6369 00b4 12D1 bne .L467 6370 .LVL466: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6371 .loc 2 6943 68 view .LVU1886 6372 .LBE440: 6373 .LBE439: 547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6374 .loc 1 547 7 is_stmt 1 view .LVU1887 6375 .LBB441: 6376 .LBI441: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6377 .loc 2 6941 26 view .LVU1888 6378 .LBB442: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6379 .loc 2 6943 3 view .LVU1889 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6380 .loc 2 6943 12 is_stmt 0 view .LVU1890 6381 00b6 4A4B ldr r3, .L484+16 6382 00b8 9B68 ldr r3, [r3, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6383 .loc 2 6943 68 view .LVU1891 6384 00ba 13F00103 ands r3, r3, #1 6385 00be 00D0 beq .L468 ARM GAS /tmp/ccIEHjf0.s page 375 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6386 .loc 2 6943 68 discriminator 1 view .LVU1892 6387 00c0 0123 movs r3, #1 6388 .L468: 6389 .LVL467: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6390 .loc 2 6943 68 discriminator 1 view .LVU1893 6391 .LBE442: 6392 .LBE441: 6393 .LBB443: 6394 .LBI443: 6941:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6395 .loc 2 6941 26 is_stmt 1 view .LVU1894 6396 .LBB444: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6397 .loc 2 6943 3 view .LVU1895 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6398 .loc 2 6943 12 is_stmt 0 view .LVU1896 6399 00c2 484A ldr r2, .L484+20 6400 00c4 9268 ldr r2, [r2, #8] 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6401 .loc 2 6943 68 view .LVU1897 6402 00c6 12F0010F tst r2, #1 6403 00ca 07D1 bne .L467 6404 .LVL468: 6943:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6405 .loc 2 6943 68 view .LVU1898 6406 .LBE444: 6407 .LBE443: 547:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6408 .loc 1 547 10 discriminator 2 view .LVU1899 6409 00cc 33B9 cbnz r3, .L467 566:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6410 .loc 1 566 9 is_stmt 1 view .LVU1900 6411 00ce 6368 ldr r3, [r4, #4] 6412 .LVL469: 6413 .LBB445: 6414 .LBI445: 2663:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6415 .loc 2 2663 22 view .LVU1901 6416 .LBB446: 2665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6417 .loc 2 2665 3 view .LVU1902 6418 00d0 4549 ldr r1, .L484+24 6419 00d2 8A68 ldr r2, [r1, #8] 6420 00d4 22F47C12 bic r2, r2, #4128768 6421 00d8 1343 orrs r3, r3, r2 6422 .LVL470: 2665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6423 .loc 2 2665 3 is_stmt 0 view .LVU1903 6424 00da 8B60 str r3, [r1, #8] 6425 .LVL471: 6426 .L467: 2665:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6427 .loc 2 2665 3 view .LVU1904 6428 .LBE446: 6429 .LBE445: ARM GAS /tmp/ccIEHjf0.s page 376 580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 6430 .loc 1 580 5 is_stmt 1 view .LVU1905 580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 6431 .loc 1 580 17 is_stmt 0 view .LVU1906 6432 00dc 627D ldrb r2, [r4, #21] @ zero_extendqisi2 581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | 6433 .loc 1 581 27 view .LVU1907 6434 00de 236B ldr r3, [r4, #48] 580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 6435 .loc 1 580 88 view .LVU1908 6436 00e0 43EA4233 orr r3, r3, r2, lsl #13 582:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 6437 .loc 1 582 27 view .LVU1909 6438 00e4 A268 ldr r2, [r4, #8] 581:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Resolution | 6439 .loc 1 581 87 view .LVU1910 6440 00e6 1343 orrs r3, r3, r2 583:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6441 .loc 1 583 17 view .LVU1911 6442 00e8 227F ldrb r2, [r4, #28] @ zero_extendqisi2 580:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** hadc->Init.Overrun | 6443 .loc 1 580 14 view .LVU1912 6444 00ea 43EA0243 orr r3, r3, r2, lsl #16 6445 .LVL472: 623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6446 .loc 1 623 5 is_stmt 1 view .LVU1913 623:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6447 .loc 1 623 8 is_stmt 0 view .LVU1914 6448 00ee 012A cmp r2, #1 6449 00f0 44D0 beq .L481 6450 .LVL473: 6451 .L469: 633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6452 .loc 1 633 5 is_stmt 1 view .LVU1915 633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6453 .loc 1 633 19 is_stmt 0 view .LVU1916 6454 00f2 626A ldr r2, [r4, #36] 633:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6455 .loc 1 633 8 view .LVU1917 6456 00f4 22B1 cbz r2, .L470 635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 6457 .loc 1 635 7 is_stmt 1 view .LVU1918 635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 6458 .loc 1 635 48 is_stmt 0 view .LVU1919 6459 00f6 02F47872 and r2, r2, #992 636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ); 6460 .loc 1 636 31 view .LVU1920 6461 00fa A16A ldr r1, [r4, #40] 636:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ); 6462 .loc 1 636 19 view .LVU1921 6463 00fc 0A43 orrs r2, r2, r1 635:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 6464 .loc 1 635 15 view .LVU1922 6465 00fe 1343 orrs r3, r3, r2 6466 .LVL474: 6467 .L470: 656:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif ARM GAS /tmp/ccIEHjf0.s page 377 6468 .loc 1 656 5 is_stmt 1 view .LVU1923 6469 0100 2168 ldr r1, [r4] 6470 0102 C868 ldr r0, [r1, #12] 6471 0104 394A ldr r2, .L484+28 6472 0106 0240 ands r2, r2, r0 6473 0108 1A43 orrs r2, r2, r3 6474 010a CA60 str r2, [r1, #12] 665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 6475 .loc 1 665 5 view .LVU1924 665:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 6476 .loc 1 665 81 is_stmt 0 view .LVU1925 6477 010c 2268 ldr r2, [r4] 6478 .LVL475: 6479 .LBB447: 6480 .LBI447: 7073:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6481 .loc 2 7073 26 is_stmt 1 view .LVU1926 6482 .LBB448: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6483 .loc 2 7075 3 view .LVU1927 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6484 .loc 2 7075 12 is_stmt 0 view .LVU1928 6485 010e 9368 ldr r3, [r2, #8] 6486 .LVL476: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6487 .loc 2 7075 74 view .LVU1929 6488 0110 13F00403 ands r3, r3, #4 6489 0114 00D0 beq .L471 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6490 .loc 2 7075 74 discriminator 1 view .LVU1930 6491 0116 0123 movs r3, #1 6492 .L471: 6493 .LVL477: 7075:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6494 .loc 2 7075 74 discriminator 1 view .LVU1931 6495 .LBE448: 6496 .LBE447: 666:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 6497 .loc 1 666 5 is_stmt 1 view .LVU1932 6498 .LBB449: 6499 .LBI449: 7268:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** { 6500 .loc 2 7268 26 view .LVU1933 6501 .LBB450: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6502 .loc 2 7270 3 view .LVU1934 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6503 .loc 2 7270 12 is_stmt 0 view .LVU1935 6504 0118 9168 ldr r1, [r2, #8] 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6505 .loc 2 7270 76 view .LVU1936 6506 011a 11F0080F tst r1, #8 6507 011e 1CD1 bne .L472 6508 .LVL478: 7270:Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_adc.h **** } 6509 .loc 2 7270 76 view .LVU1937 6510 .LBE450: ARM GAS /tmp/ccIEHjf0.s page 378 6511 .LBE449: 667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 6512 .loc 1 667 5 is_stmt 1 view .LVU1938 667:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 6513 .loc 1 667 8 is_stmt 0 view .LVU1939 6514 0120 DBB9 cbnz r3, .L472 685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 6515 .loc 1 685 7 is_stmt 1 view .LVU1940 686:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement)); 6516 .loc 1 686 19 is_stmt 0 view .LVU1941 6517 0122 217D ldrb r1, [r4, #20] @ zero_extendqisi2 687:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 6518 .loc 1 687 19 view .LVU1942 6519 0124 E36A ldr r3, [r4, #44] 6520 .LVL479: 685:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 6521 .loc 1 685 15 view .LVU1943 6522 0126 43EA8131 orr r1, r3, r1, lsl #14 6523 .LVL480: 690:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6524 .loc 1 690 7 is_stmt 1 view .LVU1944 6525 012a D068 ldr r0, [r2, #12] 6526 012c 304B ldr r3, .L484+32 6527 012e 0340 ands r3, r3, r0 6528 0130 0B43 orrs r3, r3, r1 6529 0132 D360 str r3, [r2, #12] 692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6530 .loc 1 692 7 view .LVU1945 692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6531 .loc 1 692 21 is_stmt 0 view .LVU1946 6532 0134 94F83830 ldrb r3, [r4, #56] @ zero_extendqisi2 692:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6533 .loc 1 692 10 view .LVU1947 6534 0138 012B cmp r3, #1 6535 013a 24D0 beq .L482 772:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6536 .loc 1 772 9 is_stmt 1 view .LVU1948 6537 013c 2268 ldr r2, [r4] 6538 013e 1369 ldr r3, [r2, #16] 6539 0140 23F00103 bic r3, r3, #1 6540 0144 1361 str r3, [r2, #16] 6541 .LVL481: 6542 .L474: 776:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #if defined(ADC_VER_V5_V90) 6543 .loc 1 776 7 view .LVU1949 6544 0146 2268 ldr r2, [r4] 6545 0148 1369 ldr r3, [r2, #16] 6546 014a 23F07043 bic r3, r3, #-268435456 6547 014e 616B ldr r1, [r4, #52] 6548 0150 0B43 orrs r3, r3, r1 6549 0152 1361 str r3, [r2, #16] 785:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 6550 .loc 1 785 7 view .LVU1950 6551 0154 2046 mov r0, r4 6552 0156 FFF7FEFF bl ADC_ConfigureBoostMode 6553 .LVL482: 6554 .L472: ARM GAS /tmp/ccIEHjf0.s page 379 798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6555 .loc 1 798 5 view .LVU1951 798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6556 .loc 1 798 19 is_stmt 0 view .LVU1952 6557 015a E368 ldr r3, [r4, #12] 798:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** { 6558 .loc 1 798 8 view .LVU1953 6559 015c 012B cmp r3, #1 6560 015e 24D0 beq .L483 805:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6561 .loc 1 805 7 is_stmt 1 view .LVU1954 6562 0160 2268 ldr r2, [r4] 6563 0162 136B ldr r3, [r2, #48] 6564 0164 23F00F03 bic r3, r3, #15 6565 0168 1363 str r3, [r2, #48] 6566 .L476: 810:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6567 .loc 1 810 5 view .LVU1955 6568 016a 636D ldr r3, [r4, #84] 6569 016c 23F00303 bic r3, r3, #3 6570 0170 43F00103 orr r3, r3, #1 6571 0174 6365 str r3, [r4, #84] 6572 0176 26E0 b .L458 6573 .LVL483: 6574 .L478: 409:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** uint32_t tmpCFGR; 6575 .loc 1 409 21 is_stmt 0 view .LVU1956 6576 0178 0025 movs r5, #0 6577 017a 85E7 b .L464 6578 .LVL484: 6579 .L481: 625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6580 .loc 1 625 7 is_stmt 1 view .LVU1957 625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6581 .loc 1 625 18 is_stmt 0 view .LVU1958 6582 017c 226A ldr r2, [r4, #32] 6583 017e 013A subs r2, r2, #1 625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6584 .loc 1 625 15 view .LVU1959 6585 0180 43EA4243 orr r3, r3, r2, lsl #17 6586 .LVL485: 625:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6587 .loc 1 625 15 view .LVU1960 6588 0184 B5E7 b .L469 6589 .LVL486: 6590 .L482: 704:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** #endif 6591 .loc 1 704 9 is_stmt 1 view .LVU1961 706:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 6592 .loc 1 706 9 view .LVU1962 707:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 6593 .loc 1 707 9 view .LVU1963 708:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6594 .loc 1 708 9 view .LVU1964 710:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** || (hadc->Init.ExternalTrigConvEdge == ADC_EXTERNALTRIGCONVEDGE_NONE)) 6595 .loc 1 710 9 view .LVU1965 714:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } ARM GAS /tmp/ccIEHjf0.s page 380 6596 .loc 1 714 11 view .LVU1966 760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSE | 6597 .loc 1 760 9 view .LVU1967 6598 0186 2068 ldr r0, [r4] 6599 0188 0269 ldr r2, [r0, #16] 6600 018a 1A4B ldr r3, .L484+36 6601 018c 1340 ands r3, r3, r2 6602 018e E26B ldr r2, [r4, #60] 6603 0190 511E subs r1, r2, #1 6604 .LVL487: 760:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** ADC_CFGR2_ROVSE | 6605 .loc 1 760 9 is_stmt 0 view .LVU1968 6606 0192 226C ldr r2, [r4, #64] 6607 0194 42EA0142 orr r2, r2, r1, lsl #16 6608 0198 616C ldr r1, [r4, #68] 6609 019a 0A43 orrs r2, r2, r1 6610 019c A16C ldr r1, [r4, #72] 6611 019e 0A43 orrs r2, r2, r1 6612 01a0 1343 orrs r3, r3, r2 6613 01a2 43F00103 orr r3, r3, #1 6614 01a6 0361 str r3, [r0, #16] 6615 01a8 CDE7 b .L474 6616 .LVL488: 6617 .L483: 801:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6618 .loc 1 801 7 is_stmt 1 view .LVU1969 6619 01aa 2168 ldr r1, [r4] 6620 01ac 0B6B ldr r3, [r1, #48] 6621 01ae 23F00F03 bic r3, r3, #15 6622 01b2 A269 ldr r2, [r4, #24] 6623 01b4 013A subs r2, r2, #1 6624 01b6 1343 orrs r3, r3, r2 6625 01b8 0B63 str r3, [r1, #48] 6626 01ba D6E7 b .L476 6627 .LVL489: 6628 .L466: 815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6629 .loc 1 815 5 view .LVU1970 6630 01bc 636D ldr r3, [r4, #84] 6631 .LVL490: 815:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6632 .loc 1 815 5 is_stmt 0 view .LVU1971 6633 01be 43F01003 orr r3, r3, #16 6634 01c2 6365 str r3, [r4, #84] 817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6635 .loc 1 817 5 is_stmt 1 view .LVU1972 6636 .LVL491: 817:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6637 .loc 1 817 20 is_stmt 0 view .LVU1973 6638 01c4 0125 movs r5, #1 6639 .LVL492: 6640 .L458: 822:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** 6641 .loc 1 822 1 view .LVU1974 6642 01c6 2846 mov r0, r5 6643 01c8 03B0 add sp, sp, #12 6644 .cfi_remember_state ARM GAS /tmp/ccIEHjf0.s page 381 6645 .cfi_def_cfa_offset 12 6646 @ sp needed 6647 01ca 30BD pop {r4, r5, pc} 6648 .LVL493: 6649 .L477: 6650 .cfi_restore_state 419:Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c **** } 6651 .loc 1 419 12 view .LVU1975 6652 01cc 0125 movs r5, #1 6653 01ce FAE7 b .L458 6654 .L485: 6655 .align 2 6656 .L484: 6657 01d0 C0FFFF5F .word 1610612672 6658 01d4 C0FFFF6F .word 1879048128 6659 01d8 00000000 .word SystemCoreClock 6660 01dc 632D3E05 .word 87960931 6661 01e0 00200240 .word 1073881088 6662 01e4 00210240 .word 1073881344 6663 01e8 00230240 .word 1073881856 6664 01ec 03C0F0FF .word -999421 6665 01f0 FCBFFFFF .word -16388 6666 01f4 1EF800FC .word -67045346 6667 .cfi_endproc 6668 .LFE335: 6670 .text 6671 .Letext0: 6672 .file 4 "/home/k/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-none-ea 6673 .file 5 "/home/k/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-none-ea 6674 .file 6 "Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7a3xx.h" 6675 .file 7 "Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h" 6676 .file 8 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h" 6677 .file 9 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_dma.h" 6678 .file 10 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc.h" 6679 .file 11 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc_ex.h" 6680 .file 12 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc_ex.h" 6681 .file 13 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h" 6682 .file 14 "Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h" 6683 .file 15 "Drivers/CMSIS/Device/ST/STM32H7xx/Include/system_stm32h7xx.h" ARM GAS /tmp/ccIEHjf0.s page 382 DEFINED SYMBOLS *ABS*:00000000 stm32h7xx_hal_adc.c /tmp/ccIEHjf0.s:20 .text.LL_ADC_REG_SetSequencerRanks:00000000 $t /tmp/ccIEHjf0.s:25 .text.LL_ADC_REG_SetSequencerRanks:00000000 LL_ADC_REG_SetSequencerRanks /tmp/ccIEHjf0.s:70 .text.LL_ADC_SetChannelSamplingTime:00000000 $t /tmp/ccIEHjf0.s:75 .text.LL_ADC_SetChannelSamplingTime:00000000 LL_ADC_SetChannelSamplingTime /tmp/ccIEHjf0.s:118 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 $t /tmp/ccIEHjf0.s:123 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 LL_ADC_SetAnalogWDMonitChannels /tmp/ccIEHjf0.s:163 .text.LL_ADC_SetAnalogWDMonitChannels:0000002c $d /tmp/ccIEHjf0.s:168 .text.LL_ADC_SetChannelPreselection:00000000 $t /tmp/ccIEHjf0.s:173 .text.LL_ADC_SetChannelPreselection:00000000 LL_ADC_SetChannelPreselection /tmp/ccIEHjf0.s:256 .text.HAL_ADC_MspInit:00000000 $t /tmp/ccIEHjf0.s:262 .text.HAL_ADC_MspInit:00000000 HAL_ADC_MspInit /tmp/ccIEHjf0.s:277 .text.HAL_ADC_MspDeInit:00000000 $t /tmp/ccIEHjf0.s:283 .text.HAL_ADC_MspDeInit:00000000 HAL_ADC_MspDeInit /tmp/ccIEHjf0.s:298 .text.HAL_ADC_PollForConversion:00000000 $t /tmp/ccIEHjf0.s:304 .text.HAL_ADC_PollForConversion:00000000 HAL_ADC_PollForConversion /tmp/ccIEHjf0.s:587 .text.HAL_ADC_PollForConversion:00000114 $d /tmp/ccIEHjf0.s:593 .text.HAL_ADC_PollForEvent:00000000 $t /tmp/ccIEHjf0.s:599 .text.HAL_ADC_PollForEvent:00000000 HAL_ADC_PollForEvent /tmp/ccIEHjf0.s:786 .text.HAL_ADC_GetValue:00000000 $t /tmp/ccIEHjf0.s:792 .text.HAL_ADC_GetValue:00000000 HAL_ADC_GetValue /tmp/ccIEHjf0.s:813 .text.HAL_ADC_ConvCpltCallback:00000000 $t /tmp/ccIEHjf0.s:819 .text.HAL_ADC_ConvCpltCallback:00000000 HAL_ADC_ConvCpltCallback /tmp/ccIEHjf0.s:834 .text.HAL_ADC_ConvHalfCpltCallback:00000000 $t /tmp/ccIEHjf0.s:840 .text.HAL_ADC_ConvHalfCpltCallback:00000000 HAL_ADC_ConvHalfCpltCallback /tmp/ccIEHjf0.s:855 .text.ADC_DMAHalfConvCplt:00000000 $t /tmp/ccIEHjf0.s:861 .text.ADC_DMAHalfConvCplt:00000000 ADC_DMAHalfConvCplt /tmp/ccIEHjf0.s:887 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 $t /tmp/ccIEHjf0.s:893 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 HAL_ADC_LevelOutOfWindowCallback /tmp/ccIEHjf0.s:908 .text.HAL_ADC_ErrorCallback:00000000 $t /tmp/ccIEHjf0.s:914 .text.HAL_ADC_ErrorCallback:00000000 HAL_ADC_ErrorCallback /tmp/ccIEHjf0.s:929 .text.HAL_ADC_IRQHandler:00000000 $t /tmp/ccIEHjf0.s:935 .text.HAL_ADC_IRQHandler:00000000 HAL_ADC_IRQHandler /tmp/ccIEHjf0.s:1505 .text.HAL_ADC_IRQHandler:00000274 $d /tmp/ccIEHjf0.s:1510 .text.HAL_ADC_IRQHandler:0000027c $t /tmp/ccIEHjf0.s:1541 .text.ADC_DMAConvCplt:00000000 $t /tmp/ccIEHjf0.s:1547 .text.ADC_DMAConvCplt:00000000 ADC_DMAConvCplt /tmp/ccIEHjf0.s:1681 .text.ADC_DMAError:00000000 $t /tmp/ccIEHjf0.s:1687 .text.ADC_DMAError:00000000 ADC_DMAError /tmp/ccIEHjf0.s:1720 .text.HAL_ADC_ConfigChannel:00000000 $t /tmp/ccIEHjf0.s:1726 .text.HAL_ADC_ConfigChannel:00000000 HAL_ADC_ConfigChannel /tmp/ccIEHjf0.s:2473 .text.HAL_ADC_ConfigChannel:00000304 $d /tmp/ccIEHjf0.s:2499 .text.HAL_ADC_ConfigChannel:00000364 $t /tmp/ccIEHjf0.s:2680 .text.HAL_ADC_ConfigChannel:00000410 $d /tmp/ccIEHjf0.s:2688 .text.HAL_ADC_AnalogWDGConfig:00000000 $t /tmp/ccIEHjf0.s:2694 .text.HAL_ADC_AnalogWDGConfig:00000000 HAL_ADC_AnalogWDGConfig /tmp/ccIEHjf0.s:3483 .text.HAL_ADC_AnalogWDGConfig:000002f0 $d /tmp/ccIEHjf0.s:3499 .text.HAL_ADC_AnalogWDGConfig:000002fc $t /tmp/ccIEHjf0.s:3713 .text.HAL_ADC_GetState:00000000 $t /tmp/ccIEHjf0.s:3719 .text.HAL_ADC_GetState:00000000 HAL_ADC_GetState /tmp/ccIEHjf0.s:3738 .text.HAL_ADC_GetError:00000000 $t /tmp/ccIEHjf0.s:3744 .text.HAL_ADC_GetError:00000000 HAL_ADC_GetError /tmp/ccIEHjf0.s:3763 .text.ADC_ConversionStop:00000000 $t /tmp/ccIEHjf0.s:3769 .text.ADC_ConversionStop:00000000 ADC_ConversionStop /tmp/ccIEHjf0.s:4088 .text.ADC_ConversionStop:000000f4 $d /tmp/ccIEHjf0.s:4094 .text.ADC_Enable:00000000 $t ARM GAS /tmp/ccIEHjf0.s page 383 /tmp/ccIEHjf0.s:4100 .text.ADC_Enable:00000000 ADC_Enable /tmp/ccIEHjf0.s:4309 .text.ADC_Enable:000000ac $d /tmp/ccIEHjf0.s:4317 .text.HAL_ADC_Start:00000000 $t /tmp/ccIEHjf0.s:4323 .text.HAL_ADC_Start:00000000 HAL_ADC_Start /tmp/ccIEHjf0.s:4543 .text.HAL_ADC_Start:000000ec $d /tmp/ccIEHjf0.s:4550 .text.HAL_ADC_Start_IT:00000000 $t /tmp/ccIEHjf0.s:4556 .text.HAL_ADC_Start_IT:00000000 HAL_ADC_Start_IT /tmp/ccIEHjf0.s:4871 .text.HAL_ADC_Start_IT:00000180 $d /tmp/ccIEHjf0.s:4878 .text.HAL_ADC_Start_DMA:00000000 $t /tmp/ccIEHjf0.s:4884 .text.HAL_ADC_Start_DMA:00000000 HAL_ADC_Start_DMA /tmp/ccIEHjf0.s:5127 .text.HAL_ADC_Start_DMA:000000f4 $d /tmp/ccIEHjf0.s:5137 .text.ADC_Disable:00000000 $t /tmp/ccIEHjf0.s:5143 .text.ADC_Disable:00000000 ADC_Disable /tmp/ccIEHjf0.s:5310 .text.ADC_Disable:00000090 $d /tmp/ccIEHjf0.s:5315 .text.HAL_ADC_DeInit:00000000 $t /tmp/ccIEHjf0.s:5321 .text.HAL_ADC_DeInit:00000000 HAL_ADC_DeInit /tmp/ccIEHjf0.s:5599 .text.HAL_ADC_DeInit:00000198 $d /tmp/ccIEHjf0.s:5612 .text.HAL_ADC_Stop:00000000 $t /tmp/ccIEHjf0.s:5618 .text.HAL_ADC_Stop:00000000 HAL_ADC_Stop /tmp/ccIEHjf0.s:5692 .text.HAL_ADC_Stop:00000040 $d /tmp/ccIEHjf0.s:5697 .text.HAL_ADC_Stop_IT:00000000 $t /tmp/ccIEHjf0.s:5703 .text.HAL_ADC_Stop_IT:00000000 HAL_ADC_Stop_IT /tmp/ccIEHjf0.s:5782 .text.HAL_ADC_Stop_IT:00000048 $d /tmp/ccIEHjf0.s:5787 .text.HAL_ADC_Stop_DMA:00000000 $t /tmp/ccIEHjf0.s:5793 .text.HAL_ADC_Stop_DMA:00000000 HAL_ADC_Stop_DMA /tmp/ccIEHjf0.s:5914 .text.HAL_ADC_Stop_DMA:0000007c $d /tmp/ccIEHjf0.s:5919 .text.ADC_ConfigureBoostMode:00000000 $t /tmp/ccIEHjf0.s:5925 .text.ADC_ConfigureBoostMode:00000000 ADC_ConfigureBoostMode /tmp/ccIEHjf0.s:6118 .text.ADC_ConfigureBoostMode:000000f0 $d /tmp/ccIEHjf0.s:6126 .text.HAL_ADC_Init:00000000 $t /tmp/ccIEHjf0.s:6132 .text.HAL_ADC_Init:00000000 HAL_ADC_Init /tmp/ccIEHjf0.s:6657 .text.HAL_ADC_Init:000001d0 $d UNDEFINED SYMBOLS HAL_GetTick HAL_ADCEx_EndOfSamplingCallback HAL_ADCEx_InjectedConvCpltCallback HAL_ADCEx_LevelOutOfWindow2Callback HAL_ADCEx_LevelOutOfWindow3Callback HAL_ADCEx_InjectedQueueOverflowCallback SystemCoreClock HAL_DMA_Start_IT HAL_DMA_Abort HAL_RCC_GetHCLKFreq HAL_RCCEx_GetPeriphCLKFreq