ARM GAS /tmp/ccICigVb.s page 1 1 .cpu cortex-m4 2 .arch armv7e-m 3 .fpu fpv4-sp-d16 4 .eabi_attribute 27, 1 5 .eabi_attribute 28, 1 6 .eabi_attribute 20, 1 7 .eabi_attribute 21, 1 8 .eabi_attribute 23, 3 9 .eabi_attribute 24, 1 10 .eabi_attribute 25, 1 11 .eabi_attribute 26, 1 12 .eabi_attribute 30, 1 13 .eabi_attribute 34, 1 14 .eabi_attribute 18, 4 15 .file "stm32g4xx_hal_adc.c" 16 .text 17 .Ltext0: 18 .cfi_sections .debug_frame 19 .file 1 "Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c" 20 .section .text.LL_ADC_REG_SetSequencerRanks,"ax",%progbits 21 .align 1 22 .syntax unified 23 .thumb 24 .thumb_func 26 LL_ADC_REG_SetSequencerRanks: 27 .LVL0: 28 .LFB171: 29 .file 2 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h" 1:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ****************************************************************************** 3:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @file stm32g4xx_ll_adc.h 4:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @author MCD Application Team 5:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Header file of ADC LL module. 6:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ****************************************************************************** 7:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @attention 8:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 9:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Copyright (c) 2019 STMicroelectronics. 10:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All rights reserved. 11:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This software is licensed under terms that can be found in the LICENSE file 13:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in the root directory of this software component. 14:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If no LICENSE file comes with this software, it is provided AS-IS. 15:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 16:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ****************************************************************************** 17:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 18:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 19:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Define to prevent recursive inclusion -------------------------------------*/ 20:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #ifndef STM32G4xx_LL_ADC_H 21:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define STM32G4xx_LL_ADC_H 22:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 23:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #ifdef __cplusplus 24:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** extern "C" { 25:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif 26:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 27:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Includes ------------------------------------------------------------------*/ 28:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #include "stm32g4xx.h" 29:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 2 30:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @addtogroup STM32G4xx_LL_Driver 31:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 32:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 33:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 34:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined (ADC1) || defined (ADC2) || defined (ADC3) || defined (ADC4) || defined (ADC5) 35:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 36:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL ADC 37:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 38:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 39:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 40:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Private types -------------------------------------------------------------*/ 41:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Private variables ---------------------------------------------------------*/ 42:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 43:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Private constants ---------------------------------------------------------*/ 44:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Private_Constants ADC Private Constants 45:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 46:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 47:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 48:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC group regular sequencer: */ 49:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_REG_RANK_x the relevant bits for: */ 50:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - sequencer register offset */ 51:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - sequencer rank bits position into the selected register */ 52:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 53:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC group regular sequencer configuration */ 54:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 55:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SQR1_REGOFFSET (0x00000000UL) 56:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SQR2_REGOFFSET (0x00000100UL) 57:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SQR3_REGOFFSET (0x00000200UL) 58:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SQR4_REGOFFSET (0x00000300UL) 59:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 60:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_SQRX_REGOFFSET_MASK (ADC_SQR1_REGOFFSET | ADC_SQR2_REGOFFSET \ 61:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR3_REGOFFSET | ADC_SQR4_REGOFFSET) 62:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SQRX_REGOFFSET_POS (8UL) /* Position of bits ADC_SQRx_REGOFFSET in ADC_REG_ 63:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_ID_SQRX_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) 64:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 65:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group regular sequencer bits information to be inserted */ 66:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* into ADC group regular sequencer ranks literals definition. */ 67:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_1_SQRX_BITOFFSET_POS (ADC_SQR1_SQ1_Pos) 68:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_2_SQRX_BITOFFSET_POS (ADC_SQR1_SQ2_Pos) 69:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_3_SQRX_BITOFFSET_POS (ADC_SQR1_SQ3_Pos) 70:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_4_SQRX_BITOFFSET_POS (ADC_SQR1_SQ4_Pos) 71:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_5_SQRX_BITOFFSET_POS (ADC_SQR2_SQ5_Pos) 72:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_6_SQRX_BITOFFSET_POS (ADC_SQR2_SQ6_Pos) 73:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_7_SQRX_BITOFFSET_POS (ADC_SQR2_SQ7_Pos) 74:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_8_SQRX_BITOFFSET_POS (ADC_SQR2_SQ8_Pos) 75:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_9_SQRX_BITOFFSET_POS (ADC_SQR2_SQ9_Pos) 76:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_10_SQRX_BITOFFSET_POS (ADC_SQR3_SQ10_Pos) 77:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_11_SQRX_BITOFFSET_POS (ADC_SQR3_SQ11_Pos) 78:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_12_SQRX_BITOFFSET_POS (ADC_SQR3_SQ12_Pos) 79:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_13_SQRX_BITOFFSET_POS (ADC_SQR3_SQ13_Pos) 80:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_14_SQRX_BITOFFSET_POS (ADC_SQR3_SQ14_Pos) 81:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_15_SQRX_BITOFFSET_POS (ADC_SQR4_SQ15_Pos) 82:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_RANK_16_SQRX_BITOFFSET_POS (ADC_SQR4_SQ16_Pos) 83:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 84:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 85:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 86:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC group injected sequencer: */ ARM GAS /tmp/ccICigVb.s page 3 87:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_INJ_RANK_x the relevant bits for: */ 88:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - data register offset */ 89:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - sequencer rank bits position into the selected register */ 90:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 91:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC group injected data register */ 92:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 93:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_JDR1_REGOFFSET (0x00000000UL) 94:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_JDR2_REGOFFSET (0x00000100UL) 95:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_JDR3_REGOFFSET (0x00000200UL) 96:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_JDR4_REGOFFSET (0x00000300UL) 97:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 98:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_JDRX_REGOFFSET_MASK (ADC_JDR1_REGOFFSET | ADC_JDR2_REGOFFSET \ 99:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_JDR3_REGOFFSET | ADC_JDR4_REGOFFSET) 100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_RANK_ID_JSQR_MASK (ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0) 101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_JDRX_REGOFFSET_POS (8UL) /* Position of bits ADC_JDRx_REGOFFSET in ADC_INJ_ 102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group injected sequencer bits information to be inserted */ 104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* into ADC group injected sequencer ranks literals definition. */ 105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_RANK_1_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ1_Pos) 106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_RANK_2_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ2_Pos) 107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_RANK_3_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ3_Pos) 108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_RANK_4_JSQR_BITOFFSET_POS (ADC_JSQR_JSQ4_Pos) 109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC group regular trigger: */ 113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_REG_TRIG_x the relevant bits for: */ 114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - regular trigger source */ 115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - regular trigger edge */ 116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EXT_EDGE_DEFAULT (ADC_CFGR_EXTEN_0) /* Trigger edge set to rising edge ( 117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_SOURCE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTSEL) << (4U * 122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EDGE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN) << (4U * 130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group regular trigger bits information. */ 135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EXTSEL_BITOFFSET_POS (ADC_CFGR_EXTSEL_Pos) 136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EXTEN_BITOFFSET_POS (ADC_CFGR_EXTEN_Pos) 137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC group injected trigger: */ 141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_INJ_TRIG_x the relevant bits for: */ 142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - injected trigger source */ 143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - injected trigger edge */ ARM GAS /tmp/ccICigVb.s page 4 144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EXT_EDGE_DEFAULT (ADC_JSQR_JEXTEN_0) /* Trigger edge set to rising edge ( 145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_SOURCE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTSEL) << (4U 150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EDGE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTEN) << (4U * 158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group injected trigger bits information. */ 163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTSEL_BITOFFSET_POS (ADC_JSQR_JEXTSEL_Pos) 164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTEN_BITOFFSET_POS (ADC_JSQR_JEXTEN_Pos) 165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC channel: */ 172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_CHANNEL_x the relevant bits for: */ 173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel identifier defined by number */ 174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel identifier defined by bitfield */ 175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel differentiation between external channels (connected to */ 176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* GPIO pins) and internal channels (connected to internal paths) */ 177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel sampling time defined by SMPRx register offset */ 178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* and SMPx bits positions into SMPRx register */ 179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_MASK (ADC_CFGR_AWD1CH) 180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_BITFIELD_MASK (ADC_AWD2CR_AWD2CH) 181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS (ADC_CFGR_AWD1CH_Pos) 182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_MASK (ADC_CHANNEL_ID_NUMBER_MASK | ADC_CHANNEL_ID_BITFIELD_MA 183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_ID_INTERNAL_CH_MASK) 184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Equivalent mask of ADC_CHANNEL_NUMBER_MASK aligned on register LSB (bit 0) */ 185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 (ADC_SQR2_SQ5) /* Equivalent to shift: (ADC_CHANNEL_NUMB 186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Channel differentiation between external and internal channels */ 188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH (0x80000000UL) /* Marker of internal channel */ 189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH_2 (0x00080000UL) /* Marker of internal channel for other A 190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH_MASK (ADC_CHANNEL_ID_INTERNAL_CH | ADC_CHANNEL_ID_INTERNAL_CH 191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC channel sampling time configuration */ 193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ 194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPR1_REGOFFSET (0x00000000UL) 195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPR2_REGOFFSET (0x02000000UL) 196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPRX_REGOFFSET_MASK (ADC_SMPR1_REGOFFSET | ADC_SMPR2_REGOFFSET) 197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPRX_REGOFFSET_POS (25UL) /* Position of bits ADC_SMPRx_REGOFFSET in ADC_CH 198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_MASK (0x01F00000UL) 200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_POS (20UL) /* Value equivalent to bitfield "ADC_CH ARM GAS /tmp/ccICigVb.s page 5 201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels ID number information to be inserted into */ 203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ 204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_NUMBER (0x00000000UL) 205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_NUMBER (ADC_CFGR_AWD1CH_0) 206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_NUMBER (ADC_CFGR_AWD1CH_1) 207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_NUMBER (ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH_0) 208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_NUMBER (ADC_CFGR_AWD1CH_2) 209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_NUMBER (ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH_0) 210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_NUMBER (ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH_1) 211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_7_NUMBER (ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH 212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_NUMBER (ADC_CFGR_AWD1CH_3) 213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_0) 214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_1) 215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_11_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH 216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2) 217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_13_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH 218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_14_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH 219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2 | \ 220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH_0) 221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_NUMBER (ADC_CFGR_AWD1CH_4) 222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_NUMBER (ADC_CFGR_AWD1CH_4 | ADC_CFGR_AWD1CH_0) 223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_NUMBER (ADC_CFGR_AWD1CH_4 | ADC_CFGR_AWD1CH_1) 224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels ID bitfield information to be inserted into */ 226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ 227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_BITFIELD (ADC_AWD2CR_AWD2CH_0) 228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_BITFIELD (ADC_AWD2CR_AWD2CH_1) 229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_BITFIELD (ADC_AWD2CR_AWD2CH_2) 230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_BITFIELD (ADC_AWD2CR_AWD2CH_3) 231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_BITFIELD (ADC_AWD2CR_AWD2CH_4) 232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_BITFIELD (ADC_AWD2CR_AWD2CH_5) 233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_BITFIELD (ADC_AWD2CR_AWD2CH_6) 234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_7_BITFIELD (ADC_AWD2CR_AWD2CH_7) 235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_BITFIELD (ADC_AWD2CR_AWD2CH_8) 236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_BITFIELD (ADC_AWD2CR_AWD2CH_9) 237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_BITFIELD (ADC_AWD2CR_AWD2CH_10) 238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_11_BITFIELD (ADC_AWD2CR_AWD2CH_11) 239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_BITFIELD (ADC_AWD2CR_AWD2CH_12) 240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_13_BITFIELD (ADC_AWD2CR_AWD2CH_13) 241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_14_BITFIELD (ADC_AWD2CR_AWD2CH_14) 242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_BITFIELD (ADC_AWD2CR_AWD2CH_15) 243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_BITFIELD (ADC_AWD2CR_AWD2CH_16) 244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_BITFIELD (ADC_AWD2CR_AWD2CH_17) 245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_BITFIELD (ADC_AWD2CR_AWD2CH_18) 246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels sampling time information to be inserted into */ 248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ 249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_SMP (ADC_SMPR1_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_SMP (ADC_SMPR1_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_SMP (ADC_SMPR1_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_SMP (ADC_SMPR1_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_SMP (ADC_SMPR1_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_SMP (ADC_SMPR1_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_SMP (ADC_SMPR1_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_7_SMP (ADC_SMPR1_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_SMP (ADC_SMPR1_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF ARM GAS /tmp/ccICigVb.s page 6 258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_SMP (ADC_SMPR1_REGOFFSET | ((27UL) << ADC_CHANNEL_SMPx_BITOF 259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_SMP (ADC_SMPR2_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_11_SMP (ADC_SMPR2_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_SMP (ADC_SMPR2_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_13_SMP (ADC_SMPR2_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_14_SMP (ADC_SMPR2_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_SMP (ADC_SMPR2_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_SMP (ADC_SMPR2_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_SMP (ADC_SMPR2_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_SMP (ADC_SMPR2_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF 268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC mode single or differential ended: */ 271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literals LL_ADC_SINGLE_ENDED or LL_ADC_SINGLE_DIFFERENTIAL */ 272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* the relevant bits for: */ 273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (concatenation of multiple bits used in different registers) */ 274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC calibration: calibration start, calibration factor get or set */ 275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC channels: set each ADC channel ending mode */ 276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_START_MASK (ADC_CR_ADCALDIF) 277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_FACTOR_MASK (ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S) 278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CHANNEL_MASK (ADC_CHANNEL_ID_BITFIELD_MASK) /* Equivalent to ADC_DIFS 279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK (ADC_CALFACT_CALFACT_S_4 | ADC_CALFACT_CALFACT_S_3) /* B 280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK (0x00010000UL) /* Selection o 281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_POS (16UL) /* Selection o 282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4 (ADC_SINGLEDIFF_CALIB_F_BIT_D_POS - 4UL) /* Shift of bi 283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC analog watchdog: */ 285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literals LL_ADC_AWD_CHANNELx_xxx the relevant bits for: */ 286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (concatenation of multiple bits used in different analog watchdogs, */ 287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (feature of several watchdogs not available on all STM32 families)). */ 288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - analog watchdog 1: monitored channel defined by number, */ 289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* selection of ADC group (ADC groups regular and-or injected). */ 290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - analog watchdog 2 and 3: monitored channel defined by bitfield, no */ 291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* selection on groups. */ 292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog channel configuration */ 294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR1_REGOFFSET (0x00000000UL) 295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR2_REGOFFSET (0x00100000UL) 296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR3_REGOFFSET (0x00200000UL) 297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Register offset gap between AWD1 and AWD2-AWD3 configuration registers */ 299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (Set separately as ADC_AWD_CRX_REGOFFSET to spare 32 bits space */ 300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_MASK (ADC_AWD2CR_AWD2CH_0) 301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_VAL (0x00000024UL) 302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CRX_REGOFFSET_MASK (ADC_AWD_CR1_REGOFFSET | ADC_AWD_CR2_REGOFFSET | ADC_AWD 304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR1_CHANNEL_MASK (ADC_CFGR_AWD1CH | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | 306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR23_CHANNEL_MASK (ADC_AWD2CR_AWD2CH) 307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR_ALL_CHANNEL_MASK (ADC_AWD_CR1_CHANNEL_MASK | ADC_AWD_CR23_CHANNEL_MASK) 308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CRX_REGOFFSET_POS (20UL) /* Position of bits ADC_AWD_CRx_REGOFFSET in ADC_ 310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog threshold configuration */ 312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR1_REGOFFSET (ADC_AWD_CR1_REGOFFSET) 313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR2_REGOFFSET (ADC_AWD_CR2_REGOFFSET) 314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR3_REGOFFSET (ADC_AWD_CR3_REGOFFSET) ARM GAS /tmp/ccICigVb.s page 7 315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_REGOFFSET_MASK (ADC_AWD_TR1_REGOFFSET | ADC_AWD_TR2_REGOFFSET | ADC_AWD 316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_REGOFFSET_POS (ADC_AWD_CRX_REGOFFSET_POS) /* Position of bits ADC_ 317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_MASK (0x00010000UL) /* Selection of 1 bit t 318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_POS (16UL) /* Selection of 1 bit t 319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_SHIFT4 (ADC_AWD_TRX_BIT_HIGH_POS - 4UL) /* Shift of bit ADC_AWD 320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC offset: */ 322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC offset number configuration */ 323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR1_REGOFFSET (0x00000000UL) 324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR2_REGOFFSET (0x00000001UL) 325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR3_REGOFFSET (0x00000002UL) 326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR4_REGOFFSET (0x00000003UL) 327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFRx_REGOFFSET_MASK (ADC_OFR1_REGOFFSET | ADC_OFR2_REGOFFSET \ 328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_OFR3_REGOFFSET | ADC_OFR4_REGOFFSET) 329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC registers bits positions */ 332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_RES_BITOFFSET_POS (ADC_CFGR_RES_Pos) 333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_AWD1SGL_BITOFFSET_POS (ADC_CFGR_AWD1SGL_Pos) 334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_AWD1EN_BITOFFSET_POS (ADC_CFGR_AWD1EN_Pos) 335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_JAWD1EN_BITOFFSET_POS (ADC_CFGR_JAWD1EN_Pos) 336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_TR1_HT1_BITOFFSET_POS (ADC_TR1_HT1_Pos) 337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC registers bits groups */ 340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CR_BITS_PROPERTY_RS (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JA 341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC internal channels related definitions */ 344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal voltage reference VrefInt */ 345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define VREFINT_CAL_ADDR ((uint16_t*) (0x1FFF75AAUL)) /* Internal voltage referen 346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define VREFINT_CAL_VREF (3000UL) /* Analog voltage reference 347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Temperature sensor */ 348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x1FFF75A8UL)) /* Internal temperature sen 349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x1FFF75CAUL)) /* Internal temperature sen 350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL1_TEMP (30L) /* Internal temperature sen 351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL2_TEMP (130L) /* Internal temperature sen 352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL_VREFANALOG (3000UL) /* Analog voltage reference 353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Private macros ------------------------------------------------------------*/ 360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Private_Macros ADC Private Macros 361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Driver macro reserved for internal use: set a pointer to 366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a register from a register basis from which an offset 367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is applied. 368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register basis from which the offset is applied. 369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG_OFFFSET__ Offset to be applied (unit: number of registers). 370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Pointer to register address 371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/ccICigVb.s page 8 372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __ADC_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__) \ 373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL)))) 374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported types ------------------------------------------------------------*/ 381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(USE_FULL_LL_DRIVER) 382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_ES_INIT ADC Exported Init structure 383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC common parameters 388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and multimode 389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (all ADC instances belonging to the same ADC common instance). 390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_CommonInit() 391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC instances state (all ADC instances 392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sharing the same ADC common instance): 393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances sharing the same ADC common instance must be 394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * disabled. 395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t CommonClock; /*!< Set parameter common to several ADC: Clock source and 399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_COMMON 400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, if ADC group injected is u 401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** clock ratio constraints between ADC clock and AH 402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** must be respected. Refer to reference manual. 403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Multimode; /*!< Set ADC multimode configuration to operate in independ 408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t MultiDMATransfer; /*!< Set ADC multimode conversion data transfer: no transfe 413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t MultiTwoSamplingDelay; /*!< Set ADC multimode delay between 2 sampling phases. 418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_CommonInitTypeDef; 424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC instance. 427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC instance. 428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Affects both group regular and group injected (availability ARM GAS /tmp/ccICigVb.s page 9 429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of ADC group injected depends on STM32 families). 430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Instance . 432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_Init() 433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Resolution; /*!< Set ADC resolution. 448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_RESOLU 449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t DataAlignment; /*!< Set ADC conversion data alignment. 453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_DATA_A 454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t LowPowerMode; /*!< Set ADC low power mode. 458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_LP_MOD 459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_InitTypeDef; 463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC group regular. 466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group regular. 467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions with prefix "REG"). 470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_REG_Init() 471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group regular conversion trigger source: inter ARM GAS /tmp/ccICigVb.s page 10 486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_TR 487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (default setting for compatibility with some ADC 489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** In case of need to modify trigger edge, use func 490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group regular sequencer length. 494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group regular sequencer discontinuous mode: se 499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note This parameter has an effect only if group regul 501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (scan length of 2 ranks or more). 502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ContinuousMode; /*!< Set ADC continuous conversion mode on ADC group regula 506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_CO 507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: It is not possible to enable both ADC group regu 508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t DMATransfer; /*!< Set ADC group regular conversion data transfer: no tra 512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_DM 513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Overrun; /*!< Set ADC group regular behavior in case of overrun: 517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data preserved or overwritten. 518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_OV 519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_REG_InitTypeDef; 523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC group injected. 526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group injected. 527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions with prefix "INJ"). 530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_INJ_Init() 531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 families. However, the different 535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/ccICigVb.s page 11 543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group injected conversion trigger source: inte 546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (default setting for compatibility with some ADC 549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** In case of need to modify trigger edge, use func 550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group injected sequencer length. 554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group injected sequencer discontinuous mode: s 559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note This parameter has an effect only if group injec 561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (scan length of 2 ranks or more). 562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TrigAuto; /*!< Set ADC group injected conversion trigger: independent 566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: This parameter must be set to set to independent 568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_INJ_InitTypeDef; 572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* USE_FULL_LL_DRIVER */ 577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported constants --------------------------------------------------------*/ 579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Constants ADC Exported Constants 580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_FLAG ADC flags 584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Flags defines which can be used with LL_ADC_ReadReg function 585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY ADC_ISR_ADRDY /*!< ADC flag ADC instance ready */ 588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOC ADC_ISR_EOC /*!< ADC flag ADC group regular end o 589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOS ADC_ISR_EOS /*!< ADC flag ADC group regular end o 590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_OVR ADC_ISR_OVR /*!< ADC flag ADC group regular overr 591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP ADC_ISR_EOSMP /*!< ADC flag ADC group regular end o 592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC ADC_ISR_JEOC /*!< ADC flag ADC group injected end 593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS ADC_ISR_JEOS /*!< ADC flag ADC group injected end 594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF ADC_ISR_JQOVF /*!< ADC flag ADC group injected cont 595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1 ADC_ISR_AWD1 /*!< ADC flag ADC analog watchdog 1 * 596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2 ADC_ISR_AWD2 /*!< ADC flag ADC analog watchdog 2 * 597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3 ADC_ISR_AWD3 /*!< ADC flag ADC analog watchdog 3 * 598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY_MST ADC_CSR_ADRDY_MST /*!< ADC flag ADC multimode master in ARM GAS /tmp/ccICigVb.s page 12 600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_ADRDY_SLV ADC_CSR_ADRDY_SLV /*!< ADC flag ADC multimode slave ins 601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOC_MST ADC_CSR_EOC_MST /*!< ADC flag ADC multimode master gr 602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOC_SLV ADC_CSR_EOC_SLV /*!< ADC flag ADC multimode slave gro 603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOS_MST ADC_CSR_EOS_MST /*!< ADC flag ADC multimode master gr 604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOS_SLV ADC_CSR_EOS_SLV /*!< ADC flag ADC multimode slave gro 605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_OVR_MST ADC_CSR_OVR_MST /*!< ADC flag ADC multimode master gr 606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_OVR_SLV ADC_CSR_OVR_SLV /*!< ADC flag ADC multimode slave gro 607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP_MST ADC_CSR_EOSMP_MST /*!< ADC flag ADC multimode master gr 608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP_SLV ADC_CSR_EOSMP_SLV /*!< ADC flag ADC multimode slave gro 609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC_MST ADC_CSR_JEOC_MST /*!< ADC flag ADC multimode master gr 610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC_SLV ADC_CSR_JEOC_SLV /*!< ADC flag ADC multimode slave gro 611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS_MST ADC_CSR_JEOS_MST /*!< ADC flag ADC multimode master gr 612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS_SLV ADC_CSR_JEOS_SLV /*!< ADC flag ADC multimode slave gro 613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF_MST ADC_CSR_JQOVF_MST /*!< ADC flag ADC multimode master gr 614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF_SLV ADC_CSR_JQOVF_SLV /*!< ADC flag ADC multimode slave gro 615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1_MST ADC_CSR_AWD1_MST /*!< ADC flag ADC multimode master an 616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1_SLV ADC_CSR_AWD1_SLV /*!< ADC flag ADC multimode slave ana 617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2_MST ADC_CSR_AWD2_MST /*!< ADC flag ADC multimode master an 618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2_SLV ADC_CSR_AWD2_SLV /*!< ADC flag ADC multimode slave ana 619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3_MST ADC_CSR_AWD3_MST /*!< ADC flag ADC multimode master an 620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3_SLV ADC_CSR_AWD3_SLV /*!< ADC flag ADC multimode slave ana 621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_IT ADC interruptions for configuration (interruption enable or disable) 627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief IT defines which can be used with LL_ADC_ReadReg and LL_ADC_WriteReg functions 628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_ADRDY ADC_IER_ADRDYIE /*!< ADC interruption ADC instance re 631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOC ADC_IER_EOCIE /*!< ADC interruption ADC group regul 632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOS ADC_IER_EOSIE /*!< ADC interruption ADC group regul 633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_OVR ADC_IER_OVRIE /*!< ADC interruption ADC group regul 634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOSMP ADC_IER_EOSMPIE /*!< ADC interruption ADC group regul 635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JEOC ADC_IER_JEOCIE /*!< ADC interruption ADC group injec 636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JEOS ADC_IER_JEOSIE /*!< ADC interruption ADC group injec 637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JQOVF ADC_IER_JQOVFIE /*!< ADC interruption ADC group injec 638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD1 ADC_IER_AWD1IE /*!< ADC interruption ADC analog watc 639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD2 ADC_IER_AWD2IE /*!< ADC interruption ADC analog watc 640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD3 ADC_IER_AWD3IE /*!< ADC interruption ADC analog watc 641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REGISTERS ADC registers compliant with specific purpose 646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* List of ADC registers intended to be used (most commonly) with */ 649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* DMA transfer. */ 650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Refer to function @ref LL_ADC_DMA_GetRegAddr(). */ 651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA (0x00000000UL) /* ADC group regular conversion data re 652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA_MULTI (0x00000001UL) /* ADC group regular conversion data re 654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} ARM GAS /tmp/ccICigVb.s page 13 657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_COMMON_CLOCK_SOURCE ADC common - Clock source 660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV1 (ADC_CCR_CKMODE_0) /* 663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV2 (ADC_CCR_CKMODE_1 ) /* 664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV4 (ADC_CCR_CKMODE_1 | ADC_CCR_CKMODE_0) /* 665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV1 (0x00000000UL) /* 666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV2 (ADC_CCR_PRESC_0) /* 667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV4 (ADC_CCR_PRESC_1 ) /* 668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV6 (ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV8 (ADC_CCR_PRESC_2 ) /* 670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV10 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_0) /* 671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV12 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 ) /* 672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV16 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV32 (ADC_CCR_PRESC_3) /* 674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV64 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_0) /* 675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV128 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1) /* 676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV256 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /* 677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_COMMON_PATH_INTERNAL ADC common - Measurement path to internal channels 682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Other measurement paths to internal channels may be available */ 685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (connections to other peripherals). */ 686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If they are not listed below, they do not require any specific */ 687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* path enable. In this case, Access to measurement path is done */ 688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* only by selecting the corresponding ADC internal channel. */ 689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_NONE (0x00000000UL) /*!< ADC measurement paths all di 690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VREFINT (ADC_CCR_VREFEN) /*!< ADC measurement path to inte 691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_TEMPSENSOR (ADC_CCR_VSENSESEL) /*!< ADC measurement path to inte 692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VBAT (ADC_CCR_VBATSEL) /*!< ADC measurement path to inte 693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_RESOLUTION ADC instance - Resolution 698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_12B (0x00000000UL) /*!< ADC resolution 701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_10B ( ADC_CFGR_RES_0) /*!< ADC resolution 702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_8B (ADC_CFGR_RES_1 ) /*!< ADC resolution 703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_6B (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) /*!< ADC resolution 704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_DATA_ALIGN ADC instance - Data alignment 709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_RIGHT (0x00000000UL) /*!< ADC conversion data alignmen 712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_LEFT (ADC_CFGR_ALIGN) /*!< ADC conversion data alignmen 713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 14 714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_LP_MODE ADC instance - Low power mode 718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_LP_MODE_NONE (0x00000000UL) /*!< No ADC low powe 721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_LP_AUTOWAIT (ADC_CFGR_AUTDLY) /*!< ADC low power m 722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_NB ADC instance - Offset number 727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_1 ADC_OFR1_REGOFFSET /*!< ADC offset number 1: ADC channel 730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_2 ADC_OFR2_REGOFFSET /*!< ADC offset number 2: ADC channel 731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_3 ADC_OFR3_REGOFFSET /*!< ADC offset number 3: ADC channel 732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_4 ADC_OFR4_REGOFFSET /*!< ADC offset number 4: ADC channel 733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_STATE ADC instance - Offset state 738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_DISABLE (0x00000000UL) /*!< ADC offset disabled (among A 741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_ENABLE (ADC_OFR1_OFFSET1_EN) /*!< ADC offset enabled (among AD 742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SIGN ADC instance - Offset sign 747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< ADC offset is negative (among 750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_POSITIVE (ADC_OFR1_OFFSETPOS) /*!< ADC offset is positive (among 751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SATURATION ADC instance - Offset saturation mode 756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_DISABLE (0x00000000UL) /*!< ADC offset saturation is di 759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_ENABLE (ADC_OFR1_SATEN) /*!< ADC offset saturation is en 760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_GROUPS ADC instance - Groups 764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR (0x00000001UL) /*!< ADC group regular (available on all 767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_INJECTED (0x00000002UL) /*!< ADC group injected (not available on 768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR_INJECTED (0x00000003UL) /*!< ADC both groups regular and injected 769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} ARM GAS /tmp/ccICigVb.s page 15 771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL ADC instance - Channel number 774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_0 (ADC_CHANNEL_0_NUMBER | ADC_CHANNEL_0_SMP | ADC_CHANNE 777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_1 (ADC_CHANNEL_1_NUMBER | ADC_CHANNEL_1_SMP | ADC_CHANNE 778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_2 (ADC_CHANNEL_2_NUMBER | ADC_CHANNEL_2_SMP | ADC_CHANNE 779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_3 (ADC_CHANNEL_3_NUMBER | ADC_CHANNEL_3_SMP | ADC_CHANNE 780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_4 (ADC_CHANNEL_4_NUMBER | ADC_CHANNEL_4_SMP | ADC_CHANNE 781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_5 (ADC_CHANNEL_5_NUMBER | ADC_CHANNEL_5_SMP | ADC_CHANNE 782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_6 (ADC_CHANNEL_6_NUMBER | ADC_CHANNEL_6_SMP | ADC_CHANNE 783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_7 (ADC_CHANNEL_7_NUMBER | ADC_CHANNEL_7_SMP | ADC_CHANNE 784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_8 (ADC_CHANNEL_8_NUMBER | ADC_CHANNEL_8_SMP | ADC_CHANNE 785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_9 (ADC_CHANNEL_9_NUMBER | ADC_CHANNEL_9_SMP | ADC_CHANNE 786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_10 (ADC_CHANNEL_10_NUMBER | ADC_CHANNEL_10_SMP | ADC_CHANNE 787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_11 (ADC_CHANNEL_11_NUMBER | ADC_CHANNEL_11_SMP | ADC_CHANNE 788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_12 (ADC_CHANNEL_12_NUMBER | ADC_CHANNEL_12_SMP | ADC_CHANNE 789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_13 (ADC_CHANNEL_13_NUMBER | ADC_CHANNEL_13_SMP | ADC_CHANNE 790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_14 (ADC_CHANNEL_14_NUMBER | ADC_CHANNEL_14_SMP | ADC_CHANNE 791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_15 (ADC_CHANNEL_15_NUMBER | ADC_CHANNEL_15_SMP | ADC_CHANNE 792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_16 (ADC_CHANNEL_16_NUMBER | ADC_CHANNEL_16_SMP | ADC_CHANNE 793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_17 (ADC_CHANNEL_17_NUMBER | ADC_CHANNEL_17_SMP | ADC_CHANNE 794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_18 (ADC_CHANNEL_18_NUMBER | ADC_CHANNEL_18_SMP | ADC_CHANNE 795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (LL_ADC_CHANNEL_4 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP1 (LL_ADC_CHANNEL_13 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP2 (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH | ADC_CH 801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP3_ADC2 (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH | ADC_CH 802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP3_ADC3 (LL_ADC_CHANNEL_13 | ADC_CHANNEL_ID_INTERNAL_CH | ADC_CH 803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP4 (LL_ADC_CHANNEL_5 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP5 (LL_ADC_CHANNEL_3 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP6 (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH | ADC_CH 806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_TRIGGER_SOURCE ADC group regular - Trigger source 811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_SOFTWARE (0x00000000UL) 814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger internal: SW start. 815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EX 818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) 820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH2 (ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH3 (ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL ARM GAS /tmp/ccICigVb.s page 16 828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_CH1 (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_CH2 (ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM2_CH3 (ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_TRGO (ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) 841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_CH4 (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM4_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EX 847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM4_CH1 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EX 849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM4_CH4 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM6_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM7_TRGO (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM8_TRGO (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL 859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 (ADC_CFGR_EXTSEL_3 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM8_CH1 (ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM15_TRGO (ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM20_TRGO (ADC_CFGR_EXTSEL_4 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) 868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM20_TRGO2 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM20_CH1 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EX 874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM20_CH2 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL 877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM20_CH3 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EX 880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al ARM GAS /tmp/ccICigVb.s page 17 885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG2 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL 886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG4 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EX 892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG5 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL 895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG6 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_REG_TRIG_EX 898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG7 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG8 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG9 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_HRTIM_TRG10 (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EX 913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_EXTI_LINE2 (ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EX 916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_LPTIM_OUT (ADC_CFGR_EXTSEL_4 | ADC_CFGR_EXTSEL_3 | ADC_CFGR_EXTSEL 919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular conversion trigger from external perip 920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_TRIGGER_EDGE ADC group regular - Trigger edge 925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_RISING ( ADC_CFGR_EXTEN_0) /*!< ADC group r 928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_FALLING (ADC_CFGR_EXTEN_1 ) /*!< ADC group r 929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_RISINGFALLING (ADC_CFGR_EXTEN_1 | ADC_CFGR_EXTEN_0) /*!< ADC group r 930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SAMPLING_MODE ADC group regular - Sampling mode 935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_NORMAL (0x00000000UL) /*!< ADC conversions sam 938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_BULB (ADC_CFGR2_BULB) /*!< ADC conversions sam 939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: First convers 940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED (ADC_CFGR2_SMPTRIG) /*!< ADC conversions sam 941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger rising edg ARM GAS /tmp/ccICigVb.s page 18 942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger falling ed 943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_CONTINUOUS_MODE ADC group regular - Continuous mode 948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_CONV_SINGLE (0x00000000UL) /*!< ADC conversions are perform 951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_CONV_CONTINUOUS (ADC_CFGR_CONT) /*!< ADC conversions are perform 952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_DMA_TRANSFER ADC group regular - DMA transfer of ADC conversion data 957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_NONE (0x00000000UL) /*!< ADC conversio 960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_LIMITED ( ADC_CFGR_DMAEN) /*!< ADC conversio 961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_UNLIMITED (ADC_CFGR_DMACFG | ADC_CFGR_DMAEN) /*!< ADC conversio 962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_SMPR1_SMPPLUS) 967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_SAMPLINGTIME_COMMON_CONFIG ADC instance - ADC sampling time common configur 968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_COMMON_DEFAULT (0x00000000UL) /*!< ADC sampling time let to d 971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 (ADC_SMPR1_SMPPLUS) /*!< ADC additional sampling ti 972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif 976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_OVR_DATA_BEHAVIOR ADC group regular - Overrun behavior on conversion d 978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_PRESERVED (0x00000000UL) /*!< ADC group regular behavior i 981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_OVERWRITTEN (ADC_CFGR_OVRMOD) /*!< ADC group regular behavior i 982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_SCAN_LENGTH ADC group regular - Sequencer scan length 987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_DISABLE (0x00000000UL) 990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS ( ADC_SQR1_L 991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS ( ADC_SQR1_L_1 992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS ( ADC_SQR1_L_1 | ADC_SQR1_L 993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS ( ADC_SQR1_L_2 994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L 995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS ( ADC_SQR1_L_2 | ADC_SQR1_L_1 | ADC_SQR1_L 997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS (ADC_SQR1_L_3 998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS (ADC_SQR1_L_3 | ADC_SQR1_L ARM GAS /tmp/ccICigVb.s page 19 999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 1000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_1 | ADC_SQR1_L 1001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 1002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L 1003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_2 | ADC_SQR1_L_1 1004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_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 1005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_DISCONT_MODE ADC group regular - Sequencer discontinuous mode 1010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_DISABLE (0x00000000UL) 1013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_1RANK ( 1014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_2RANKS ( ADC_CFGR_DISC 1015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_3RANKS ( ADC_CFGR_DISCNUM_1 1016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_4RANKS ( ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISC 1017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_5RANKS (ADC_CFGR_DISCNUM_2 1018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_6RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISC 1019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_7RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 1020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_8RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISC 1021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_RANKS ADC group regular - Sequencer ranks 1026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_1 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_1_SQRX_BITOFFSET_POS) 1029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_2 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_2_SQRX_BITOFFSET_POS) 1030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_3 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_3_SQRX_BITOFFSET_POS) 1031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_4 (ADC_SQR1_REGOFFSET | ADC_REG_RANK_4_SQRX_BITOFFSET_POS) 1032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_5 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_5_SQRX_BITOFFSET_POS) 1033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_6 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_6_SQRX_BITOFFSET_POS) 1034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_7 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_7_SQRX_BITOFFSET_POS) 1035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_8 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_8_SQRX_BITOFFSET_POS) 1036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_9 (ADC_SQR2_REGOFFSET | ADC_REG_RANK_9_SQRX_BITOFFSET_POS) 1037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_10 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_10_SQRX_BITOFFSET_POS 1038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_11 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_11_SQRX_BITOFFSET_POS 1039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_12 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_12_SQRX_BITOFFSET_POS 1040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_13 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_13_SQRX_BITOFFSET_POS 1041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_14 (ADC_SQR3_REGOFFSET | ADC_REG_RANK_14_SQRX_BITOFFSET_POS 1042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_15 (ADC_SQR4_REGOFFSET | ADC_REG_RANK_15_SQRX_BITOFFSET_POS 1043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_RANK_16 (ADC_SQR4_REGOFFSET | ADC_REG_RANK_16_SQRX_BITOFFSET_POS 1044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_SOURCE ADC group injected - Trigger source 1049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_SOFTWARE (0x00000000UL) 1052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger internal: SW start 1053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO (ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 (ADC_JSQR_JEXTSEL_3 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) ARM GAS /tmp/ccICigVb.s page 20 1056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_CH4 (ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM2_TRGO (ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_ 1068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM4_TRGO (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM6_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM7_TRGO (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM8_CH4 (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM15_TRGO (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM20_TRGO (ADC_JSQR_JEXTSEL_4 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_ 1108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger available only on ADC3/4/5 instances. On this ST ARM GAS /tmp/ccICigVb.s page 21 1113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger available only on ADC1/2 instances. On this STM3 1116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXT 1120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_ 1126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_INJ_TRIG_ 1138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXT 1147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_ 1150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_LPTIM_OUT (ADC_JSQR_JEXTSEL_4 | ADC_JSQR_JEXTSEL_3 | ADC_JSQR_JEXT 1153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_EDGE ADC group injected - Trigger edge 1159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_RISING ( ADC_JSQR_JEXTEN_0) /*!< ADC group i 1162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_FALLING (ADC_JSQR_JEXTEN_1 ) /*!< ADC group i 1163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_RISINGFALLING (ADC_JSQR_JEXTEN_1 | ADC_JSQR_JEXTEN_0) /*!< ADC group i 1164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIG_AUTO ADC group injected - Automatic trigger mode 1169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ ARM GAS /tmp/ccICigVb.s page 22 1170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_INDEPENDENT (0x00000000UL) /*!< ADC group injected conversio 1172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_FROM_GRP_REGULAR (ADC_CFGR_JAUTO) /*!< ADC group injected conversio 1173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_CONTEXT_QUEUE ADC group injected - Context queue mode 1178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE (0x00000000UL) /* Group injected sequence co 1181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY (ADC_CFGR_JQM) /* Group injected sequence co 1182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_DISABLE (ADC_CFGR_JQDIS) /* Group injected sequence co 1183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_SCAN_LENGTH ADC group injected - Sequencer scan length 1188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_DISABLE (0x00000000UL) /*!< ADC group injected 1191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS ( ADC_JSQR_JL_0) /*!< ADC group injected 1192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS (ADC_JSQR_JL_1 ) /*!< ADC group injected 1193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS (ADC_JSQR_JL_1 | ADC_JSQR_JL_0) /*!< ADC group injected 1194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_DISCONT_MODE ADC group injected - Sequencer discontinuous mode 1199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_DISABLE (0x00000000UL) /*!< ADC group injected sequencer 1202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_1RANK (ADC_CFGR_JDISCEN) /*!< ADC group injected sequencer 1203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_RANKS ADC group injected - Sequencer ranks 1208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_1 (ADC_JDR1_REGOFFSET | ADC_INJ_RANK_1_JSQR_BITOFFSET_POS) 1211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_2 (ADC_JDR2_REGOFFSET | ADC_INJ_RANK_2_JSQR_BITOFFSET_POS) 1212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_3 (ADC_JDR3_REGOFFSET | ADC_INJ_RANK_3_JSQR_BITOFFSET_POS) 1213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_4 (ADC_JDR4_REGOFFSET | ADC_INJ_RANK_4_JSQR_BITOFFSET_POS) 1214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SAMPLINGTIME Channel - Sampling time 1219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_2CYCLES_5 (0x00000000UL) 1222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_6CYCLES_5 ( ADC_SMPR2_SMP10 1223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_12CYCLES_5 ( ADC_SMPR2_SMP10_1 1224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_24CYCLES_5 ( ADC_SMPR2_SMP10_1 | ADC_SMPR2_SMP10 1225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_47CYCLES_5 (ADC_SMPR2_SMP10_2 1226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_92CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10 ARM GAS /tmp/ccICigVb.s page 23 1227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_247CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 1228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_640CYCLES_5 (ADC_SMPR2_SMP10_2 | ADC_SMPR2_SMP10_1 | ADC_SMPR2_SMP10 1229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SINGLE_DIFF_ENDING Channel - Single or differential ending 1234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SINGLE_ENDED ( ADC_CALFACT_CALFACT_S) /*!< A 1237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DIFFERENTIAL_ENDED (ADC_CR_ADCALDIF | ADC_CALFACT_CALFACT_D) /*!< A 1238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_BOTH_SINGLE_DIFF_ENDED (LL_ADC_SINGLE_ENDED | LL_ADC_DIFFERENTIAL_ENDED) /*!< A 1239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_NUMBER Analog watchdog - Analog watchdog number 1244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD1 (ADC_AWD_CR1_CHANNEL_MASK | ADC_AWD_CR1_REGOFFSET) /*!< 1247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD2 (ADC_AWD_CR23_CHANNEL_MASK | ADC_AWD_CR2_REGOFFSET) /*!< 1248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD3 (ADC_AWD_CR23_CHANNEL_MASK | ADC_AWD_CR3_REGOFFSET) /*!< 1249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_CHANNELS Analog watchdog - Monitored channels 1254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_DISABLE (0x00000000UL) 1257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG (ADC_AWD_CR23_CHANNEL_MASK 1258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_INJ (ADC_AWD_CR23_CHANNEL_MASK | ADC_CFGR_JA 1259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG_INJ (ADC_AWD_CR23_CHANNEL_MASK | ADC_CFGR_JA 1260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_REG ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) 1261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_REG_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_REG ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) 1264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_REG_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_REG ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) 1267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_REG_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_REG ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) 1270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_REG_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_REG ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) 1273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_REG_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_REG ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) 1276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_REG_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_REG ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) 1279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_REG_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_REG ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) 1282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_REG_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA ARM GAS /tmp/ccICigVb.s page 24 1284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_REG ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) 1285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_REG_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_REG ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) 1288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_REG_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_REG ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) 1291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_REG_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_REG ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) 1294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_REG_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_REG ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) 1297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_REG_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_REG ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) 1300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_REG_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_REG ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) 1303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_REG_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_REG ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) 1306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_REG_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_REG ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) 1309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_REG_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_REG ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) 1312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_REG_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_REG ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) 1315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_REG_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JA 1317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_REG ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) 1318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | 1319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_REG_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) | 1320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG ((LL_ADC_CHANNEL_TEMPSENSOR_ADC1 & ADC_CHANNEL_ID_M 1321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC1_INJ ((LL_ADC_CHANNEL_TEMPSENSOR_ADC1 & ADC_CHANNEL_ID_M 1322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG_INJ ((LL_ADC_CHANNEL_TEMPSENSOR_ADC1 & ADC_CHANNEL_ID_M 1323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG ((LL_ADC_CHANNEL_TEMPSENSOR_ADC5 & ADC_CHANNEL_ID_M 1324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC5_INJ ((LL_ADC_CHANNEL_TEMPSENSOR_ADC5 & ADC_CHANNEL_ID_M 1325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG_INJ ((LL_ADC_CHANNEL_TEMPSENSOR_ADC5 & ADC_CHANNEL_ID_M 1326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_REG ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) 1327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | 1328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_REG_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) | 1329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP1_REG ((LL_ADC_CHANNEL_VOPAMP1 & ADC_CHANNEL_ID_MASK) 1330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP1_INJ ((LL_ADC_CHANNEL_VOPAMP1 & ADC_CHANNEL_ID_MASK) | 1331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP1_REG_INJ ((LL_ADC_CHANNEL_VOPAMP1 & ADC_CHANNEL_ID_MASK) | 1332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP2_REG ((LL_ADC_CHANNEL_VOPAMP2 & ADC_CHANNEL_ID_MASK) 1333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP2_INJ ((LL_ADC_CHANNEL_VOPAMP2 & ADC_CHANNEL_ID_MASK) | 1334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP2_REG_INJ ((LL_ADC_CHANNEL_VOPAMP2 & ADC_CHANNEL_ID_MASK) | 1335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC2_REG ((LL_ADC_CHANNEL_VOPAMP3_ADC2 & ADC_CHANNEL_ID_MASK) 1336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC2_INJ ((LL_ADC_CHANNEL_VOPAMP3_ADC2 & ADC_CHANNEL_ID_MASK) | 1337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC2_REG_INJ ((LL_ADC_CHANNEL_VOPAMP3_ADC2 & ADC_CHANNEL_ID_MASK) | 1338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC3_REG ((LL_ADC_CHANNEL_VOPAMP3_ADC3 & ADC_CHANNEL_ID_MASK) 1339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC3_INJ ((LL_ADC_CHANNEL_VOPAMP3_ADC3 & ADC_CHANNEL_ID_MASK) | 1340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP3_ADC3_REG_INJ ((LL_ADC_CHANNEL_VOPAMP3_ADC3 & ADC_CHANNEL_ID_MASK) | ARM GAS /tmp/ccICigVb.s page 25 1341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP4_REG ((LL_ADC_CHANNEL_VOPAMP4 & ADC_CHANNEL_ID_MASK) 1342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP4_INJ ((LL_ADC_CHANNEL_VOPAMP4 & ADC_CHANNEL_ID_MASK) | 1343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP4_REG_INJ ((LL_ADC_CHANNEL_VOPAMP4 & ADC_CHANNEL_ID_MASK) | 1344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP5_REG ((LL_ADC_CHANNEL_VOPAMP5 & ADC_CHANNEL_ID_MASK) 1345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP5_INJ ((LL_ADC_CHANNEL_VOPAMP5 & ADC_CHANNEL_ID_MASK) | 1346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP5_REG_INJ ((LL_ADC_CHANNEL_VOPAMP5 & ADC_CHANNEL_ID_MASK) | 1347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP6_REG ((LL_ADC_CHANNEL_VOPAMP6 & ADC_CHANNEL_ID_MASK) 1348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP6_INJ ((LL_ADC_CHANNEL_VOPAMP6 & ADC_CHANNEL_ID_MASK) | 1349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP6_REG_INJ ((LL_ADC_CHANNEL_VOPAMP6 & ADC_CHANNEL_ID_MASK) | 1350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_THRESHOLDS Analog watchdog - Thresholds 1355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_HIGH (ADC_TR1_HT1 ) /*!< ADC analog watchdog thr 1358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_LOW ( ADC_TR1_LT1) /*!< ADC analog watchdog thr 1359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLDS_HIGH_LOW (ADC_TR1_HT1 | ADC_TR1_LT1) /*!< ADC analog watchdog bot 1360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_FILTERING_CONFIG Analog watchdog - filtering config 1365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_NONE (0x00000000UL) 1368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_2SAMPLES ( ADC_TR1_AWDFILT 1369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_3SAMPLES ( ADC_TR1_AWDFILT_1 1370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_4SAMPLES ( ADC_TR1_AWDFILT_1 | ADC_TR1_AWDFILT 1371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_5SAMPLES (ADC_TR1_AWDFILT_2 1372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_6SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT 1373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_7SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT_1 1374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_8SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT_1 | ADC_TR1_AWDFILT 1375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SCOPE Oversampling - Oversampling scope 1380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_DISABLE (0x00000000UL) /* 1383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_CONTINUED ( ADC_CFGR2_ROVSE) /* 1384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_RESUMED (ADC_CFGR2_ROVSM | ADC_CFGR2_ROVSE) /* 1385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJECTED ( ADC_CFGR2_JOVSE ) /* 1386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJ_REG_RESUMED ( ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE) /* 1387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_DISCONT_MODE Oversampling - Discontinuous mode 1392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_REG_CONT (0x00000000UL) /*!< ADC oversampling discontinuo 1395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_REG_DISCONT (ADC_CFGR2_TROVS) /*!< ADC oversampling discontinuo 1396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} ARM GAS /tmp/ccICigVb.s page 26 1398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_RATIO Oversampling - Ratio 1401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_2 (0x00000000UL) 1404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_4 ( ADC_CFGR2_OVSR_0) 1405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_8 ( ADC_CFGR2_OVSR_1 ) 1406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_16 ( ADC_CFGR2_OVSR_1 | ADC_CFGR2_OVSR_0) 1407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_32 (ADC_CFGR2_OVSR_2 ) 1408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_64 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_0) 1409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_128 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_1 ) 1410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_256 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_1 | ADC_CFGR2_OVSR_0) 1411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SHIFT Oversampling - Data shift 1416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_NONE (0x00000000UL) 1419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_1 ( 1420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_2 ( ADC_CFGR2_OVSS_1 1421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_3 ( ADC_CFGR2_OVSS_1 1422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_4 ( ADC_CFGR2_OVSS_2 1423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_5 ( ADC_CFGR2_OVSS_2 1424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_6 ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 1425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_7 ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 1426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_8 (ADC_CFGR2_OVSS_3 1427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 1432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MODE Multimode - Mode 1433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_INDEPENDENT (0x00000000UL) 1436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIMULT ( ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1 1437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INTERL ( ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1 | ADC_ 1438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_SIMULT ( ADC_CCR_DUAL_2 | ADC_ 1439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_ALTERN (ADC_CCR_DUAL_3 | ADC_ 1440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM ( ADC_ 1441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT ( ADC_CCR_DUAL_1 1442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM ( ADC_CCR_DUAL_1 | ADC_ 1443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_DMA_TRANSFER Multimode - DMA transfer 1448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_EACH_ADC (0x00000000UL) /*! 1451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B ( ADC_CCR_MDMA_1 ) /*! 1452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B ( ADC_CCR_MDMA_1 | ADC_CCR_MDMA_0) /*! 1453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B (ADC_CCR_DMACFG | ADC_CCR_MDMA_1 ) /*! 1454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B (ADC_CCR_DMACFG | ADC_CCR_MDMA_1 | ADC_CCR_MDMA_0) /*! ARM GAS /tmp/ccICigVb.s page 27 1455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_TWOSMP_DELAY Multimode - Delay between two sampling phases 1460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE (0x00000000UL) 1463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES ( A 1464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES ( ADC_CCR_DELAY_1 1465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES ( ADC_CCR_DELAY_1 | A 1466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES ( ADC_CCR_DELAY_2 1467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES ( ADC_CCR_DELAY_2 | A 1468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES ( ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 1469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES ( ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 | A 1470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (ADC_CCR_DELAY_3 1471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (ADC_CCR_DELAY_3 | A 1472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 1473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 | A 1474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MASTER_SLAVE Multimode - ADC master or slave 1479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER ( ADC_CDR_RDATA_MST) /*!< In multimod 1482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_SLAVE (ADC_CDR_RDATA_SLV ) /*!< In multimod 1483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER_SLAVE (ADC_CDR_RDATA_SLV | ADC_CDR_RDATA_MST) /*!< In multimod 1484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 1489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_HW_DELAYS Definitions of ADC hardware constraints delays 1492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Only ADC peripheral HW delays are defined in ADC LL driver driver, 1493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not timeout values. 1494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For details on delays values, refer to descriptions in source code 1495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * above each literal definition. 1496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Only ADC peripheral HW delays are defined in ADC LL driver driver, */ 1500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* not timeout values. */ 1501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Timeout values for ADC operations are dependent to device clock */ 1502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration (system clock versus ADC clock), */ 1503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* and therefore must be defined in user application. */ 1504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Indications for estimation of ADC timeout delays, for this */ 1505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* STM32 series: */ 1506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC calibration time: maximum delay is 112/fADC. */ 1507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device datasheet, parameter "tCAL") */ 1508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC enable time: maximum delay is 1 conversion cycle. */ 1509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device datasheet, parameter "tSTAB") */ 1510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC disable time: maximum delay should be a few ADC clock cycles */ 1511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC stop conversion time: maximum delay should be a few ADC clock */ ARM GAS /tmp/ccICigVb.s page 28 1512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* cycles */ 1513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC conversion time: duration depending on ADC clock and ADC */ 1514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration. */ 1515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device reference manual, section "Timing") */ 1516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for ADC stabilization time (ADC voltage regulator start-up time) */ 1518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 1519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tADCVREG_STUP"). */ 1520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 1521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_INTERNAL_REGUL_STAB_US ( 20UL) /*!< Delay for ADC stabilization time (ADC vol 1522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for internal voltage reference stabilization time. */ 1524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 1525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tstart_vrefint"). */ 1526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 1527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_VREFINT_STAB_US ( 12UL) /*!< Delay for internal voltage reference s 1528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for temperature sensor stabilization time. */ 1530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Literal set to maximum value (refer to device datasheet, */ 1531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tSTART"). */ 1532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 1533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_TEMPSENSOR_STAB_US (120UL) /*!< Delay for temperature sensor stabiliza 1534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay required between ADC end of calibration and ADC enable. */ 1536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: On this STM32 series, a minimum number of ADC clock cycles */ 1537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* are required between ADC end of calibration and ADC enable. */ 1538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Wait time can be computed in user application by waiting for the */ 1539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* equivalent number of CPU cycles, by taking into account */ 1540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ratio of CPU clock versus ADC clock prescalers. */ 1541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: ADC clock cycles. */ 1542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES ( 4UL) /*!< Delay required between ADC end of cali 1543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported macro ------------------------------------------------------------*/ 1554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Macros ADC Exported Macros 1555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EM_WRITE_READ Common write and read registers Macros 1559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Write a value in ADC register 1564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 1565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register to be written 1566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VALUE__ Value to be written in the register 1567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 1568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/ccICigVb.s page 29 1569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE 1570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Read a value in ADC register 1573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 1574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register to be read 1575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Register value 1576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) 1578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EM_HELPER_MACRO ADC helper macro 1583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get ADC channel number in decimal format 1588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from literals LL_ADC_CHANNEL_x. 1589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Example: 1590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_CHANNEL_4) 1591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will return decimal number "4". 1592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The input can be a value from functions where a channel 1593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number is returned, either defined with number 1594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or with bitfield (only one bit must be set). 1595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 1598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 1599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 1600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 1601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 1602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 1616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 1617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 1618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 1619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 1620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 1621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 1622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 1623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 1624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 1625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) ARM GAS /tmp/ccICigVb.s page 30 1626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 1628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 1629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 1630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 1631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 1632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 1633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 1634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 1635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 1636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 1637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0 and Max_Data=18 1638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ 1640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__CHANNEL__) & ADC_CHANNEL_ID_BITFIELD_MASK) == 0UL) ? \ 1641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 1642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS \ 1643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 1645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 1646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (uint32_t)POSITION_VAL((__CHANNEL__)) \ 1647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get ADC channel in literal format LL_ADC_CHANNEL_x 1652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from number in decimal format. 1653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Example: 1654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_DECIMAL_NB_TO_CHANNEL(4) 1655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will return a data equivalent to "LL_ADC_CHANNEL_4". 1656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __DECIMAL_NB__ Value between Min_Data=0 and Max_Data=18 1657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 1660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 1661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 1662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 1663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 1664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 1678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 1679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 1680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 1681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 1682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) ARM GAS /tmp/ccICigVb.s page 31 1683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 1684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 1685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 1686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 1687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 1688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 1690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 1691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 1692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 1693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 1694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 1695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 1696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 1697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 1698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 1699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 1700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 1701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 1702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_DECIMAL_NB_TO_CHANNEL(__DECIMAL_NB__) 1704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__DECIMAL_NB__) <= 9UL) ? 1705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( 1706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) | 1707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) | 1708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_SMPR1_REGOFFSET | (((3UL * (__DECIMAL_NB__))) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) 1709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : 1711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( 1712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 1713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) 1714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_SMPR2_REGOFFSET | (((3UL * ((__DECIMAL_NB__) - 10UL))) << ADC_CHANNEL_SMPx_BITOFFSET_PO 1715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to determine whether the selected channel 1720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponds to literal definitions of driver. 1721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The different literal definitions of ADC channels are: 1722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC internal channel: 1723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ... 1724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC external channel (channel connected to a GPIO pin): 1725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ... 1726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter must be a value defined from literal 1727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...), 1730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must not be a value from functions where a channel number is 1731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned from ADC registers, 1732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because internal and external channels share the same channel 1733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 1734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters definitions of driver. 1735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 1738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 1739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) ARM GAS /tmp/ccICigVb.s page 32 1740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 1741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 1742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 1756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 1757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 1758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 1759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 1760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 1761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 1762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 1763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 1764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 1765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 1766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 1768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 1769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 1770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 1771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 1772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 1773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 1774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 1775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 1776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 1777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if the channel corresponds to a parameter definition of a ADC external channe 1778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if the channel corresponds to a parameter definition of a ADC internal channe 1779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ 1781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0UL) 1782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to convert a channel defined from parameter 1785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to its equivalent parameter definition of a ADC external channel 1788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...). 1789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter can be, additionally to a value 1790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined from parameter definition of a ADC internal channel 1791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ...), 1792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a value defined from parameter definition of 1793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 1794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or a value from functions where a channel number is returned 1795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC registers. 1796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: ARM GAS /tmp/ccICigVb.s page 33 1797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 1799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 1800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 1801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 1802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 1803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 1812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 1817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 1818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 1819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 1820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 1821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 1822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 1823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 1824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 1825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 1826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 1827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 1829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 1830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 1831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 1832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 1833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 1834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 1835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 1836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 1837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 1838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 1839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 1840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 1841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 1842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 1843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 1844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 1845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 1846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 1847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 1848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 1849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 1850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 1851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 1852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 1853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 ARM GAS /tmp/ccICigVb.s page 34 1854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 1855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 1856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 1857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 1858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ 1860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) 1861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to determine whether the internal channel 1864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * selected is available on the ADC instance selected. 1865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter must be a value defined from parameter 1866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 1867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 1868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must not be a value defined from parameter definition of 1869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 1870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or a value from functions where a channel number is 1871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned from ADC registers, 1872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because internal and external channels share the same channel 1873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 1874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters definitions of driver. 1875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_INSTANCE__ ADC instance 1876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 1877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 1878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 1879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 1880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 1881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 1882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 1883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 1884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 1885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 1886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 1887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 1888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 1890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 1891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 1892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 1893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 1894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 1895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 1896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 1897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if the internal channel selected is not available on the ADC instance selecte 1898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if the internal channel selected is available on the ADC instance selected. 1899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(STM32G474xx) || defined(STM32G484xx) || defined(STM32G473xx) || defined(STM32G483xx) 1901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 1903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 1905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 1906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ ARM GAS /tmp/ccICigVb.s page 35 1911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 1912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 1914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 1915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 1919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 1921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC4) \ 1927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP6) || \ 1929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC5) \ 1934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP5) || \ 1936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC5) || \ 1937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP4) || \ 1938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32G471xx) 1944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 1946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 1948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 1949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 1955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 1957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 1958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 1962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 1964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ ARM GAS /tmp/ccICigVb.s page 36 1968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32GBK1CB) || defined(STM32G431xx) || defined(STM32G441xx) 1970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 1972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 1974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 1975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 1981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 1983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 1984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 1987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32G491xx) || defined(STM32G4A1xx) 1988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 1989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 1990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 1991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 1992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 1993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 1994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 1995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 1997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 1998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 1999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 2001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 2002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 2006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 2008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP6) || \ 2009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif 2014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to define ADC analog watchdog parameter: 2017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * define a single channel to monitor with analog watchdog 2018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from sequencer channel and groups definition. 2019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetAnalogWDMonitChannels(). 2020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: 2021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetAnalogWDMonitChannels( 2022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC1, LL_ADC_AWD1, 2023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_ANALOGWD_CHANNEL_GROUP(LL_ADC_CHANNEL4, LL_ADC_GROUP_REGULAR)) 2024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: ARM GAS /tmp/ccICigVb.s page 37 2025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 2030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 2064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 2065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 2067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 2068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 2069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __GROUP__ This parameter can be one of the following values: 2070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR 2071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_INJECTED 2072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR_INJECTED 2073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 2075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 2076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 2077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 2078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 2079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 2080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 2081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) ARM GAS /tmp/ccICigVb.s page 38 2082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 2083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 2084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 2085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 2086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 2087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 2088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 2089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 2090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 2091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 2092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 2093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 2094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 2095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 2096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 2097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 2098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 2099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 2100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 2101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 2102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 2103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 2104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 2105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 2106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 2107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 2108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 2109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 2110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 2111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 2112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 2113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 2114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 2115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 2116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 2117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 2118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 2119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 2120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 2121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 2122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 2123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 2124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 2125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 2126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 2127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 2128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 2129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 2130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 2131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 2132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 2133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 2134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 2135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0) 2136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0) 2137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ 2138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG (0)(1) ARM GAS /tmp/ccICigVb.s page 39 2139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_INJ (0)(1) 2140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG_INJ (1) 2141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG (0)(5) 2142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_INJ (0)(5) 2143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG_INJ (5) 2144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(6) 2145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(6) 2146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (6) 2147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG (0)(1) 2148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_INJ (0)(1) 2149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG_INJ (1) 2150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG (0)(2) 2151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_INJ (0)(2) 2152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG_INJ (2) 2153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG (0)(2) 2154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_INJ (0)(2) 2155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG_INJ (2) 2156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG (0)(3) 2157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_INJ (0)(3) 2158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG_INJ (3) 2159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG (0)(5) 2160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_INJ (0)(5) 2161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG_INJ (5) 2162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG (0)(5) 2163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_INJ (0)(5) 2164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG_INJ (5) 2165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG (0)(4) 2166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_INJ (0)(4) 2167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG_INJ (4) 2168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1.\n 2170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 2178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_CHANNEL_GROUP(__CHANNEL__, __GROUP__) 2180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__GROUP__) == LL_ADC_GROUP_REGULAR) 2181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 2182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : 2183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__GROUP__) == LL_ADC_GROUP_INJECTED) 2184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) 2185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : 2186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 2187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to set the value of ADC analog watchdog threshold high 2191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 2192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * different of 12 bits. 2193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_ConfigAnalogWDThresholds() 2194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or @ref LL_ADC_SetAnalogWDThresholds(). 2195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to set the value of ARM GAS /tmp/ccICigVb.s page 40 2196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog threshold high (on 8 bits): 2197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetAnalogWDThresholds 2198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (< ADCx param >, 2199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(LL_ADC_RESOLUTION_8B, > (ADC_CFGR_RES_BITOFFSET_POS - 1U ))) 2211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the value of ADC analog watchdog threshold high 2214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 2215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * different of 12 bits. 2216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). 2217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to get the value of 2218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog threshold high (on 8 bits): 2219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * < threshold_value_6_bits > = __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION 2220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_RESOLUTION_8B, 2221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_GetAnalogWDThresholds(, LL_ADC_AWD_THRESHOLD_HIGH) 2222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ); 2223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __AWD_THRESHOLD_12_BITS__ Value between Min_Data=0x000 and Max_Data=0xFFF 2229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 2230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(__ADC_RESOLUTION__, __AWD_THRESHOLD_12_BITS__) \ 2232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__AWD_THRESHOLD_12_BITS__) >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1U ))) 2233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the ADC analog watchdog threshold high 2236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low from raw value containing both thresholds concatenated. 2237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). 2238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, to get analog watchdog threshold high from the register raw value: 2239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_ANALOGWD_THRESHOLDS_HIGH_LOW(LL_ADC_AWD_THRESHOLD_HIGH, > (((__AWD_THRESHOLD_TYPE__) & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TRX_ 2248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to set the ADC calibration value with both single ended 2251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential modes calibration factors concatenated. 2252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetCalibrationFactor(). ARM GAS /tmp/ccICigVb.s page 41 2253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, to set calibration factors single ended to 0x55 2254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential ended to 0x2A: 2255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetCalibrationFactor( 2256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC1, 2257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(0x55, 0x2A)) 2258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CALIB_FACTOR_SINGLE_ENDED__ Value between Min_Data=0x00 and Max_Data=0x7F 2259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CALIB_FACTOR_DIFFERENTIAL__ Value between Min_Data=0x00 and Max_Data=0x7F 2260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 2261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(__CALIB_FACTOR_SINGLE_ENDED__, __CALIB_FACTOR_DIFFERENTIA 2263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CALIB_FACTOR_DIFFERENTIAL__) << ADC_CALFACT_CALFACT_D_Pos) | (__CALIB_FACTOR_SINGLE_ENDED__) 2264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 2266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the ADC multimode conversion data of ADC master 2268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or ADC slave from raw value with both ADC conversion data concatenated. 2269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This macro is intended to be used when multimode transfer by DMA 2270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled: refer to function @ref LL_ADC_SetMultiDMATransfer(). 2271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In this case the transferred data need to processed with this macro 2272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to separate the conversion data of ADC master and ADC slave. 2273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_MULTI_MASTER_SLAVE__ This parameter can be one of the following values: 2274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 2275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 2276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_MULTI_CONV_DATA__ Value between Min_Data=0x000 and Max_Data=0xFFF 2277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 2278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(__ADC_MULTI_MASTER_SLAVE__, __ADC_MULTI_CONV_DATA__) 2280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_MULTI_CONV_DATA__) >> ((ADC_CDR_RDATA_SLV_Pos) & ~(__ADC_MULTI_MASTER_SLAVE__))) & ADC_C 2281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 2282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 2284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to select, from a ADC instance, to which ADC instance 2286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * it has a dependence in multimode (ADC master of the corresponding 2287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC common instance). 2288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of device with multimode available and a mix of 2289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instances compliant and not compliant with multimode feature, 2290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instances not compliant with multimode feature are 2291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * considered as master instances (do not depend to 2292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * any other ADC instance). 2293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCx__ ADC instance 2294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval __ADCx__ ADC instance master of the corresponding ADC common instance 2295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC5) 2297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_MULTI_INSTANCE_MASTER(__ADCx__) \ 2298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC2) \ 2299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 2300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC1) \ 2301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC4) \ 2303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 2304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC3) \ 2305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADCx__) \ 2307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else ARM GAS /tmp/ccICigVb.s page 42 2310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_MULTI_INSTANCE_MASTER(__ADCx__) \ 2311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC2) \ 2312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 2313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC1) \ 2314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADCx__) \ 2316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC5 */ 2318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 2319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to select the ADC common instance 2322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to which is belonging the selected ADC instance. 2323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC common register instance can be used for: 2324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Set parameters common to several ADC instances 2325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Multimode (for devices with several ADC instances) 2326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 2327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCx__ ADC instance 2328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC common register instance 2329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC345_COMMON) 2331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ 2332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADCx__) == ADC1) || ((__ADCx__) == ADC2)) \ 2333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 2334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC12_COMMON) \ 2335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 2338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC345_COMMON) \ 2339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 2342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) (ADC12_COMMON) 2343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC345_COMMON */ 2344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to check if all ADC instances sharing the same 2346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC common instance are disabled. 2347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This check is required by functions with setting conditioned to 2348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 2349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 2350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 2351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On devices with only 1 ADC common instance, parameter of this macro 2352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is useless and can be ignored (parameter kept for compatibility 2353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with devices featuring several ADC common instances). 2354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCXY_COMMON__ ADC common instance 2355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if all ADC instances sharing the same ADC common instance 2357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are disabled. 2358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if at least one ADC instance sharing the same ADC common instance 2359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled. 2360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC345_COMMON) 2362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC4) && defined(ADC5) 2363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 2364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADCXY_COMMON__) == ADC12_COMMON) \ 2365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 2366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | \ ARM GAS /tmp/ccICigVb.s page 43 2367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC2) ) \ 2368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 2371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC3) | \ 2372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC4) | \ 2373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC5) ) \ 2374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 2377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 2378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADCXY_COMMON__) == ADC12_COMMON) \ 2379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 2380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | \ 2381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC2) ) \ 2382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC3)) \ 2385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC4 && ADC5 */ 2387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 2388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 2389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | LL_ADC_IsEnabled(ADC2)) 2390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif 2391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to define the ADC conversion data full-scale digital 2394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * value corresponding to the selected ADC resolution. 2395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC conversion data full-scale corresponds to voltage range 2396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * determined by analog voltage references Vref+ and Vref- 2397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (refer to reference manual). 2398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data full-scale digital value (unit: digital value of ADC conversion dat 2404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 2406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (0xFFFUL >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 2407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to convert the ADC conversion data from 2410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a resolution to another resolution. 2411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __DATA__ ADC conversion data to be converted 2412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION_CURRENT__ Resolution of the data to be converted 2413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 2414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION_TARGET__ Resolution of the data after conversion 2419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 2420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B ARM GAS /tmp/ccICigVb.s page 44 2424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data to the requested resolution 2425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CONVERT_DATA_RESOLUTION(__DATA__,\ 2427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION_CURRENT__,\ 2428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION_TARGET__) \ 2429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__DATA__) \ 2430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) \ 2431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) \ 2432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the voltage (unit: mVolt) 2436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponding to a ADC conversion data (unit: digital value). 2437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 2441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_DATA__ ADC conversion data (resolution 12 bits) 2442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: digital value). 2443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data equivalent voltage value (unit: mVolt) 2449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_DATA_TO_VOLTAGE(__VREFANALOG_VOLTAGE__,\ 2451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_DATA__,\ 2452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__ADC_DATA__) * (__VREFANALOG_VOLTAGE__) \ 2454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 2455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate analog reference voltage (Vref+) 2459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: mVolt) from ADC conversion data of internal voltage 2460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * reference VrefInt. 2461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using VrefInt calibration value 2462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * stored in system memory for each device during production. 2463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This voltage depends on user board environment: voltage level 2464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * connected to pin Vref+. 2465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On devices with small package, the pin Vref+ is not present 2466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and internally bonded to pin Vdda. 2467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, calibration data of internal voltage reference 2468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * VrefInt corresponds to a resolution of 12 bits, 2469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 2470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal voltage reference VrefInt. 2471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 2472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion data to 12 bits. 2473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFINT_ADC_DATA__ ADC conversion data (resolution 12 bits) 2474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of internal voltage reference VrefInt (unit: digital value). 2475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 2476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Analog reference voltage (unit: mV) ARM GAS /tmp/ccICigVb.s page 45 2481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_VREFANALOG_VOLTAGE(__VREFINT_ADC_DATA__,\ 2483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((uint32_t)(*VREFINT_CAL_ADDR) * VREFINT_CAL_VREF) \ 2485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ 2486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 2487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_RESOLUTION_12B) \ 2488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 2492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 2493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using temperature sensor calibration values 2494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * stored in system memory for each device during production. 2495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calculation formula: 2496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Temperature = ((TS_ADC_DATA - TS_CAL1) 2497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * * (TS_CAL2_TEMP - TS_CAL1_TEMP)) 2498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / (TS_CAL2 - TS_CAL1) + TS_CAL1_TEMP 2499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 2500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Avg_Slope = (TS_CAL2 - TS_CAL1) 2501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / (TS_CAL2_TEMP - TS_CAL1_TEMP) 2502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_CAL1 = equivalent TS_ADC_DATA at temperature 2503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TEMP_DEGC_CAL1 (calibrated in factory) 2504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_CAL2 = equivalent TS_ADC_DATA at temperature 2505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TEMP_DEGC_CAL2 (calibrated in factory) 2506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Caution: Calculation relevancy under reserve that calibration 2507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters are correct (address and data). 2508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * To calculate temperature using temperature sensor 2509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * datasheet typical values (generic values less, therefore 2510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * less accurate than calibrated values), 2511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). 2512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 2513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 2514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, calibration data of temperature sensor 2518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponds to a resolution of 12 bits, 2519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 2520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor. 2521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 2522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion data to 12 bits. 2523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 2524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal 2525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor (unit: digital value). 2526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature 2527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sensor voltage has been measured. 2528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 2529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 2534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE(__VREFANALOG_VOLTAGE__,\ 2536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 2537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ ARM GAS /tmp/ccICigVb.s page 46 2538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((( ((int32_t)((__LL_ADC_CONVERT_DATA_RESOLUTION((__TEMPSENSOR_ADC_DATA__), \ 2539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 2540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_RESOLUTION_12B) \ 2541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (__VREFANALOG_VOLTAGE__)) \ 2542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / TEMPSENSOR_CAL_VREFANALOG) \ 2543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ 2544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ 2545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ 2546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) + TEMPSENSOR_CAL1_TEMP \ 2547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 2551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 2552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using temperature sensor typical values 2553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (refer to device datasheet). 2554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calculation formula: 2555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Temperature = (TS_TYP_CALx_VOLT(uV) - TS_ADC_DATA * Conversion_uV) 2556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / Avg_Slope + CALx_TEMP 2557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 2558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: digital value) 2559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Avg_Slope = temperature sensor slope 2560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: uV/Degree Celsius) 2561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_TYP_CALx_VOLT = temperature sensor digital value at 2562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature CALx_TEMP (unit: mV) 2563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Caution: Calculation relevancy under reserve the temperature sensor 2564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of the current device has characteristics in line with 2565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * datasheet typical values. 2566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If temperature sensor calibration values are available on 2567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on this device (presence of macro __LL_ADC_CALC_TEMPERATURE()), 2568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature calculation will be more accurate using 2569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CALC_TEMPERATURE(). 2570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 2571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 2572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 2573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 2574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 2575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC measurement data must correspond to a resolution of 12 bits 2576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (full scale digital value 4095). If not the case, the data must be 2577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * preliminarily rescaled to an equivalent resolution of 12 bits. 2578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_AVGSLOPE__ Device datasheet data: Temperature sensor slope typical v 2579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On STM32G4, refer to device datasheet parameter "Avg_Slop 2580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_CALX_V__ Device datasheet data: Temperature sensor voltage typical 2581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On STM32G4, refer to device datasheet parameter "V30" (co 2582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_CALX_TEMP__ Device datasheet data: Temperature at which temperature s 2583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog voltage reference (Vref+) voltage (unit: mV) 2584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal temperature sensor (unit: 2585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature sensor volta 2586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 2587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 2592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(__TEMPSENSOR_TYP_AVGSLOPE__,\ 2594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_TYP_CALX_V__,\ ARM GAS /tmp/ccICigVb.s page 47 2595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_CALX_TEMP__,\ 2596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __VREFANALOG_VOLTAGE__,\ 2597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 2598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 2599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((((int32_t)((((__TEMPSENSOR_ADC_DATA__) * (__VREFANALOG_VOLTAGE__)) \ 2600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__)) \ 2601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1000UL) \ 2602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** - \ 2603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (int32_t)(((__TEMPSENSOR_TYP_CALX_V__)) \ 2604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1000UL) \ 2605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) / (int32_t)(__TEMPSENSOR_TYP_AVGSLOPE__) \ 2607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) + (int32_t)(__TEMPSENSOR_CALX_TEMP__) \ 2608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported functions --------------------------------------------------------*/ 2620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Functions ADC Exported Functions 2621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_DMA_Management ADC DMA management 2625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: LL ADC functions to set DMA transfer are located into sections of */ 2628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration of ADC instance, groups and multimode (if available): */ 2629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* @ref LL_ADC_REG_SetDMATransfer(), ... */ 2630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Function to help to configure DMA transfer from ADC: retrieve the 2633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC register address from ADC instance and a list of ADC registers 2634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * intended to be used (most commonly) with DMA transfer. 2635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These ADC registers are data registers: 2636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when ADC conversion data is available in ADC data registers, 2637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC generates a DMA transfer request. 2638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This macro is intended to be used with LL DMA driver, refer to 2639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_DMA_ConfigAddresses()". 2640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: 2641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_ConfigAddresses(DMA1, 2642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_CHANNEL_1, 2643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_DMA_GetRegAddr(ADC1, LL_ADC_DMA_REG_REGULAR_DATA), 2644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (uint32_t)&< array or variable >, 2645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_DIRECTION_PERIPH_TO_MEMORY); 2646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC: in multimode, some devices 2647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use a different data register outside of ADC instance scope 2648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (common data register). This macro manages this register difference, 2649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * only ADC instance has to be set as parameter. 2650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_DMA_GetRegAddr\n 2651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_MST LL_ADC_DMA_GetRegAddr\n ARM GAS /tmp/ccICigVb.s page 48 2652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_DMA_GetRegAddr 2653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 2654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Register This parameter can be one of the following values: 2655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA 2656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA_MULTI (1) 2657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Available on devices with several ADC instances. 2659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC register address 2660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 2662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) 2663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t data_reg_addr; 2665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (Register == LL_ADC_DMA_REG_REGULAR_DATA) 2667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register DR */ 2669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data_reg_addr = (uint32_t) &(ADCx->DR); 2670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else /* (Register == LL_ADC_DMA_REG_REGULAR_DATA_MULTI) */ 2672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register CDR */ 2674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); 2675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return data_reg_addr; 2678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 2680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(ADC_TypeDef *ADCx, uint32_t Register) 2681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 2683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(Register); 2684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register DR */ 2686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) &(ADCx->DR); 2687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 2689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Common Configuration of ADC hierarchical scope: common to 2695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: Clock source and prescaler. 2700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, if ADC group injected is used, some 2701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * clock ratio constraints between ADC clock and AHB clock 2702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must be respected. 2703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 2704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 2706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 2707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 2708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro helper macro ARM GAS /tmp/ccICigVb.s page 49 2709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 2710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_SetCommonClock\n 2711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR PRESC LL_ADC_SetCommonClock 2712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param CommonClock This parameter can be one of the following values: 2715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 2716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 2717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 2718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 2719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 2720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 2721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 2722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 2723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 2724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 2725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 2726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 2727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 2728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 2729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 2730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock) 2733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock); 2735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get parameter common to several ADC: Clock source and prescaler. 2739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_GetCommonClock\n 2740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR PRESC LL_ADC_GetCommonClock 2741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 2745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 2746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 2747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 2748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 2749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 2750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 2751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 2752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 2753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 2754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 2755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 2756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 2757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 2758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 2759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON) 2761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC)); 2763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 50 2766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 2767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 2768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Configure all paths (overwrite current configuration). 2769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 2770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The values not selected are removed from configuration. 2773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 2774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, 2775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay is required for internal voltage reference and 2776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor stabilization time. 2777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 2778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 2779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US. 2780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: 2781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For ADC conversion of internal channels, 2782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a sampling time minimum value is required. 2783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 2784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalCh\n 2785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalCh\n 2786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalCh 2787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Path 2797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_VSENSESEL | ADC_CCR_VBATSEL, PathInternal) 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 2803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 2804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Add paths to the current configuration. 2805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 2806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 2809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, 2810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay is required for internal voltage reference and 2811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor stabilization time. 2812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 2813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 2814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US. 2815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: 2816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For ADC conversion of internal channels, 2817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a sampling time minimum value is required. 2818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 2819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChAdd\n 2820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalChAdd\n 2821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalChAdd 2822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance ARM GAS /tmp/ccICigVb.s page 51 2823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChAdd(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 2832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCxy_COMMON->CCR, PathInternal); 2834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 2838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 2839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Remove paths to the current configuration. 2840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 2841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChRem\n 2844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalChRem\n 2845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalChRem 2846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 2849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChRem(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 2856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCxy_COMMON->CCR, PathInternal); 2858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get parameter common to several ADC: measurement path to internal 2862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channels (VrefInt, temperature sensor, ...). 2863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 2864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 2865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 2866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_GetCommonPathInternalCh\n 2867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_GetCommonPathInternalCh\n 2868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_GetCommonPathInternalCh 2869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 2870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 2871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be a combination of the following values: 2872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 2873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 2874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 2875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 2876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON) 2878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_VSENSESEL | ADC_CCR_VBATSE ARM GAS /tmp/ccICigVb.s page 52 2880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Instance Configuration of ADC hierarchical scope: ADC ins 2887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC calibration factor in the mode single-ended 2892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 2893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is intended to set calibration parameters 2894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without having to perform a new calibration using 2895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_StartCalibration(). 2896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 2897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 2898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 2899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (calibration factor must be specified for each of these 2900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * differential modes, if used afterwards and if the application 2901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * requires their calibration). 2902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of setting calibration factors of both modes single ended 2903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential (parameter LL_ADC_BOTH_SINGLE_DIFF_ENDED): 2904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * both calibration factors must be concatenated. 2905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * To perform this processing, use helper macro 2906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(). 2907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 2909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled, without calibration on going, without conversion 2910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on group regular. 2911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_SetCalibrationFactor\n 2912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_SetCalibrationFactor 2913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 2914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 2915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 2916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 2917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_BOTH_SINGLE_DIFF_ENDED 2918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param CalibrationFactor Value between Min_Data=0x00 and Max_Data=0x7F 2919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C 2922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT, 2924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK, 2925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CalibrationFactor << (((SingleDiff & ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK) >> ADC_SINGLED 2926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC calibration factor in the mode single-ended 2930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 2931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calibration factors are set by hardware after performing 2932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a calibration run using function @ref LL_ADC_StartCalibration(). 2933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 2934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 2935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 2936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_GetCalibrationFactor\n ARM GAS /tmp/ccICigVb.s page 53 2937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_GetCalibrationFactor 2938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 2939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 2940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 2941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 2942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x7F 2943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff) 2945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve bits with position in register depending on parameter */ 2947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "SingleDiff". */ 2948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameter used with mask "ADC_SINGLEDIFF_CALIB_FACTOR_MASK" because */ 2949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 2950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT, 2951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) >> ((SingleDiff & ADC 2952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SINGLEDIFF_CA 2953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC resolution. 2957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual for alignments formats 2958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 2959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 2961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 2962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 2963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_SetResolution 2964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 2965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Resolution This parameter can be one of the following values: 2966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) 2973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 2975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC resolution. 2979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual for alignments formats 2980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 2981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_GetResolution 2982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 2983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 2985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 2986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 2987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 2988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetResolution(ADC_TypeDef *ADCx) 2990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 2992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 54 2994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC conversion data alignment. 2996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to reference manual for alignments formats 2997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 2998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 2999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR ALIGN LL_ADC_SetDataAlignment 3003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param DataAlignment This parameter can be one of the following values: 3005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_RIGHT 3006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_LEFT 3007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) 3010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_ALIGN, DataAlignment); 3012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC conversion data alignment. 3016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to reference manual for alignments formats 3017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 3018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR ALIGN LL_ADC_GetDataAlignment 3019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_RIGHT 3022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_LEFT 3023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(ADC_TypeDef *ADCx) 3025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_ALIGN)); 3027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC low power mode. 3031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC low power modes: 3032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, 3033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary 3034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in order to reduce power consumption. 3035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * New ADC conversion starts only when the previous 3036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 3037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 3038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * has been retrieved by user software. 3039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 3040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other conversion. 3041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 3042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 3043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 3044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * applications. 3045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * How to use this low power mode: 3046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 3047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 3048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 3049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 3050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU ARM GAS /tmp/ccICigVb.s page 55 3051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). 3052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 3053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 3054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversion to ensure that conversion is completed and 3055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 3056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 3057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto power-off" (feature available on 3058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this device if parameter LL_ADC_LP_AUTOPOWEROFF is available): 3059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the ADC automatically powers-off after a conversion and 3060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * automatically wakes up when a new conversion is triggered 3061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (with startup time between trigger and start of sampling). 3062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This feature can be combined with low power mode "auto wait". 3063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 3064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 3065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of delay during which ADC was idle. 3066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 3067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * correspond to the current voltage level on the selected 3068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 3069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_SetLowPowerMode 3074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param LowPowerMode This parameter can be one of the following values: 3076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 3077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 3078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetLowPowerMode(ADC_TypeDef *ADCx, uint32_t LowPowerMode) 3081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_AUTDLY, LowPowerMode); 3083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC low power mode: 3087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC low power modes: 3088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, 3089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary 3090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in order to reduce power consumption. 3091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * New ADC conversion starts only when the previous 3092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 3093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 3094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * has been retrieved by user software. 3095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 3096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other conversion. 3097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 3098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 3099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 3100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * applications. 3101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * How to use this low power mode: 3102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 3103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 3104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 3105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 3106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU 3107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). ARM GAS /tmp/ccICigVb.s page 56 3108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 3109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 3110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversion to ensure that conversion is completed and 3111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 3112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 3113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto power-off" (feature available on 3114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this device if parameter LL_ADC_LP_AUTOPOWEROFF is available): 3115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the ADC automatically powers-off after a conversion and 3116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * automatically wakes up when a new conversion is triggered 3117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (with startup time between trigger and start of sampling). 3118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This feature can be combined with low power mode "auto wait". 3119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 3120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 3121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of delay during which ADC was idle. 3122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 3123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * correspond to the current voltage level on the selected 3124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 3125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_GetLowPowerMode 3126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 3129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 3130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetLowPowerMode(ADC_TypeDef *ADCx) 3132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_AUTDLY)); 3134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC selected offset number 1, 2, 3 or 4. 3138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the 2 items of offset configuration: 3139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC channel to which the offset programmed will be applied 3140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 3141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or group injected) 3142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Offset level (offset to be subtracted from the raw 3143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted data). 3144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 3145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset has to be left-aligned on bit 11, the LSB (right bits) 3146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are set to 0. 3147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function enables the offset, by default. It can be forced 3148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to disable state using function LL_ADC_SetOffsetState(). 3149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If a channel is mapped on several offsets numbers, only the offset 3150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with the lowest value is considered for the subtraction. 3151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 3156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 3157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_SetOffset\n 3158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR1 OFFSET1 LL_ADC_SetOffset\n 3159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR1 OFFSET1_EN LL_ADC_SetOffset\n 3160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_SetOffset\n 3161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_SetOffset\n 3162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffset\n 3163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_SetOffset\n 3164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_SetOffset\n ARM GAS /tmp/ccICigVb.s page 57 3165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffset\n 3166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_SetOffset\n 3167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_SetOffset\n 3168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffset 3169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 3176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 3177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 3178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 3179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 3180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 3181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 3182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 3190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 3196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 3197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 3198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 3199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 3200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 3201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 3202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 3203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 3204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 3205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 3206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 3208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 3209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 3210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 3211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 3212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 3213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 3214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 3215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 3216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 3217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0xFFF 3218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32 3221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { ARM GAS /tmp/ccICigVb.s page 58 3222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 3225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 3226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel); 3227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channel to which the offset programmed will be applied 3232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 3233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or group injected) 3234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 3235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 3236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 3237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 3238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 3239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 3240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 3241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 3242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 3243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 3244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 3245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 3246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 3247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_GetOffsetChannel\n 3248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_GetOffsetChannel\n 3249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_GetOffsetChannel\n 3250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_GetOffsetChannel 3251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 3259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 3260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 3261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 3262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 3263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 3264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 3265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 3266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 3267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 3268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 3269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 3270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 3271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 3272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 3273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 3274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 3275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 3276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 3277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 3278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) ARM GAS /tmp/ccICigVb.s page 59 3279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 3280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 3281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 3282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 3283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 3284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 3285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 3286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 3287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 3288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 3290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 3291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 3292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 3293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 3294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 3295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 3296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 3297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 3298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 3299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 3300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 3301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 3302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetChannel(ADC_TypeDef *ADCx, uint32_t Offsety) 3304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_CH); 3308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Offset level (offset to be subtracted from the raw 3313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted data). 3314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 3315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset has to be left-aligned on bit 11, the LSB (right bits) 3316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are set to 0. 3317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1 LL_ADC_GetOffsetLevel\n 3318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_GetOffsetLevel\n 3319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_GetOffsetLevel\n 3320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_GetOffsetLevel 3321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 3328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetLevel(ADC_TypeDef *ADCx, uint32_t Offsety) 3330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1); 3334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 60 3336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * force offset state disable or enable 3339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without modifying offset channel or offset value. 3340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function should be needed only in case of offset to be 3341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled-disabled dynamically, and should not be needed in other cases: 3342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function LL_ADC_SetOffset() automatically enables the offset. 3343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_SetOffsetState\n 3348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffsetState\n 3349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffsetState\n 3350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffsetState 3351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetState This parameter can be one of the following values: 3358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE 3359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 3360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetState(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetStat 3363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 3367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 3368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetState); 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset state disabled or enabled. 3374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_GetOffsetState\n 3375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_GetOffsetState\n 3376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_GetOffsetState\n 3377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_GetOffsetState 3378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE 3386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 3387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetState(ADC_TypeDef *ADCx, uint32_t Offsety) 3389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_EN); ARM GAS /tmp/ccICigVb.s page 61 3393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * choose offset sign. 3398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_SetOffsetSign\n 3403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_SetOffsetSign\n 3404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_SetOffsetSign\n 3405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_SetOffsetSign 3406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetSign This parameter can be one of the following values: 3413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 3414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 3415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSign(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSign) 3418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 3422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 3423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetSign); 3424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset sign if positive or negative. 3429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_GetOffsetSign\n 3430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_GetOffsetSign\n 3431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_GetOffsetSign\n 3432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_GetOffsetSign 3433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 3441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 3442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSign(ADC_TypeDef *ADCx, uint32_t Offsety) 3444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSETPOS); 3448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 62 3450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset number 1, 2, 3 or 4: 3452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * choose offset saturation mode. 3453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_SetOffsetSaturation\n 3458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 SATEN LL_ADC_SetOffsetSaturation\n 3459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 SATEN LL_ADC_SetOffsetSaturation\n 3460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 SATEN LL_ADC_SetOffsetSaturation 3461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetSaturation This parameter can be one of the following values: 3468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 3469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 3470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Offse 3473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 3477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 3478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetSaturation); 3479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset number 1, 2, 3 or 4: 3483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset saturation if enabled or disabled. 3484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_GetOffsetSaturation\n 3485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 SATEN LL_ADC_GetOffsetSaturation\n 3486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 SATEN LL_ADC_GetOffsetSaturation\n 3487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 SATEN LL_ADC_GetOffsetSaturation 3488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 3490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 3491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 3492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 3493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 3494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 3496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 3497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSaturation(ADC_TypeDef *ADCx, uint32_t Offsety) 3499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 3501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_SATEN); 3503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC gain compensation. ARM GAS /tmp/ccICigVb.s page 63 3507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the gain compensation coefficient 3508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * that is applied to raw converted data using the formula: 3509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DATA = DATA(raw) * (gain compensation coef) / 4096 3510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function enables the gain compensation if given 3511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coefficient is above 0, otherwise it disables it. 3512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Gain compensation when enabled is applied to all channels. 3513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll GCOMP GCOMPCOEFF LL_ADC_SetGainCompensation\n 3518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 GCOMP LL_ADC_SetGainCompensation 3519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param GainCompensation This parameter can be: 3521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 0 Gain compensation will be disabled and value set to 0 3522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 -> 16393 Gain compensation will be enabled with specified value 3523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetGainCompensation(ADC_TypeDef *ADCx, uint32_t GainCompensation) 3526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->GCOMP, ADC_GCOMP_GCOMPCOEFF, GainCompensation); 3528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_GCOMP, ((GainCompensation == 0UL) ? 0UL : 1UL) << ADC_CFGR2_GCO 3529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the ADC gain compensation value 3533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll GCOMP GCOMPCOEFF LL_ADC_GetGainCompensation\n 3534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 GCOMP LL_ADC_GetGainCompensation 3535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be: 3537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 0 Gain compensation is disabled 3538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 -> 16393 Gain compensation is enabled with returned value 3539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetGainCompensation(ADC_TypeDef *ADCx) 3541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CFGR2, ADC_CFGR2_GCOMP) == ADC_CFGR2_GCOMP) ? READ_BIT(ADCx->GCOMP, ADC_G 3543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_SMPR1_SMPPLUS) 3546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC sampling time common configuration impacting 3548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings of sampling time channel wise. 3549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMPPLUS LL_ADC_SetSamplingTimeCommonConfig 3554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingTimeCommonConfig This parameter can be one of the following values: 3556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_DEFAULT 3557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 3558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetSamplingTimeCommonConfig(ADC_TypeDef *ADCx, uint32_t SamplingTimeCom 3561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->SMPR1, ADC_SMPR1_SMPPLUS, SamplingTimeCommonConfig); 3563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/ccICigVb.s page 64 3564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC sampling time common configuration impacting 3567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings of sampling time channel wise. 3568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMPPLUS LL_ADC_GetSamplingTimeCommonConfig 3569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_DEFAULT 3572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 3573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetSamplingTimeCommonConfig(ADC_TypeDef *ADCx) 3575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->SMPR1, ADC_SMPR1_SMPPLUS)); 3577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_SMPR1_SMPPLUS */ 3579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 3582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Regular Configuration of ADC hierarchical scope: gr 3585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 3586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger source: 3590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 3591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 3592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 3593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * also set trigger polarity to rising edge 3594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 3595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * STM32 families having this setting set by HW default value). 3596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In case of need to modify trigger edge, use 3597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function @ref LL_ADC_REG_SetTriggerEdge(). 3598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 3599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 3600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 3604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_SetTriggerSource\n 3605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_SetTriggerSource 3606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 3608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 3609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 3610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 3611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 (1) 3612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 (1) 3613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 3614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 3615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH1 (2) 3616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 (1) 3617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 (2) 3618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 3619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 (2) 3620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 (1) ARM GAS /tmp/ccICigVb.s page 65 3621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 3622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH1 (2) 3623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 (1) 3624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 3625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM7_TRGO 3626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 3627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 3628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 (2) 3629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 3630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO 3631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO2 3632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH1 3633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH2 (1) 3634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH3 (1) 3635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 3636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG2 (2) 3637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 3638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG4 (2) 3639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG5 3640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG6 3641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG7 3642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG8 3643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG9 3644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG10 3645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (1) 3646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE2 (2) 3647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM_OUT 3648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 3650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 3651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, all ADCx are not available on all devices. Refer to device da 3652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 3655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL, TriggerSource); 3657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source: 3661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 3662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 3663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To determine whether group regular trigger source is 3664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or external, without detail 3665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of which peripheral is selected as external trigger, 3666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (equivalent to 3667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * "if(LL_ADC_REG_GetTriggerSource(ADC1) == LL_ADC_REG_TRIG_SOFTWARE)") 3668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_REG_IsTriggerSourceSWStart. 3669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 3670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 3671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_GetTriggerSource\n 3672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_GetTriggerSource 3673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 3676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 3677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 ARM GAS /tmp/ccICigVb.s page 66 3678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 (1) 3679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 (1) 3680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 3681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 3682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH1 (2) 3683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 (1) 3684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 (2) 3685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 3686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 (2) 3687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 (1) 3688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 3689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH1 (2) 3690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 (1) 3691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 3692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM7_TRGO 3693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 3694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 3695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 (2) 3696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 3697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO 3698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO2 3699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH1 3700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH2 (1) 3701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH3 (1) 3702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 3703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG2 (2) 3704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 3705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG4 (2) 3706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG5 3707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG6 3708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG7 3709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG8 3710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG9 3711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG10 3712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (1) 3713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE2 (2) 3714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM_OUT 3715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 3717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 3718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, all ADCx are not available on all devices. Refer to device da 3719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerSource(ADC_TypeDef *ADCx) 3721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t TriggerSource = READ_BIT(ADCx->CFGR, ADC_CFGR_EXTSEL | ADC_CFGR_EXTEN); 3723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 3725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to ADC_CFGR_EXTEN {0; 1; 2; 3}. */ 3726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ShiftExten = ((TriggerSource & ADC_CFGR_EXTEN) >> (ADC_REG_TRIG_EXTEN_BITOFFSET_POS - 2U 3727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bitfield corresponding to ADC_CFGR_EXTEN and ADC_CFGR_EXTSEL */ 3729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to match with triggers literals definition. */ 3730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((TriggerSource 3731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (ADC_REG_TRIG_SOURCE_MASK >> ShiftExten) & ADC_CFGR_EXTSEL) 3732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_REG_TRIG_EDGE_MASK >> ShiftExten) & ADC_CFGR_EXTEN) 3733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 3734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/ccICigVb.s page 67 3735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source internal (SW start) 3738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or external. 3739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of group regular trigger source set to external trigger, 3740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 3741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_REG_GetTriggerSource(). 3742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_IsTriggerSourceSWStart 3743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 3745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if trigger source SW start. 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx) 3748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1 3750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger polarity. 3754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. 3755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 3759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_SetTriggerEdge 3760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 3762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 3763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 3764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 3765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 3768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN, ExternalTriggerEdge); 3770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger polarity. 3774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. 3775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_GetTriggerEdge 3776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 3779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 3780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 3781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerEdge(ADC_TypeDef *ADCx) 3783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN)); 3785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC sampling mode. 3789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the ADC conversion sampling mode 3790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This mode applies to regular group only. 3791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Set sampling mode is applied to all conversion of regular group. ARM GAS /tmp/ccICigVb.s page 68 3792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 3796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 BULB LL_ADC_REG_SetSamplingMode\n 3797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 SMPTRIG LL_ADC_REG_SetSamplingMode 3798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingMode This parameter can be one of the following values: 3800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_NORMAL 3801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_BULB 3802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED 3803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSamplingMode(ADC_TypeDef *ADCx, uint32_t SamplingMode) 3806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG, SamplingMode); 3808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the ADC sampling mode 3812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 BULB LL_ADC_REG_GetSamplingMode\n 3813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 SMPTRIG LL_ADC_REG_GetSamplingMode 3814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_NORMAL 3817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_BULB 3818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED 3819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSamplingMode(ADC_TypeDef *ADCx) 3821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG)); 3823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequencer length and scan direction. 3827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer fully configurable 3829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 3830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 3831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are configurable. 3832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function performs configuration of: 3833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 3834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 3835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 3836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 3837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 3838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer not fully configurable 3839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 3840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 3841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are defined by channel number. 3842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function performs configuration of: 3843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is 3844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined by number of channels set in the sequence, 3845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. 3846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). 3847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 3848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from lowest channel number to ARM GAS /tmp/ccICigVb.s page 69 3849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * highest channel number). 3850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 3851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 3852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 3853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 3854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 3858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_SetSequencerLength 3859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 3861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 3862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 3863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 3864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 3865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 3866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 3867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 3868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS 3869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 3870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS 3871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 3872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 3873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 3874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 3875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 3876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 3877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 3880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->SQR1, ADC_SQR1_L, SequencerNbRanks); 3882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequencer length and scan direction. 3886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 3887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer fully configurable 3888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 3889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 3890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are configurable. 3891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function retrieves: 3892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 3893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 3894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 3895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 3896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 3897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer not fully configurable 3898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 3899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 3900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are defined by channel number. 3901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function retrieves: 3902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is 3903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined by number of channels set in the sequence, 3904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. 3905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). ARM GAS /tmp/ccICigVb.s page 70 3906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 3907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from lowest channel number to 3908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * highest channel number). 3909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 3910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 3911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 3912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 3913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_GetSequencerLength 3914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 3917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 3918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 3919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 3920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 3921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 3922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 3923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS 3924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 3925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS 3926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 3927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 3928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 3929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 3930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 3931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 3932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerLength(ADC_TypeDef *ADCx) 3934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->SQR1, ADC_SQR1_L)); 3936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequencer discontinuous mode: 3940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 3941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 3942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 3943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 3944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC auto-injected mode 3945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC group regular sequencer discontinuous mode. 3946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 3950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_SetSequencerDiscont\n 3951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_SetSequencerDiscont 3952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 3954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 3955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 3956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 3957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 3958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS 3959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS 3960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 3961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 3962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS ARM GAS /tmp/ccICigVb.s page 71 3963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 3966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM, SeqDiscont); 3968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequencer discontinuous mode: 3972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 3973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 3974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_GetSequencerDiscont\n 3975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_GetSequencerDiscont 3976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 3979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 3980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 3981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 3982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS 3983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS 3984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 3985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 3986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS 3987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerDiscont(ADC_TypeDef *ADCx) 3989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM)); 3991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequence: channel on the selected 3995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan sequence rank. 3996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function performs configuration of: 3997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Channels ordering into each rank of scan sequence: 3998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever channel can be placed into whatever rank. 3999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 4000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * fully configurable: sequencer length and each rank 4001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * affectation to a channel are configurable. 4002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 4003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 4008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_SetSequencerRanks\n 4014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_SetSequencerRanks\n 4015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_SetSequencerRanks\n 4016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_SetSequencerRanks\n 4017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_SetSequencerRanks\n 4018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_SetSequencerRanks\n 4019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_SetSequencerRanks\n ARM GAS /tmp/ccICigVb.s page 72 4020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_SetSequencerRanks\n 4021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_SetSequencerRanks\n 4022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_SetSequencerRanks\n 4023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_SetSequencerRanks\n 4024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_SetSequencerRanks\n 4025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_SetSequencerRanks\n 4026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_SetSequencerRanks\n 4027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_SetSequencerRanks\n 4028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_SetSequencerRanks 4029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 4032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 4033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 4034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 4035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 4036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 4037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 4038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 4039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 4040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 4041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 4042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 4043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 4044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 4045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 4046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 4047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) ARM GAS /tmp/ccICigVb.s page 73 4077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 4080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 4087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 4088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channe 4092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 30 .loc 2 4092 1 view -0 31 .cfi_startproc 32 @ args = 0, pretend = 0, frame = 0 33 @ frame_needed = 0, uses_anonymous_args = 0 34 @ link register save eliminated. 35 .loc 2 4092 1 is_stmt 0 view .LVU1 36 0000 10B4 push {r4} 37 .LCFI0: 38 .cfi_def_cfa_offset 4 39 .cfi_offset 4, -4 4093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 4094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "Rank". */ 4095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 4096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 4097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> A 40 .loc 2 4097 3 is_stmt 1 view .LVU2 41 .loc 2 4097 25 is_stmt 0 view .LVU3 42 0002 3030 adds r0, r0, #48 43 .LVL1: 44 .loc 2 4097 25 view .LVU4 45 0004 0B0A lsrs r3, r1, #8 46 0006 9B00 lsls r3, r3, #2 47 0008 03F00C03 and r3, r3, #12 48 .LVL2: 4098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 49 .loc 2 4099 3 is_stmt 1 view .LVU5 50 000c C458 ldr r4, [r0, r3] 51 000e 01F01F01 and r1, r1, #31 52 .LVL3: 53 .loc 2 4099 3 is_stmt 0 view .LVU6 54 0012 4FF01F0C mov ip, #31 55 0016 0CFA01FC lsl ip, ip, r1 56 001a 24EA0C0C bic ip, r4, ip 57 001e C2F38462 ubfx r2, r2, #26, #5 58 .LVL4: 59 .loc 2 4099 3 view .LVU7 60 0022 8A40 lsls r2, r2, r1 61 0024 4CEA0202 orr r2, ip, r2 62 0028 C250 str r2, [r0, r3] 4100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK), ARM GAS /tmp/ccICigVb.s page 74 4101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Ra 4102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 63 .loc 2 4102 1 view .LVU8 64 002a 5DF8044B ldr r4, [sp], #4 65 .LCFI1: 66 .cfi_restore 4 67 .cfi_def_cfa_offset 0 68 002e 7047 bx lr 69 .cfi_endproc 70 .LFE171: 72 .section .text.LL_ADC_SetChannelSamplingTime,"ax",%progbits 73 .align 1 74 .syntax unified 75 .thumb 76 .thumb_func 78 LL_ADC_SetChannelSamplingTime: 79 .LVL5: 80 .LFB195: 4103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequence: channel on the selected 4106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan sequence rank. 4107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 4108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * fully configurable: sequencer length and each rank 4109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * affectation to a channel are configurable. 4110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 4111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 4114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 4115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 4116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 4117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 4118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 4120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 4121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 4122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 4123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_GetSequencerRanks\n 4125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_GetSequencerRanks\n 4126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_GetSequencerRanks\n 4127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_GetSequencerRanks\n 4128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_GetSequencerRanks\n 4129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_GetSequencerRanks\n 4130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_GetSequencerRanks\n 4131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_GetSequencerRanks\n 4132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_GetSequencerRanks\n 4133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_GetSequencerRanks\n 4134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_GetSequencerRanks\n 4135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_GetSequencerRanks\n 4136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_GetSequencerRanks\n 4137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_GetSequencerRanks\n 4138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_GetSequencerRanks\n 4139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_GetSequencerRanks 4140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: ARM GAS /tmp/ccICigVb.s page 75 4142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 4143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 4144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 4145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 4146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 4147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 4148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 4149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 4150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 4151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 4152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 4153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 4154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 4155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 4156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 4157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 4158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 4188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 4191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 4198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock ARM GAS /tmp/ccICigVb.s page 76 4199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 4201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 4202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 4203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank) 4205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK 4207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)((READ_BIT(*preg, 4209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MA 4210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (Rank & ADC_REG_RANK_ID_SQRX_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 4211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 4212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC continuous conversion mode on ADC group regular. 4216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 4217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - single mode: one conversion per trigger 4218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode: after the first trigger, following 4219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversions launched successively automatically. 4220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 4221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 4222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_SetContinuousMode 4227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Continuous This parameter can be one of the following values: 4229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 4230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 4231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetContinuousMode(ADC_TypeDef *ADCx, uint32_t Continuous) 4234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_CONT, Continuous); 4236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC continuous conversion mode on ADC group regular. 4240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 4241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - single mode: one conversion per trigger 4242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode: after the first trigger, following 4243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversions launched successively automatically. 4244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_GetContinuousMode 4245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 4248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetContinuousMode(ADC_TypeDef *ADCx) 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_CONT)); 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 77 4256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion data transfer: no transfer or 4257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 4258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 4259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode: 4260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 4261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 4262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 4263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 4264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 4265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 4266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 4267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 4268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 4269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 4270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 4271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 4272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 4273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 4274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings are available using function @ref LL_ADC_SetMultiDMATransfer(). 4275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 4276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 4277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_SetDMATransfer\n 4282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_SetDMATransfer 4283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param DMATransfer This parameter can be one of the following values: 4285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE 4286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED 4287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED 4288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetDMATransfer(ADC_TypeDef *ADCx, uint32_t DMATransfer) 4291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMAEN | ADC_CFGR_DMACFG, DMATransfer); 4293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data transfer: no transfer or 4297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 4298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 4299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode: 4300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 4301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 4302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 4303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 4304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 4305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 4306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 4307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 4309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 4311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). ARM GAS /tmp/ccICigVb.s page 78 4313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 4314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings are available using function @ref LL_ADC_GetMultiDMATransfer(). 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 4316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 4317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_GetDMATransfer\n 4318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_GetDMATransfer 4319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE 4322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED 4323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED 4324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransfer(ADC_TypeDef *ADCx) 4326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DMAEN | ADC_CFGR_DMACFG)); 4328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular behavior in case of overrun: 4332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * data preserved or overwritten. 4333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Compatibility with devices without feature overrun: 4334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other devices without this feature have a behavior 4335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * equivalent to data overwritten. 4336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The default setting of overrun is data preserved. 4337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, for compatibility with all devices, parameter 4338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * overrun should be set to data overwritten. 4339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_SetOverrun 4344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Overrun This parameter can be one of the following values: 4346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 4347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 4348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetOverrun(ADC_TypeDef *ADCx, uint32_t Overrun) 4351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_OVRMOD, Overrun); 4353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular behavior in case of overrun: 4357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * data preserved or overwritten. 4358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_GetOverrun 4359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 4362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 4363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetOverrun(ADC_TypeDef *ADCx) 4365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_OVRMOD)); 4367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 79 4370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 4371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Injected Configuration of ADC hierarchical scope: g 4374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 4375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger source: 4379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 4381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 4382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * also set trigger polarity to rising edge 4383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 4384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * STM32 families having this setting set by HW default value). 4385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In case of need to modify trigger edge, use 4386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function @ref LL_ADC_INJ_SetTriggerEdge(). 4387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 4389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 4393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_SetTriggerSource\n 4394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_SetTriggerSource 4395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 4397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 4398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 4399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 4400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 4401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 4402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 4403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 4404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 4405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 4406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 4407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 4408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 4409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 4410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 4411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 4412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 4413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 4414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 4415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 4416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 4417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 4418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 4419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 4420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 4421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 4422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 4423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 4424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 4425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 4426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 ARM GAS /tmp/ccICigVb.s page 80 4427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 4428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 4429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 4430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 4431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 4432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 4433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) 4434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 4435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 4436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 4438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 4439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, all ADCx are not available on all devices. Refer to device da 4440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 4443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN, TriggerSource); 4445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source: 4449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 4451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To determine whether group injected trigger source is 4452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or external, without detail 4453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of which peripheral is selected as external trigger, 4454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (equivalent to 4455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * "if(LL_ADC_INJ_GetTriggerSource(ADC1) == LL_ADC_INJ_TRIG_SOFTWARE)") 4456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_INJ_IsTriggerSourceSWStart. 4457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 4459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_GetTriggerSource\n 4460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_GetTriggerSource 4461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 4464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 4465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 4466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 4467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 4468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 4469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 4470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 4471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 4472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 4473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 4474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 4475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 4476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 4477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 4478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 4479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 4480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 4481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 4482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 4483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO ARM GAS /tmp/ccICigVb.s page 81 4484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 4485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 4486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 4487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 4488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 4489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 4490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 4491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 4492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 4493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 4494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 4495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 4496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 4497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 4498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 4499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) 4500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 4501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 4502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 4504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 4505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, all ADCx are not available on all devices. Refer to device da 4506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerSource(ADC_TypeDef *ADCx) 4508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t TriggerSource = READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN); 4510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 4512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to ADC_JSQR_JEXTEN {0; 1; 2; 3}. */ 4513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ShiftJexten = ((TriggerSource & ADC_JSQR_JEXTEN) >> (ADC_INJ_TRIG_EXTEN_BITOFFSET_POS - 4514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bitfield corresponding to ADC_JSQR_JEXTEN and ADC_JSQR_JEXTSEL */ 4516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to match with triggers literals definition. */ 4517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((TriggerSource 4518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (ADC_INJ_TRIG_SOURCE_MASK >> ShiftJexten) & ADC_JSQR_JEXTSEL) 4519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_INJ_TRIG_EDGE_MASK >> ShiftJexten) & ADC_JSQR_JEXTEN) 4520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 4521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source internal (SW start) 4525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** or external 4526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of group injected trigger source set to external trigger, 4527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 4528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_INJ_GetTriggerSource. 4529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_IsTriggerSourceSWStart 4530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 4532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if trigger source SW start. 4533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsTriggerSourceSWStart(ADC_TypeDef *ADCx) 4535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTEN) == (LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTEN)) ? 4537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger polarity. ARM GAS /tmp/ccICigVb.s page 82 4541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 4542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 4546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_SetTriggerEdge 4547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 4549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 4550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 4551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 4552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 4555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTEN, ExternalTriggerEdge); 4557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger polarity. 4561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 4562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_GetTriggerEdge 4563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 4566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 4567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 4568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerEdge(ADC_TypeDef *ADCx) 4570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTEN)); 4572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequencer length and scan direction. 4576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function performs configuration of: 4577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 4582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 4586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_SetSequencerLength 4587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 4589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 4590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 4591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 4592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 4593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 4596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JL, SequencerNbRanks); ARM GAS /tmp/ccICigVb.s page 83 4598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequencer length and scan direction. 4602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function retrieves: 4603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 4608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_GetSequencerLength 4609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 4612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 4613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 4614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 4615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerLength(ADC_TypeDef *ADCx) 4617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JL)); 4619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequencer discontinuous mode: 4623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 4625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 4626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 4627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_SetSequencerDiscont 4628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 4630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 4631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK 4632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 4635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JDISCEN, SeqDiscont); 4637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequencer discontinuous mode: 4641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 4643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_GetSequencerDiscont 4644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 4647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK 4648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerDiscont(ADC_TypeDef *ADCx) 4650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JDISCEN)); 4652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 84 4655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequence: channel on the selected 4656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence rank. 4657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 4662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 4664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 4665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 4669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_SetSequencerRanks\n 4670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n 4671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n 4672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks 4673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 4676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 4677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 4678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 4679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 4709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n ARM GAS /tmp/ccICigVb.s page 85 4712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 4719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 4720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channe 4724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 4726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register depending on parameter "Rank". */ 4727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 4728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 4729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 4730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_INJ 4731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Ra 4732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequence: channel on the selected 4736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence rank. 4737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 4740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 4741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 4742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 4743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 4744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 4746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 4747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 4748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 4749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_GetSequencerRanks\n 4751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_GetSequencerRanks\n 4752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_GetSequencerRanks\n 4753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_GetSequencerRanks 4754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 4757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 4758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 4759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 4760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 ARM GAS /tmp/ccICigVb.s page 86 4769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 4790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 4793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 4800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 4801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 4803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 4804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 4805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank) 4807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)((READ_BIT(ADCx->JSQR, 4809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) < 4810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (Rank & ADC_INJ_RANK_ID_JSQR_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 4811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 4812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger: 4816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent or from ADC group regular. 4817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This mode can be used to extend number of data registers 4818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * updated after one ADC conversion trigger and with data 4819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * permanently kept (not erased by successive conversions of scan of 4820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC sequencer ranks), up to 5 data registers: 4821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 data register on ADC group regular, 4 data registers 4822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC group injected. 4823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC group injected injected trigger source is set to an 4824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external trigger, this feature must be must be set to 4825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent trigger. ARM GAS /tmp/ccICigVb.s page 87 4826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC group injected automatic trigger is compliant only with 4827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group injected trigger source set to SW start, without any 4828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * further action on ADC group injected conversion start or stop: 4829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in this case, ADC group injected is controlled only 4830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC group regular. 4831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 4832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 4833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_SetTrigAuto 4838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TrigAuto This parameter can be one of the following values: 4840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT 4841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 4842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTrigAuto(ADC_TypeDef *ADCx, uint32_t TrigAuto) 4845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JAUTO, TrigAuto); 4847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger: 4851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent or from ADC group regular. 4852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_GetTrigAuto 4853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT 4856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 4857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTrigAuto(ADC_TypeDef *ADCx) 4859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JAUTO)); 4861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected contexts queue mode. 4865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 4866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - group injected trigger 4867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer length 4868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer ranks 4869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If contexts queue is disabled: 4870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - only 1 sequence can be configured 4871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and is active perpetually. 4872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If contexts queue is enabled: 4873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - up to 2 contexts can be queued 4874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and are checked in and out as a FIFO stack (first-in, first-out). 4875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If a new context is set when queues is full, error is triggered 4876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by interruption "Injected Queue Overflow". 4877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Two behaviors are possible when all contexts have been processed: 4878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the contexts queue can maintain the last context active perpetually 4879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or can be empty and injected group triggers are disabled. 4880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Triggers can be only external (not internal SW start) 4881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Caution: The sequence must be fully configured in one time 4882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (one write of register JSQR makes a check-in of a new context ARM GAS /tmp/ccICigVb.s page 88 4883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * into the queue). 4884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore functions to set separately injected trigger and 4885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer channels cannot be used, register JSQR must be set 4886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using function @ref LL_ADC_INJ_ConfigQueueContext(). 4887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This parameter can be modified only when no conversion is on going 4888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A modification of the context mode (bit JQDIS) causes the contexts 4890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * queue to be flushed and the register JSQR is cleared. 4891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_SetQueueMode\n 4896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_SetQueueMode 4897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param QueueMode This parameter can be one of the following values: 4899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 4900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 4901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 4902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetQueueMode(ADC_TypeDef *ADCx, uint32_t QueueMode) 4905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS, QueueMode); 4907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected context queue mode. 4911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_GetQueueMode\n 4912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_GetQueueMode 4913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 4916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 4917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 4918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetQueueMode(ADC_TypeDef *ADCx) 4920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS)); 4922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set one context on ADC group injected that will be checked in 4926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * contexts queue. 4927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 4928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - group injected trigger 4929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer length 4930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer ranks 4931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function is intended to be used when contexts queue is enabled, 4932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because the sequence must be fully configured in one time 4933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions to set separately injected trigger and sequencer channels 4934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * cannot be used): 4935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_INJ_SetQueueMode(). 4936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In the contexts queue, only the active context can be read. 4937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The parameters of this function can be read using functions: 4938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerSource() 4939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerEdge() ARM GAS /tmp/ccICigVb.s page 89 4940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetSequencerRanks() 4941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 4944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 4946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 4947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 4950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 4951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_ConfigQueueContext\n 4952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_ConfigQueueContext\n 4953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JL LL_ADC_INJ_ConfigQueueContext\n 4954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ1 LL_ADC_INJ_ConfigQueueContext\n 4955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_ConfigQueueContext\n 4956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_ConfigQueueContext\n 4957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_ConfigQueueContext 4958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 4960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 4961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 4962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 4963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 4964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 4965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 4966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 4967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 4968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 4969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 4970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 4971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 4972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 4973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 4974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 4975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 4976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 4977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 4978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 4979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 4980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 4981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 4982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 4983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 4984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 4985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 4986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 4987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 4988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 4989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 4990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 4991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 4992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 4993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 4994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 4995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 4996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) ARM GAS /tmp/ccICigVb.s page 90 4997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 4998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 4999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 5001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 5002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, all ADCx are not available on all devices. Refer to device da 5003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 5004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 5005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 5006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 5007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Note: This parameter is discarded in case of SW start: 5009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameter "TriggerSource" set to "LL_ADC_INJ_TRIG_SOFTWARE". 5010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 5011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 5012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 5013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 5014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 5015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank1_Channel This parameter can be one of the following values: 5016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n ARM GAS /tmp/ccICigVb.s page 91 5054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank2_Channel This parameter can be one of the following values: 5058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank3_Channel This parameter can be one of the following values: 5100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 ARM GAS /tmp/ccICigVb.s page 92 5111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank4_Channel This parameter can be one of the following values: 5142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) ARM GAS /tmp/ccICigVb.s page 93 5168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_ConfigQueueContext(ADC_TypeDef *ADCx, 5186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource, 5187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ExternalTriggerEdge, 5188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerNbRanks, 5189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank1_Channel, 5190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank2_Channel, 5191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank3_Channel, 5192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank4_Channel) 5193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Rankx_Channel" with bits position */ 5195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register depending on literal "LL_ADC_INJ_RANK_x". */ 5196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rankx_Channel" and "LL_ADC_INJ_RANK_x" are used with masks */ 5197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* because containing other bits reserved for other purpose. */ 5198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If parameter "TriggerSource" is set to SW start, then parameter */ 5199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "ExternalTriggerEdge" is discarded. */ 5200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t is_trigger_not_sw = (uint32_t)((TriggerSource != LL_ADC_INJ_TRIG_SOFTWARE) ? 1UL : 0UL); 5201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 5202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL | 5203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTEN | 5204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ4 | 5205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ3 | 5206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ2 | 5207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ1 | 5208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JL, 5209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (TriggerSource & ADC_JSQR_JEXTSEL) | 5210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ExternalTriggerEdge * (is_trigger_not_sw)) | 5211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank4_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank3_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank2_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank1_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SequencerNbRanks 5216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 5221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_Channels Configuration of ADC hierarchical scope: channels 5224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ ARM GAS /tmp/ccICigVb.s page 94 5225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set sampling time of the selected ADC channel 5229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Unit: ADC clock cycles. 5230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 5231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. 5232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of internal channel (VrefInt, TempSensor, ...) to be 5233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted: 5234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sampling time constraints must be respected (sampling time can be 5235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * adjusted in function of ADC clock frequency and sampling time 5236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * setting). 5237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for timings values (parameters TS_vrefint, 5238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_temp, ...). 5239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 5240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 5241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 5242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 5243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 5244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 5245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC conversion of internal channel (VrefInt, 5246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor, ...), a sampling time minimum value 5247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is required. 5248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 5249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_SetChannelSamplingTime\n 5254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_SetChannelSamplingTime\n 5255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_SetChannelSamplingTime\n 5256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_SetChannelSamplingTime\n 5257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_SetChannelSamplingTime\n 5258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_SetChannelSamplingTime\n 5259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_SetChannelSamplingTime\n 5260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_SetChannelSamplingTime\n 5261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_SetChannelSamplingTime\n 5262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_SetChannelSamplingTime\n 5263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_SetChannelSamplingTime\n 5264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_SetChannelSamplingTime\n 5265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_SetChannelSamplingTime\n 5266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_SetChannelSamplingTime\n 5267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_SetChannelSamplingTime\n 5268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_SetChannelSamplingTime\n 5269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_SetChannelSamplingTime\n 5270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_SetChannelSamplingTime\n 5271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_SetChannelSamplingTime 5272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 ARM GAS /tmp/ccICigVb.s page 95 5282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingTime This parameter can be one of the following values: 5316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 (1) 5317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_6CYCLES_5 5318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_12CYCLES_5 5319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_24CYCLES_5 5320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_47CYCLES_5 5321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_92CYCLES_5 5322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_247CYCLES_5 5323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_640CYCLES_5 5324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On some devices, ADC sampling time 2.5 ADC clock cycles 5326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can be replaced by 3.5 ADC clock cycles. 5327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_SetSamplingTimeCommonConfig(). 5328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sa 5331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 81 .loc 2 5331 1 is_stmt 1 view -0 82 .cfi_startproc 83 @ args = 0, pretend = 0, frame = 0 84 @ frame_needed = 0, uses_anonymous_args = 0 85 @ link register save eliminated. 86 .loc 2 5331 1 is_stmt 0 view .LVU10 87 0000 10B4 push {r4} ARM GAS /tmp/ccICigVb.s page 96 88 .LCFI2: 89 .cfi_def_cfa_offset 4 90 .cfi_offset 4, -4 5332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "SamplingTime" with bits position */ 5333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "Channel". */ 5334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameter "Channel" is used with masks because containing */ 5335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 5336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_M 91 .loc 2 5336 3 is_stmt 1 view .LVU11 92 .loc 2 5336 25 is_stmt 0 view .LVU12 93 0002 1430 adds r0, r0, #20 94 .LVL6: 95 .loc 2 5336 25 view .LVU13 96 0004 4B0E lsrs r3, r1, #25 97 0006 9B00 lsls r3, r3, #2 98 0008 03F00403 and r3, r3, #4 99 .LVL7: 5337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 100 .loc 2 5338 3 is_stmt 1 view .LVU14 101 000c C458 ldr r4, [r0, r3] 102 000e C1F30451 ubfx r1, r1, #20, #5 103 .LVL8: 104 .loc 2 5338 3 is_stmt 0 view .LVU15 105 0012 4FF0070C mov ip, #7 106 0016 0CFA01FC lsl ip, ip, r1 107 001a 24EA0C0C bic ip, r4, ip 108 001e 8A40 lsls r2, r2, r1 109 .LVL9: 110 .loc 2 5338 3 view .LVU16 111 0020 4CEA0202 orr r2, ip, r2 112 0024 C250 str r2, [r0, r3] 5339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 5340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 5341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 113 .loc 2 5341 1 view .LVU17 114 0026 5DF8044B ldr r4, [sp], #4 115 .LCFI3: 116 .cfi_restore 4 117 .cfi_def_cfa_offset 0 118 002a 7047 bx lr 119 .cfi_endproc 120 .LFE195: 122 .section .text.LL_ADC_SetAnalogWDMonitChannels,"ax",%progbits 123 .align 1 124 .syntax unified 125 .thumb 126 .thumb_func 128 LL_ADC_SetAnalogWDMonitChannels: 129 .LVL10: 130 .LFB199: 5342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get sampling time of the selected ADC channel 5345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Unit: ADC clock cycles. 5346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 5347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. ARM GAS /tmp/ccICigVb.s page 97 5348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 5349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 5350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 5351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 5352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 5353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 5354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_GetChannelSamplingTime\n 5355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_GetChannelSamplingTime\n 5356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_GetChannelSamplingTime\n 5357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_GetChannelSamplingTime\n 5358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_GetChannelSamplingTime\n 5359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_GetChannelSamplingTime\n 5360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_GetChannelSamplingTime\n 5361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_GetChannelSamplingTime\n 5362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_GetChannelSamplingTime\n 5363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_GetChannelSamplingTime\n 5364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_GetChannelSamplingTime\n 5365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_GetChannelSamplingTime\n 5366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_GetChannelSamplingTime\n 5367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_GetChannelSamplingTime\n 5368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_GetChannelSamplingTime\n 5369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_GetChannelSamplingTime\n 5370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_GetChannelSamplingTime\n 5371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_GetChannelSamplingTime\n 5372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_GetChannelSamplingTime 5373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) ARM GAS /tmp/ccICigVb.s page 98 5405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 (1) 5418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_6CYCLES_5 5419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_12CYCLES_5 5420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_24CYCLES_5 5421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_47CYCLES_5 5422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_92CYCLES_5 5423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_247CYCLES_5 5424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_640CYCLES_5 5425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On some devices, ADC sampling time 2.5 ADC clock cycles 5427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can be replaced by 3.5 ADC clock cycles. 5428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_SetSamplingTimeCommonConfig(). 5429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel) 5431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOF 5433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 5435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_ 5436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_P 5437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set mode single-ended or differential input of the selected 5442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 5443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Channel ending is on channel scope: independently of channel mapped 5444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC group regular or injected. 5445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In differential mode: Differential measurement is carried out 5446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * between the selected channel 'i' (positive input) and 5447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel 'i+1' (negative input). Only channel 'i' has to be 5448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configured, channel 'i+1' is configured automatically. 5449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 5450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * available in differential mode. 5451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 5452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not available in differential mode. 5453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some channels are internally fixed to single-ended inputs 5456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configuration: 5457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC1: Channels 12, 15, 16, 17 and 18 5458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC2: Channels 15, 17 and 18 5459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC3: Channels 12, 16, 17 and 18 (1) 5460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC4: Channels 16, 17 and 18 (1) 5461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC5: Channels 2, 3, 4, 16, 17 and 18 (1) ARM GAS /tmp/ccICigVb.s page 99 5462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) ADC3/4/5 are not available on all devices, refer to device datasheet 5463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 5464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For ADC channels configured in differential mode, both inputs 5465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * should be biased at (Vref+)/2 +/-200mV. 5466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (Vref+ is the analog voltage reference) 5467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 5470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 5471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 5472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_SetChannelSingleDiff 5473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 5476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 5477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 5478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 5479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 5480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be a combination of the following values: 5491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 5492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 5493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sing 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Bits for single or differential mode selection for each channel are set */ 5498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to 1 only when the differential mode is selected, and to 0 when the */ 5499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* single mode is selected. */ 5500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (SingleDiff == LL_ADC_DIFFERENTIAL_ENDED) 5502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->DIFSEL, 5504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 5505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 5507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->DIFSEL, 5509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 5510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get mode single-ended or differential input of the selected 5515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 5516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, to ensure a channel is configured in single-ended mode, ARM GAS /tmp/ccICigVb.s page 100 5519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the configuration of channel itself and the channel 'i-1' must be 5520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * read back (to ensure that the selected channel channel has not been 5521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configured in differential mode by the previous channel). 5522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 5523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * available in differential mode. 5524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 5525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not available in differential mode. 5526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 5527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 5528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some channels are internally fixed to single-ended inputs 5529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configuration: 5530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC1: Channels 12, 15, 16, 17 and 18 5531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC2: Channels 15, 17 and 18 5532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC3: Channels 12, 16, 17 and 18 (1) 5533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC4: Channels 16, 17 and 18 (1) 5534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC5: Channels 2, 3, 4, 16, 17 and 18 (1) 5535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) ADC3/4/5 are not available on all devices, refer to device datasheet 5536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 5537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. In this case, the value 5538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned is null if all channels are in single ended-mode. 5539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 5540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_GetChannelSingleDiff 5541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be a combination of the following values: 5543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 5544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 5545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 5546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 5547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 5548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: channel in single-ended mode, else: channel in differential mode 5559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel) 5561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DIFSEL, (Channel & ADC_SINGLEDIFF_CHANNEL_MASK))); 5563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 5567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_AnalogWatchdog Configuration of ADC transversal scope: an 5570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 5571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog monitored channels: 5575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a single channel, multiple channels or all channels, ARM GAS /tmp/ccICigVb.s page 101 5576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC groups regular and-or injected. 5577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Once monitored channels are selected, analog watchdog 5578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled. 5579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of need to define a single channel to monitor 5580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with analog watchdog from sequencer channel definition, 5581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use helper macro @ref __LL_ADC_ANALOGWD_CHANNEL_GROUP(). 5582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 5584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 5585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 5589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 5594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 5597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 5603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_SetAnalogWDMonitChannels\n 5608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_SetAnalogWDMonitChannels\n 5609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_SetAnalogWDMonitChannels\n 5610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_SetAnalogWDMonitChannels\n 5611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_SetAnalogWDMonitChannels\n 5612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_SetAnalogWDMonitChannels 5613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 5615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 5616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 5617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 5618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDChannelGroup This parameter can be one of the following values: 5619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 5620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 5621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 5622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 5623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 5624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 5625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 5626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 5627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 5628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 5629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 5630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 5631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 5632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) ARM GAS /tmp/ccICigVb.s page 102 5633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 5634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 5635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 5636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 5637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 5638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 5639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 5640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 5641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 5642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 5643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 5644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 5645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 5646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 5647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 5648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 5649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 5650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 5651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 5652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 5653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 5654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 5655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 5656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 5657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 5658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 5659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 5660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 5661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 5662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 5663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 5664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 5665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 5666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 5667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 5668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 5669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 5670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 5671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 5672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 5673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 5674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 5675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 5676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 5677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 5678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 5679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 5680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0) 5681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0) 5682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ 5683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG (0)(1) 5684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_INJ (0)(1) 5685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG_INJ (1) 5686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG (0)(5) 5687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_INJ (0)(5) 5688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG_INJ (5) 5689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(6) ARM GAS /tmp/ccICigVb.s page 103 5690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(6) 5691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (6) 5692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG (0)(1) 5693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_INJ (0)(1) 5694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG_INJ (1) 5695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG (0)(2) 5696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_INJ (0)(2) 5697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG_INJ (2) 5698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG (0)(2) 5699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_INJ (0)(2) 5700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG_INJ (2) 5701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG (0)(3) 5702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_INJ (0)(3) 5703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG_INJ (3) 5704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG (0)(5) 5705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_INJ (0)(5) 5706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG_INJ (5) 5707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG (0)(5) 5708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_INJ (0)(5) 5709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG_INJ (5) 5710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG (0)(4) 5711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_INJ (0)(4) 5712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG_INJ (4) 5713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1.\n 5715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - On this STM32 series, all ADCx are not available on all devices. Refer to device da 5723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDMonitChannels(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 5726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 131 .loc 2 5726 1 is_stmt 1 view -0 132 .cfi_startproc 133 @ args = 0, pretend = 0, frame = 0 134 @ frame_needed = 0, uses_anonymous_args = 0 135 .loc 2 5726 1 is_stmt 0 view .LVU19 136 0000 00B5 push {lr} 137 .LCFI4: 138 .cfi_def_cfa_offset 4 139 .cfi_offset 14, -4 5727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDChannelGroup" with bits position */ 5728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "AWDy". */ 5729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDChannelGroup" and "AWDy" are used with masks because */ 5730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> AD 140 .loc 2 5731 3 is_stmt 1 view .LVU20 141 .loc 2 5731 25 is_stmt 0 view .LVU21 142 0002 0C30 adds r0, r0, #12 143 .LVL11: 144 .loc 2 5731 25 view .LVU22 145 0004 C1F3015C ubfx ip, r1, #20, #2 ARM GAS /tmp/ccICigVb.s page 104 146 0008 01F00103 and r3, r1, #1 147 000c 03EBC303 add r3, r3, r3, lsl #3 148 0010 0CEB830C add ip, ip, r3, lsl #2 149 .LVL12: 5732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 5733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 150 .loc 2 5734 3 is_stmt 1 view .LVU23 151 0014 50F82C30 ldr r3, [r0, ip, lsl #2] 152 0018 21F0024E bic lr, r1, #-2113929216 153 001c 2EF4601E bic lr, lr, #3670016 154 0020 23EA0E03 bic r3, r3, lr 155 0024 1140 ands r1, r1, r2 156 .LVL13: 157 .loc 2 5734 3 is_stmt 0 view .LVU24 158 0026 0B43 orrs r3, r3, r1 159 0028 40F82C30 str r3, [r0, ip, lsl #2] 5735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 5736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDChannelGroup & AWDy); 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 160 .loc 2 5737 1 view .LVU25 161 002c 5DF804FB ldr pc, [sp], #4 162 .cfi_endproc 163 .LFE199: 165 .section .text.HAL_ADC_MspInit,"ax",%progbits 166 .align 1 167 .weak HAL_ADC_MspInit 168 .syntax unified 169 .thumb 170 .thumb_func 172 HAL_ADC_MspInit: 173 .LVL14: 174 .LFB331: 1:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ****************************************************************************** 3:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @file stm32g4xx_hal_adc.c 4:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @author MCD Application Team 5:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief This file provides firmware functions to manage the following 6:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * functionalities of the Analog to Digital Converter (ADC) 7:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * peripheral: 8:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * + Initialization and de-initialization functions 9:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * + Peripheral Control functions 10:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * + Peripheral State functions 11:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Other functions (extended functions) are available in file 12:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "stm32g4xx_hal_adc_ex.c". 13:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 14:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ****************************************************************************** 15:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @attention 16:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 17:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Copyright (c) 2019 STMicroelectronics. 18:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * All rights reserved. 19:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 20:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This software is licensed under terms that can be found in the LICENSE file 21:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in the root directory of this software component. 22:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * If no LICENSE file comes with this software, it is provided AS-IS. 23:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 24:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ****************************************************************************** ARM GAS /tmp/ccICigVb.s page 105 25:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 26:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================================================== 27:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### ADC peripheral features ##### 28:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================================================== 29:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 30:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) 12-bit, 10-bit, 8-bit or 6-bit configurable resolution. 31:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 32:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Interrupt generation at the end of regular conversion and in case of 33:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** analog watchdog or overrun events. 34:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 35:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Single and continuous conversion modes. 36:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 37:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Scan mode for conversion of several channels sequentially. 38:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 39:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Data alignment with in-built data coherency. 40:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 41:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Programmable sampling time (channel wise) 42:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 43:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) External trigger (timer or EXTI) with configurable polarity 44:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 45:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) DMA request generation for transfer of conversions data of regular group. 46:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 47:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Configurable delay between conversions in Dual interleaved mode. 48:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 49:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC channels selectable single/differential input. 50:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 51:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC offset shared on 4 offset instances. 52:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC gain compensation 53:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 54:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC calibration 55:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 56:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC conversion of regular group. 57:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 58:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC supply requirements: 1.62 V to 3.6 V. 59:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 60:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ADC input range: from Vref- (connected to Vssa) to Vref+ (connected to 61:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Vdda or to an external voltage reference). 62:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 63:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 64:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### How to use this driver ##### 65:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================================================== 66:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 67:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 68:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** *** Configuration of top level parameters related to ADC *** 69:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================================ 70:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 71:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 72:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Enable the ADC interface 73:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) As prerequisite, ADC clock must be configured at RCC top level. 74:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 75:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Two clock settings are mandatory: 76:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) ADC clock (core clock, also possibly conversion clock). 77:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 78:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) ADC clock (conversions clock). 79:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Two possible clock sources: synchronous clock derived from AHB clock 80:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** or asynchronous clock derived from system clock or PLL (output divider P) 81:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** running up to 75MHz. ARM GAS /tmp/ccICigVb.s page 106 82:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 83:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Example: 84:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Into HAL_ADC_MspInit() (recommended code location) or with 85:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** other device clock parameters configuration: 86:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) __HAL_RCC_ADC_CLK_ENABLE(); (mandatory) 87:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 88:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** RCC_ADCCLKSOURCE_PLL enable: (optional: if asynchronous clock 89:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) RCC_PeriphClkInitTypeDef RCC_PeriphClkInit; 90:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC; 91:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLL; 92:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit); 93:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 94:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC clock source and clock prescaler are configured at ADC level with 95:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** parameter "ClockPrescaler" using function HAL_ADC_Init(). 96:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 97:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) ADC pins configuration 98:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Enable the clock for the ADC GPIOs 99:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_ENABLE() 100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Configure these ADC pins in analog mode 101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_GPIO_Init() 102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: 104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Configure the NVIC for ADC 105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) 106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() 107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** into the function of corresponding ADC interruption vector 108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADCx_IRQHandler(). 109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: 111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Configure the DMA (DMA channel, mode normal or circular, ...) 112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_DMA_Init(). 113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Configure the NVIC for DMA 114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) 115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Insert the ADC interruption handler function HAL_ADC_IRQHandler() 116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** into the function of corresponding DMA interruption vector 117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** DMAx_Channelx_IRQHandler(). 118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** *** Configuration of ADC, group regular, channels parameters *** 120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ================================================================ 121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Configure the ADC parameters (resolution, data alignment, ...) 124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** and regular group parameters (conversion trigger, sequencer, ...) 125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Init(). 126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Configure the channels for regular group parameters (channel number, 128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** channel rank into sequencer, ..., into regular group) 129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_ConfigChannel(). 130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, configure the analog watchdog parameters (channels 132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** monitored, thresholds, ...) 133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_AnalogWDGConfig(). 134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** *** Execution of ADC conversions *** 136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ==================================== 137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 107 139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, perform an automatic ADC calibration to improve the 140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** conversion accuracy 141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADCEx_Calibration_Start(). 142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) ADC driver can be used among three modes: polling, interruption, 144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** transfer by DMA. 145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC conversion by polling: 147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Start() 149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Wait for ADC conversion completion 150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_PollForConversion() 151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Retrieve conversion results 152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_GetValue() 153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Stop() 155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC conversion by interruption: 157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Start_IT() 159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function 160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() 161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (this function must be implemented in user program) 162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Retrieve conversion results 163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_GetValue() 164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Stop_IT() 166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC conversion with transfer by DMA: 168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Activate the ADC peripheral and start conversions 169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Start_DMA() 170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Wait for ADC conversion completion by call of function 171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback() or HAL_ADC_ConvHalfCpltCallback() 172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (these functions must be implemented in user program) 173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Conversion results are automatically transferred by DMA into 174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** destination variable address. 175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Stop conversion and disable the ADC peripheral 176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_ADC_Stop_DMA() 177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (@) Callback functions must be implemented in user program: 181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+@) HAL_ADC_ErrorCallback() 182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+@) HAL_ADC_LevelOutOfWindowCallback() (callback of analog watchdog) 183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+@) HAL_ADC_ConvCpltCallback() 184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+@) HAL_ADC_ConvHalfCpltCallback 185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** *** Deinitialization of ADC *** 187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================================ 188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Disable the ADC interface 191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC clock can be hard reset and disabled at RCC top level. 192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Hard reset of ADC peripherals 193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using macro __ADCx_FORCE_RESET(), __ADCx_RELEASE_RESET(). 194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) ADC clock disable 195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using the equivalent macro/functions as configuration step. ARM GAS /tmp/ccICigVb.s page 108 196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) Example: 197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Into HAL_ADC_MspDeInit() (recommended code location) or with 198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** other device clock parameters configuration: 199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) RCC_OscInitStructure.OscillatorType = RCC_OSCILLATORTYPE_HSI14; 200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) RCC_OscInitStructure.HSI14State = RCC_HSI14_OFF; (if not used for system clock 201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+++) HAL_RCC_OscConfig(&RCC_OscInitStructure); 202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) ADC pins configuration 204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Disable the clock for the ADC GPIOs 205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using macro __HAL_RCC_GPIOx_CLK_DISABLE() 206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, in case of usage of ADC with interruptions: 208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Disable the NVIC for ADC 209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(ADCx_IRQn) 210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (#) Optionally, in case of usage of DMA: 212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Deinitialize the DMA 213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_DMA_Init(). 214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (++) Disable the NVIC for DMA 215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using function HAL_NVIC_EnableIRQ(DMAx_Channelx_IRQn) 216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** *** Callback registration *** 220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ============================================= 221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** The compilation flag USE_HAL_ADC_REGISTER_CALLBACKS, when set to 1, 224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** allows the user to configure dynamically the driver callbacks. 225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Use Functions HAL_ADC_RegisterCallback() 226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** to register an interrupt callback. 227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Function HAL_ADC_RegisterCallback() allows to register following callbacks: 230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ConvCpltCallback : ADC conversion complete callback 231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback 232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback 233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ErrorCallback : ADC error callback 234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) InjectedConvCpltCallback : ADC group injected conversion complete callback 235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback 236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback 237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback 238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) EndOfSamplingCallback : ADC end of sampling callback 239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) MspInitCallback : ADC Msp Init callback 240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) MspDeInitCallback : ADC Msp DeInit callback 241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** This function takes as parameters the HAL peripheral handle, the Callback ID 242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** and a pointer to the user callback function. 243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Use function HAL_ADC_UnRegisterCallback to reset a callback to the default 246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** weak function. 247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_UnRegisterCallback takes as parameters the HAL peripheral handle, 250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** and the Callback ID. 251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** This function allows to reset following callbacks: 252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ConvCpltCallback : ADC conversion complete callback ARM GAS /tmp/ccICigVb.s page 109 253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ConvHalfCpltCallback : ADC conversion DMA half-transfer callback 254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindowCallback : ADC analog watchdog 1 callback 255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ErrorCallback : ADC error callback 256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) InjectedConvCpltCallback : ADC group injected conversion complete callback 257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) InjectedQueueOverflowCallback : ADC group injected context queue overflow callback 258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindow2Callback : ADC analog watchdog 2 callback 259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) LevelOutOfWindow3Callback : ADC analog watchdog 3 callback 260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) EndOfSamplingCallback : ADC end of sampling callback 261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) MspInitCallback : ADC Msp Init callback 262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) MspDeInitCallback : ADC Msp DeInit callback 263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** By default, after the HAL_ADC_Init() and when the state is HAL_ADC_STATE_RESET 266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** all callbacks are set to the corresponding weak functions: 267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** examples HAL_ADC_ConvCpltCallback(), HAL_ADC_ErrorCallback(). 268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Exception done for MspInit and MspDeInit functions that are 269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** reset to the legacy weak functions in the HAL_ADC_Init()/ HAL_ADC_DeInit() only when 270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** these callbacks are null (not registered beforehand). 271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** If MspInit or MspDeInit are not null, the HAL_ADC_Init()/ HAL_ADC_DeInit() 274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. 275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Callbacks can be registered/unregistered in HAL_ADC_STATE_READY state only. 278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Exception done MspInit/MspDeInit functions that can be registered/unregistered 279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** in HAL_ADC_STATE_READY or HAL_ADC_STATE_RESET state, 280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. 281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Then, the user first registers the MspInit/MspDeInit user callbacks 284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** using HAL_ADC_RegisterCallback() before calling HAL_ADC_DeInit() 285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** or HAL_ADC_Init() function. 286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** When the compilation flag USE_HAL_ADC_REGISTER_CALLBACKS is set to 0 or 289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** not defined, the callback registration feature is not available and all callbacks 290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** are set to the corresponding weak functions. 291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ****************************************************************************** 294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Includes ------------------------------------------------------------------*/ 297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #include "stm32g4xx_hal.h" 298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @addtogroup STM32G4xx_HAL_Driver 300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC ADC 304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC HAL module driver 305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #ifdef HAL_ADC_MODULE_ENABLED 309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 110 310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private typedef -----------------------------------------------------------*/ 311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private define ------------------------------------------------------------*/ 312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Private_Constants ADC Private Constants 314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_CFGR_FIELDS_1 ((ADC_CFGR_RES | ADC_CFGR_ALIGN |\ 318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_CONT | ADC_CFGR_OVRMOD |\ 319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM |\ 320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL)) /*!< ADC_CFGR fields of paramete 321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout values for ADC operations (enable settling time, */ 323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* disable settling time, ...). */ 324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Values defined to be higher than worst cases: low clock frequency, */ 325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* maximum prescalers. */ 326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_ENABLE_TIMEOUT (2UL) /*!< ADC enable time-out value */ 327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_DISABLE_TIMEOUT (2UL) /*!< ADC disable time-out value */ 328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout to wait for current conversion on going to be completed. */ 330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout fixed to longest ADC conversion possible, for 1 channel: */ 331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - maximum sampling time (640.5 adc_clk) */ 332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - ADC resolution (Tsar 12 bits= 12.5 adc_clk) */ 333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - System clock / ADC clock <= 4096 (hypothesis of maximum clock ratio) */ 334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - ADC oversampling ratio 256 */ 335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Calculation: 653 * 4096 * 256 CPU clock cycles max */ 336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unit: cycles of CPU clock. */ 337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_CONVERSION_TIME_MAX_CPU_CYCLES (653UL * 4096UL * 256UL) /*!< ADC conversion completion 338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private macro -------------------------------------------------------------*/ 345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private variables ---------------------------------------------------------*/ 346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private function prototypes -----------------------------------------------*/ 347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Exported functions --------------------------------------------------------*/ 348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions ADC Exported Functions 350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group1 Initialization and de-initialization functions 354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC Initialization and Configuration functions 355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Initialization and de-initialization functions ##### 359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Initialize and configure the ADC. 362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) De-initialize the ADC. 363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 111 367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Initialize the ADC peripheral and regular group according to 369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameters specified in structure "ADC_InitTypeDef". 370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note As prerequisite, ADC clock must be configured at RCC top level 371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (refer to description of RCC configuration for ADC 372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in header of this file). 373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes the ADC MSP (HAL_ADC_MspInit()) only when 375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * coming from ADC state reset. Following calls to this function can 376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * be used to reconfigure some parameters of ADC_InitTypeDef 377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * structure on the fly, without modifying MSP configuration. If ADC 378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * MSP has to be modified again, HAL_ADC_DeInit() must be called 379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * before HAL_ADC_Init(). 380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For parameters constraints, see comments of structure 382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "ADC_InitTypeDef". 383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function configures the ADC within 2 scopes: scope of entire 384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC and scope of regular group. For parameters details, see comments 385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * of structure "ADC_InitTypeDef". 386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Parameters related to common ADC registers (ADC clock mode) are set 387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * only if all ADCs are disabled. 388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * If this is not the case, these common parameters setting are 389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behaviour in 390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of update of a parameter of ADC_InitTypeDef on the fly, 391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * without disabling the other ADCs. 392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) 396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpCFGR; 399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_conversion_on_going; 400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC handle */ 405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc == NULL) 406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); 413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); 414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); 415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_GAIN_COMPENSATION(hadc->Init.GainCompensation)); 416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); 417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); 418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); 419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc, hadc->Init.ExternalTrigConv)); 420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLINGMODE(hadc->Init.SamplingMode)); 421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); 422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); ARM GAS /tmp/ccICigVb.s page 112 424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); 425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); 426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) 428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)); 430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); 431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.DiscontinuousConvMode == ENABLE) 433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_DISCONT_NUMBER(hadc->Init.NbrOfDiscConversion)); 435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DISCEN and CONT bits cannot be set at the same time */ 439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == 440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Actions performed only if ADC is coming from state reset: */ 442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Initialization of ADC MSP */ 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->State == HAL_ADC_STATE_RESET) 444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Init the ADC Callback settings */ 447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; /* Legacy weak 448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; /* Legacy weak 449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; /* Legacy weak 450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback = HAL_ADC_ErrorCallback; /* Legacy weak 451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; /* Legacy weak 452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = HAL_ADCEx_InjectedQueueOverflowCallback; /* Legacy weak 453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = HAL_ADCEx_LevelOutOfWindow2Callback; /* Legacy weak 454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = HAL_ADCEx_LevelOutOfWindow3Callback; /* Legacy weak 455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback = HAL_ADCEx_EndOfSamplingCallback; /* Legacy weak 456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->MspInitCallback == NULL) 458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ 460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Init the low level hardware */ 463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback(hadc); 464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Init the low level hardware */ 466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_MspInit(hadc); 467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to none */ 470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Initialize Lock */ 473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Lock = HAL_UNLOCKED; 474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Exit from deep-power-down mode and ADC voltage regulator enable */ 477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL) 478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC deep power down mode */ 480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableDeepPowerDown(hadc->Instance); ARM GAS /tmp/ccICigVb.s page 113 481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* System was in deep power down mode, calibration must 483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** be relaunched or a previously saved calibration factor 484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** re-applied once the ADC voltage regulator is enabled */ 485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) 488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC internal voltage regulator */ 490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableInternalRegulator(hadc->Instance); 491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index--; 499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 501:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification that ADC voltage regulator is correctly enabled, whether */ 503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* or not ADC is coming from state reset (if any potential problem of */ 504:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* clocking, voltage regulator would not be enabled). */ 505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL) 506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of ADC parameters if previous preliminary actions are */ 517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* correctly completed and if there is no conversion on going on regular */ 518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */ 519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* called to update a parameter on the fly). */ 520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_BUSY_INTERNAL); 530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of common ADC parameters */ 532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ 535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - clock configuration */ 536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 114 538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) 539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset configuration of ADC common register CCR: */ 541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* */ 542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - ADC clock mode and ACC prescaler (CKMODE and PRESC bits)are set */ 543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* according to adc->Init.ClockPrescaler. It selects the clock */ 544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* source and sets the clock division factor. */ 545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* */ 546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Some parameters of this register are not reset, since they are set */ 547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by other functions and must be kept in case of usage of this */ 548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* function on the fly (update of a parameter of ADC_InitTypeDef */ 549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* without needing to reconfigure all other ADC groups/channels */ 550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameters): */ 551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - when multimode feature is available, multimode-related */ 552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */ 553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_ADCEx_MultiModeConfigChannel() ) */ 554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - internal measurement paths: Vbat, temperature sensor, Vref */ 555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (set into HAL_ADC_ConfigChannel() or */ 556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_ADCEx_InjectedConfigChannel() ) */ 557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler); 558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of ADC: */ 562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - resolution Init.Resolution */ 563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - data alignment Init.DataAlign */ 564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - external trigger to start conversion Init.ExternalTrigConv */ 565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - external trigger polarity Init.ExternalTrigConvEdge */ 566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - continuous conversion mode Init.ContinuousConvMode */ 567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - overrun Init.Overrun */ 568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - discontinuous mode Init.DiscontinuousConvMode */ 569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - discontinuous mode channel count Init.NbrOfDiscConversion */ 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) | 571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.DataAlign | 573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Resolution | 574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.DiscontinuousConvMode == ENABLE) 577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion); 579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable external trigger if trigger selection is different of software */ 582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* start. */ 583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: This configuration keeps the hardware feature of parameter */ 584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ExternalTrigConvEdge "trigger edge none" equivalent to */ 585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* software start. */ 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) 587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL) 589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update Configuration Register CFGR */ 594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR); ARM GAS /tmp/ccICigVb.s page 115 595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of sampling mode */ 597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG, hadc->Init.SamplingMode); 598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on regular and injected groups: */ 602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Gain Compensation Init.GainCompensation */ 603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - DMA continuous request Init.DMAContinuousRequests */ 604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - LowPowerAutoWait feature Init.LowPowerAutoWait */ 605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Oversampling parameters Init.Oversampling */ 606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpCFGR = (ADC_CFGR_DFSDM(hadc) | 613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); 615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR); 617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.GainCompensation != 0UL) 619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); 621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); 622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); 626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); 627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OVERSAMPLING_RATIO(hadc->Init.Oversampling.Ratio)); 632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift)); 633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of Oversampler: */ 637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Oversampling Ratio */ 638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Right bit shift */ 639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Triggered mode */ 640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Oversampling mode (continued/resumed) */ 641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, 642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | 643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSS | 644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_TROVS | 645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_ROVSM, 646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_ROVSE | 647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.Ratio | 648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.RightBitShift | 649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.TriggeredMode | 650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.OversamplingStopReset 651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); ARM GAS /tmp/ccICigVb.s page 116 652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC oversampling scope on ADC group regular */ 656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE); 657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of regular group sequencer: */ 662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if scan mode is disabled, regular channels sequence length is set to */ 663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 0x00: 1 channel converted (channel on regular rank 1) */ 664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameter "NbrOfConversion" is discarded. */ 665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Scan mode is not present by hardware on this device, but */ 666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* emulated by software for alignment over all STM32 devices. */ 667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if scan mode is enabled, regular channels sequence length is set to */ 668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameter "NbrOfConversion". */ 669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE) 671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set number of ranks in regular group sequencer */ 673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1)); 674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L); 678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Initialize the ADC state */ 681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */ 682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); 683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Deinitialize the ADC peripheral registers to their default reset 698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * values, with deinitialization of the ADC MSP. 699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note For devices with several ADCs: reset of ADC common registers is done 700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * only if all ADCs sharing the same common group are disabled. 701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (function "HAL_ADC_MspDeInit()" is also called under the same conditions: 702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * all ADC instances use the same core clock at RCC level, disabling 703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the core clock reset all ADC instances). 704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * If this is not the case, reset of these common parameters reset is 705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behavior in 706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of reset of a single ADC while the other ADCs sharing the same 707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * common group is still running. 708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note By default, HAL_ADC_DeInit() set ADC in mode deep power-down: ARM GAS /tmp/ccICigVb.s page 117 709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * this saves more power by reducing leakage currents 710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * and is particularly interesting before entering MCU low-power modes. 711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc) 715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC handle */ 719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc == NULL) 720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 723:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 726:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL); 729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop potential conversion on going */ 731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Flush register JSQR: reset the queue sequencer when injected */ 735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* queue sequencer is enabled and ADC disabled. */ 736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* The software and hardware triggers of the injected sequence are both */ 737:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* internally disabled just after the completion of the last valid */ 738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* injected sequence. */ 739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQM); 740:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the ADC peripheral */ 745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state */ 751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_READY; 752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 754:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: HAL ADC deInit is done independently of ADC conversion stop */ 756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* and disable return status. In case of status fail, attempt to */ 757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* perform deinitialization anyway and it is up user code in */ 758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in HAL_ADC_MspDeInit() to reset the ADC peripheral using */ 759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* system RCC hard reset. */ 760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Reset ADC registers ========== */ 762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register IER */ 763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_AWD3 | ADC_IT_AWD2 | ADC_IT_AWD1 | 764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JEOS | ADC_IT_JEOC | ARM GAS /tmp/ccICigVb.s page 118 766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_EOS | ADC_IT_EOC | 767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_EOSMP | ADC_IT_RDY)); 768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register ISR */ 770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_AWD3 | ADC_FLAG_AWD2 | ADC_FLAG_AWD1 | 771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JEOS | ADC_FLAG_JEOC | 773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_EOS | ADC_FLAG_EOC | 774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CR */ 777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Bits ADC_CR_JADSTP, ADC_CR_ADSTP, ADC_CR_JADSTART, ADC_CR_ADSTART, 778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CR_ADCAL, ADC_CR_ADDIS and ADC_CR_ADEN are in access mode "read-set": 779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** no direct reset applicable. 780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Update CR register to reset value where doable by software */ 781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CR, ADC_CR_ADVREGEN | ADC_CR_ADCALDIF); 782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CFGR */ 785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR, ADC_CFGR_FIELDS); 786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQDIS); 787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CFGR2 */ 789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSM | ADC_CFGR2_TROVS | ADC_CFGR2_OVSS | 790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SMPR1 */ 793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR1, ADC_SMPR1_FIELDS); 794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SMPR2 */ 796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR2, ADC_SMPR2_SMP18 | ADC_SMPR2_SMP17 | ADC_SMPR2_SMP16 | 797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | 798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP12 | ADC_SMPR2_SMP11 | ADC_SMPR2_SMP10); 799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR1 */ 801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR1, ADC_TR1_HT1 | ADC_TR1_LT1); 802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR2 */ 804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR2, ADC_TR2_HT2 | ADC_TR2_LT2); 805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR3 */ 807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR3, ADC_TR3_HT3 | ADC_TR3_LT3); 808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR1 */ 810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_SQ4 | ADC_SQR1_SQ3 | ADC_SQR1_SQ2 | 811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR2 */ 814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR2, ADC_SQR2_SQ9 | ADC_SQR2_SQ8 | ADC_SQR2_SQ7 | 815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR3 */ 818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR3, ADC_SQR3_SQ14 | ADC_SQR3_SQ13 | ADC_SQR3_SQ12 | 819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR4 */ 822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR4, ADC_SQR4_SQ16 | ADC_SQR4_SQ15); ARM GAS /tmp/ccICigVb.s page 119 823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Register JSQR was reset when the ADC was disabled */ 825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register DR */ 827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR1 */ 830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1); 831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR2 */ 832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_OFFSET2_EN | ADC_OFR2_OFFSET2_CH | ADC_OFR2_OFFSET2); 833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR3 */ 834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_OFFSET3_EN | ADC_OFR3_OFFSET3_CH | ADC_OFR3_OFFSET3); 835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR4 */ 836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_OFFSET4_EN | ADC_OFR4_OFFSET4_CH | ADC_OFR4_OFFSET4); 837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset registers JDR1, JDR2, JDR3, JDR4 */ 839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register AWD2CR */ 842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD2CR, ADC_AWD2CR_AWD2CH); 843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register AWD3CR */ 845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD3CR, ADC_AWD3CR_AWD3CH); 846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register DIFSEL */ 848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->DIFSEL, ADC_DIFSEL_DIFSEL); 849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CALFACT */ 851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CALFACT, ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S); 852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Reset common ADC registers ========== */ 855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to change common parameters only when all the other 857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADCs are disabled. */ 858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) 859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset configuration of ADC common register CCR: 861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - clock mode: CKMODE, PRESCEN 862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - multimode related parameters (when this feature is available): MDMA, 863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** DMACFG, DELAY, DUAL (set by HAL_ADCEx_MultiModeConfigChannel() API) 864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - internal measurement paths: Vbat, temperature sensor, Vref (set into 865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConfigChannel() or HAL_ADCEx_InjectedConfigChannel() ) 866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_COMMON_CONTROL_REGISTER(hadc); 868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Hard reset ADC peripheral ========== */ 870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Performs a global reset of the entire ADC peripherals instances */ 871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* sharing the same common ADC instance: ADC state is forced to */ 872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* a similar state as after device power-on. */ 873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: A possible implementation is to add RCC bus reset of ADC */ 874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (for example, using macro */ 875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* __HAL_RCC_ADC..._FORCE_RESET()/..._RELEASE_RESET()/..._CLK_DISABLE()) */ 876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function "void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)": */ 877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->MspDeInitCallback == NULL) 879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 120 880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ 881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DeInit the low level hardware */ 884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback(hadc); 885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DeInit the low level hardware */ 887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_MspDeInit(hadc); 888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to none */ 892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset injected channel configuration parameters */ 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ContextQueue = 0; 896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_RESET; 900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Initialize the ADC MSP. 910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) 914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 175 .loc 1 914 1 is_stmt 1 view -0 176 .cfi_startproc 177 @ args = 0, pretend = 0, frame = 0 178 @ frame_needed = 0, uses_anonymous_args = 0 179 @ link register save eliminated. 915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 180 .loc 1 916 3 view .LVU27 917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_MspInit must be implemented in the user file. 920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 181 .loc 1 921 1 is_stmt 0 view .LVU28 182 0000 7047 bx lr 183 .cfi_endproc 184 .LFE331: 186 .section .text.HAL_ADC_Init,"ax",%progbits 187 .align 1 188 .global HAL_ADC_Init 189 .syntax unified 190 .thumb ARM GAS /tmp/ccICigVb.s page 121 191 .thumb_func 193 HAL_ADC_Init: 194 .LVL15: 195 .LFB329: 396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 196 .loc 1 396 1 is_stmt 1 view -0 197 .cfi_startproc 198 @ args = 0, pretend = 0, frame = 8 199 @ frame_needed = 0, uses_anonymous_args = 0 396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 200 .loc 1 396 1 is_stmt 0 view .LVU30 201 0000 30B5 push {r4, r5, lr} 202 .LCFI5: 203 .cfi_def_cfa_offset 12 204 .cfi_offset 4, -12 205 .cfi_offset 5, -8 206 .cfi_offset 14, -4 207 0002 83B0 sub sp, sp, #12 208 .LCFI6: 209 .cfi_def_cfa_offset 24 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpCFGR; 210 .loc 1 397 3 is_stmt 1 view .LVU31 211 .LVL16: 398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_conversion_on_going; 212 .loc 1 398 3 view .LVU32 399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 213 .loc 1 399 3 view .LVU33 400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 214 .loc 1 400 3 view .LVU34 400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 215 .loc 1 400 17 is_stmt 0 view .LVU35 216 0004 0023 movs r3, #0 217 0006 0193 str r3, [sp, #4] 401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 218 .loc 1 401 3 is_stmt 1 view .LVU36 402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 219 .loc 1 402 3 view .LVU37 405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 220 .loc 1 405 3 view .LVU38 405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 221 .loc 1 405 6 is_stmt 0 view .LVU39 222 0008 0028 cmp r0, #0 223 000a 00F00D81 beq .L31 224 000e 0446 mov r4, r0 411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); 225 .loc 1 411 3 is_stmt 1 view .LVU40 412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); 226 .loc 1 412 3 view .LVU41 413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); 227 .loc 1 413 3 view .LVU42 414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_GAIN_COMPENSATION(hadc->Init.GainCompensation)); 228 .loc 1 414 3 view .LVU43 415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); 229 .loc 1 415 3 view .LVU44 416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); 230 .loc 1 416 3 view .LVU45 417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); ARM GAS /tmp/ccICigVb.s page 122 231 .loc 1 417 3 view .LVU46 418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc, hadc->Init.ExternalTrigConv)); 232 .loc 1 418 3 view .LVU47 419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLINGMODE(hadc->Init.SamplingMode)); 233 .loc 1 419 3 view .LVU48 420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); 234 .loc 1 420 3 view .LVU49 421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 235 .loc 1 421 3 view .LVU50 422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); 236 .loc 1 422 3 view .LVU51 423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); 237 .loc 1 423 3 view .LVU52 424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); 238 .loc 1 424 3 view .LVU53 425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 239 .loc 1 425 3 view .LVU54 427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 240 .loc 1 427 3 view .LVU55 434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 241 .loc 1 434 7 view .LVU56 439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 242 .loc 1 439 3 view .LVU57 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 243 .loc 1 443 3 view .LVU58 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 244 .loc 1 443 11 is_stmt 0 view .LVU59 245 0010 C36D ldr r3, [r0, #92] 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 246 .loc 1 443 6 view .LVU60 247 0012 13B3 cbz r3, .L34 248 .LVL17: 249 .L10: 477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 250 .loc 1 477 3 is_stmt 1 view .LVU61 477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 251 .loc 1 477 7 is_stmt 0 view .LVU62 252 0014 2368 ldr r3, [r4] 253 .LVL18: 254 .LBB334: 255 .LBI334: 5738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog monitored channel. 5741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 5742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 5743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 5744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 5745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 5746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 5748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 5749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 5750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 5751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only when the analog watchdog is set to monitor 5753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * one channel. ARM GAS /tmp/ccICigVb.s page 123 5754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 5756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 5757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 5761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 5766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 5769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 5775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_GetAnalogWDMonitChannels\n 5780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_GetAnalogWDMonitChannels\n 5781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_GetAnalogWDMonitChannels\n 5782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_GetAnalogWDMonitChannels\n 5783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_GetAnalogWDMonitChannels\n 5784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_GetAnalogWDMonitChannels 5785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 5787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 5788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 (1) 5789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 (1) 5790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On this AWD number, monitored channel can be retrieved 5792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * if only 1 channel is programmed (or none or all channels). 5793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function cannot retrieve monitored channel if 5794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * multiple channels are programmed simultaneously 5795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by bitfield. 5796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 5798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 5799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 5800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 5801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 5802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 5803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 5804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 5805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 5806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 5807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 5808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 5809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 5810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) ARM GAS /tmp/ccICigVb.s page 124 5811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 5812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 5813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 5814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 5815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 5816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 5817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 5818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 5819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 5820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 5821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 5822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 5823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 5824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 5825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 5826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 5827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 5828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 5829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 5830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 5831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 5832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 5833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 5834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 5835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 5836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 5837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 5838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 5839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 5840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 5841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 5842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 5843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 5844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 5845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 5846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 5847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 5848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 5849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 5850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 5851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 5852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 5853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 5854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 5855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 5856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 5857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 5858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1. 5860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDMonitChannels(ADC_TypeDef *ADCx, uint32_t AWDy) 5862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) 5864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC 5865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AnalogWDMonitChannels = (READ_BIT(*preg, AWDy) & ADC_AWD_CR_ALL_CHANNEL_MASK); 5867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 125 5868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If "AnalogWDMonitChannels" == 0, then the selected AWD is disabled */ 5869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (parameter value LL_ADC_AWD_DISABLE). */ 5870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Else, the selected AWD is enabled and is monitoring a group of channels */ 5871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* or a single channel. */ 5872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (AnalogWDMonitChannels != 0UL) 5873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (AWDy == LL_ADC_AWD1) 5875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if ((AnalogWDMonitChannels & ADC_CFGR_AWD1SGL) == 0UL) 5877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ 5879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AnalogWDMonitChannels = ((AnalogWDMonitChannels 5880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_AWD_CR23_CHANNEL_MASK) 5881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 5882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (~(ADC_CFGR_AWD1CH)) 5883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 5886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a single channel */ 5888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AnalogWDMonitChannels = (AnalogWDMonitChannels 5889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_AWD2CR_AWD2CH_0 << (AnalogWDMonitChannels >> ADC_CFGR_AWD1C 5890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 5894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if ((AnalogWDMonitChannels & ADC_AWD_CR23_CHANNEL_MASK) == ADC_AWD_CR23_CHANNEL_MASK) 5896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ 5898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AnalogWDMonitChannels = (ADC_AWD_CR23_CHANNEL_MASK 5899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN)) 5900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 5903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a single channel */ 5905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ 5906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AnalogWDMonitChannels = (AnalogWDMonitChannels 5907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 5908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDMonitChannels) << ADC_CF 5909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return AnalogWDMonitChannels; 5915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog thresholds value of both thresholds 5919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * high and low. 5920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If value of only one threshold high or low must be set, 5921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_SetAnalogWDThresholds(). 5922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 5923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 5924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). ARM GAS /tmp/ccICigVb.s page 126 5925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 5927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 5928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 5932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 5937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 5938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 5939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 5940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 5941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 5942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 5943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 5944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 5945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 5946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC oversampling is enabled, ADC analog watchdog thresholds are 5947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * impacted: the comparison of analog watchdog thresholds is done on 5948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * oversampling final computation (after ratio and shift application): 5949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC data register bitfield [15:4] (12 most significant bits). 5950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_ConfigAnalogWDThresholds\n 5951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_ConfigAnalogWDThresholds\n 5952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_ConfigAnalogWDThresholds\n 5953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_ConfigAnalogWDThresholds\n 5954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_ConfigAnalogWDThresholds\n 5955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_ConfigAnalogWDThresholds 5956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 5958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 5959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 5960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 5961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdHighValue Value between Min_Data=0x000 and Max_Data=0xFFF 5962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdLowValue Value between Min_Data=0x000 and Max_Data=0xFFF 5963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 5966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdLowValue) 5967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdxxxValue" with bits */ 5969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* position in register and register position depending on parameter */ 5970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "AWDy". */ 5971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdxxxValue" are used with masks because */ 5972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC 5974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 5976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 5977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDThresholdHighValue << ADC_TR1_HT1_BITOFFSET_POS) | AWDThresholdLowValue); 5978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog threshold value of threshold ARM GAS /tmp/ccICigVb.s page 127 5982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * high or low. 5983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If values of both thresholds high or low must be set, 5984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_ConfigAnalogWDThresholds(). 5985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 5986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 5987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). 5988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 5989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 5990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 5991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 5992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 5993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 5994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 5995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 5996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 5997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 5998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 5999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 6000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 6001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 6002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 6003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 6004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 6005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 6006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 6007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 6008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 6009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC oversampling is enabled, ADC analog watchdog thresholds are 6010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * impacted: the comparison of analog watchdog thresholds is done on 6011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * oversampling final computation (after ratio and shift application): 6012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC data register bitfield [15:4] (12 most significant bits). 6013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is not conditioned to 6014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC can be disabled, enabled with or without conversion on going 6016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either ADC groups regular or injected. 6017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_SetAnalogWDThresholds\n 6018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_SetAnalogWDThresholds\n 6019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_SetAnalogWDThresholds\n 6020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_SetAnalogWDThresholds\n 6021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_SetAnalogWDThresholds\n 6022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_SetAnalogWDThresholds 6023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 6029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 6030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 6031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdValue Value between Min_Data=0x000 and Max_Data=0xFFF 6032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWDThr 6035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdValue) 6036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdValue" with bits */ 6038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* position in register and register position depending on parameters */ ARM GAS /tmp/ccICigVb.s page 128 6039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "AWDThresholdsHighLow" and "AWDy". */ 6040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdValue" are used with masks because */ 6041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, 6043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 6044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 6046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDThresholdsHighLow, 6047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDThresholdValue << ((AWDThresholdsHighLow & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TR 6048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog threshold value of threshold high, 6052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * threshold low or raw data with ADC thresholds high and low 6053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * concatenated. 6054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If raw data with ADC thresholds high and low is retrieved, 6055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the data of each threshold high or low can be isolated 6056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro: 6057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_ANALOGWD_THRESHOLDS_HIGH_LOW(). 6058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 6059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 6060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(). 6061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_GetAnalogWDThresholds\n 6062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_GetAnalogWDThresholds\n 6063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_GetAnalogWDThresholds\n 6064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_GetAnalogWDThresholds\n 6065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_GetAnalogWDThresholds\n 6066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_GetAnalogWDThresholds 6067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 6073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 6074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 6075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLDS_HIGH_LOW 6076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 6077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AW 6079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, 6081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_ 6082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 6084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDThresholdsHighLow | ADC_TR1_LT1)) 6085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (((AWDThresholdsHighLow & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TRX_BIT_HIGH 6086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & ~(AWDThresholdsHighLow & ADC_TR1_LT1))); 6087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog filtering configuration 6091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first ARM GAS /tmp/ccICigVb.s page 129 6096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog (AWD1) 6097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_SetAWDFilteringConfiguration 6098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param FilteringConfig This parameter can be one of the following values: 6102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 6103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES 6104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 6105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 6106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 6107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 6108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 6109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 6110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAWDFilteringConfiguration(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t 6113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 6115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(AWDy); 6116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->TR1, ADC_TR1_AWDFILT, FilteringConfig); 6117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog filtering configuration 6121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first 6122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog (AWD1) 6123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_GetAWDFilteringConfiguration 6124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be: 6128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 6129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES 6130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 6131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 6132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 6133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 6134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 6135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 6136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAWDFilteringConfiguration(ADC_TypeDef *ADCx, uint32_t AWDy) 6138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 6140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(AWDy); 6141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->TR1, ADC_TR1_AWDFILT)); 6142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 6146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_oversampling Configuration of ADC transversal scope: over 6149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 130 6153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling scope: ADC groups regular and-or injected 6154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 families). 6155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If both groups regular and injected are selected, 6156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 6157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 6158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the oversampling on ADC group regular is either 6159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 6160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (oversampler buffer reset). 6161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_SetOverSamplingScope\n 6166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_SetOverSamplingScope\n 6167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_SetOverSamplingScope 6168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OvsScope This parameter can be one of the following values: 6170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 6171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 6172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED 6173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 6174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 6175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingScope(ADC_TypeDef *ADCx, uint32_t OvsScope) 6178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_ROVSE | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSM, OvsScope); 6180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling scope: ADC groups regular and-or injected 6184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 families). 6185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If both groups regular and injected are selected, 6186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 6187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 6188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the oversampling on ADC group regular is either 6189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 6190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (oversampler buffer reset). 6191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_GetOverSamplingScope\n 6192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_GetOverSamplingScope\n 6193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_GetOverSamplingScope 6194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 6197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 6198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED 6199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 6200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 6201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingScope(ADC_TypeDef *ADCx) 6203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_ROVSE | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSM)); 6205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling discontinuous mode (triggered mode) 6209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on the selected ADC group. ARM GAS /tmp/ccICigVb.s page 131 6210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 6211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 6212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are done from 1 trigger) 6213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 6214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * needs a trigger) 6215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 6219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, oversampling discontinuous mode 6220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (triggered mode) can be used only when oversampling is 6221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * set on group regular only and in resumed mode. 6222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_SetOverSamplingDiscont 6223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OverSamplingDiscont This parameter can be one of the following values: 6225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 6226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 6227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingDiscont(ADC_TypeDef *ADCx, uint32_t OverSamplingDiscont) 6230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_TROVS, OverSamplingDiscont); 6232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling discontinuous mode (triggered mode) 6236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on the selected ADC group. 6237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 6238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 6239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are done from 1 trigger) 6240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 6241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * needs a trigger) 6242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_GetOverSamplingDiscont 6243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 6246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 6247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingDiscont(ADC_TypeDef *ADCx) 6249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_TROVS)); 6251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling 6255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the 2 items of oversampling configuration: 6257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ratio 6258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - shift 6259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_ConfigOverSamplingRatioShift\n 6264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 OVSR LL_ADC_ConfigOverSamplingRatioShift 6265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Ratio This parameter can be one of the following values: ARM GAS /tmp/ccICigVb.s page 132 6267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 6268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 6269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 6270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 6271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 6272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 6273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 6274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 6275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Shift This parameter can be one of the following values: 6276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 6277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 6278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 6279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 6280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 6281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 6282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 6283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 6284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 6285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigOverSamplingRatioShift(ADC_TypeDef *ADCx, uint32_t Ratio, uint32_ 6288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC_CFGR2_OVSR), (Shift | Ratio)); 6290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling ratio 6294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSR LL_ADC_GetOverSamplingRatio 6296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Ratio This parameter can be one of the following values: 6298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 6299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 6300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 6301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 6302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 6303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 6304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 6305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 6306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingRatio(ADC_TypeDef *ADCx) 6308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSR)); 6310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling shift 6314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 6315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_GetOverSamplingShift 6316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Shift This parameter can be one of the following values: 6318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 6319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 6320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 6321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 6322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 6323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 ARM GAS /tmp/ccICigVb.s page 133 6324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 6325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 6326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 6327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingShift(ADC_TypeDef *ADCx) 6329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSS)); 6331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 6335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Multimode Configuration of ADC hierarchical scope: multim 6338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 6342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode configuration to operate in independent mode 6344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 6345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 6346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * either master or slave depending on hardware. 6347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 6348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 6351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 6352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro 6353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 6354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_SetMultimode 6355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Multimode This parameter can be one of the following values: 6358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 6359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 6360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 6361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 6362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 6363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM 6364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 6365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 6366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultimode(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Multimode) 6369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DUAL, Multimode); 6371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode configuration to operate in independent mode 6375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 6376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 6377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * either master or slave depending on hardware. 6378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 6379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_GetMultimode 6380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance ARM GAS /tmp/ccICigVb.s page 134 6381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 6384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 6385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 6386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 6387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 6388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM 6389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 6390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 6391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON) 6393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL)); 6395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode conversion data transfer: no transfer 6399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or transfer by DMA. 6400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 6401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 6402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DMA transfer settings. 6403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 6404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 6405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specifies the DMA requests mode: 6406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 6407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 6408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 6409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 6410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 6411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 6412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 6413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 6414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 6415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 6416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 6417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 6418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 6419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 6420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function 6421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 6422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 6423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 6424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * A macro is available to get the conversion data of 6425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 6426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 6427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled 6430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or enabled without conversion on going on group regular. 6431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR MDMA LL_ADC_SetMultiDMATransfer\n 6432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR DMACFG LL_ADC_SetMultiDMATransfer 6433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param MultiDMATransfer This parameter can be one of the following values: 6436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 6437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B ARM GAS /tmp/ccICigVb.s page 135 6438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B 6439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B 6440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B 6441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t MultiDMA 6444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG, MultiDMATransfer); 6446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode conversion data transfer: no transfer 6450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or transfer by DMA. 6451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 6452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 6453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DMA transfer settings. 6454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 6455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 6456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specifies the DMA requests mode: 6457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 6458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 6459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 6460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 6461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 6462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 6463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 6464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 6465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 6466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 6467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 6468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 6469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 6470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 6471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function 6472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 6473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 6474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 6475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * A macro is available to get the conversion data of 6476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 6477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 6478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR MDMA LL_ADC_GetMultiDMATransfer\n 6479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR DMACFG LL_ADC_GetMultiDMATransfer 6480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 6484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B 6485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B 6486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B 6487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B 6488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON) 6490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG)); 6492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 136 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode delay between 2 sampling phases. 6496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The sampling delay range depends on ADC resolution: 6497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 12 bits can have maximum delay of 12 cycles. 6498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 10 bits can have maximum delay of 10 cycles. 6499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 8 bits can have maximum delay of 8 cycles. 6500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 6 bits can have maximum delay of 6 cycles. 6501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 6504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 6505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 6506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 6507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_SetMultiTwoSamplingDelay 6508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param MultiTwoSamplingDelay This parameter can be one of the following values: 6511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE 6512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES 6513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES 6514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES 6515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES 6516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (1) 6517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES (1) 6518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (2) 6519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (2) 6520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (2) 6521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (3) 6522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (3) 6523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 12, 10 or 8 bits.\n 6525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 12 or 10 bits.\n 6526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 12 bits. 6527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Mul 6530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DELAY, MultiTwoSamplingDelay); 6532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode delay between 2 sampling phases. 6536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_GetMultiTwoSamplingDelay 6537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 6539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE 6541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES 6542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES 6543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES 6544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES 6545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (1) 6546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES (1) 6547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (2) 6548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (2) 6549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (2) 6550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (3) 6551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (3) ARM GAS /tmp/ccICigVb.s page 137 6552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 12, 10 or 8 bits.\n 6554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 12 or 10 bits.\n 6555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 12 bits. 6556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON) 6558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DELAY)); 6560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 6562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 6565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Instance Operation on ADC hierarchical scope: ADC instance 6567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Put ADC instance in deep power down state. 6572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down 6573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 6574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 6575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 6576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_EnableDeepPowerDown 6580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableDeepPowerDown(ADC_TypeDef *ADCx) 6584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_DEEPPWD); 6591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable ADC deep power down mode. 6595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down 6596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 6597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 6598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 6599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown 6603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx) 6607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ ARM GAS /tmp/ccICigVb.s page 138 6609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS)); 6612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance deep power down state. 6616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled 6617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: deep power down is disabled, 1: deep power down is enabled. 6619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx) 256 .loc 2 6620 26 is_stmt 1 view .LVU63 257 .LBB335: 6621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL); 258 .loc 2 6622 3 view .LVU64 259 .loc 2 6622 12 is_stmt 0 view .LVU65 260 0016 9A68 ldr r2, [r3, #8] 261 .loc 2 6622 74 view .LVU66 262 0018 12F0005F tst r2, #536870912 263 001c 05D0 beq .L11 264 .LVL19: 265 .loc 2 6622 74 view .LVU67 266 .LBE335: 267 .LBE334: 480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 268 .loc 1 480 5 is_stmt 1 view .LVU68 269 .LBB336: 270 .LBI336: 6606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 271 .loc 2 6606 22 view .LVU69 272 .LBB337: 6611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 273 .loc 2 6611 3 view .LVU70 274 001e 9A68 ldr r2, [r3, #8] 275 0020 22F02042 bic r2, r2, #-1610612736 276 0024 22F03F02 bic r2, r2, #63 277 0028 9A60 str r2, [r3, #8] 278 .LVL20: 279 .L11: 6611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 280 .loc 2 6611 3 is_stmt 0 view .LVU71 281 .LBE337: 282 .LBE336: 487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 283 .loc 1 487 3 is_stmt 1 view .LVU72 487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 284 .loc 1 487 7 is_stmt 0 view .LVU73 285 002a 2268 ldr r2, [r4] 286 .LVL21: 287 .LBB338: 288 .LBI338: 6623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC instance internal voltage regulator. ARM GAS /tmp/ccICigVb.s page 139 6627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, after ADC internal voltage regulator enable, 6628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay for ADC internal voltage regulator stabilization 6629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is required before performing a ADC calibration or ADC enable. 6630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet, parameter tADCVREG_STUP. 6631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_INTERNAL_REGUL_STAB_US. 6632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator 6636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx) 6640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADVREGEN); 6647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable ADC internal voltage regulator. 6651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_DisableInternalRegulator 6655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableInternalRegulator(ADC_TypeDef *ADCx) 6659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_ADVREGEN | ADC_CR_BITS_PROPERTY_RS)); 6661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance internal voltage regulator state. 6665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled 6666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: internal regulator is disabled, 1: internal regulator is enabled. 6668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx) 289 .loc 2 6669 26 is_stmt 1 view .LVU74 290 .LBB339: 6670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL); 291 .loc 2 6671 3 view .LVU75 292 .loc 2 6671 12 is_stmt 0 view .LVU76 293 002c 9368 ldr r3, [r2, #8] 294 .loc 2 6671 76 view .LVU77 295 002e 13F0805F tst r3, #268435456 296 0032 1FD1 bne .L12 297 .LVL22: 298 .loc 2 6671 76 view .LVU78 299 .LBE339: 300 .LBE338: ARM GAS /tmp/ccICigVb.s page 140 490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 301 .loc 1 490 5 is_stmt 1 view .LVU79 302 .LBB340: 303 .LBI340: 6639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 304 .loc 2 6639 22 view .LVU80 305 .LBB341: 6644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 306 .loc 2 6644 3 view .LVU81 307 0034 9368 ldr r3, [r2, #8] 308 0036 23F01043 bic r3, r3, #-1879048192 309 003a 23F03F03 bic r3, r3, #63 310 003e 43F08053 orr r3, r3, #268435456 311 0042 9360 str r3, [r2, #8] 312 .LVL23: 6644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 313 .loc 2 6644 3 is_stmt 0 view .LVU82 314 .LBE341: 315 .LBE340: 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 316 .loc 1 495 5 is_stmt 1 view .LVU83 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 317 .loc 1 495 89 is_stmt 0 view .LVU84 318 0044 794B ldr r3, .L38 319 0046 1B68 ldr r3, [r3] 320 0048 9B09 lsrs r3, r3, #6 321 004a 794A ldr r2, .L38+4 322 004c A2FB0323 umull r2, r3, r2, r3 323 0050 9B09 lsrs r3, r3, #6 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 324 .loc 1 495 109 view .LVU85 325 0052 0133 adds r3, r3, #1 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 326 .loc 1 495 69 view .LVU86 327 0054 5B00 lsls r3, r3, #1 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 328 .loc 1 495 21 view .LVU87 329 0056 0193 str r3, [sp, #4] 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 330 .loc 1 496 5 is_stmt 1 view .LVU88 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 331 .loc 1 496 11 is_stmt 0 view .LVU89 332 0058 09E0 b .L13 333 .LVL24: 334 .L34: 466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 335 .loc 1 466 5 is_stmt 1 view .LVU90 336 005a FFF7FEFF bl HAL_ADC_MspInit 337 .LVL25: 470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 338 .loc 1 470 5 view .LVU91 339 005e 0023 movs r3, #0 340 0060 2366 str r3, [r4, #96] 473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 341 .loc 1 473 5 view .LVU92 473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 342 .loc 1 473 16 is_stmt 0 view .LVU93 ARM GAS /tmp/ccICigVb.s page 141 343 0062 84F85830 strb r3, [r4, #88] 344 0066 D5E7 b .L10 345 .L14: 498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 346 .loc 1 498 7 is_stmt 1 view .LVU94 498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 347 .loc 1 498 22 is_stmt 0 view .LVU95 348 0068 019B ldr r3, [sp, #4] 349 006a 013B subs r3, r3, #1 350 006c 0193 str r3, [sp, #4] 351 .L13: 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 352 .loc 1 496 28 is_stmt 1 view .LVU96 353 006e 019B ldr r3, [sp, #4] 354 0070 002B cmp r3, #0 355 0072 F9D1 bne .L14 356 .L12: 505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 357 .loc 1 505 3 view .LVU97 505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 358 .loc 1 505 7 is_stmt 0 view .LVU98 359 0074 2268 ldr r2, [r4] 360 .LVL26: 361 .LBB342: 362 .LBI342: 6669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 363 .loc 2 6669 26 is_stmt 1 view .LVU99 364 .LBB343: 365 .loc 2 6671 3 view .LVU100 366 .loc 2 6671 12 is_stmt 0 view .LVU101 367 0076 9368 ldr r3, [r2, #8] 368 .loc 2 6671 76 view .LVU102 369 0078 13F0805F tst r3, #268435456 370 007c 40F09C80 bne .L32 371 .LVL27: 372 .loc 2 6671 76 view .LVU103 373 .LBE343: 374 .LBE342: 508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 375 .loc 1 508 5 is_stmt 1 view .LVU104 376 0080 E36D ldr r3, [r4, #92] 377 0082 43F01003 orr r3, r3, #16 378 0086 E365 str r3, [r4, #92] 511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 379 .loc 1 511 5 view .LVU105 380 0088 236E ldr r3, [r4, #96] 381 008a 43F00103 orr r3, r3, #1 382 008e 2366 str r3, [r4, #96] 513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 383 .loc 1 513 5 view .LVU106 384 .LVL28: 513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 385 .loc 1 513 20 is_stmt 0 view .LVU107 386 0090 0120 movs r0, #1 387 .LVL29: 388 .L15: 520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 142 389 .loc 1 520 3 is_stmt 1 view .LVU108 390 .LBB344: 391 .LBI344: 6672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable the selected ADC instance. 6676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, after ADC enable, a delay for 6677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC internal analog stabilization is required before performing a 6678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 6679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet, parameter tSTAB. 6680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 6681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 6682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 6683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled and ADC internal voltage regulator enabled. 6686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_Enable 6687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx) 6691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADEN); 6698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable the selected ADC instance. 6702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be not disabled. Must be enabled without conversion on going 6705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_Disable 6707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx) 6711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADDIS); 6718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance enable state. 6722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 6723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 6724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_IsEnabled ARM GAS /tmp/ccICigVb.s page 143 6726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: ADC is disabled, 1: ADC is enabled. 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx) 6730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL); 6732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance disable state. 6736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing 6737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no ADC disable command on going. 6739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx) 6741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL); 6743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC calibration in the mode single-ended 6747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 6748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, a minimum number of ADC clock cycles 6749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are required between ADC end of calibration and ADC enable. 6750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES. 6751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 6752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 6753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 6754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (calibration run must be performed for each of these 6755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * differential modes, if used afterwards and if the application 6756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * requires their calibration). 6757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_StartCalibration\n 6761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CR ADCALDIF LL_ADC_StartCalibration 6762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 6764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 6765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 6766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_StartCalibration(ADC_TypeDef *ADCx, uint32_t SingleDiff) 6769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADCALDIF | ADC_CR_BITS_PROPERTY_RS, 6775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADCAL | (SingleDiff & ADC_SINGLEDIFF_CALIB_START_MASK)); 6776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC calibration state. 6780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_IsCalibrationOnGoing 6781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: calibration complete, 1: calibration in progress. ARM GAS /tmp/ccICigVb.s page 144 6783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsCalibrationOnGoing(ADC_TypeDef *ADCx) 6785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL); 6787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 6791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Regular Operation on ADC hierarchical scope: group regu 6794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC group regular conversion. 6799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 6800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 6801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 6802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * starts immediately. 6803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 6804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 6805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * following the ADC start conversion command. 6806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 6809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 6810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 6811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_StartConversion 6812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx) 6816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 6820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADSTART); 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC group regular conversion. 6827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled with conversion on going on group regular, 6830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 6831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_StopConversion 6832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StopConversion(ADC_TypeDef *ADCx) 6836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 6838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 6839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ ARM GAS /tmp/ccICigVb.s page 145 6840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 6841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADSTP); 6843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion state. 6847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing 6848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group regular. 6850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx) 392 .loc 2 6851 26 view .LVU109 393 .LBB345: 6852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); 394 .loc 2 6853 3 view .LVU110 395 .loc 2 6853 12 is_stmt 0 view .LVU111 396 0092 9368 ldr r3, [r2, #8] 397 .loc 2 6853 74 view .LVU112 398 0094 13F00403 ands r3, r3, #4 399 0098 00D0 beq .L16 400 009a 0123 movs r3, #1 401 .L16: 402 .LVL30: 403 .loc 2 6853 74 view .LVU113 404 .LBE345: 405 .LBE344: 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 406 .loc 1 522 3 is_stmt 1 view .LVU114 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 407 .loc 1 522 13 is_stmt 0 view .LVU115 408 009c E16D ldr r1, [r4, #92] 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_reg_is_conversion_on_going == 0UL) 409 .loc 1 522 6 view .LVU116 410 009e 11F0100F tst r1, #16 411 00a2 40F0BA80 bne .L17 523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 412 .loc 1 523 7 view .LVU117 413 00a6 002B cmp r3, #0 414 00a8 40F0B780 bne .L17 527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 415 .loc 1 527 5 is_stmt 1 view .LVU118 416 00ac E36D ldr r3, [r4, #92] 417 .LVL31: 527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 418 .loc 1 527 5 is_stmt 0 view .LVU119 419 00ae 23F48173 bic r3, r3, #258 420 00b2 43F00203 orr r3, r3, #2 421 00b6 E365 str r3, [r4, #92] 536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 422 .loc 1 536 5 is_stmt 1 view .LVU120 423 .LVL32: 424 .LBB346: 425 .LBI346: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 426 .loc 2 6729 26 view .LVU121 ARM GAS /tmp/ccICigVb.s page 146 427 .LBB347: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 428 .loc 2 6731 3 view .LVU122 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 429 .loc 2 6731 12 is_stmt 0 view .LVU123 430 00b8 9368 ldr r3, [r2, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 431 .loc 2 6731 68 view .LVU124 432 00ba 13F0010F tst r3, #1 433 00be 15D1 bne .L18 434 .LVL33: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 435 .loc 2 6731 68 view .LVU125 436 .LBE347: 437 .LBE346: 538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 438 .loc 1 538 7 is_stmt 1 view .LVU126 439 .LBB348: 440 .LBI348: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 441 .loc 2 6729 26 view .LVU127 442 .LBB349: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 443 .loc 2 6731 3 view .LVU128 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 444 .loc 2 6731 12 is_stmt 0 view .LVU129 445 00c0 4FF0A043 mov r3, #1342177280 446 00c4 9A68 ldr r2, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 447 .loc 2 6731 68 view .LVU130 448 00c6 12F00102 ands r2, r2, #1 449 00ca 00D0 beq .L19 450 00cc 0122 movs r2, #1 451 .L19: 452 .LVL34: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 453 .loc 2 6731 68 view .LVU131 454 .LBE349: 455 .LBE348: 456 .LBB350: 457 .LBI350: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 458 .loc 2 6729 26 is_stmt 1 view .LVU132 459 .LBB351: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 460 .loc 2 6731 3 view .LVU133 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 461 .loc 2 6731 12 is_stmt 0 view .LVU134 462 00ce 594B ldr r3, .L38+8 463 00d0 9B68 ldr r3, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 464 .loc 2 6731 68 view .LVU135 465 00d2 13F00103 ands r3, r3, #1 466 00d6 00D0 beq .L20 467 00d8 0123 movs r3, #1 468 .L20: 469 .LVL35: ARM GAS /tmp/ccICigVb.s page 147 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 470 .loc 2 6731 68 view .LVU136 471 .LBE351: 472 .LBE350: 538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 473 .loc 1 538 10 view .LVU137 474 00da 1343 orrs r3, r3, r2 475 00dc 06D1 bne .L18 557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 476 .loc 1 557 9 is_stmt 1 view .LVU138 477 00de 6368 ldr r3, [r4, #4] 478 .LVL36: 479 .LBB352: 480 .LBI352: 2732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 481 .loc 2 2732 22 view .LVU139 482 .LBB353: 2734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 483 .loc 2 2734 3 view .LVU140 484 00e0 5549 ldr r1, .L38+12 485 00e2 8A68 ldr r2, [r1, #8] 486 00e4 22F47C12 bic r2, r2, #4128768 487 00e8 1343 orrs r3, r3, r2 488 .LVL37: 2734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 489 .loc 2 2734 3 is_stmt 0 view .LVU141 490 00ea 8B60 str r3, [r1, #8] 491 .LVL38: 492 .L18: 2734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 493 .loc 2 2734 3 view .LVU142 494 .LBE353: 495 .LBE352: 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 496 .loc 1 570 5 is_stmt 1 view .LVU143 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 497 .loc 1 570 17 is_stmt 0 view .LVU144 498 00ec 627F ldrb r2, [r4, #29] @ zero_extendqisi2 571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.DataAlign | 499 .loc 1 571 27 view .LVU145 500 00ee E36B ldr r3, [r4, #60] 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 501 .loc 1 570 88 view .LVU146 502 00f0 43EA4233 orr r3, r3, r2, lsl #13 572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Resolution | 503 .loc 1 572 27 view .LVU147 504 00f4 E268 ldr r2, [r4, #12] 571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.DataAlign | 505 .loc 1 571 88 view .LVU148 506 00f6 1343 orrs r3, r3, r2 573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 507 .loc 1 573 27 view .LVU149 508 00f8 A268 ldr r2, [r4, #8] 572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Resolution | 509 .loc 1 572 88 view .LVU150 510 00fa 1343 orrs r3, r3, r2 574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 148 511 .loc 1 574 17 view .LVU151 512 00fc 94F82420 ldrb r2, [r4, #36] @ zero_extendqisi2 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 513 .loc 1 570 14 view .LVU152 514 0100 43EA0243 orr r3, r3, r2, lsl #16 515 .LVL39: 576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 516 .loc 1 576 5 is_stmt 1 view .LVU153 576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 517 .loc 1 576 8 is_stmt 0 view .LVU154 518 0104 012A cmp r2, #1 519 0106 59D0 beq .L35 520 .L21: 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 521 .loc 1 586 5 is_stmt 1 view .LVU155 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 522 .loc 1 586 19 is_stmt 0 view .LVU156 523 0108 E26A ldr r2, [r4, #44] 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 524 .loc 1 586 8 view .LVU157 525 010a 22B1 cbz r2, .L22 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 526 .loc 1 588 7 is_stmt 1 view .LVU158 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 527 .loc 1 588 48 is_stmt 0 view .LVU159 528 010c 02F47872 and r2, r2, #992 589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 529 .loc 1 589 31 view .LVU160 530 0110 216B ldr r1, [r4, #48] 589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 531 .loc 1 589 19 view .LVU161 532 0112 0A43 orrs r2, r2, r1 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 533 .loc 1 588 15 view .LVU162 534 0114 1343 orrs r3, r3, r2 535 .LVL40: 536 .L22: 594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 537 .loc 1 594 5 is_stmt 1 view .LVU163 538 0116 2168 ldr r1, [r4] 539 0118 CD68 ldr r5, [r1, #12] 540 011a 484A ldr r2, .L38+16 541 011c 2A40 ands r2, r2, r5 542 011e 1A43 orrs r2, r2, r3 543 0120 CA60 str r2, [r1, #12] 597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 544 .loc 1 597 5 view .LVU164 545 0122 2268 ldr r2, [r4] 546 0124 1369 ldr r3, [r2, #16] 547 .LVL41: 597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 548 .loc 1 597 5 is_stmt 0 view .LVU165 549 0126 23F04063 bic r3, r3, #201326592 550 012a 616B ldr r1, [r4, #52] 551 012c 0B43 orrs r3, r3, r1 552 012e 1361 str r3, [r2, #16] 606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); ARM GAS /tmp/ccICigVb.s page 149 553 .loc 1 606 5 is_stmt 1 view .LVU166 606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 554 .loc 1 606 46 is_stmt 0 view .LVU167 555 0130 2168 ldr r1, [r4] 556 .LVL42: 557 .LBB354: 558 .LBI354: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 559 .loc 2 6851 26 is_stmt 1 view .LVU168 560 .LBB355: 561 .loc 2 6853 3 view .LVU169 562 .loc 2 6853 12 is_stmt 0 view .LVU170 563 0132 8B68 ldr r3, [r1, #8] 564 .loc 2 6853 74 view .LVU171 565 0134 13F00403 ands r3, r3, #4 566 0138 00D0 beq .L23 567 013a 0123 movs r3, #1 568 .L23: 569 .LVL43: 570 .loc 2 6853 74 view .LVU172 571 .LBE355: 572 .LBE354: 607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 573 .loc 1 607 5 is_stmt 1 view .LVU173 574 .LBB356: 575 .LBI356: 6854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular command of conversion stop state 6858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_IsStopConversionOngoing 6859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group regular. 6861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsStopConversionOngoing(ADC_TypeDef *ADCx) 6863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTP) == (ADC_CR_ADSTP)) ? 1UL : 0UL); 6865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC sampling phase for sampling time trigger mode 6869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is relevant only when 6870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED has been set 6871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using @ref LL_ADC_REG_SetSamplingMode 6872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_TRIG_SOFTWARE is used as trigger source 6873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 6876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 6877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 6878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 SWTRIG LL_ADC_REG_StartSamplingPhase 6879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StartSamplingPhase(ADC_TypeDef *ADCx) 6883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->CFGR2, ADC_CFGR2_SWTRIG); ARM GAS /tmp/ccICigVb.s page 150 6885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC sampling phase for sampling time trigger mode and start conversion 6889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is relevant only when 6890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED has been set 6891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using @ref LL_ADC_REG_SetSamplingMode 6892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_TRIG_SOFTWARE is used as trigger source 6893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_StartSamplingPhase has been called to start 6894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the sampling phase 6895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 6898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 6899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 6900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 SWTRIG LL_ADC_REG_StopSamplingPhase 6901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StopSamplingPhase(ADC_TypeDef *ADCx) 6905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CFGR2, ADC_CFGR2_SWTRIG); 6907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 6911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 6912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all oversampling increased data width (for devices 6913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with feature oversampling). 6914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData32 6915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 6917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32(ADC_TypeDef *ADCx) 6919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 6921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 6925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 12 bits. 6926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 6927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 6928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 6929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData12 6930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 6932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12(ADC_TypeDef *ADCx) 6934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 6936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 6940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 10 bits. 6941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling ARM GAS /tmp/ccICigVb.s page 151 6942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 6943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 6944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData10 6945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 6947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10(ADC_TypeDef *ADCx) 6949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 6951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 6955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 8 bits. 6956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 6957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 6958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 6959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData8 6960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 6962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8(ADC_TypeDef *ADCx) 6964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 6966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 6970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 6 bits. 6971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 6972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 6973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 6974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData6 6975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x3F 6977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData6(ADC_TypeDef *ADCx) 6979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 6981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 6984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode conversion data of ADC master, ADC slave 6986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or raw data with ADC master and slave concatenated. 6987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If raw data with ADC master and slave concatenated is retrieved, 6988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a macro is available to get the conversion data of 6989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 6990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 6991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (however this macro is mainly intended for multimode 6992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, because this function can do the same 6993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by getting multimode conversion data of ADC master or ADC slave 6994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * separately). 6995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CDR RDATA_MST LL_ADC_REG_ReadMultiConversionData32\n 6996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_REG_ReadMultiConversionData32 6997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 6998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO ARM GAS /tmp/ccICigVb.s page 152 6999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ConversionData This parameter can be one of the following values: 7000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 7001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 7002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER_SLAVE 7003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32(ADC_Common_TypeDef *ADCxy_COMMON, uin 7006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CDR, 7008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ConversionData) 7009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (POSITION_VAL(ConversionData) & 0x1FUL) 7010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 7013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 7016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Injected Operation on ADC hierarchical scope: group inj 7019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC group injected conversion. 7024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 7025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 7026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 7027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * starts immediately. 7028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 7029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 7030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * following the ADC start conversion command. 7031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group injected, 7034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group injected, 7035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 7036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_StartConversion 7037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StartConversion(ADC_TypeDef *ADCx) 7041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_JADSTART); 7048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC group injected conversion. 7052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled with conversion on going on group injected, 7055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. ARM GAS /tmp/ccICigVb.s page 153 7056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_StopConversion 7057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StopConversion(ADC_TypeDef *ADCx) 7061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_JADSTP); 7068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion state. 7072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing 7073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group injected. 7075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx) 576 .loc 2 7076 26 view .LVU174 577 .LBB357: 7077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL); 578 .loc 2 7078 3 view .LVU175 579 .loc 2 7078 12 is_stmt 0 view .LVU176 580 013c 8A68 ldr r2, [r1, #8] 581 .loc 2 7078 76 view .LVU177 582 013e 12F00802 ands r2, r2, #8 583 0142 00D0 beq .L24 584 0144 0122 movs r2, #1 585 .L24: 586 .LVL44: 587 .loc 2 7078 76 view .LVU178 588 .LBE357: 589 .LBE356: 608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 590 .loc 1 608 5 is_stmt 1 view .LVU179 608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 591 .loc 1 608 8 is_stmt 0 view .LVU180 592 0146 43BB cbnz r3, .L25 609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 593 .loc 1 609 9 view .LVU181 594 0148 3ABB cbnz r2, .L25 612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 595 .loc 1 612 7 is_stmt 1 view .LVU182 613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); 596 .loc 1 613 18 is_stmt 0 view .LVU183 597 014a 237F ldrb r3, [r4, #28] @ zero_extendqisi2 598 .LVL45: 614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 599 .loc 1 614 18 view .LVU184 600 014c 94F83820 ldrb r2, [r4, #56] @ zero_extendqisi2 601 .LVL46: 614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 602 .loc 1 614 18 view .LVU185 ARM GAS /tmp/ccICigVb.s page 154 603 0150 5200 lsls r2, r2, #1 612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 604 .loc 1 612 15 view .LVU186 605 0152 42EA8332 orr r2, r2, r3, lsl #14 606 .LVL47: 616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 607 .loc 1 616 7 is_stmt 1 view .LVU187 608 0156 CB68 ldr r3, [r1, #12] 609 0158 23F48043 bic r3, r3, #16384 610 015c 23F00203 bic r3, r3, #2 611 0160 1343 orrs r3, r3, r2 612 0162 CB60 str r3, [r1, #12] 618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 613 .loc 1 618 7 view .LVU188 618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 614 .loc 1 618 21 is_stmt 0 view .LVU189 615 0164 2369 ldr r3, [r4, #16] 618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 616 .loc 1 618 10 view .LVU190 617 0166 73B3 cbz r3, .L26 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); 618 .loc 1 620 9 is_stmt 1 view .LVU191 619 0168 2268 ldr r2, [r4] 620 .LVL48: 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); 621 .loc 1 620 9 is_stmt 0 view .LVU192 622 016a 1369 ldr r3, [r2, #16] 623 016c 43F48033 orr r3, r3, #65536 624 0170 1361 str r3, [r2, #16] 621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 625 .loc 1 621 9 is_stmt 1 view .LVU193 626 0172 2268 ldr r2, [r4] 627 0174 D2F8C030 ldr r3, [r2, #192] 628 0178 23F47F53 bic r3, r3, #16320 629 017c 23F03F03 bic r3, r3, #63 630 0180 2169 ldr r1, [r4, #16] 631 0182 0B43 orrs r3, r3, r1 632 0184 C2F8C030 str r3, [r2, #192] 633 .L27: 629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 634 .loc 1 629 7 view .LVU194 629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 635 .loc 1 629 21 is_stmt 0 view .LVU195 636 0188 94F84030 ldrb r3, [r4, #64] @ zero_extendqisi2 629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 637 .loc 1 629 10 view .LVU196 638 018c 012B cmp r3, #1 639 018e 29D0 beq .L36 656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 640 .loc 1 656 9 is_stmt 1 view .LVU197 641 0190 2268 ldr r2, [r4] 642 0192 1369 ldr r3, [r2, #16] 643 0194 23F00103 bic r3, r3, #1 644 0198 1361 str r3, [r2, #16] 645 .LVL49: 646 .L25: 670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 155 647 .loc 1 670 5 view .LVU198 670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 648 .loc 1 670 19 is_stmt 0 view .LVU199 649 019a 6369 ldr r3, [r4, #20] 670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 650 .loc 1 670 8 view .LVU200 651 019c 012B cmp r3, #1 652 019e 33D0 beq .L37 677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 653 .loc 1 677 7 is_stmt 1 view .LVU201 654 01a0 2268 ldr r2, [r4] 655 01a2 136B ldr r3, [r2, #48] 656 01a4 23F00F03 bic r3, r3, #15 657 01a8 1363 str r3, [r2, #48] 658 .L30: 682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 659 .loc 1 682 5 view .LVU202 660 01aa E36D ldr r3, [r4, #92] 661 01ac 23F00303 bic r3, r3, #3 662 01b0 43F00103 orr r3, r3, #1 663 01b4 E365 str r3, [r4, #92] 664 01b6 35E0 b .L9 665 .LVL50: 666 .L32: 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpCFGR; 667 .loc 1 397 21 is_stmt 0 view .LVU203 668 01b8 0020 movs r0, #0 669 01ba 6AE7 b .L15 670 .LVL51: 671 .L35: 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 672 .loc 1 578 7 is_stmt 1 view .LVU204 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 673 .loc 1 578 18 is_stmt 0 view .LVU205 674 01bc A26A ldr r2, [r4, #40] 675 01be 013A subs r2, r2, #1 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 676 .loc 1 578 15 view .LVU206 677 01c0 43EA4243 orr r3, r3, r2, lsl #17 678 .LVL52: 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 679 .loc 1 578 15 view .LVU207 680 01c4 A0E7 b .L21 681 .LVL53: 682 .L26: 625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); 683 .loc 1 625 9 is_stmt 1 view .LVU208 684 01c6 2268 ldr r2, [r4] 685 .LVL54: 625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); 686 .loc 1 625 9 is_stmt 0 view .LVU209 687 01c8 1369 ldr r3, [r2, #16] 688 01ca 23F48033 bic r3, r3, #65536 689 01ce 1361 str r3, [r2, #16] 626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 690 .loc 1 626 9 is_stmt 1 view .LVU210 691 01d0 2268 ldr r2, [r4] ARM GAS /tmp/ccICigVb.s page 156 692 01d2 D2F8C030 ldr r3, [r2, #192] 693 01d6 23F47F53 bic r3, r3, #16320 694 01da 23F03F03 bic r3, r3, #63 695 01de C2F8C030 str r3, [r2, #192] 696 01e2 D1E7 b .L27 697 .L36: 631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift)); 698 .loc 1 631 9 view .LVU211 632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 699 .loc 1 632 9 view .LVU212 633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 700 .loc 1 633 9 view .LVU213 634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 701 .loc 1 634 9 view .LVU214 641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | 702 .loc 1 641 9 view .LVU215 703 01e4 2168 ldr r1, [r4] 704 01e6 0B69 ldr r3, [r1, #16] 705 01e8 23F4FF63 bic r3, r3, #2040 706 01ec 23F00403 bic r3, r3, #4 707 01f0 626C ldr r2, [r4, #68] 708 01f2 A56C ldr r5, [r4, #72] 709 01f4 2A43 orrs r2, r2, r5 710 01f6 E56C ldr r5, [r4, #76] 711 01f8 2A43 orrs r2, r2, r5 712 01fa 256D ldr r5, [r4, #80] 713 01fc 2A43 orrs r2, r2, r5 714 01fe 1343 orrs r3, r3, r2 715 0200 43F00103 orr r3, r3, #1 716 0204 0B61 str r3, [r1, #16] 717 0206 C8E7 b .L25 718 .LVL55: 719 .L37: 673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 720 .loc 1 673 7 view .LVU216 721 0208 2168 ldr r1, [r4] 722 020a 0B6B ldr r3, [r1, #48] 723 020c 23F00F03 bic r3, r3, #15 724 0210 226A ldr r2, [r4, #32] 725 0212 013A subs r2, r2, #1 726 0214 1343 orrs r3, r3, r2 727 0216 0B63 str r3, [r1, #48] 728 0218 C7E7 b .L30 729 .LVL56: 730 .L17: 687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 731 .loc 1 687 5 view .LVU217 732 021a E36D ldr r3, [r4, #92] 733 .LVL57: 687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 734 .loc 1 687 5 is_stmt 0 view .LVU218 735 021c 43F01003 orr r3, r3, #16 736 0220 E365 str r3, [r4, #92] 689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 737 .loc 1 689 5 is_stmt 1 view .LVU219 738 .LVL58: 689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 157 739 .loc 1 689 20 is_stmt 0 view .LVU220 740 0222 0120 movs r0, #1 741 .LVL59: 742 .L9: 694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 743 .loc 1 694 1 view .LVU221 744 0224 03B0 add sp, sp, #12 745 .LCFI7: 746 .cfi_remember_state 747 .cfi_def_cfa_offset 12 748 @ sp needed 749 0226 30BD pop {r4, r5, pc} 750 .LVL60: 751 .L31: 752 .LCFI8: 753 .cfi_restore_state 407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 754 .loc 1 407 12 view .LVU222 755 0228 0120 movs r0, #1 756 .LVL61: 407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 757 .loc 1 407 12 view .LVU223 758 022a FBE7 b .L9 759 .L39: 760 .align 2 761 .L38: 762 022c 00000000 .word SystemCoreClock 763 0230 632D3E05 .word 87960931 764 0234 00010050 .word 1342177536 765 0238 00030050 .word 1342178048 766 023c 0740F0FF .word -1032185 767 .cfi_endproc 768 .LFE329: 770 .section .text.HAL_ADC_MspDeInit,"ax",%progbits 771 .align 1 772 .weak HAL_ADC_MspDeInit 773 .syntax unified 774 .thumb 775 .thumb_func 777 HAL_ADC_MspDeInit: 778 .LVL62: 779 .LFB332: 922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DeInitialize the ADC MSP. 925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note All ADC instances use the same core clock at RCC level, disabling 927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the core clock reset all ADC instances). 928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc) 931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 780 .loc 1 931 1 is_stmt 1 view -0 781 .cfi_startproc 782 @ args = 0, pretend = 0, frame = 0 783 @ frame_needed = 0, uses_anonymous_args = 0 784 @ link register save eliminated. ARM GAS /tmp/ccICigVb.s page 158 932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 785 .loc 1 933 3 view .LVU225 934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_MspDeInit must be implemented in the user file. 937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 786 .loc 1 938 1 is_stmt 0 view .LVU226 787 0000 7047 bx lr 788 .cfi_endproc 789 .LFE332: 791 .section .text.HAL_ADC_PollForConversion,"ax",%progbits 792 .align 1 793 .global HAL_ADC_PollForConversion 794 .syntax unified 795 .thumb 796 .thumb_func 798 HAL_ADC_PollForConversion: 799 .LVL63: 800 .LFB335: 939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Register a User ADC Callback 943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To be used instead of the weak predefined callback 944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the configuration information for the specified ADC. 946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param CallbackID ID of the callback to be registered 947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID 951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet 953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 954:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID ADC analog watchdog 2 callback ID 955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID ADC analog watchdog 3 callback ID 956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID MspInit callback ID 960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID MspDeInit callback ID 961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pCallback pointer to the Callback function 962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_RegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Callb 965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pADC_CallbackTypeDef pCallback) 966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pCallback == NULL) 970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; ARM GAS /tmp/ccICigVb.s page 159 975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback = pCallback; 983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback = pCallback; 987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = pCallback; 991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback = pCallback; 995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback = pCallback; 999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = pCallback; 1003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = pCallback; 1007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : 1010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = pCallback; 1011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback = pCallback; 1015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; ARM GAS /tmp/ccICigVb.s page 160 1032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return status; 1065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Unregister a ADC Callback 1069:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC callback is redirected to the weak predefined callback 1070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 1071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the configuration information for the specified ADC. 1072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param CallbackID ID of the callback to be unregistered 1073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 1074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 1075:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 1076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID ADC analog watchdog 1 callback ID 1077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 1078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet 1079:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 1080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID ADC analog watchdog 2 callback ID 1081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID ADC analog watchdog 3 callback ID 1082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 1083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 1084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 1085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID MspInit callback ID 1086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID MspDeInit callback ID 1087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ ARM GAS /tmp/ccICigVb.s page 161 1089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_UnRegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Cal 1090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 1092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 1094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 1098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; 1099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 1102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; 1103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 1106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; 1107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 1110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback = HAL_ADC_ErrorCallback; 1111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 1114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; 1115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = HAL_ADCEx_InjectedQueueOverflowCallback; 1119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = HAL_ADCEx_LevelOutOfWindow2Callback; 1123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : 1126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = HAL_ADCEx_LevelOutOfWindow3Callback; 1127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback = HAL_ADCEx_EndOfSamplingCallback; 1131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ 1135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ 1139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ ARM GAS /tmp/ccICigVb.s page 162 1146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit 1156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit 1160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return status; 1181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 1187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group2 ADC Input and Output operation functions 1190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC IO operation functions 1191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 1192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 1193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 1194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### IO operation functions ##### 1195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 1196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 1197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group. 1198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group. 1199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Poll for conversion complete on regular group. 1200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Poll for conversion event. 1201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Get result of regular channel conversion. 1202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group and enable interruptions. ARM GAS /tmp/ccICigVb.s page 163 1203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group and disable interruptions. 1204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Handle ADC interrupt request 1205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group and enable DMA transfer. 1206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group and disable ADC DMA transfer. 1207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 1208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 1209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group. 1213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function: None. 1214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if ADC is Slave, ADC is enabled but conversion is not started, 1216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if ADC is master, ADC is enabled and multimode conversion is started. 1217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef *hadc) 1221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 1238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 1248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 164 1260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code */ 1263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 1265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 1272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 1285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 1288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabled only (conversion is not started), */ 1291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 1311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 1313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_INJ_BUSY bit and in resetting HAL_ADC_STATE_INJ_EOC bit */ 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 1316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 165 1317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 1340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected channels in 1348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable ADC peripheral. 1349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 1350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion on injected group. If injected group is under use, it 1351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. 1352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 1354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef *hadc) 1356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 1366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 1367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 1369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 1372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 1373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 166 1374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 1375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 1380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 1381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Wait for regular group conversion to be completed. 1393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note ADC conversion flags EOS (end of sequence) and EOC (end of 1394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion) are cleared by this function, with an exception: 1395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if low power feature "LowPowerAutoWait" is enabled, flags are 1396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * not cleared to not interfere with this feature until data register 1397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * is read using function HAL_ADC_GetValue(). 1398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function cannot be used in a particular setup: ADC configured 1399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in DMA mode and polling for end of each conversion (ADC init 1400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SINGLE_CONV). 1401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * In this case, DMA resets the flag EOC and polling cannot be 1402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * performed on each conversion. Nevertheless, polling can still 1403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * be performed on the complete sequence (ADC init 1404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SEQ_CONV). 1405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef *hadc, uint32_t Timeout) 1410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 801 .loc 1 1410 1 is_stmt 1 view -0 802 .cfi_startproc 803 @ args = 0, pretend = 0, frame = 0 804 @ frame_needed = 0, uses_anonymous_args = 0 805 .loc 1 1410 1 is_stmt 0 view .LVU228 806 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 807 .LCFI9: 808 .cfi_def_cfa_offset 24 809 .cfi_offset 4, -24 810 .cfi_offset 5, -20 811 .cfi_offset 6, -16 812 .cfi_offset 7, -12 813 .cfi_offset 8, -8 814 .cfi_offset 14, -4 815 0004 0446 mov r4, r0 816 0006 0E46 mov r6, r1 1411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 817 .loc 1 1411 3 is_stmt 1 view .LVU229 1412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_Flag_End; 818 .loc 1 1412 3 view .LVU230 ARM GAS /tmp/ccICigVb.s page 167 1413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 819 .loc 1 1413 3 view .LVU231 1414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 820 .loc 1 1415 3 view .LVU232 1416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 821 .loc 1 1416 3 view .LVU233 822 .LVL64: 823 .LBB358: 824 .LBI358: 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 825 .loc 2 6392 26 view .LVU234 826 .LBB359: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 827 .loc 2 6394 3 view .LVU235 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 828 .loc 2 6394 21 is_stmt 0 view .LVU236 829 0008 424B ldr r3, .L66 830 000a 9F68 ldr r7, [r3, #8] 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 831 .loc 2 6394 10 view .LVU237 832 000c 07F01F07 and r7, r7, #31 833 .LVL65: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 834 .loc 2 6394 10 view .LVU238 835 .LBE359: 836 .LBE358: 1417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 837 .loc 1 1420 3 is_stmt 1 view .LVU239 1421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If end of conversion selected to end of sequence conversions */ 1423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.EOCSelection == ADC_EOC_SEQ_CONV) 838 .loc 1 1423 3 view .LVU240 839 .loc 1 1423 17 is_stmt 0 view .LVU241 840 0010 8569 ldr r5, [r0, #24] 841 .loc 1 1423 6 view .LVU242 842 0012 082D cmp r5, #8 843 0014 14D0 beq .L42 1424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = ADC_FLAG_EOS; 1426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If end of conversion selected to end of unitary conversion */ 1428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else /* ADC_EOC_SINGLE_CONV */ 1429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification that ADC configuration is compliant with polling for */ 1431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* each conversion: */ 1432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case is ADC configured in DMA mode and ADC sequencer with */ 1433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* several ranks and polling for end of each conversion. */ 1434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* For code simplicity sake, this particular case is generalized to */ 1435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC configured in DMA mode and and polling for end of each conversion. */ 1436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 844 .loc 1 1437 5 is_stmt 1 view .LVU243 845 0016 092F cmp r7, #9 ARM GAS /tmp/ccICigVb.s page 168 846 0018 05D8 bhi .L43 847 001a 40F22123 movw r3, #545 848 001e FB40 lsrs r3, r3, r7 849 0020 13F0010F tst r3, #1 850 0024 06D1 bne .L60 851 .L43: 1438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode in independent mode on ADC group regular */ 1443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) 1444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 1451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode in multimode on ADC group regular */ 1456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_REG_ 852 .loc 1 1456 7 view .LVU244 853 .LVL66: 854 .LBB360: 855 .LBI360: 6489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 856 .loc 2 6489 26 view .LVU245 857 .LBB361: 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 858 .loc 2 6491 3 view .LVU246 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 859 .loc 2 6491 21 is_stmt 0 view .LVU247 860 0026 3B4B ldr r3, .L66 861 0028 9B68 ldr r3, [r3, #8] 862 .LVL67: 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 863 .loc 2 6491 21 view .LVU248 864 .LBE361: 865 .LBE360: 866 .loc 1 1456 10 view .LVU249 867 002a 13F4604F tst r3, #57344 868 002e 2CD1 bne .L61 1457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 869 .loc 1 1463 22 view .LVU250 870 0030 0425 movs r5, #4 871 0032 05E0 b .L42 872 .L60: ARM GAS /tmp/ccICigVb.s page 169 1443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 873 .loc 1 1443 7 is_stmt 1 view .LVU251 1443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 874 .loc 1 1443 11 is_stmt 0 view .LVU252 875 0034 0368 ldr r3, [r0] 876 0036 DB68 ldr r3, [r3, #12] 1443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 877 .loc 1 1443 10 view .LVU253 878 0038 13F0010F tst r3, #1 879 003c 1FD1 bne .L62 1450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 880 .loc 1 1450 22 view .LVU254 881 003e 0425 movs r5, #4 882 .L42: 883 .LVL68: 1464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode */ 1468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) 1469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 1476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 1481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 884 .loc 1 1481 3 is_stmt 1 view .LVU255 885 .loc 1 1481 15 is_stmt 0 view .LVU256 886 0040 FFF7FEFF bl HAL_GetTick 887 .LVL69: 888 .loc 1 1481 15 view .LVU257 889 0044 8046 mov r8, r0 890 .LVL70: 1482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait until End of unitary conversion or sequence conversions flag is raised */ 1484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 891 .loc 1 1484 3 is_stmt 1 view .LVU258 892 .L46: 893 .loc 1 1484 47 view .LVU259 894 .loc 1 1484 15 is_stmt 0 view .LVU260 895 0046 2368 ldr r3, [r4] 896 .loc 1 1484 25 view .LVU261 897 0048 1A68 ldr r2, [r3] 898 .loc 1 1484 47 view .LVU262 899 004a 2A42 tst r2, r5 900 004c 23D1 bne .L63 1485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 901 .loc 1 1487 5 is_stmt 1 view .LVU263 ARM GAS /tmp/ccICigVb.s page 170 902 .loc 1 1487 8 is_stmt 0 view .LVU264 903 004e B6F1FF3F cmp r6, #-1 904 0052 F8D0 beq .L46 1488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 905 .loc 1 1489 7 is_stmt 1 view .LVU265 906 .loc 1 1489 13 is_stmt 0 view .LVU266 907 0054 FFF7FEFF bl HAL_GetTick 908 .LVL71: 909 .loc 1 1489 27 view .LVU267 910 0058 A0EB0800 sub r0, r0, r8 911 .loc 1 1489 10 view .LVU268 912 005c B042 cmp r0, r6 913 005e 01D8 bhi .L47 914 .loc 1 1489 51 discriminator 1 view .LVU269 915 0060 002E cmp r6, #0 916 0062 F0D1 bne .L46 917 .L47: 1490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 918 .loc 1 1492 9 is_stmt 1 view .LVU270 919 .loc 1 1492 18 is_stmt 0 view .LVU271 920 0064 2368 ldr r3, [r4] 921 .loc 1 1492 28 view .LVU272 922 0066 1B68 ldr r3, [r3] 923 .loc 1 1492 12 view .LVU273 924 0068 2B42 tst r3, r5 925 006a ECD1 bne .L46 1493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); 926 .loc 1 1495 11 is_stmt 1 view .LVU274 927 006c E36D ldr r3, [r4, #92] 928 006e 43F00403 orr r3, r3, #4 929 0072 E365 str r3, [r4, #92] 1496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 930 .loc 1 1498 11 view .LVU275 931 .loc 1 1498 11 view .LVU276 932 0074 0023 movs r3, #0 933 0076 84F85830 strb r3, [r4, #88] 934 .loc 1 1498 11 view .LVU277 1499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_TIMEOUT; 935 .loc 1 1500 11 view .LVU278 936 .loc 1 1500 18 is_stmt 0 view .LVU279 937 007a 0320 movs r0, #3 938 007c 45E0 b .L44 939 .LVL72: 940 .L62: 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 941 .loc 1 1445 9 is_stmt 1 view .LVU280 942 007e C36D ldr r3, [r0, #92] 943 0080 43F02003 orr r3, r3, #32 944 0084 C365 str r3, [r0, #92] ARM GAS /tmp/ccICigVb.s page 171 1446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 945 .loc 1 1446 9 view .LVU281 1446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 946 .loc 1 1446 16 is_stmt 0 view .LVU282 947 0086 0120 movs r0, #1 948 .LVL73: 1446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 949 .loc 1 1446 16 view .LVU283 950 0088 3FE0 b .L44 951 .LVL74: 952 .L61: 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 953 .loc 1 1458 9 is_stmt 1 view .LVU284 954 008a E36D ldr r3, [r4, #92] 955 008c 43F02003 orr r3, r3, #32 956 0090 E365 str r3, [r4, #92] 1459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 957 .loc 1 1459 9 view .LVU285 1459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 958 .loc 1 1459 16 is_stmt 0 view .LVU286 959 0092 0120 movs r0, #1 960 .LVL75: 1459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 961 .loc 1 1459 16 view .LVU287 962 0094 39E0 b .L44 963 .LVL76: 964 .L63: 1501:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1504:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine */ 1507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 965 .loc 1 1507 3 is_stmt 1 view .LVU288 966 0096 E26D ldr r2, [r4, #92] 967 0098 42F40072 orr r2, r2, #512 968 009c E265 str r2, [r4, #92] 1508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 1510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ 1511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 969 .loc 1 1511 3 view .LVU289 970 .LVL77: 971 .LBB362: 972 .LBI362: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 973 .loc 2 3747 26 view .LVU290 974 .LBB363: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 975 .loc 2 3749 3 view .LVU291 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 976 .loc 2 3749 12 is_stmt 0 view .LVU292 977 009e DA68 ldr r2, [r3, #12] 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 978 .loc 2 3749 103 view .LVU293 979 00a0 12F4406F tst r2, #3072 ARM GAS /tmp/ccICigVb.s page 172 980 00a4 11D1 bne .L49 981 .LVL78: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 982 .loc 2 3749 103 view .LVU294 983 .LBE363: 984 .LBE362: 1512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == DISABLE) 985 .loc 1 1512 21 view .LVU295 986 00a6 627F ldrb r2, [r4, #29] @ zero_extendqisi2 987 .loc 1 1512 7 view .LVU296 988 00a8 7AB9 cbnz r2, .L49 1513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check whether end of sequence is reached */ 1516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 989 .loc 1 1516 5 is_stmt 1 view .LVU297 990 .loc 1 1516 9 is_stmt 0 view .LVU298 991 00aa 1A68 ldr r2, [r3] 992 .loc 1 1516 8 view .LVU299 993 00ac 12F0080F tst r2, #8 994 00b0 0BD0 beq .L49 1517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 995 .loc 1 1519 7 is_stmt 1 view .LVU300 996 00b2 E26D ldr r2, [r4, #92] 997 00b4 22F48072 bic r2, r2, #256 998 00b8 E265 str r2, [r4, #92] 1520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 999 .loc 1 1521 7 view .LVU301 1000 .loc 1 1521 16 is_stmt 0 view .LVU302 1001 00ba E26D ldr r2, [r4, #92] 1002 .loc 1 1521 10 view .LVU303 1003 00bc 12F4805F tst r2, #4096 1004 00c0 03D1 bne .L49 1522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 1005 .loc 1 1523 9 is_stmt 1 view .LVU304 1006 00c2 E26D ldr r2, [r4, #92] 1007 00c4 42F00102 orr r2, r2, #1 1008 00c8 E265 str r2, [r4, #92] 1009 .L49: 1524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 1530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 1531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1010 .loc 1 1532 3 view .LVU305 1011 .loc 1 1532 8 is_stmt 0 view .LVU306 1012 00ca 134A ldr r2, .L66+4 1013 00cc 9342 cmp r3, r2 1014 00ce 0CD0 beq .L64 ARM GAS /tmp/ccICigVb.s page 173 1015 00d0 1A46 mov r2, r3 1016 .L50: 1017 .loc 1 1532 6 discriminator 4 view .LVU307 1018 00d2 9342 cmp r3, r2 1019 00d4 0CD0 beq .L51 1020 00d6 092F cmp r7, #9 1021 00d8 05D8 bhi .L52 1022 00da 40F22121 movw r1, #545 1023 00de F940 lsrs r1, r1, r7 1024 00e0 11F0010F tst r1, #1 1025 00e4 04D1 bne .L51 1026 .L52: 1533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve handle ADC CFGR register */ 1539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 1540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve Master ADC CFGR register */ 1544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1027 .loc 1 1544 5 is_stmt 1 discriminator 4 view .LVU308 1028 .LVL79: 1545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1029 .loc 1 1545 5 discriminator 4 view .LVU309 1030 .loc 1 1545 14 is_stmt 0 discriminator 4 view .LVU310 1031 00e6 D268 ldr r2, [r2, #12] 1032 .LVL80: 1033 .loc 1 1545 14 discriminator 4 view .LVU311 1034 00e8 03E0 b .L53 1035 .LVL81: 1036 .L64: 1532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1037 .loc 1 1532 8 view .LVU312 1038 00ea 4FF0A042 mov r2, #1342177280 1039 00ee F0E7 b .L50 1040 .L51: 1539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1041 .loc 1 1539 5 is_stmt 1 view .LVU313 1539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1042 .loc 1 1539 14 is_stmt 0 view .LVU314 1043 00f0 DA68 ldr r2, [r3, #12] 1044 .LVL82: 1045 .L53: 1546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve handle ADC CFGR register */ 1549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 1550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear polled flag */ 1553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_Flag_End == ADC_FLAG_EOS) 1046 .loc 1 1553 3 is_stmt 1 view .LVU315 1047 .loc 1 1553 6 is_stmt 0 view .LVU316 ARM GAS /tmp/ccICigVb.s page 174 1048 00f2 082D cmp r5, #8 1049 00f4 06D0 beq .L65 1554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOS); 1556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear end of conversion EOC flag of regular group if low power feature */ 1560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* "LowPowerAutoWait " is disabled, to not interfere with this feature */ 1561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* until data register is read using function HAL_ADC_GetValue(). */ 1562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_AUTDLY) == 0UL) 1050 .loc 1 1562 5 is_stmt 1 view .LVU317 1051 .loc 1 1562 8 is_stmt 0 view .LVU318 1052 00f6 12F4804F tst r2, #16384 1053 00fa 08D1 bne .L58 1563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 1054 .loc 1 1564 7 is_stmt 1 view .LVU319 1055 00fc 0C22 movs r2, #12 1056 .LVL83: 1057 .loc 1 1564 7 is_stmt 0 view .LVU320 1058 00fe 1A60 str r2, [r3] 1565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1059 .loc 1 1569 10 view .LVU321 1060 0100 0020 movs r0, #0 1061 0102 02E0 b .L44 1062 .LVL84: 1063 .L65: 1555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1064 .loc 1 1555 5 is_stmt 1 view .LVU322 1065 0104 0822 movs r2, #8 1066 .LVL85: 1555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1067 .loc 1 1555 5 is_stmt 0 view .LVU323 1068 0106 1A60 str r2, [r3] 1069 .loc 1 1569 10 view .LVU324 1070 0108 0020 movs r0, #0 1071 .LVL86: 1072 .L44: 1570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1073 .loc 1 1570 1 view .LVU325 1074 010a BDE8F081 pop {r4, r5, r6, r7, r8, pc} 1075 .LVL87: 1076 .L58: 1569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1077 .loc 1 1569 10 view .LVU326 1078 010e 0020 movs r0, #0 1079 0110 FBE7 b .L44 1080 .L67: 1081 0112 00BF .align 2 1082 .L66: 1083 0114 00030050 .word 1342178048 1084 0118 00010050 .word 1342177536 ARM GAS /tmp/ccICigVb.s page 175 1085 .cfi_endproc 1086 .LFE335: 1088 .section .text.HAL_ADC_PollForEvent,"ax",%progbits 1089 .align 1 1090 .global HAL_ADC_PollForEvent 1091 .syntax unified 1092 .thumb 1093 .thumb_func 1095 HAL_ADC_PollForEvent: 1096 .LVL88: 1097 .LFB336: 1571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Poll for ADC event. 1574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param EventType the ADC event type. 1576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 1577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_EOSMP_EVENT ADC End of Sampling event 1578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_AWD1_EVENT ADC Analog watchdog 1 event (main analog watchdog, presen 1579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_AWD2_EVENT ADC Analog watchdog 2 event (additional analog watchdog, 1580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_AWD3_EVENT ADC Analog watchdog 3 event (additional analog watchdog, 1581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_OVR_EVENT ADC Overrun event 1582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_JQOVF_EVENT ADC Injected context queue overflow event 1583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note The relevant flag is cleared if found to be set, except for ADC_FLAG_OVR. 1585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Indeed, the latter is reset only if hadc->Init.Overrun field is set 1586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to ADC_OVR_DATA_OVERWRITTEN. Otherwise, data register may be potentially overwritten 1587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * by a new converted data as soon as OVR is cleared. 1588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To reset OVR flag once the preserved data is retrieved, the user can resort 1589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to macro __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef *hadc, uint32_t EventType, uint32_t Timeou 1593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1098 .loc 1 1593 1 is_stmt 1 view -0 1099 .cfi_startproc 1100 @ args = 0, pretend = 0, frame = 0 1101 @ frame_needed = 0, uses_anonymous_args = 0 1102 .loc 1 1593 1 is_stmt 0 view .LVU328 1103 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 1104 .LCFI10: 1105 .cfi_def_cfa_offset 24 1106 .cfi_offset 4, -24 1107 .cfi_offset 5, -20 1108 .cfi_offset 6, -16 1109 .cfi_offset 7, -12 1110 .cfi_offset 8, -8 1111 .cfi_offset 14, -4 1112 0004 0646 mov r6, r0 1113 0006 0D46 mov r5, r1 1114 0008 1746 mov r7, r2 1594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 1115 .loc 1 1594 3 is_stmt 1 view .LVU329 1595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1116 .loc 1 1597 3 view .LVU330 ARM GAS /tmp/ccICigVb.s page 176 1598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EVENT_TYPE(EventType)); 1117 .loc 1 1598 3 view .LVU331 1599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 1601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 1118 .loc 1 1601 3 view .LVU332 1119 .loc 1 1601 15 is_stmt 0 view .LVU333 1120 000a FFF7FEFF bl HAL_GetTick 1121 .LVL89: 1122 .loc 1 1601 15 view .LVU334 1123 000e 8046 mov r8, r0 1124 .LVL90: 1602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check selected event flag */ 1604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 1125 .loc 1 1604 3 is_stmt 1 view .LVU335 1126 .L70: 1127 .loc 1 1604 46 view .LVU336 1128 .loc 1 1604 10 is_stmt 0 view .LVU337 1129 0010 3468 ldr r4, [r6] 1130 0012 2368 ldr r3, [r4] 1131 .loc 1 1604 46 view .LVU338 1132 0014 35EA0303 bics r3, r5, r3 1133 0018 18D0 beq .L83 1605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 1134 .loc 1 1607 5 is_stmt 1 view .LVU339 1135 .loc 1 1607 8 is_stmt 0 view .LVU340 1136 001a B7F1FF3F cmp r7, #-1 1137 001e F7D0 beq .L70 1608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 1138 .loc 1 1609 7 is_stmt 1 view .LVU341 1139 .loc 1 1609 13 is_stmt 0 view .LVU342 1140 0020 FFF7FEFF bl HAL_GetTick 1141 .LVL91: 1142 .loc 1 1609 27 view .LVU343 1143 0024 A0EB0800 sub r0, r0, r8 1144 .loc 1 1609 10 view .LVU344 1145 0028 B842 cmp r0, r7 1146 002a 01D8 bhi .L71 1147 .loc 1 1609 51 discriminator 1 view .LVU345 1148 002c 002F cmp r7, #0 1149 002e EFD1 bne .L70 1150 .L71: 1610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 1151 .loc 1 1612 9 is_stmt 1 view .LVU346 1152 .loc 1 1612 13 is_stmt 0 view .LVU347 1153 0030 3368 ldr r3, [r6] 1154 0032 1B68 ldr r3, [r3] 1155 .loc 1 1612 12 view .LVU348 1156 0034 35EA0303 bics r3, r5, r3 1157 0038 EAD0 beq .L70 1613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 177 1614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); 1158 .loc 1 1615 11 is_stmt 1 view .LVU349 1159 003a F36D ldr r3, [r6, #92] 1160 003c 43F00403 orr r3, r3, #4 1161 0040 F365 str r3, [r6, #92] 1616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1162 .loc 1 1618 11 view .LVU350 1163 .loc 1 1618 11 view .LVU351 1164 0042 0023 movs r3, #0 1165 0044 86F85830 strb r3, [r6, #88] 1166 .loc 1 1618 11 view .LVU352 1619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_TIMEOUT; 1167 .loc 1 1620 11 view .LVU353 1168 .loc 1 1620 18 is_stmt 0 view .LVU354 1169 0048 0320 movs r0, #3 1170 004a 29E0 b .L72 1171 .L83: 1621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (EventType) 1172 .loc 1 1626 3 is_stmt 1 view .LVU355 1173 004c B5F5807F cmp r5, #256 1174 0050 28D0 beq .L74 1175 0052 0BD8 bhi .L75 1176 0054 022D cmp r5, #2 1177 0056 1CD0 beq .L76 1178 0058 802D cmp r5, #128 1179 005a 35D1 bne .L78 1627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* End Of Sampling event */ 1629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOSMP_EVENT: 1630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 1632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear the End Of Sampling flag */ 1634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 1635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog (level out of window) event */ 1639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: In case of several analog watchdog enabled, if needed to know */ 1640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* which one triggered and on which ADCx, test ADC state of analog watchdog */ 1641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* flags HAL_ADC_STATE_AWD1/2/3 using function "HAL_ADC_GetState()". */ 1642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* For example: */ 1643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " */ 1644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD2) != 0UL) " */ 1645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD3) != 0UL) " */ 1646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 1 flag */ 1648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD_EVENT: ARM GAS /tmp/ccICigVb.s page 178 1649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 1180 .loc 1 1650 7 view .LVU356 1181 005c F36D ldr r3, [r6, #92] 1182 005e 43F48033 orr r3, r3, #65536 1183 0062 F365 str r3, [r6, #92] 1651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 1184 .loc 1 1653 7 view .LVU357 1185 0064 8023 movs r3, #128 1186 0066 2360 str r3, [r4] 1654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1187 .loc 1 1655 7 view .LVU358 1656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 2 flag */ 1658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD2_EVENT: 1659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 1661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 1664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 3 flag */ 1668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD3_EVENT: 1669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 1671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); 1674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected context queue overflow event */ 1678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_JQOVF_EVENT: 1679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); 1681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 1683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 1684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC Injected context queue overflow flag */ 1686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 1687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Overrun event */ 1691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* Case ADC_OVR_EVENT */ 1692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If overrun is set to overwrite previous data, overrun event is not */ 1693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* considered as an error. */ 1694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 1695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun ") */ 1696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 179 1698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 1700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to overrun */ 1702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 1703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC Overrun flag only if Overrun is set to ADC_OVR_DATA_OVERWRITTEN 1707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** otherwise, data register is potentially overwritten by new converted data as soon 1708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** as OVR is cleared. */ 1709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1188 .loc 1 1715 10 is_stmt 0 view .LVU359 1189 0068 0020 movs r0, #0 1655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1190 .loc 1 1655 7 view .LVU360 1191 006a 19E0 b .L72 1192 .L75: 1626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1193 .loc 1 1626 3 view .LVU361 1194 006c B5F5007F cmp r5, #512 1195 0070 21D0 beq .L79 1196 0072 B5F5806F cmp r5, #1024 1197 0076 27D1 bne .L78 1680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1198 .loc 1 1680 7 is_stmt 1 view .LVU362 1199 0078 F36D ldr r3, [r6, #92] 1200 007a 43F48043 orr r3, r3, #16384 1201 007e F365 str r3, [r6, #92] 1683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1202 .loc 1 1683 7 view .LVU363 1203 0080 336E ldr r3, [r6, #96] 1204 0082 43F00803 orr r3, r3, #8 1205 0086 3366 str r3, [r6, #96] 1686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1206 .loc 1 1686 7 view .LVU364 1207 0088 4FF48063 mov r3, #1024 1208 008c 2360 str r3, [r4] 1688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1209 .loc 1 1688 7 view .LVU365 1210 .loc 1 1715 10 is_stmt 0 view .LVU366 1211 008e 0020 movs r0, #0 1688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1212 .loc 1 1688 7 view .LVU367 1213 0090 06E0 b .L72 1214 .L76: 1631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1215 .loc 1 1631 7 is_stmt 1 view .LVU368 1216 0092 F36D ldr r3, [r6, #92] 1217 0094 43F40063 orr r3, r3, #2048 1218 0098 F365 str r3, [r6, #92] ARM GAS /tmp/ccICigVb.s page 180 1634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1219 .loc 1 1634 7 view .LVU369 1220 009a 0223 movs r3, #2 1221 009c 2360 str r3, [r4] 1636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1222 .loc 1 1636 7 view .LVU370 1223 .loc 1 1715 10 is_stmt 0 view .LVU371 1224 009e 0020 movs r0, #0 1225 .L72: 1716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1226 .loc 1 1716 1 view .LVU372 1227 00a0 BDE8F081 pop {r4, r5, r6, r7, r8, pc} 1228 .LVL92: 1229 .L74: 1660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1230 .loc 1 1660 7 is_stmt 1 view .LVU373 1231 00a4 F36D ldr r3, [r6, #92] 1232 00a6 43F40033 orr r3, r3, #131072 1233 00aa F365 str r3, [r6, #92] 1663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1234 .loc 1 1663 7 view .LVU374 1235 00ac 4FF48073 mov r3, #256 1236 00b0 2360 str r3, [r4] 1665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1237 .loc 1 1665 7 view .LVU375 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1238 .loc 1 1715 10 is_stmt 0 view .LVU376 1239 00b2 0020 movs r0, #0 1665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1240 .loc 1 1665 7 view .LVU377 1241 00b4 F4E7 b .L72 1242 .L79: 1670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1243 .loc 1 1670 7 is_stmt 1 view .LVU378 1244 00b6 F36D ldr r3, [r6, #92] 1245 00b8 43F48023 orr r3, r3, #262144 1246 00bc F365 str r3, [r6, #92] 1673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1247 .loc 1 1673 7 view .LVU379 1248 00be 4FF40073 mov r3, #512 1249 00c2 2360 str r3, [r4] 1675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1250 .loc 1 1675 7 view .LVU380 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1251 .loc 1 1715 10 is_stmt 0 view .LVU381 1252 00c4 0020 movs r0, #0 1675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1253 .loc 1 1675 7 view .LVU382 1254 00c6 EBE7 b .L72 1255 .L78: 1696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1256 .loc 1 1696 7 is_stmt 1 view .LVU383 1696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1257 .loc 1 1696 21 is_stmt 0 view .LVU384 1258 00c8 F36B ldr r3, [r6, #60] 1696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1259 .loc 1 1696 10 view .LVU385 ARM GAS /tmp/ccICigVb.s page 181 1260 00ca 4BB9 cbnz r3, .L81 1699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1261 .loc 1 1699 9 is_stmt 1 view .LVU386 1262 00cc F36D ldr r3, [r6, #92] 1263 00ce 43F48063 orr r3, r3, #1024 1264 00d2 F365 str r3, [r6, #92] 1702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1265 .loc 1 1702 9 view .LVU387 1266 00d4 336E ldr r3, [r6, #96] 1267 00d6 43F00203 orr r3, r3, #2 1268 00da 3366 str r3, [r6, #96] 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1269 .loc 1 1715 10 is_stmt 0 view .LVU388 1270 00dc 0020 movs r0, #0 1271 00de DFE7 b .L72 1272 .L81: 1709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1273 .loc 1 1709 9 is_stmt 1 view .LVU389 1274 00e0 1023 movs r3, #16 1275 00e2 2360 str r3, [r4] 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1276 .loc 1 1715 10 is_stmt 0 view .LVU390 1277 00e4 0020 movs r0, #0 1278 00e6 DBE7 b .L72 1279 .cfi_endproc 1280 .LFE336: 1282 .section .text.HAL_ADC_GetValue,"ax",%progbits 1283 .align 1 1284 .global HAL_ADC_GetValue 1285 .syntax unified 1286 .thumb 1287 .thumb_func 1289 HAL_ADC_GetValue: 1290 .LVL93: 1291 .LFB341: 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group with interruption. 1720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function according to initialization 1721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * setting : EOC (end of conversion), EOS (end of sequence), 1722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * OVR overrun. 1723:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 1724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_Start_IT() must be called for ADC Slave first, then for 1726:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC Master. 1727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For ADC Slave, ADC is enabled only (conversion is not started). 1728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For ADC Master, ADC is enabled and multimode conversion is started. 1729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note To guarantee a proper reset of all interruptions once all the needed 1730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversions are obtained, HAL_ADC_Stop_IT() must be called to ensure 1731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * a correct stop of the IT-based conversions. 1732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note By default, HAL_ADC_Start_IT() does not enable the End Of Sampling 1733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * interruption. If required (e.g. in case of oversampling with trigger 1734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode), the user must: 1735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 1. first clear the EOSMP flag if set with macro __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EO 1736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 2. then enable the EOSMP interrupt with macro __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOSMP) 1737:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * before calling HAL_ADC_Start_IT(). 1738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle ARM GAS /tmp/ccICigVb.s page 182 1739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1740:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef *hadc) 1742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1754:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 1759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 1769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code */ 1784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 1786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 1793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 183 1796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable all interruptions before enabling the desired ones */ 1806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); 1807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC end of conversion interrupt */ 1809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOS); 1813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOC); 1817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC overrun interrupt */ 1821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If hadc->Init.Overrun is set to ADC_OVR_DATA_PRESERVED, only then is 1822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_OVR enabled; otherwise data overwrite is considered as normal 1823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** behavior and no CPU time is lost for a non-processed interruption */ 1824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 1827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 1830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 1833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabled only (conversion is not started), */ 1836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable as well injected interruptions in case 1850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedStart_IT() has not been called beforehand. This 1851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** allows to start regular and injected conversions when JAUTO is 1852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** set with a single call to HAL_ADC_Start_IT() */ ARM GAS /tmp/ccICigVb.s page 184 1853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 1873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 1875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** are enabled nevertheless (for same reason as above) */ 1876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 1878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* First, update Slave State in setting HAL_ADC_STATE_INJ_BUSY bit 1880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** and in resetting HAL_ADC_STATE_INJ_EOC bit */ 1881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 1883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enabled 1899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); 1902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable as well injected interruptions in case 1904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedStart_IT() has not been called beforehand. This 1905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** allows to start regular and injected conversions when JAUTO is 1906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** set with a single call to HAL_ADC_Start_IT() */ 1907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: ARM GAS /tmp/ccICigVb.s page 185 1910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 1935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in 1943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable interrution of 1944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * end-of-conversion, disable ADC peripheral. 1945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 1947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef *hadc) 1949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1954:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 1959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 1960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 1962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of conversion interrupt for regular group */ 1965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 1966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); ARM GAS /tmp/ccICigVb.s page 186 1967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 1969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 1970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 1972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 1977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 1978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group and transfer result through DMA. 1990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function: 1991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * overrun (if applicable), DMA half transfer, DMA transfer complete. 1992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 1993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): HAL_ADC_Start_DMA() 1994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * is designed for single-ADC mode only. For multimode, the dedicated 1995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADCEx_MultiModeStart_DMA() function must be used. 1996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pData Destination Buffer address. 1998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Length Number of data to be transferred from ADC peripheral to memory 1999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) 2002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 2012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Ensure that multimode regular conversions are not enabled. */ 2019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */ 2020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((ADC_IS_INDEPENDENT(hadc) != RESET) 2021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) ARM GAS /tmp/ccICigVb.s page 187 2024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 2028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 2029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 2031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 2035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 2036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 2038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 2039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 2042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 2043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 2049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 2053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 2054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 2056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 2057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 2061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 2062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA transfer complete callback */ 2065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 2066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA half transfer complete callback */ 2068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 2069:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA error callback */ 2071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 2072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Manage ADC and DMA start: ADC overrun interruption, DMA start, */ 2075:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC start (in case of SW start): */ 2076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ 2078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ 2079:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* operations) */ 2080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); ARM GAS /tmp/ccICigVb.s page 188 2081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 2084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 2085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* With DMA, overrun event is always considered as an error even if 2088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore, 2089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_OVR is enabled. */ 2090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 2091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC DMA mode */ 2093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN); 2094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start the DMA channel */ 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_ 2097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 2099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 2100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 2101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 2102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 2103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 2104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 2116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 2124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in 2132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable ADC DMA transfer, disable 2133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC peripheral. 2134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 2135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion on ADC group injected. If ADC group injected is under use, it 2136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. 2137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): ARM GAS /tmp/ccICigVb.s page 189 2138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_Stop_DMA() function is dedicated to single-ADC mode only. 2139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For multimode, the dedicated HAL_ADCEx_MultiModeStop_DMA() API must be used. 2140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef *hadc) 2144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential ADC group regular conversion on going */ 2154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 2155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 2157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC DMA (ADC DMA configuration of continuous requests is kept) */ 2160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN); 2161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the DMA channel (in case of DMA in circular mode or stop */ 2163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* while DMA transfer is on going) */ 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY) 2165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); 2167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if DMA channel effectively disabled */ 2169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status != HAL_OK) 2170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 2173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 2177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); 2178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 2180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update "tmp_hal_status" only if DMA channel disabling passed, */ 2181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to keep in memory a potential failing status. */ 2182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 2185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (void)ADC_Disable(hadc); 2189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 2192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ ARM GAS /tmp/ccICigVb.s page 190 2195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 2197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 2198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Get ADC regular group conversion result. 2211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Reading register DR automatically clears ADC flag EOC 2212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC group regular end of unitary conversion). 2213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function does not clear ADC flag EOS 2214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC group regular end of sequence conversion). 2215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Occurrence of flag EOS rising: 2216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If sequencer is composed of 1 rank, flag EOS is equivalent 2217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to flag EOC. 2218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If sequencer is composed of several ranks, during the scan 2219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * sequence flag EOC only is raised, at the end of the scan sequence 2220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * both flags EOC and EOS are raised. 2221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To clear this flag, either use function: 2222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in programming model IT: @ref HAL_ADC_IRQHandler(), in programming 2223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * model polling: @ref HAL_ADC_PollForConversion() 2224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). 2225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC group regular conversion data 2227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetValue(ADC_HandleTypeDef *hadc) 2229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1292 .loc 1 2229 1 is_stmt 1 view -0 1293 .cfi_startproc 1294 @ args = 0, pretend = 0, frame = 0 1295 @ frame_needed = 0, uses_anonymous_args = 0 1296 @ link register save eliminated. 2230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1297 .loc 1 2231 3 view .LVU392 2232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: EOC flag is not cleared here by software because automatically */ 2234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* cleared by hardware when reading register DR. */ 2235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return ADC converted value */ 2237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->Instance->DR; 1298 .loc 1 2237 3 view .LVU393 1299 .loc 1 2237 14 is_stmt 0 view .LVU394 1300 0000 0368 ldr r3, [r0] 1301 .loc 1 2237 24 view .LVU395 1302 0002 186C ldr r0, [r3, #64] 1303 .LVL94: 2238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1304 .loc 1 2238 1 view .LVU396 ARM GAS /tmp/ccICigVb.s page 191 1305 0004 7047 bx lr 1306 .cfi_endproc 1307 .LFE341: 1309 .section .text.HAL_ADC_StartSampling,"ax",%progbits 1310 .align 1 1311 .global HAL_ADC_StartSampling 1312 .syntax unified 1313 .thumb 1314 .thumb_func 1316 HAL_ADC_StartSampling: 1317 .LVL95: 1318 .LFB342: 2239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Start ADC conversion sampling phase of regular group 2242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: This function should only be called to start sampling when 2243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SAMPLING_MODE_TRIGGER_CONTROLED sampling 2244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode has been selected 2245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SOFTWARE_START has been selected as trigger source 2246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_StartSampling(ADC_HandleTypeDef *hadc) 2250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1319 .loc 1 2250 1 is_stmt 1 view -0 1320 .cfi_startproc 1321 @ args = 0, pretend = 0, frame = 0 1322 @ frame_needed = 0, uses_anonymous_args = 0 1323 @ link register save eliminated. 2251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1324 .loc 1 2252 3 view .LVU398 2253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start sampling */ 2255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR2, ADC_CFGR2_SWTRIG); 1325 .loc 1 2255 3 view .LVU399 1326 0000 0268 ldr r2, [r0] 1327 0002 1369 ldr r3, [r2, #16] 1328 0004 43F00073 orr r3, r3, #33554432 1329 0008 1361 str r3, [r2, #16] 2256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1330 .loc 1 2258 3 view .LVU400 2259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1331 .loc 1 2259 1 is_stmt 0 view .LVU401 1332 000a 0020 movs r0, #0 1333 .LVL96: 1334 .loc 1 2259 1 view .LVU402 1335 000c 7047 bx lr 1336 .cfi_endproc 1337 .LFE342: 1339 .section .text.HAL_ADC_StopSampling,"ax",%progbits 1340 .align 1 1341 .global HAL_ADC_StopSampling 1342 .syntax unified 1343 .thumb ARM GAS /tmp/ccICigVb.s page 192 1344 .thumb_func 1346 HAL_ADC_StopSampling: 1347 .LVL97: 1348 .LFB343: 2260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion sampling phase of regular group and start conversion 2263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: This function should only be called to stop sampling when 2264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SAMPLING_MODE_TRIGGER_CONTROLED sampling 2265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode has been selected 2266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SOFTWARE_START has been selected as trigger source 2267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - after sampling has been started using @ref HAL_ADC_StartSampling. 2268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_StopSampling(ADC_HandleTypeDef *hadc) 2272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1349 .loc 1 2272 1 is_stmt 1 view -0 1350 .cfi_startproc 1351 @ args = 0, pretend = 0, frame = 0 1352 @ frame_needed = 0, uses_anonymous_args = 0 1353 @ link register save eliminated. 2273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1354 .loc 1 2274 3 view .LVU404 2275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start sampling */ 2277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_SWTRIG); 1355 .loc 1 2277 3 view .LVU405 1356 0000 0268 ldr r2, [r0] 1357 0002 1369 ldr r3, [r2, #16] 1358 0004 23F00073 bic r3, r3, #33554432 1359 0008 1361 str r3, [r2, #16] 2278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1360 .loc 1 2280 3 view .LVU406 2281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1361 .loc 1 2281 1 is_stmt 0 view .LVU407 1362 000a 0020 movs r0, #0 1363 .LVL98: 1364 .loc 1 2281 1 view .LVU408 1365 000c 7047 bx lr 1366 .cfi_endproc 1367 .LFE343: 1369 .section .text.HAL_ADC_ConvCpltCallback,"ax",%progbits 1370 .align 1 1371 .weak HAL_ADC_ConvCpltCallback 1372 .syntax unified 1373 .thumb 1374 .thumb_func 1376 HAL_ADC_ConvCpltCallback: 1377 .LVL99: 1378 .LFB345: 2282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Handle ADC interrupt request. ARM GAS /tmp/ccICigVb.s page 193 2285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void HAL_ADC_IRQHandler(ADC_HandleTypeDef *hadc) 2289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 2291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 2292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 2294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 2295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 2296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 2298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 2304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check End of Sampling flag for ADC group regular ========== */ 2306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_EOSMP) == ADC_FLAG_EOSMP) && ((tmp_ier & ADC_IT_EOSMP) == ADC_IT_EOSMP)) 2307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on end of sampling status if not in error state */ 2309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 2313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* End Of Sampling callback */ 2316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback(hadc); 2318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_EndOfSamplingCallback(hadc); 2320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag */ 2323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 2324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ====== Check ADC group regular end of unitary conversion sequence conversions ===== */ 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((((tmp_isr & ADC_FLAG_EOC) == ADC_FLAG_EOC) && ((tmp_ier & ADC_IT_EOC) == ADC_IT_EOC)) || 2328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 2329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 2335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 2338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 2339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to disable interruption. */ 2340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 2341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 194 2342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 2345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 2350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* check CONT bit directly in handle ADC CFGR register */ 2353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* else need to check Master ADC CONT bit */ 2358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Carry on if continuous mode is disabled */ 2366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) != ADC_CFGR_CONT) 2367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 2370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ 2372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ 2373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ 2377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ 2378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by overrun IRQ process below. */ 2379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); 2380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 2383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to error state */ 2392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 2396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 195 2399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Conversion complete callback */ 2402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Into callback function "HAL_ADC_ConvCpltCallback()", */ 2403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to determine if conversion has been triggered from EOC or EOS, */ 2404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* possibility to use: */ 2405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_EOS)) " */ 2406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 2408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 2410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag */ 2413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: in case of overrun set to ADC_OVR_DATA_PRESERVED, end of */ 2414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion flags clear induces the release of the preserved data.*/ 2415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, if the preserved data value is needed, it must be */ 2416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* read preliminarily into HAL_ADC_ConvCpltCallback(). */ 2417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 2418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ====== Check ADC group injected end of unitary conversion sequence conversions ===== */ 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((((tmp_isr & ADC_FLAG_JEOC) == ADC_FLAG_JEOC) && ((tmp_ier & ADC_IT_JEOC) == ADC_IT_JEOC)) || 2422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 2423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 2429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC configuration */ 2432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_inj_is_trigger_source_sw_start = LL_ADC_INJ_IsTriggerSourceSWStart(hadc->Instance); 2433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 2434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 2437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_SIMULT) 2441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 2442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable interruption if no further conversion upcoming by injected */ ARM GAS /tmp/ccICigVb.s page 196 2456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* external trigger or by automatic injected conversion with regular */ 2457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* group having no further conversion upcoming (same conditions as */ 2458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* regular group interruption disabling above), */ 2459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* and if injected scan sequence is completed. */ 2460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_adc_inj_is_trigger_source_sw_start != 0UL) 2461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((READ_BIT(tmp_cfgr, ADC_CFGR_JAUTO) == 0UL) || 2463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 2464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 2465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS)) 2468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case if injected contexts queue is enabled: */ 2470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* when the last context has been fully processed, JSQR is reset */ 2471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by the hardware. Even if no injected conversion is planned to come */ 2472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (queue empty, triggers are ignored), it can start again */ 2473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* immediately after setting a new context (JADSTART is still set). */ 2474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, state of HAL ADC injected group is kept to busy. */ 2475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_JQM) == 0UL) 2476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_JEOC/ADC_IT_JEOS only if bit */ 2478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* JADSTART==0 (no conversion on going) */ 2479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) == 0UL) 2480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC | ADC_IT_JEOS); 2483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 2486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_REG_BUSY) == 0UL) 2488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 2499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2501:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2504:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected Conversion complete callback */ 2506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: HAL_ADCEx_InjectedConvCpltCallback can resort to 2507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOS)) or 2508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOC)) to determine whether 2509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** interruption has been triggered by end of conversion or end of 2510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sequence. */ 2511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback(hadc); ARM GAS /tmp/ccICigVb.s page 197 2513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedConvCpltCallback(hadc); 2515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear injected group conversion flag */ 2518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC | ADC_FLAG_JEOS); 2519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Analog watchdog 1 flag ========== */ 2522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD1) == ADC_FLAG_AWD1) && ((tmp_ier & ADC_IT_AWD1) == ADC_IT_AWD1)) 2523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 2526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 1 callback */ 2528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback(hadc); 2530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_LevelOutOfWindowCallback(hadc); 2532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 2536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check analog watchdog 2 flag ========== */ 2539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD2) == ADC_FLAG_AWD2) && ((tmp_ier & ADC_IT_AWD2) == ADC_IT_AWD2)) 2540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 2543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 2 callback */ 2545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback(hadc); 2547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow2Callback(hadc); 2549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 2553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check analog watchdog 3 flag ========== */ 2556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_AWD3) == ADC_FLAG_AWD3) && ((tmp_ier & ADC_IT_AWD3) == ADC_IT_AWD3)) 2557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 2560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 3 callback */ 2562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback(hadc); 2564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow3Callback(hadc); 2566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); ARM GAS /tmp/ccICigVb.s page 198 2570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Overrun flag ========== */ 2573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_OVR) == ADC_FLAG_OVR) && ((tmp_ier & ADC_IT_OVR) == ADC_IT_OVR)) 2574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If overrun is set to overwrite previous data (default setting), */ 2576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun event is not considered as an error. */ 2577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 2578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun ") */ 2579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Exception for usage with DMA overrun event always considered as an */ 2580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* error. */ 2581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 2582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 2584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check DMA configuration */ 2588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_multimode_config != LL_ADC_MULTI_INDEPENDENT) 2590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Multimode (when feature is available) is enabled, 2592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Common Control Register MDMA bits must be checked. */ 2593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_RE 2594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 2596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 2600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Multimode not set or feature not available or ADC independent */ 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CFGR & ADC_CFGR_DMAEN) != 0UL) 2603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 2605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (overrun_error == 1UL) 2610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to error state */ 2612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 2613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to overrun */ 2615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 2616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Error callback */ 2618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: In case of overrun, ADC conversion data is preserved until */ 2619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* flag OVR is reset. */ 2620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, old ADC conversion data can be retrieved in */ 2621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* function "HAL_ADC_ErrorCallback()". */ 2622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 2624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 2626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ ARM GAS /tmp/ccICigVb.s page 199 2627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC overrun flag */ 2630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 2631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Injected context queue overflow flag ========== */ 2634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((tmp_isr & ADC_FLAG_JQOVF) == ADC_FLAG_JQOVF) && ((tmp_ier & ADC_IT_JQOVF) == ADC_IT_JQOVF)) 2635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to overrun state */ 2637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); 2638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 2640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 2641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear the Injected context queue overflow flag */ 2643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 2644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected context queue overflow callback */ 2646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback(hadc); 2648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedQueueOverflowCallback(hadc); 2650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Conversion complete callback in non-blocking mode. 2657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) 2661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1379 .loc 1 2661 1 is_stmt 1 view -0 1380 .cfi_startproc 1381 @ args = 0, pretend = 0, frame = 0 1382 @ frame_needed = 0, uses_anonymous_args = 0 1383 @ link register save eliminated. 2662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 1384 .loc 1 2663 3 view .LVU410 2664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ConvCpltCallback must be implemented in the user file. 2667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1385 .loc 1 2668 1 is_stmt 0 view .LVU411 1386 0000 7047 bx lr 1387 .cfi_endproc 1388 .LFE345: 1390 .section .text.HAL_ADC_ConvHalfCpltCallback,"ax",%progbits 1391 .align 1 1392 .weak HAL_ADC_ConvHalfCpltCallback 1393 .syntax unified 1394 .thumb ARM GAS /tmp/ccICigVb.s page 200 1395 .thumb_func 1397 HAL_ADC_ConvHalfCpltCallback: 1398 .LVL100: 1399 .LFB346: 2669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Conversion DMA half-transfer callback in non-blocking mode. 2672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc) 2676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1400 .loc 1 2676 1 is_stmt 1 view -0 1401 .cfi_startproc 1402 @ args = 0, pretend = 0, frame = 0 1403 @ frame_needed = 0, uses_anonymous_args = 0 1404 @ link register save eliminated. 2677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 1405 .loc 1 2678 3 view .LVU413 2679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file. 2682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1406 .loc 1 2683 1 is_stmt 0 view .LVU414 1407 0000 7047 bx lr 1408 .cfi_endproc 1409 .LFE346: 1411 .section .text.ADC_DMAHalfConvCplt,"ax",%progbits 1412 .align 1 1413 .global ADC_DMAHalfConvCplt 1414 .syntax unified 1415 .thumb 1416 .thumb_func 1418 ADC_DMAHalfConvCplt: 1419 .LVL101: 1420 .LFB357: 2684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Analog watchdog 1 callback in non-blocking mode. 2687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef *hadc) 2691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 2694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file. 2697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC error callback in non-blocking mode 2702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC conversion with interruption or transfer by DMA). ARM GAS /tmp/ccICigVb.s page 201 2703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note In case of error due to overrun when using ADC with DMA transfer 2704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (HAL ADC handle parameter "ErrorCode" to state "HAL_ADC_ERROR_OVR"): 2705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - Reinitialize the DMA using function "HAL_ADC_Stop_DMA()". 2706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If needed, restart a new ADC conversion using function 2707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "HAL_ADC_Start_DMA()" 2708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (this function is also clearing overrun flag) 2709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) 2713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 2716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ErrorCallback must be implemented in the user file. 2719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2723:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 2724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2726:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group3 Peripheral Control functions 2727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Peripheral Control functions 2728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 2729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 2730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 2731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Peripheral Control functions ##### 2732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 2733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 2734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Configure channels on regular group 2735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Configure the analog watchdog 2736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2737:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 2738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 2739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2740:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Configure a channel to be assigned to ADC group regular. 2743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note In case of usage of internal measurement channels: 2744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Vbat/VrefInt/TempSensor. 2745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * These internal paths can be disabled using function 2746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_DeInit(). 2747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 2748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes channel into ADC group regular, 2749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * following calls to this function can be used to reconfigure 2750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * some parameters of structure "ADC_ChannelConfTypeDef" on the fly, 2751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * without resetting the ADC. 2752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state: 2753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Refer to comments of structure "ADC_ChannelConfTypeDef". 2754:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param sConfig Structure of ADC channel assigned to ADC group regular. 2756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 2757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig) 2759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 202 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_config_internal_channel; 2763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 2764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); 2770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); 2771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(sConfig->SingleDiff)); 2772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(sConfig->OffsetNumber)); 2773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), sConfig->Offset)); 2774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is 2776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ignored (considered as reset) */ 2777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENAB 2778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification of channel number */ 2780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED) 2781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(hadc, sConfig->Channel)); 2783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_DIFF_CHANNEL(hadc, sConfig->Channel)); 2787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on regular group: */ 2795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel number */ 2796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel rank */ 2797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC group regular sequence: channel on the selected scan sequence rank */ 2800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel); 2801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on regular group: */ 2805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel sampling time */ 2806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel offset */ 2807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 2808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Manage specific case of sampling time 3.5 cycles replacing 2.5 cyles */ 2814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (sConfig->SamplingTime == ADC_SAMPLETIME_3CYCLES_5) 2815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ ARM GAS /tmp/ccICigVb.s page 203 2817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, LL_ADC_SAMPLINGTIME_2CYCLES 2818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC sampling time common configuration */ 2820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5) 2821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime); 2826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC sampling time common configuration */ 2828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_DEFAULT); 2829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure the offset: offset enable/disable, channel, offset value */ 2832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution. */ 2834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Offset has to be left-aligned on bit 11, the LSB (right bits) are set to 0 */ 2835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset); 2836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (sConfig->OffsetNumber != ADC_OFFSET_NONE) 2838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset number */ 2840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted) 2841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_SIGN(sConfig->OffsetSign)); 2843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSaturation)); 2844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset sign & saturation */ 2845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSign(hadc->Instance, sConfig->OffsetNumber, sConfig->OffsetSign); 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSaturatio 2847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Scan each offset register to check if the selected channel is targeted. */ 2851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If this is the case, the corresponding offset number is disabled. */ 2852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_1) 2853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_1, LL_ADC_OFFSET_DISABLE); 2856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_2) 2858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_2, LL_ADC_OFFSET_DISABLE); 2861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_3) 2863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_3, LL_ADC_OFFSET_DISABLE); 2866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_GetOffsetChannel(hadc->Instance, LL_ADC_OFFSET_4) 2868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_4, LL_ADC_OFFSET_DISABLE); 2871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 204 2874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ 2877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Single or differential mode */ 2878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 2879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set mode single-ended or differential input of the selected ADC channel */ 2881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff); 2882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of differential mode */ 2884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED) 2885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits r 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T 2890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 2891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Management of internal measurement channels: Vbat/VrefInt/TempSensor. */ 2896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If internal channel selected, enable dedicated internal buffers and */ 2897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* paths. */ 2898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: these internal measurement paths can be disabled using */ 2899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_ADC_DeInit(). */ 2900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)) 2902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->I 2904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If the requested internal measurement path has already been enabled, */ 2906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bypass the configuration processing. */ 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR_ADC1) || (sConfig->Channel == ADC_CHANNEL_TE 2908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc)) 2911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_chan 2914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Delay for temperature sensor stabilization time */ 2916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait loop initialization and execution */ 2917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 2918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 2919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000 2921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 2922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index--; 2924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PAT 2928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc)) 2930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 205 2931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel); 2933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_VREFINT_INSTANCE(hadc)) 2939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel 2942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* nothing to do */ 2947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If a conversion is on going on regular group, no update on regular */ 2952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* channel could be done on neither of the channel configuration structure */ 2953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameters. */ 2954:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 2958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 2960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Configure the analog watchdog. 2971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 2972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes the selected analog watchdog, successive 2973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * calls to this function can be used to reconfigure some parameters 2974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * of structure "ADC_AnalogWDGConfTypeDef" on the fly, without resetting 2975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the ADC. 2976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 2977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For parameters constraints, see comments of structure 2978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "ADC_AnalogWDGConfTypeDef". 2979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note On this STM32 series, analog watchdog thresholds can be modified 2980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * while ADC conversion is on going. 2981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * In this case, some constraints must be taken into account: 2982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the programmed threshold values are effective from the next 2983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC EOC (end of unitary conversion). 2984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Considering that registers write delay may happen due to 2985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bus activity, this might cause an uncertainty on the 2986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * effective timing of the new programmed threshold values. 2987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle ARM GAS /tmp/ccICigVb.s page 206 2988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param AnalogWDGConfig Structure of ADC analog watchdog configuration 2989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 2990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef *hadc, ADC_AnalogWDGConfTypeDef *Analog 2992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 2995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpAWDLowThresholdShifted; 2996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(AnalogWDGConfig->WatchdogNumber)); 3002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(AnalogWDGConfig->WatchdogMode)); 3003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_FILTERING_MODE(AnalogWDGConfig->FilteringConfig)); 3004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); 3005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REG) || 3007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 3008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REGINJEC)) 3009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(hadc, AnalogWDGConfig->Channel)); 3011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verify thresholds range */ 3014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 3015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of oversampling enabled: depending on ratio and shift configuration, 3017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** analog watchdog thresholds can be higher than ADC resolution. 3018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Verify if thresholds are within maximum thresholds range. */ 3019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_RESOLUTION_12B, AnalogWDGConfig->HighThreshold)); 3020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_RESOLUTION_12B, AnalogWDGConfig->LowThreshold)); 3021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verify if thresholds are within the selected ADC resolution */ 3025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->HighThreshold)); 3026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); 3027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 3031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 3033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 3034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on ADC groups regular and injected: */ 3035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Analog watchdog channels */ 3036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 3039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog configuration */ 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_1) 3044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 207 3045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of analog watchdog: */ 3046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set the analog watchdog enable mode: one or overall group of */ 3047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* channels, on groups regular and-or injected. */ 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (AnalogWDGConfig->WatchdogMode) 3049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 3053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 3058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REGINJEC: 3061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, __LL_ADC_ANALOGWD_CHANNEL_GR 3062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 3063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG) 3067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3069:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: 3070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_INJ) 3071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG_ 3075:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_DISABLE); 3079:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the filtering configuration */ 3083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->TR1, 3084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_TR1_AWDFILT, 3085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** AnalogWDGConfig->FilteringConfig); 3086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD1 */ 3088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD1); 3089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD1(hadc->Instance); 3095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD1(hadc->Instance); 3100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else ARM GAS /tmp/ccICigVb.s page 208 3102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD1(hadc->Instance); 3104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of ADC_ANALOGWATCHDOG_2 or ADC_ANALOGWATCHDOG_3 */ 3107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (AnalogWDGConfig->WatchdogMode) 3110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REGINJEC: 3114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update AWD by bitfield to keep the possibility to monitor */ 3115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* several channels by successive calls of this function. */ 3116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD2CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConfig 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD3CR, (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(AnalogWDGConfig 3123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, AnalogWDGConfig->WatchdogNumber, LL_ADC_A 3130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, AnalogWDGConfig->WatchdogNumber, LL_ADC_A 3134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD2 */ 3140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD2); 3141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD2(hadc->Instance); 3147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD2(hadc->Instance); 3152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD2(hadc->Instance); 3156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_3) */ ARM GAS /tmp/ccICigVb.s page 209 3159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD3 */ 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD3); 3163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD3(hadc->Instance); 3169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->ITMode == ENABLE) 3172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD3(hadc->Instance); 3174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD3(hadc->Instance); 3178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog thresholds configuration */ 3185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (AnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_1) 3186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution: */ 3188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 11, the LSB (right bits) */ 3189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* are set to 0. */ 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->HighThre 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres 3192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of ADC_ANALOGWATCHDOG_2 and ADC_ANALOGWATCHDOG_3 */ 3194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution: */ 3197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 7, the LSB (right bits) */ 3198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* are set to 0. */ 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDHighThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->HighThr 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThre 3201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ConfigAnalogWDThresholds(hadc->Instance, AnalogWDGConfig->WatchdogNumber, tmpAWDHighThresh 3205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted); 3206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 3208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 3209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 3211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** ARM GAS /tmp/ccICigVb.s page 210 3216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group4 Peripheral State functions 3220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC Peripheral State functions 3221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 3222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 3223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 3224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Peripheral state and errors functions ##### 3225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 3226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 3227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** This subsection provides functions to get in run-time the status of the 3228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** peripheral. 3229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Check the ADC state 3230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Check the ADC error code 3231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 3233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 3234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Return the ADC handle state. 3238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note ADC state machine is managed by bitfields, ADC status must be 3239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * compared with states bits. 3240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For example: 3241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_REG_BUSY) != 0UL) " 3242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " 3243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC handle state (bitfield on 32 bits) 3245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetState(ADC_HandleTypeDef *hadc) 3247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return ADC handle state */ 3252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->State; 3253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Return the ADC error code. 3257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC error code (bitfield on 32 bits) 3259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc) 3261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->ErrorCode; 3266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** ARM GAS /tmp/ccICigVb.s page 211 3273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Private_Functions ADC Private Functions 3277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 3278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion. 3282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param ConversionGroup ADC group regular and/or injected. 3284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 3285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_REGULAR_GROUP ADC regular conversion type. 3286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_INJECTED_GROUP ADC injected conversion type. 3287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_REGULAR_INJECTED_GROUP ADC regular and injected conversion type. 3288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef *hadc, uint32_t ConversionGroup) 3291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 3294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 3295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 3296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 3302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification if ADC is not already stopped (on regular and injected */ 3304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* groups) to bypass this function if not needed. */ 3305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 3308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 3309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case of continuous auto-injection mode combined with */ 3312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* auto-delay mode. */ 3313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* In auto-injection mode, regular group stop ADC_CR_ADSTP is used (not */ 3314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* injected group stop ADC_CR_JADSTP). */ 3315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Procedure to be followed: Wait until JEOS=1, clear JEOS, set ADSTP=1 */ 3316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (see reference manual). */ 3317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((hadc->Instance->CFGR & ADC_CFGR_JAUTO) != 0UL) 3318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.LowPowerAutoWait == ENABLE) 3320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Use stop of regular group */ 3323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** conversion_group_reassigned = ADC_REGULAR_GROUP; 3324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait until JEOS=1 (maximum Timeout: 4 injected conversions) */ 3326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS) == 0UL) 3327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Conversion_Timeout_CPU_cycles >= (ADC_CONVERSION_TIME_MAX_CPU_CYCLES * 4UL)) 3329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 212 3330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Conversion_Timeout_CPU_cycles ++; 3339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear JEOS */ 3342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOS); 3343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop potential conversion on going on ADC group regular */ 3346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (conversion_group_reassigned != ADC_INJECTED_GROUP) 3347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to set ADSTP only when ADSTART=1 and ADDIS=0 */ 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) != 0UL) 3350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) 3352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop ADC group regular conversion */ 3354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StopConversion(hadc->Instance); 3355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop potential conversion on going on ADC group injected */ 3360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (conversion_group_reassigned != ADC_REGULAR_GROUP) 3361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to set JADSTP only when JADSTART=1 and ADDIS=0 */ 3363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) != 0UL) 3364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) 3366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop ADC group injected conversion */ 3368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_INJ_StopConversion(hadc->Instance); 3369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Selection of start and stop bits with respect to the regular or injected group */ 3374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (conversion_group_reassigned) 3375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_REGULAR_INJECTED_GROUP: 3377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = (ADC_CR_ADSTART | ADC_CR_JADSTART); 3378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_INJECTED_GROUP: 3380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_JADSTART; 3381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case ADC_REGULAR_GROUP only*/ 3383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 3384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_ADSTART; 3385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 213 3387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait for conversion effectively stopped */ 3389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_STOP_CONVERSION_TIMEOUT) 3394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable the selected ADC. 3417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC must be disabled 3418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * and voltage regulator must be enabled (done into HAL_ADC_Init()). 3419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc) 3423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ 3427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabling phase not yet completed: flag ADC ready not yet set). */ 3428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ 3429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* causes: ADC clock not running, ...). */ 3430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if conditions to enable the ADC are fulfilled */ 3433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JADSTART | ADC_ 3434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 3435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 214 3444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 3446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait for ADC effectively enabled */ 3449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If ADEN bit is set less than 4 ADC clock cycles after the ADCAL bit 3454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** has been cleared (after a calibration), ADEN bit is reset by the 3455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** calibration logic. 3456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** The workaround is to continue setting ADEN until ADRDY is becomes 1. 3457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this 3458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4 ADC clock cycle duration */ 3459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Test of ADC enabled required due to hardware constraint to */ 3460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* not enable ADC if already enabled. */ 3461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 3467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Disable the selected ADC. 3489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be 3490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * stopped. 3491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc) 3495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 3498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification if ADC is not already disabled: */ 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */ ARM GAS /tmp/ccICigVb.s page 215 3501:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* disabled. */ 3502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL) 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) 3504:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if conditions to disable the ADC are fulfilled */ 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN) 3508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the ADC peripheral */ 3510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Disable(hadc->Instance); 3511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 3512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait for ADC effectively disabled */ 3525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 3526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 3531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DMA transfer complete callback. 3553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) 3557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 216 3558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 3560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL) 3563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 3565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 3566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 3568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 3569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to disable interruption. */ 3570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Is it the end of the regular sequence ? */ 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL) 3572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Are conversions software-triggered ? */ 3574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 3575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Is CONT bit set ? */ 3577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL) 3578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CONT bit is not set, no more conversions expected */ 3580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DMA End of Transfer interrupt was triggered but conversions sequence 3591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** is not over. If DMACFG is set to 0, conversions are stopped. */ 3592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMACFG) == 0UL) 3593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DMACFG bit is not set, conversions are stopped. */ 3595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Conversion complete callback */ 3604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 3606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 3608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else /* DMA and-or internal error occurred */ 3611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL) 3613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Call HAL ADC Error Callback function */ ARM GAS /tmp/ccICigVb.s page 217 3615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 3619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Call ADC DMA error callback */ 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback(hdma); 3625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DMA half transfer complete callback. 3631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) 3635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1421 .loc 1 3635 1 is_stmt 1 view -0 1422 .cfi_startproc 1423 @ args = 0, pretend = 0, frame = 0 1424 @ frame_needed = 0, uses_anonymous_args = 0 1425 .loc 1 3635 1 is_stmt 0 view .LVU416 1426 0000 08B5 push {r3, lr} 1427 .LCFI11: 1428 .cfi_def_cfa_offset 8 1429 .cfi_offset 3, -8 1430 .cfi_offset 14, -4 3636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 1431 .loc 1 3637 3 is_stmt 1 view .LVU417 1432 .LVL102: 3638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Half conversion callback */ 3640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback(hadc); 3642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvHalfCpltCallback(hadc); 1433 .loc 1 3643 3 view .LVU418 1434 0002 806A ldr r0, [r0, #40] 1435 .LVL103: 1436 .loc 1 3643 3 is_stmt 0 view .LVU419 1437 0004 FFF7FEFF bl HAL_ADC_ConvHalfCpltCallback 1438 .LVL104: 3644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1439 .loc 1 3645 1 view .LVU420 1440 0008 08BD pop {r3, pc} 1441 .cfi_endproc 1442 .LFE357: 1444 .section .text.HAL_ADC_LevelOutOfWindowCallback,"ax",%progbits 1445 .align 1 1446 .weak HAL_ADC_LevelOutOfWindowCallback 1447 .syntax unified ARM GAS /tmp/ccICigVb.s page 218 1448 .thumb 1449 .thumb_func 1451 HAL_ADC_LevelOutOfWindowCallback: 1452 .LVL105: 1453 .LFB347: 2691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1454 .loc 1 2691 1 is_stmt 1 view -0 1455 .cfi_startproc 1456 @ args = 0, pretend = 0, frame = 0 1457 @ frame_needed = 0, uses_anonymous_args = 0 1458 @ link register save eliminated. 2693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1459 .loc 1 2693 3 view .LVU422 2698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1460 .loc 1 2698 1 is_stmt 0 view .LVU423 1461 0000 7047 bx lr 1462 .cfi_endproc 1463 .LFE347: 1465 .section .text.HAL_ADC_ErrorCallback,"ax",%progbits 1466 .align 1 1467 .weak HAL_ADC_ErrorCallback 1468 .syntax unified 1469 .thumb 1470 .thumb_func 1472 HAL_ADC_ErrorCallback: 1473 .LVL106: 1474 .LFB348: 2713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1475 .loc 1 2713 1 is_stmt 1 view -0 1476 .cfi_startproc 1477 @ args = 0, pretend = 0, frame = 0 1478 @ frame_needed = 0, uses_anonymous_args = 0 1479 @ link register save eliminated. 2715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1480 .loc 1 2715 3 view .LVU425 2720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1481 .loc 1 2720 1 is_stmt 0 view .LVU426 1482 0000 7047 bx lr 1483 .cfi_endproc 1484 .LFE348: 1486 .section .text.HAL_ADC_IRQHandler,"ax",%progbits 1487 .align 1 1488 .global HAL_ADC_IRQHandler 1489 .syntax unified 1490 .thumb 1491 .thumb_func 1493 HAL_ADC_IRQHandler: 1494 .LVL107: 1495 .LFB344: 2289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 1496 .loc 1 2289 1 is_stmt 1 view -0 1497 .cfi_startproc 1498 @ args = 0, pretend = 0, frame = 0 1499 @ frame_needed = 0, uses_anonymous_args = 0 2289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t overrun_error = 0UL; /* flag set if overrun occurrence has to be considered as an error 1500 .loc 1 2289 1 is_stmt 0 view .LVU428 1501 0000 F8B5 push {r3, r4, r5, r6, r7, lr} ARM GAS /tmp/ccICigVb.s page 219 1502 .LCFI12: 1503 .cfi_def_cfa_offset 24 1504 .cfi_offset 3, -24 1505 .cfi_offset 4, -20 1506 .cfi_offset 5, -16 1507 .cfi_offset 6, -12 1508 .cfi_offset 7, -8 1509 .cfi_offset 14, -4 1510 0002 0446 mov r4, r0 2290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 1511 .loc 1 2290 3 is_stmt 1 view .LVU429 1512 .LVL108: 2291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1513 .loc 1 2291 3 view .LVU430 2291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1514 .loc 1 2291 26 is_stmt 0 view .LVU431 1515 0004 0368 ldr r3, [r0] 2291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1516 .loc 1 2291 12 view .LVU432 1517 0006 1F68 ldr r7, [r3] 1518 .LVL109: 2292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 1519 .loc 1 2292 3 is_stmt 1 view .LVU433 2292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 1520 .loc 1 2292 12 is_stmt 0 view .LVU434 1521 0008 5D68 ldr r5, [r3, #4] 1522 .LVL110: 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 1523 .loc 1 2293 3 is_stmt 1 view .LVU435 2294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 1524 .loc 1 2294 3 view .LVU436 2295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1525 .loc 1 2295 3 view .LVU437 2297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1526 .loc 1 2297 3 view .LVU438 2298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 1527 .loc 1 2298 3 view .LVU439 1528 .LBB364: 1529 .LBI364: 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1530 .loc 2 6392 26 view .LVU440 1531 .LBB365: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1532 .loc 2 6394 3 view .LVU441 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1533 .loc 2 6394 21 is_stmt 0 view .LVU442 1534 000a 9A4B ldr r3, .L140 1535 000c 9E68 ldr r6, [r3, #8] 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1536 .loc 2 6394 10 view .LVU443 1537 000e 06F01F06 and r6, r6, #31 1538 .LVL111: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1539 .loc 2 6394 10 view .LVU444 1540 .LBE365: 1541 .LBE364: 2302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); ARM GAS /tmp/ccICigVb.s page 220 1542 .loc 1 2302 3 is_stmt 1 view .LVU445 2303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1543 .loc 1 2303 3 view .LVU446 2306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1544 .loc 1 2306 3 view .LVU447 2306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1545 .loc 1 2306 6 is_stmt 0 view .LVU448 1546 0012 17F0020F tst r7, #2 1547 0016 10D0 beq .L94 2306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1548 .loc 1 2306 54 discriminator 1 view .LVU449 1549 0018 15F0020F tst r5, #2 1550 001c 0DD0 beq .L94 2309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1551 .loc 1 2309 5 is_stmt 1 view .LVU450 2309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1552 .loc 1 2309 14 is_stmt 0 view .LVU451 1553 001e C36D ldr r3, [r0, #92] 2309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1554 .loc 1 2309 8 view .LVU452 1555 0020 13F0100F tst r3, #16 1556 0024 03D1 bne .L95 2312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1557 .loc 1 2312 7 is_stmt 1 view .LVU453 1558 0026 C36D ldr r3, [r0, #92] 1559 0028 43F40063 orr r3, r3, #2048 1560 002c C365 str r3, [r0, #92] 1561 .L95: 2319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1562 .loc 1 2319 5 view .LVU454 1563 002e 2046 mov r0, r4 1564 .LVL112: 2319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1565 .loc 1 2319 5 is_stmt 0 view .LVU455 1566 0030 FFF7FEFF bl HAL_ADCEx_EndOfSamplingCallback 1567 .LVL113: 2323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1568 .loc 1 2323 5 is_stmt 1 view .LVU456 1569 0034 2368 ldr r3, [r4] 1570 0036 0222 movs r2, #2 1571 0038 1A60 str r2, [r3] 1572 .L94: 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1573 .loc 1 2327 3 view .LVU457 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1574 .loc 1 2327 6 is_stmt 0 view .LVU458 1575 003a 17F0040F tst r7, #4 1576 003e 02D0 beq .L96 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1577 .loc 1 2327 51 discriminator 1 view .LVU459 1578 0040 15F0040F tst r5, #4 1579 0044 05D1 bne .L97 1580 .L96: 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_EOS) == ADC_FLAG_EOS) && ((tmp_ier & ADC_IT_EOS) == ADC_IT_EOS))) 1581 .loc 1 2327 94 discriminator 3 view .LVU460 1582 0046 17F0080F tst r7, #8 1583 004a 4DD0 beq .L98 ARM GAS /tmp/ccICigVb.s page 221 2328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1584 .loc 1 2328 51 view .LVU461 1585 004c 15F0080F tst r5, #8 1586 0050 4AD0 beq .L98 1587 .L97: 2331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1588 .loc 1 2331 5 is_stmt 1 view .LVU462 2331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1589 .loc 1 2331 14 is_stmt 0 view .LVU463 1590 0052 E36D ldr r3, [r4, #92] 2331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1591 .loc 1 2331 8 view .LVU464 1592 0054 13F0100F tst r3, #16 1593 0058 03D1 bne .L99 2334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1594 .loc 1 2334 7 is_stmt 1 view .LVU465 1595 005a E36D ldr r3, [r4, #92] 1596 005c 43F40073 orr r3, r3, #512 1597 0060 E365 str r3, [r4, #92] 1598 .L99: 2340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1599 .loc 1 2340 5 view .LVU466 2340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1600 .loc 1 2340 9 is_stmt 0 view .LVU467 1601 0062 2368 ldr r3, [r4] 1602 .LVL114: 1603 .LBB366: 1604 .LBI366: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1605 .loc 2 3747 26 is_stmt 1 view .LVU468 1606 .LBB367: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1607 .loc 2 3749 3 view .LVU469 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1608 .loc 2 3749 12 is_stmt 0 view .LVU470 1609 0064 DA68 ldr r2, [r3, #12] 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1610 .loc 2 3749 103 view .LVU471 1611 0066 12F4406F tst r2, #3072 1612 006a 37D1 bne .L100 1613 .LVL115: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1614 .loc 2 3749 103 view .LVU472 1615 .LBE367: 1616 .LBE366: 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1617 .loc 1 2346 7 is_stmt 1 view .LVU473 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1618 .loc 1 2346 12 is_stmt 0 view .LVU474 1619 006c 824A ldr r2, .L140+4 1620 006e 9342 cmp r3, r2 1621 0070 0CD0 beq .L134 1622 0072 1A46 mov r2, r3 1623 .L101: 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1624 .loc 1 2346 10 discriminator 4 view .LVU475 1625 0074 9342 cmp r3, r2 ARM GAS /tmp/ccICigVb.s page 222 1626 0076 0CD0 beq .L102 1627 0078 092E cmp r6, #9 1628 007a 05D8 bhi .L103 1629 007c 40F22121 movw r1, #545 1630 0080 F140 lsrs r1, r1, r6 1631 0082 11F0010F tst r1, #1 1632 0086 04D1 bne .L102 1633 .L103: 2358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1634 .loc 1 2358 9 is_stmt 1 discriminator 4 view .LVU476 1635 .LVL116: 2359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1636 .loc 1 2359 9 discriminator 4 view .LVU477 2359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1637 .loc 1 2359 18 is_stmt 0 discriminator 4 view .LVU478 1638 0088 D268 ldr r2, [r2, #12] 1639 .LVL117: 2359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1640 .loc 1 2359 18 discriminator 4 view .LVU479 1641 008a 03E0 b .L104 1642 .LVL118: 1643 .L134: 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1644 .loc 1 2346 12 view .LVU480 1645 008c 4FF0A042 mov r2, #1342177280 1646 0090 F0E7 b .L101 1647 .L102: 2353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1648 .loc 1 2353 9 is_stmt 1 view .LVU481 2353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1649 .loc 1 2353 18 is_stmt 0 view .LVU482 1650 0092 DA68 ldr r2, [r3, #12] 1651 .LVL119: 1652 .L104: 2366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1653 .loc 1 2366 7 is_stmt 1 view .LVU483 2366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1654 .loc 1 2366 10 is_stmt 0 view .LVU484 1655 0094 12F4005F tst r2, #8192 1656 0098 20D1 bne .L100 2369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1657 .loc 1 2369 9 is_stmt 1 view .LVU485 2369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1658 .loc 1 2369 13 is_stmt 0 view .LVU486 1659 009a 1A68 ldr r2, [r3] 1660 .LVL120: 2369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1661 .loc 1 2369 12 view .LVU487 1662 009c 12F0080F tst r2, #8 1663 00a0 1CD0 beq .L100 2373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1664 .loc 1 2373 11 is_stmt 1 view .LVU488 1665 .LVL121: 1666 .LBB368: 1667 .LBI368: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1668 .loc 2 6851 26 view .LVU489 ARM GAS /tmp/ccICigVb.s page 223 1669 .LBB369: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1670 .loc 2 6853 3 view .LVU490 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1671 .loc 2 6853 12 is_stmt 0 view .LVU491 1672 00a2 9A68 ldr r2, [r3, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1673 .loc 2 6853 74 view .LVU492 1674 00a4 12F0040F tst r2, #4 1675 00a8 10D1 bne .L105 1676 .LVL122: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1677 .loc 2 6853 74 view .LVU493 1678 .LBE369: 1679 .LBE368: 2379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1680 .loc 1 2379 13 is_stmt 1 view .LVU494 1681 00aa 5A68 ldr r2, [r3, #4] 1682 00ac 22F00C02 bic r2, r2, #12 1683 00b0 5A60 str r2, [r3, #4] 2382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1684 .loc 1 2382 13 view .LVU495 1685 00b2 E36D ldr r3, [r4, #92] 1686 00b4 23F48073 bic r3, r3, #256 1687 00b8 E365 str r3, [r4, #92] 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1688 .loc 1 2384 13 view .LVU496 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1689 .loc 1 2384 22 is_stmt 0 view .LVU497 1690 00ba E36D ldr r3, [r4, #92] 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1691 .loc 1 2384 16 view .LVU498 1692 00bc 13F4805F tst r3, #4096 1693 00c0 0CD1 bne .L100 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1694 .loc 1 2386 15 is_stmt 1 view .LVU499 1695 00c2 E36D ldr r3, [r4, #92] 1696 00c4 43F00103 orr r3, r3, #1 1697 00c8 E365 str r3, [r4, #92] 1698 00ca 07E0 b .L100 1699 .LVL123: 1700 .L105: 2392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1701 .loc 1 2392 13 view .LVU500 1702 00cc E36D ldr r3, [r4, #92] 1703 00ce 43F01003 orr r3, r3, #16 1704 00d2 E365 str r3, [r4, #92] 2395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1705 .loc 1 2395 13 view .LVU501 1706 00d4 236E ldr r3, [r4, #96] 1707 00d6 43F00103 orr r3, r3, #1 1708 00da 2366 str r3, [r4, #96] 1709 .LVL124: 1710 .L100: 2409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1711 .loc 1 2409 5 view .LVU502 1712 00dc 2046 mov r0, r4 ARM GAS /tmp/ccICigVb.s page 224 1713 00de FFF7FEFF bl HAL_ADC_ConvCpltCallback 1714 .LVL125: 2417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1715 .loc 1 2417 5 view .LVU503 1716 00e2 2368 ldr r3, [r4] 1717 00e4 0C22 movs r2, #12 1718 00e6 1A60 str r2, [r3] 1719 .L98: 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1720 .loc 1 2421 3 view .LVU504 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1721 .loc 1 2421 6 is_stmt 0 view .LVU505 1722 00e8 17F0200F tst r7, #32 1723 00ec 02D0 beq .L107 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1724 .loc 1 2421 53 discriminator 1 view .LVU506 1725 00ee 15F0200F tst r5, #32 1726 00f2 05D1 bne .L108 1727 .L107: 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (((tmp_isr & ADC_FLAG_JEOS) == ADC_FLAG_JEOS) && ((tmp_ier & ADC_IT_JEOS) == ADC_IT_JEOS))) 1728 .loc 1 2421 98 discriminator 3 view .LVU507 1729 00f4 17F0400F tst r7, #64 1730 00f8 5CD0 beq .L109 2422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1731 .loc 1 2422 53 view .LVU508 1732 00fa 15F0400F tst r5, #64 1733 00fe 59D0 beq .L109 1734 .L108: 2425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1735 .loc 1 2425 5 is_stmt 1 view .LVU509 2425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1736 .loc 1 2425 14 is_stmt 0 view .LVU510 1737 0100 E36D ldr r3, [r4, #92] 2425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1738 .loc 1 2425 8 view .LVU511 1739 0102 13F0100F tst r3, #16 1740 0106 03D1 bne .L110 2428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1741 .loc 1 2428 7 is_stmt 1 view .LVU512 1742 0108 E36D ldr r3, [r4, #92] 1743 010a 43F40053 orr r3, r3, #8192 1744 010e E365 str r3, [r4, #92] 1745 .L110: 2432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1746 .loc 1 2432 5 view .LVU513 2432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1747 .loc 1 2432 46 is_stmt 0 view .LVU514 1748 0110 2368 ldr r3, [r4] 1749 .LVL126: 1750 .LBB370: 1751 .LBI370: 4534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1752 .loc 2 4534 26 is_stmt 1 view .LVU515 1753 .LBB371: 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1754 .loc 2 4536 3 view .LVU516 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/ccICigVb.s page 225 1755 .loc 2 4536 12 is_stmt 0 view .LVU517 1756 0112 DA6C ldr r2, [r3, #76] 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1757 .loc 2 4536 105 view .LVU518 1758 0114 12F4C07F tst r2, #384 1759 0118 12D1 bne .L130 1760 011a 0121 movs r1, #1 1761 .L111: 1762 .LVL127: 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1763 .loc 2 4536 105 view .LVU519 1764 .LBE371: 1765 .LBE370: 2433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1766 .loc 1 2433 5 is_stmt 1 view .LVU520 1767 .LBB373: 1768 .LBI373: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1769 .loc 2 3747 26 view .LVU521 1770 .LBB374: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1771 .loc 2 3749 3 view .LVU522 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1772 .loc 2 3749 12 is_stmt 0 view .LVU523 1773 011c DA68 ldr r2, [r3, #12] 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1774 .loc 2 3749 103 view .LVU524 1775 011e 12F4406F tst r2, #3072 1776 0122 0FD1 bne .L131 1777 0124 0120 movs r0, #1 1778 .L112: 1779 .LVL128: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1780 .loc 2 3749 103 view .LVU525 1781 .LBE374: 1782 .LBE373: 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1783 .loc 1 2438 5 is_stmt 1 view .LVU526 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1784 .loc 1 2438 10 is_stmt 0 view .LVU527 1785 0126 544A ldr r2, .L140+4 1786 0128 9342 cmp r3, r2 1787 012a 0DD0 beq .L135 1788 012c 1A46 mov r2, r3 1789 .L113: 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1790 .loc 1 2438 8 discriminator 4 view .LVU528 1791 012e 9342 cmp r3, r2 1792 0130 0DD0 beq .L114 2439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_SIMULT) 1793 .loc 1 2439 9 view .LVU529 1794 0132 66B1 cbz r6, .L114 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 1795 .loc 1 2440 9 view .LVU530 1796 0134 062E cmp r6, #6 1797 0136 0AD0 beq .L114 2441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) ARM GAS /tmp/ccICigVb.s page 226 1798 .loc 1 2441 9 view .LVU531 1799 0138 072E cmp r6, #7 1800 013a 08D0 beq .L114 2448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1801 .loc 1 2448 7 is_stmt 1 discriminator 4 view .LVU532 1802 .LVL129: 2449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1803 .loc 1 2449 7 discriminator 4 view .LVU533 2449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1804 .loc 1 2449 16 is_stmt 0 discriminator 4 view .LVU534 1805 013c D268 ldr r2, [r2, #12] 1806 .LVL130: 2449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1807 .loc 1 2449 16 discriminator 4 view .LVU535 1808 013e 07E0 b .L116 1809 .LVL131: 1810 .L130: 1811 .LBB376: 1812 .LBB372: 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1813 .loc 2 4536 105 view .LVU536 1814 0140 0021 movs r1, #0 1815 0142 EBE7 b .L111 1816 .LVL132: 1817 .L131: 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1818 .loc 2 4536 105 view .LVU537 1819 .LBE372: 1820 .LBE376: 1821 .LBB377: 1822 .LBB375: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1823 .loc 2 3749 103 view .LVU538 1824 0144 0020 movs r0, #0 1825 0146 EEE7 b .L112 1826 .LVL133: 1827 .L135: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1828 .loc 2 3749 103 view .LVU539 1829 .LBE375: 1830 .LBE377: 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1831 .loc 1 2438 10 view .LVU540 1832 0148 4FF0A042 mov r2, #1342177280 1833 014c EFE7 b .L113 1834 .L114: 2444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1835 .loc 1 2444 7 is_stmt 1 view .LVU541 2444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1836 .loc 1 2444 16 is_stmt 0 view .LVU542 1837 014e DA68 ldr r2, [r3, #12] 1838 .LVL134: 1839 .L116: 2460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1840 .loc 1 2460 5 is_stmt 1 view .LVU543 2460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1841 .loc 1 2460 8 is_stmt 0 view .LVU544 ARM GAS /tmp/ccICigVb.s page 227 1842 0150 51B3 cbz r1, .L117 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1843 .loc 1 2462 7 is_stmt 1 view .LVU545 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1844 .loc 1 2462 10 is_stmt 0 view .LVU546 1845 0152 12F0007F tst r2, #33554432 1846 0156 03D0 beq .L118 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1847 .loc 1 2462 55 discriminator 1 view .LVU547 1848 0158 30B3 cbz r0, .L117 2463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 1849 .loc 1 2463 60 view .LVU548 1850 015a 12F4005F tst r2, #8192 1851 015e 23D1 bne .L117 1852 .L118: 2467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1853 .loc 1 2467 9 is_stmt 1 view .LVU549 2467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1854 .loc 1 2467 13 is_stmt 0 view .LVU550 1855 0160 1968 ldr r1, [r3] 1856 .LVL135: 2467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1857 .loc 1 2467 12 view .LVU551 1858 0162 11F0400F tst r1, #64 1859 0166 1FD0 beq .L117 2475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1860 .loc 1 2475 11 is_stmt 1 view .LVU552 2475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1861 .loc 1 2475 14 is_stmt 0 view .LVU553 1862 0168 12F4001F tst r2, #2097152 1863 016c 1CD1 bne .L117 2479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1864 .loc 1 2479 13 is_stmt 1 view .LVU554 1865 .LVL136: 1866 .LBB378: 1867 .LBI378: 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1868 .loc 2 7076 26 view .LVU555 1869 .LBB379: 1870 .loc 2 7078 3 view .LVU556 1871 .loc 2 7078 12 is_stmt 0 view .LVU557 1872 016e 9A68 ldr r2, [r3, #8] 1873 .LVL137: 1874 .loc 2 7078 76 view .LVU558 1875 0170 12F0080F tst r2, #8 1876 0174 10D1 bne .L119 1877 .LVL138: 1878 .loc 2 7078 76 view .LVU559 1879 .LBE379: 1880 .LBE378: 2482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1881 .loc 1 2482 15 is_stmt 1 view .LVU560 1882 0176 5A68 ldr r2, [r3, #4] 1883 0178 22F06002 bic r2, r2, #96 1884 017c 5A60 str r2, [r3, #4] 2485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1885 .loc 1 2485 15 view .LVU561 ARM GAS /tmp/ccICigVb.s page 228 1886 017e E36D ldr r3, [r4, #92] 1887 0180 23F48053 bic r3, r3, #4096 1888 0184 E365 str r3, [r4, #92] 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1889 .loc 1 2487 15 view .LVU562 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1890 .loc 1 2487 24 is_stmt 0 view .LVU563 1891 0186 E36D ldr r3, [r4, #92] 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1892 .loc 1 2487 18 view .LVU564 1893 0188 13F4807F tst r3, #256 1894 018c 0CD1 bne .L117 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1895 .loc 1 2489 17 is_stmt 1 view .LVU565 1896 018e E36D ldr r3, [r4, #92] 1897 0190 43F00103 orr r3, r3, #1 1898 0194 E365 str r3, [r4, #92] 1899 0196 07E0 b .L117 1900 .LVL139: 1901 .L119: 2495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1902 .loc 1 2495 15 view .LVU566 1903 0198 E36D ldr r3, [r4, #92] 1904 019a 43F01003 orr r3, r3, #16 1905 019e E365 str r3, [r4, #92] 2498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1906 .loc 1 2498 15 view .LVU567 1907 01a0 236E ldr r3, [r4, #96] 1908 01a2 43F00103 orr r3, r3, #1 1909 01a6 2366 str r3, [r4, #96] 1910 .L117: 2514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1911 .loc 1 2514 5 view .LVU568 1912 01a8 2046 mov r0, r4 1913 .LVL140: 2514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1914 .loc 1 2514 5 is_stmt 0 view .LVU569 1915 01aa FFF7FEFF bl HAL_ADCEx_InjectedConvCpltCallback 1916 .LVL141: 2518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1917 .loc 1 2518 5 is_stmt 1 view .LVU570 1918 01ae 2368 ldr r3, [r4] 1919 01b0 6022 movs r2, #96 1920 01b2 1A60 str r2, [r3] 1921 .LVL142: 1922 .L109: 2522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1923 .loc 1 2522 3 view .LVU571 2522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1924 .loc 1 2522 6 is_stmt 0 view .LVU572 1925 01b4 17F0800F tst r7, #128 1926 01b8 02D0 beq .L121 2522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1927 .loc 1 2522 52 discriminator 1 view .LVU573 1928 01ba 15F0800F tst r5, #128 1929 01be 2FD1 bne .L136 1930 .L121: ARM GAS /tmp/ccICigVb.s page 229 2539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1931 .loc 1 2539 3 is_stmt 1 view .LVU574 2539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1932 .loc 1 2539 6 is_stmt 0 view .LVU575 1933 01c0 17F4807F tst r7, #256 1934 01c4 02D0 beq .L122 2539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1935 .loc 1 2539 52 discriminator 1 view .LVU576 1936 01c6 15F4807F tst r5, #256 1937 01ca 34D1 bne .L137 1938 .L122: 2556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1939 .loc 1 2556 3 is_stmt 1 view .LVU577 2556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1940 .loc 1 2556 6 is_stmt 0 view .LVU578 1941 01cc 17F4007F tst r7, #512 1942 01d0 02D0 beq .L123 2556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1943 .loc 1 2556 52 discriminator 1 view .LVU579 1944 01d2 15F4007F tst r5, #512 1945 01d6 3AD1 bne .L138 1946 .L123: 2573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1947 .loc 1 2573 3 is_stmt 1 view .LVU580 2573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1948 .loc 1 2573 6 is_stmt 0 view .LVU581 1949 01d8 17F0100F tst r7, #16 1950 01dc 19D0 beq .L124 2573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1951 .loc 1 2573 50 discriminator 1 view .LVU582 1952 01de 15F0100F tst r5, #16 1953 01e2 16D0 beq .L124 2581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1954 .loc 1 2581 5 is_stmt 1 view .LVU583 2581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1955 .loc 1 2581 19 is_stmt 0 view .LVU584 1956 01e4 E36B ldr r3, [r4, #60] 2581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1957 .loc 1 2581 8 view .LVU585 1958 01e6 33B1 cbz r3, .L125 2589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1959 .loc 1 2589 7 is_stmt 1 view .LVU586 2589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1960 .loc 1 2589 10 is_stmt 0 view .LVU587 1961 01e8 002E cmp r6, #0 1962 01ea 3CD0 beq .L126 2593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1963 .loc 1 2593 9 is_stmt 1 view .LVU588 1964 .LVL143: 1965 .LBB380: 1966 .LBI380: 6489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1967 .loc 2 6489 26 view .LVU589 1968 .LBB381: 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1969 .loc 2 6491 3 view .LVU590 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/ccICigVb.s page 230 1970 .loc 2 6491 21 is_stmt 0 view .LVU591 1971 01ec 214B ldr r3, .L140 1972 01ee 9B68 ldr r3, [r3, #8] 1973 .LVL144: 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1974 .loc 2 6491 21 view .LVU592 1975 .LBE381: 1976 .LBE380: 2593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1977 .loc 1 2593 12 view .LVU593 1978 01f0 13F4604F tst r3, #57344 1979 01f4 0AD0 beq .L127 1980 .L125: 1981 .LVL145: 2612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1982 .loc 1 2612 7 is_stmt 1 view .LVU594 1983 01f6 E36D ldr r3, [r4, #92] 1984 01f8 43F48063 orr r3, r3, #1024 1985 01fc E365 str r3, [r4, #92] 2615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1986 .loc 1 2615 7 view .LVU595 1987 01fe 236E ldr r3, [r4, #96] 1988 0200 43F00203 orr r3, r3, #2 1989 0204 2366 str r3, [r4, #96] 2625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1990 .loc 1 2625 7 view .LVU596 1991 0206 2046 mov r0, r4 1992 0208 FFF7FEFF bl HAL_ADC_ErrorCallback 1993 .LVL146: 1994 .L127: 2630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1995 .loc 1 2630 5 view .LVU597 1996 020c 2368 ldr r3, [r4] 1997 020e 1022 movs r2, #16 1998 0210 1A60 str r2, [r3] 1999 .L124: 2634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2000 .loc 1 2634 3 view .LVU598 2634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2001 .loc 1 2634 6 is_stmt 0 view .LVU599 2002 0212 17F4806F tst r7, #1024 2003 0216 02D0 beq .L93 2634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2004 .loc 1 2634 54 discriminator 1 view .LVU600 2005 0218 15F4806F tst r5, #1024 2006 021c 2ED1 bne .L139 2007 .L93: 2653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2008 .loc 1 2653 1 view .LVU601 2009 021e F8BD pop {r3, r4, r5, r6, r7, pc} 2010 .LVL147: 2011 .L136: 2525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2012 .loc 1 2525 5 is_stmt 1 view .LVU602 2013 0220 E36D ldr r3, [r4, #92] 2014 0222 43F48033 orr r3, r3, #65536 2015 0226 E365 str r3, [r4, #92] ARM GAS /tmp/ccICigVb.s page 231 2531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2016 .loc 1 2531 5 view .LVU603 2017 0228 2046 mov r0, r4 2018 022a FFF7FEFF bl HAL_ADC_LevelOutOfWindowCallback 2019 .LVL148: 2535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2020 .loc 1 2535 5 view .LVU604 2021 022e 2368 ldr r3, [r4] 2022 0230 8022 movs r2, #128 2023 0232 1A60 str r2, [r3] 2024 0234 C4E7 b .L121 2025 .L137: 2542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2026 .loc 1 2542 5 view .LVU605 2027 0236 E36D ldr r3, [r4, #92] 2028 0238 43F40033 orr r3, r3, #131072 2029 023c E365 str r3, [r4, #92] 2548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2030 .loc 1 2548 5 view .LVU606 2031 023e 2046 mov r0, r4 2032 0240 FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow2Callback 2033 .LVL149: 2552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2034 .loc 1 2552 5 view .LVU607 2035 0244 2368 ldr r3, [r4] 2036 0246 4FF48072 mov r2, #256 2037 024a 1A60 str r2, [r3] 2038 024c BEE7 b .L122 2039 .L138: 2559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2040 .loc 1 2559 5 view .LVU608 2041 024e E36D ldr r3, [r4, #92] 2042 0250 43F48023 orr r3, r3, #262144 2043 0254 E365 str r3, [r4, #92] 2565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2044 .loc 1 2565 5 view .LVU609 2045 0256 2046 mov r0, r4 2046 0258 FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow3Callback 2047 .LVL150: 2569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2048 .loc 1 2569 5 view .LVU610 2049 025c 2368 ldr r3, [r4] 2050 025e 4FF40072 mov r2, #512 2051 0262 1A60 str r2, [r3] 2052 0264 B8E7 b .L123 2053 .L126: 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2054 .loc 1 2602 9 view .LVU611 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2055 .loc 1 2602 18 is_stmt 0 view .LVU612 2056 0266 2368 ldr r3, [r4] 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2057 .loc 1 2602 28 view .LVU613 2058 0268 DB68 ldr r3, [r3, #12] 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2059 .loc 1 2602 12 view .LVU614 2060 026a 13F0010F tst r3, #1 ARM GAS /tmp/ccICigVb.s page 232 2061 026e CDD0 beq .L127 2062 0270 C1E7 b .L125 2063 .L141: 2064 0272 00BF .align 2 2065 .L140: 2066 0274 00030050 .word 1342178048 2067 0278 00010050 .word 1342177536 2068 .LVL151: 2069 .L139: 2637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2070 .loc 1 2637 5 is_stmt 1 view .LVU615 2071 027c E36D ldr r3, [r4, #92] 2072 027e 43F48043 orr r3, r3, #16384 2073 0282 E365 str r3, [r4, #92] 2640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2074 .loc 1 2640 5 view .LVU616 2075 0284 236E ldr r3, [r4, #96] 2076 0286 43F00803 orr r3, r3, #8 2077 028a 2366 str r3, [r4, #96] 2643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2078 .loc 1 2643 5 view .LVU617 2079 028c 2368 ldr r3, [r4] 2080 028e 4FF48062 mov r2, #1024 2081 0292 1A60 str r2, [r3] 2649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2082 .loc 1 2649 5 view .LVU618 2083 0294 2046 mov r0, r4 2084 0296 FFF7FEFF bl HAL_ADCEx_InjectedQueueOverflowCallback 2085 .LVL152: 2653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2086 .loc 1 2653 1 is_stmt 0 view .LVU619 2087 029a C0E7 b .L93 2088 .cfi_endproc 2089 .LFE344: 2091 .section .text.ADC_DMAConvCplt,"ax",%progbits 2092 .align 1 2093 .global ADC_DMAConvCplt 2094 .syntax unified 2095 .thumb 2096 .thumb_func 2098 ADC_DMAConvCplt: 2099 .LVL153: 2100 .LFB356: 3557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 2101 .loc 1 3557 1 is_stmt 1 view -0 2102 .cfi_startproc 2103 @ args = 0, pretend = 0, frame = 0 2104 @ frame_needed = 0, uses_anonymous_args = 0 3557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 2105 .loc 1 3557 1 is_stmt 0 view .LVU621 2106 0000 08B5 push {r3, lr} 2107 .LCFI13: 2108 .cfi_def_cfa_offset 8 2109 .cfi_offset 3, -8 2110 .cfi_offset 14, -4 2111 0002 0346 mov r3, r0 3559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 233 2112 .loc 1 3559 3 is_stmt 1 view .LVU622 3559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2113 .loc 1 3559 22 is_stmt 0 view .LVU623 2114 0004 806A ldr r0, [r0, #40] 2115 .LVL154: 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2116 .loc 1 3562 3 is_stmt 1 view .LVU624 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2117 .loc 1 3562 12 is_stmt 0 view .LVU625 2118 0006 C26D ldr r2, [r0, #92] 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2119 .loc 1 3562 6 view .LVU626 2120 0008 12F0500F tst r2, #80 2121 000c 30D1 bne .L143 3565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2122 .loc 1 3565 5 is_stmt 1 view .LVU627 2123 000e C36D ldr r3, [r0, #92] 2124 .LVL155: 3565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2125 .loc 1 3565 5 is_stmt 0 view .LVU628 2126 0010 43F40073 orr r3, r3, #512 2127 0014 C365 str r3, [r0, #92] 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2128 .loc 1 3571 5 is_stmt 1 view .LVU629 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2129 .loc 1 3571 14 is_stmt 0 view .LVU630 2130 0016 0368 ldr r3, [r0] 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2131 .loc 1 3571 24 view .LVU631 2132 0018 1A68 ldr r2, [r3] 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2133 .loc 1 3571 8 view .LVU632 2134 001a 12F0080F tst r2, #8 2135 001e 14D0 beq .L144 3574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2136 .loc 1 3574 7 is_stmt 1 view .LVU633 2137 .LVL156: 2138 .LBB382: 2139 .LBI382: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2140 .loc 2 3747 26 view .LVU634 2141 .LBB383: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2142 .loc 2 3749 3 view .LVU635 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2143 .loc 2 3749 12 is_stmt 0 view .LVU636 2144 0020 DA68 ldr r2, [r3, #12] 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2145 .loc 2 3749 103 view .LVU637 2146 0022 12F4406F tst r2, #3072 2147 0026 20D1 bne .L145 2148 .LVL157: 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2149 .loc 2 3749 103 view .LVU638 2150 .LBE383: 2151 .LBE382: 3577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 234 2152 .loc 1 3577 9 is_stmt 1 view .LVU639 3577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2153 .loc 1 3577 13 is_stmt 0 view .LVU640 2154 0028 DB68 ldr r3, [r3, #12] 3577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2155 .loc 1 3577 12 view .LVU641 2156 002a 13F4005F tst r3, #8192 2157 002e 1CD1 bne .L145 3580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2158 .loc 1 3580 11 is_stmt 1 view .LVU642 2159 0030 C36D ldr r3, [r0, #92] 2160 0032 23F48073 bic r3, r3, #256 2161 0036 C365 str r3, [r0, #92] 3581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2162 .loc 1 3581 11 view .LVU643 3581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2163 .loc 1 3581 20 is_stmt 0 view .LVU644 2164 0038 C36D ldr r3, [r0, #92] 3581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2165 .loc 1 3581 14 view .LVU645 2166 003a 13F4805F tst r3, #4096 2167 003e 14D1 bne .L145 3583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2168 .loc 1 3583 13 is_stmt 1 view .LVU646 2169 0040 C36D ldr r3, [r0, #92] 2170 0042 43F00103 orr r3, r3, #1 2171 0046 C365 str r3, [r0, #92] 2172 0048 0FE0 b .L145 2173 .L144: 3592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2174 .loc 1 3592 7 view .LVU647 3592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2175 .loc 1 3592 11 is_stmt 0 view .LVU648 2176 004a DB68 ldr r3, [r3, #12] 3592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2177 .loc 1 3592 10 view .LVU649 2178 004c 13F0020F tst r3, #2 2179 0050 0BD1 bne .L145 3595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2180 .loc 1 3595 9 is_stmt 1 view .LVU650 2181 0052 C36D ldr r3, [r0, #92] 2182 0054 23F48073 bic r3, r3, #256 2183 0058 C365 str r3, [r0, #92] 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2184 .loc 1 3596 9 view .LVU651 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2185 .loc 1 3596 18 is_stmt 0 view .LVU652 2186 005a C36D ldr r3, [r0, #92] 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2187 .loc 1 3596 12 view .LVU653 2188 005c 13F4805F tst r3, #4096 2189 0060 03D1 bne .L145 3598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2190 .loc 1 3598 11 is_stmt 1 view .LVU654 2191 0062 C36D ldr r3, [r0, #92] 2192 0064 43F00103 orr r3, r3, #1 2193 0068 C365 str r3, [r0, #92] ARM GAS /tmp/ccICigVb.s page 235 2194 .L145: 3607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2195 .loc 1 3607 5 view .LVU655 2196 006a FFF7FEFF bl HAL_ADC_ConvCpltCallback 2197 .LVL158: 2198 .L142: 3627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2199 .loc 1 3627 1 is_stmt 0 view .LVU656 2200 006e 08BD pop {r3, pc} 2201 .LVL159: 2202 .L143: 3612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2203 .loc 1 3612 5 is_stmt 1 view .LVU657 3612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2204 .loc 1 3612 14 is_stmt 0 view .LVU658 2205 0070 C26D ldr r2, [r0, #92] 3612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2206 .loc 1 3612 8 view .LVU659 2207 0072 12F0100F tst r2, #16 2208 0076 04D1 bne .L149 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2209 .loc 1 3624 7 is_stmt 1 view .LVU660 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2210 .loc 1 3624 11 is_stmt 0 view .LVU661 2211 0078 426D ldr r2, [r0, #84] 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2212 .loc 1 3624 23 view .LVU662 2213 007a 526B ldr r2, [r2, #52] 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2214 .loc 1 3624 7 view .LVU663 2215 007c 1846 mov r0, r3 2216 .LVL160: 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2217 .loc 1 3624 7 view .LVU664 2218 007e 9047 blx r2 2219 .LVL161: 3627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2220 .loc 1 3627 1 view .LVU665 2221 0080 F5E7 b .L142 2222 .LVL162: 2223 .L149: 3618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2224 .loc 1 3618 7 is_stmt 1 view .LVU666 2225 0082 FFF7FEFF bl HAL_ADC_ErrorCallback 2226 .LVL163: 3618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2227 .loc 1 3618 7 is_stmt 0 view .LVU667 2228 0086 F2E7 b .L142 2229 .cfi_endproc 2230 .LFE356: 2232 .section .text.ADC_DMAError,"ax",%progbits 2233 .align 1 2234 .global ADC_DMAError 2235 .syntax unified 2236 .thumb 2237 .thumb_func 2239 ADC_DMAError: ARM GAS /tmp/ccICigVb.s page 236 2240 .LVL164: 2241 .LFB358: 3646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DMA error callback. 3649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAError(DMA_HandleTypeDef *hdma) 3653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2242 .loc 1 3653 1 is_stmt 1 view -0 2243 .cfi_startproc 2244 @ args = 0, pretend = 0, frame = 0 2245 @ frame_needed = 0, uses_anonymous_args = 0 2246 .loc 1 3653 1 is_stmt 0 view .LVU669 2247 0000 08B5 push {r3, lr} 2248 .LCFI14: 2249 .cfi_def_cfa_offset 8 2250 .cfi_offset 3, -8 2251 .cfi_offset 14, -4 3654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 2252 .loc 1 3655 3 is_stmt 1 view .LVU670 2253 .loc 1 3655 22 is_stmt 0 view .LVU671 2254 0002 806A ldr r0, [r0, #40] 2255 .LVL165: 3656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 2256 .loc 1 3658 3 is_stmt 1 view .LVU672 2257 0004 C36D ldr r3, [r0, #92] 2258 0006 43F04003 orr r3, r3, #64 2259 000a C365 str r3, [r0, #92] 3659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to DMA error */ 3661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 2260 .loc 1 3661 3 view .LVU673 2261 000c 036E ldr r3, [r0, #96] 2262 000e 43F00403 orr r3, r3, #4 2263 0012 0366 str r3, [r0, #96] 3662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Error callback */ 3664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 2264 .loc 1 3667 3 view .LVU674 2265 0014 FFF7FEFF bl HAL_ADC_ErrorCallback 2266 .LVL166: 3668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2267 .loc 1 3669 1 is_stmt 0 view .LVU675 2268 0018 08BD pop {r3, pc} 2269 .cfi_endproc 2270 .LFE358: 2272 .section .text.HAL_ADC_ConfigChannel,"ax",%progbits 2273 .align 1 ARM GAS /tmp/ccICigVb.s page 237 2274 .global HAL_ADC_ConfigChannel 2275 .syntax unified 2276 .thumb 2277 .thumb_func 2279 HAL_ADC_ConfigChannel: 2280 .LVL167: 2281 .LFB349: 2759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2282 .loc 1 2759 1 is_stmt 1 view -0 2283 .cfi_startproc 2284 @ args = 0, pretend = 0, frame = 8 2285 @ frame_needed = 0, uses_anonymous_args = 0 2759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2286 .loc 1 2759 1 is_stmt 0 view .LVU677 2287 0000 F0B5 push {r4, r5, r6, r7, lr} 2288 .LCFI15: 2289 .cfi_def_cfa_offset 20 2290 .cfi_offset 4, -20 2291 .cfi_offset 5, -16 2292 .cfi_offset 6, -12 2293 .cfi_offset 7, -8 2294 .cfi_offset 14, -4 2295 0002 83B0 sub sp, sp, #12 2296 .LCFI16: 2297 .cfi_def_cfa_offset 32 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2298 .loc 1 2760 3 is_stmt 1 view .LVU678 2299 .LVL168: 2761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_config_internal_channel; 2300 .loc 1 2761 3 view .LVU679 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 2301 .loc 1 2762 3 view .LVU680 2763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2302 .loc 1 2763 3 view .LVU681 2763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2303 .loc 1 2763 17 is_stmt 0 view .LVU682 2304 0004 0023 movs r3, #0 2305 0006 0193 str r3, [sp, #4] 2764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2306 .loc 1 2764 3 is_stmt 1 view .LVU683 2765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2307 .loc 1 2765 3 view .LVU684 2768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); 2308 .loc 1 2768 3 view .LVU685 2769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); 2309 .loc 1 2769 3 view .LVU686 2770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(sConfig->SingleDiff)); 2310 .loc 1 2770 3 view .LVU687 2771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(sConfig->OffsetNumber)); 2311 .loc 1 2771 3 view .LVU688 2772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), sConfig->Offset)); 2312 .loc 1 2772 3 view .LVU689 2773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2313 .loc 1 2773 3 view .LVU690 2777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2314 .loc 1 2777 3 view .LVU691 2780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 238 2315 .loc 1 2780 3 view .LVU692 2786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2316 .loc 1 2786 5 view .LVU693 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2317 .loc 1 2790 3 view .LVU694 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2318 .loc 1 2790 3 view .LVU695 2319 0008 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 2320 000c 012B cmp r3, #1 2321 000e 00F01E82 beq .L209 2322 0012 0446 mov r4, r0 2323 0014 0D46 mov r5, r1 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2324 .loc 1 2790 3 discriminator 2 view .LVU696 2325 0016 0123 movs r3, #1 2326 0018 80F85830 strb r3, [r0, #88] 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2327 .loc 1 2790 3 discriminator 2 view .LVU697 2797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2328 .loc 1 2797 3 discriminator 2 view .LVU698 2797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2329 .loc 1 2797 7 is_stmt 0 discriminator 2 view .LVU699 2330 001c 0068 ldr r0, [r0] 2331 .LVL169: 2332 .LBB384: 2333 .LBI384: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2334 .loc 2 6851 26 is_stmt 1 discriminator 2 view .LVU700 2335 .LBB385: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2336 .loc 2 6853 3 discriminator 2 view .LVU701 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2337 .loc 2 6853 12 is_stmt 0 discriminator 2 view .LVU702 2338 001e 8368 ldr r3, [r0, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2339 .loc 2 6853 74 discriminator 2 view .LVU703 2340 0020 13F0040F tst r3, #4 2341 0024 09D0 beq .L154 2342 .LVL170: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2343 .loc 2 6853 74 discriminator 2 view .LVU704 2344 .LBE385: 2345 .LBE384: 2957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2346 .loc 1 2957 5 is_stmt 1 view .LVU705 2347 0026 E36D ldr r3, [r4, #92] 2348 0028 43F02003 orr r3, r3, #32 2349 002c E365 str r3, [r4, #92] 2959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2350 .loc 1 2959 5 view .LVU706 2351 .LVL171: 2959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2352 .loc 1 2959 20 is_stmt 0 view .LVU707 2353 002e 0120 movs r0, #1 2354 .LVL172: 2355 .L155: 2963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 239 2356 .loc 1 2963 3 is_stmt 1 view .LVU708 2963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2357 .loc 1 2963 3 view .LVU709 2358 0030 0023 movs r3, #0 2359 0032 84F85830 strb r3, [r4, #88] 2963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2360 .loc 1 2963 3 view .LVU710 2966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2361 .loc 1 2966 3 view .LVU711 2362 .LVL173: 2363 .L153: 2967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2364 .loc 1 2967 1 is_stmt 0 view .LVU712 2365 0036 03B0 add sp, sp, #12 2366 .LCFI17: 2367 .cfi_remember_state 2368 .cfi_def_cfa_offset 20 2369 @ sp needed 2370 0038 F0BD pop {r4, r5, r6, r7, pc} 2371 .LVL174: 2372 .L154: 2373 .LCFI18: 2374 .cfi_restore_state 2800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2375 .loc 1 2800 5 is_stmt 1 view .LVU713 2376 003a 0A68 ldr r2, [r1] 2377 003c 4968 ldr r1, [r1, #4] 2378 .LVL175: 2800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2379 .loc 1 2800 5 is_stmt 0 view .LVU714 2380 003e FFF7FEFF bl LL_ADC_REG_SetSequencerRanks 2381 .LVL176: 2807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2382 .loc 1 2807 5 is_stmt 1 view .LVU715 2807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2383 .loc 1 2807 46 is_stmt 0 view .LVU716 2384 0042 2068 ldr r0, [r4] 2385 .LVL177: 2386 .LBB386: 2387 .LBI386: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2388 .loc 2 6851 26 is_stmt 1 view .LVU717 2389 .LBB387: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2390 .loc 2 6853 3 view .LVU718 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2391 .loc 2 6853 12 is_stmt 0 view .LVU719 2392 0044 8368 ldr r3, [r0, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2393 .loc 2 6853 74 view .LVU720 2394 0046 13F00403 ands r3, r3, #4 2395 004a 00D0 beq .L156 2396 004c 0123 movs r3, #1 2397 .L156: 2398 .LVL178: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2399 .loc 2 6853 74 view .LVU721 ARM GAS /tmp/ccICigVb.s page 240 2400 .LBE387: 2401 .LBE386: 2808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2402 .loc 1 2808 5 is_stmt 1 view .LVU722 2403 .LBB388: 2404 .LBI388: 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2405 .loc 2 7076 26 view .LVU723 2406 .LBB389: 2407 .loc 2 7078 3 view .LVU724 2408 .loc 2 7078 12 is_stmt 0 view .LVU725 2409 004e 8668 ldr r6, [r0, #8] 2410 .loc 2 7078 76 view .LVU726 2411 0050 16F00806 ands r6, r6, #8 2412 0054 00D0 beq .L157 2413 0056 0126 movs r6, #1 2414 .L157: 2415 .LVL179: 2416 .loc 2 7078 76 view .LVU727 2417 .LBE389: 2418 .LBE388: 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2419 .loc 1 2809 5 is_stmt 1 view .LVU728 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2420 .loc 1 2809 8 is_stmt 0 view .LVU729 2421 0058 002B cmp r3, #0 2422 005a 3ED1 bne .L158 2810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2423 .loc 1 2810 9 view .LVU730 2424 005c 002E cmp r6, #0 2425 005e 3CD1 bne .L158 2814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2426 .loc 1 2814 7 is_stmt 1 view .LVU731 2814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2427 .loc 1 2814 18 is_stmt 0 view .LVU732 2428 0060 AA68 ldr r2, [r5, #8] 2814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2429 .loc 1 2814 10 view .LVU733 2430 0062 B2F1004F cmp r2, #-2147483648 2431 0066 6BD0 beq .L228 2825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2432 .loc 1 2825 9 is_stmt 1 view .LVU734 2433 0068 2968 ldr r1, [r5] 2434 006a FFF7FEFF bl LL_ADC_SetChannelSamplingTime 2435 .LVL180: 2828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2436 .loc 1 2828 9 view .LVU735 2437 006e 2268 ldr r2, [r4] 2438 .LVL181: 2439 .LBB390: 2440 .LBI390: 3560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2441 .loc 2 3560 22 view .LVU736 2442 .LBB391: 3562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2443 .loc 2 3562 3 view .LVU737 2444 0070 5369 ldr r3, [r2, #20] ARM GAS /tmp/ccICigVb.s page 241 2445 0072 23F00043 bic r3, r3, #-2147483648 2446 0076 5361 str r3, [r2, #20] 2447 .LVL182: 2448 .L160: 3562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2449 .loc 2 3562 3 is_stmt 0 view .LVU738 2450 .LBE391: 2451 .LBE390: 2835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2452 .loc 1 2835 7 is_stmt 1 view .LVU739 2835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2453 .loc 1 2835 26 is_stmt 0 view .LVU740 2454 0078 6969 ldr r1, [r5, #20] 2455 007a 2268 ldr r2, [r4] 2456 007c D368 ldr r3, [r2, #12] 2457 007e C3F3C103 ubfx r3, r3, #3, #2 2458 0082 5B00 lsls r3, r3, #1 2835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2459 .loc 1 2835 24 view .LVU741 2460 0084 9940 lsls r1, r1, r3 2461 .LVL183: 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2462 .loc 1 2837 7 is_stmt 1 view .LVU742 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2463 .loc 1 2837 18 is_stmt 0 view .LVU743 2464 0086 2869 ldr r0, [r5, #16] 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2465 .loc 1 2837 10 view .LVU744 2466 0088 0428 cmp r0, #4 2467 008a 66D0 beq .L161 2840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2468 .loc 1 2840 9 is_stmt 1 view .LVU745 2469 .LVL184: 2470 .LBB392: 2471 .LBI392: 3220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2472 .loc 2 3220 22 view .LVU746 2473 .LBB393: 3222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2474 .loc 2 3222 3 view .LVU747 3222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2475 .loc 2 3222 25 is_stmt 0 view .LVU748 2476 008c 6032 adds r2, r2, #96 2477 .LVL185: 3224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2478 .loc 2 3224 3 is_stmt 1 view .LVU749 2479 008e 52F82070 ldr r7, [r2, r0, lsl #2] 2480 0092 A84B ldr r3, .L239 2481 0094 3B40 ands r3, r3, r7 2482 0096 2F68 ldr r7, [r5] 2483 0098 07F0F84C and ip, r7, #2080374784 2484 009c 41EA0C01 orr r1, r1, ip 2485 .LVL186: 3224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2486 .loc 2 3224 3 is_stmt 0 view .LVU750 2487 00a0 0B43 orrs r3, r3, r1 2488 00a2 43F00043 orr r3, r3, #-2147483648 ARM GAS /tmp/ccICigVb.s page 242 2489 00a6 42F82030 str r3, [r2, r0, lsl #2] 2490 .LVL187: 3224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2491 .loc 2 3224 3 view .LVU751 2492 .LBE393: 2493 .LBE392: 2842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSaturation)); 2494 .loc 1 2842 9 is_stmt 1 view .LVU752 2843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset sign & saturation */ 2495 .loc 1 2843 9 view .LVU753 2845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSaturatio 2496 .loc 1 2845 9 view .LVU754 2497 00aa 2368 ldr r3, [r4] 2498 00ac 2869 ldr r0, [r5, #16] 2499 00ae AA69 ldr r2, [r5, #24] 2500 .LVL188: 2501 .LBB394: 2502 .LBI394: 3417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2503 .loc 2 3417 22 view .LVU755 2504 .LBB395: 3419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2505 .loc 2 3419 3 view .LVU756 3419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2506 .loc 2 3419 25 is_stmt 0 view .LVU757 2507 00b0 6033 adds r3, r3, #96 2508 .LVL189: 3421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2509 .loc 2 3421 3 is_stmt 1 view .LVU758 2510 00b2 53F82010 ldr r1, [r3, r0, lsl #2] 2511 00b6 21F08071 bic r1, r1, #16777216 2512 00ba 0A43 orrs r2, r2, r1 2513 .LVL190: 3421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2514 .loc 2 3421 3 is_stmt 0 view .LVU759 2515 00bc 43F82020 str r2, [r3, r0, lsl #2] 2516 .LVL191: 3421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2517 .loc 2 3421 3 view .LVU760 2518 .LBE395: 2519 .LBE394: 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2520 .loc 1 2846 9 is_stmt 1 view .LVU761 2521 00c0 2368 ldr r3, [r4] 2522 00c2 2969 ldr r1, [r5, #16] 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2523 .loc 1 2846 83 is_stmt 0 view .LVU762 2524 00c4 2A7F ldrb r2, [r5, #28] @ zero_extendqisi2 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2525 .loc 1 2846 9 view .LVU763 2526 00c6 012A cmp r2, #1 2527 00c8 44D0 beq .L229 2528 .LVL192: 2529 .L162: 2530 .LBB396: 2531 .LBI396: 3472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { ARM GAS /tmp/ccICigVb.s page 243 2532 .loc 2 3472 22 is_stmt 1 discriminator 4 view .LVU764 2533 .LBB397: 3474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2534 .loc 2 3474 3 discriminator 4 view .LVU765 3474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2535 .loc 2 3474 25 is_stmt 0 discriminator 4 view .LVU766 2536 00ca 6033 adds r3, r3, #96 2537 .LVL193: 3476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 2538 .loc 2 3476 3 is_stmt 1 discriminator 4 view .LVU767 2539 00cc 53F82120 ldr r2, [r3, r1, lsl #2] 2540 00d0 22F00072 bic r2, r2, #33554432 2541 00d4 3243 orrs r2, r2, r6 2542 00d6 43F82120 str r2, [r3, r1, lsl #2] 2543 .LVL194: 2544 .L158: 3476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 2545 .loc 2 3476 3 is_stmt 0 discriminator 4 view .LVU768 2546 .LBE397: 2547 .LBE396: 2878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2548 .loc 1 2878 5 is_stmt 1 view .LVU769 2878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2549 .loc 1 2878 9 is_stmt 0 view .LVU770 2550 00da 2368 ldr r3, [r4] 2551 .LVL195: 2552 .LBB398: 2553 .LBI398: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2554 .loc 2 6729 26 is_stmt 1 view .LVU771 2555 .LBB399: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2556 .loc 2 6731 3 view .LVU772 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2557 .loc 2 6731 12 is_stmt 0 view .LVU773 2558 00dc 9A68 ldr r2, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2559 .loc 2 6731 68 view .LVU774 2560 00de 12F0010F tst r2, #1 2561 00e2 12D1 bne .L178 2562 .LVL196: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2563 .loc 2 6731 68 view .LVU775 2564 .LBE399: 2565 .LBE398: 2881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2566 .loc 1 2881 7 is_stmt 1 view .LVU776 2567 00e4 2A68 ldr r2, [r5] 2568 00e6 E868 ldr r0, [r5, #12] 2569 .LVL197: 2570 .LBB400: 2571 .LBI400: 5495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2572 .loc 2 5495 22 view .LVU777 2573 .LBB401: 5501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2574 .loc 2 5501 3 view .LVU778 ARM GAS /tmp/ccICigVb.s page 244 5501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2575 .loc 2 5501 6 is_stmt 0 view .LVU779 2576 00e8 9349 ldr r1, .L239+4 2577 00ea 8842 cmp r0, r1 2578 00ec 00F09C80 beq .L230 5508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 2579 .loc 2 5508 5 is_stmt 1 view .LVU780 2580 00f0 D3F8B010 ldr r1, [r3, #176] 2581 00f4 C2F31202 ubfx r2, r2, #0, #19 2582 .LVL198: 5508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 2583 .loc 2 5508 5 is_stmt 0 view .LVU781 2584 00f8 21EA0202 bic r2, r1, r2 2585 00fc C3F8B020 str r2, [r3, #176] 2586 .LVL199: 2587 .L180: 5508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 2588 .loc 2 5508 5 view .LVU782 2589 .LBE401: 2590 .LBE400: 2884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2591 .loc 1 2884 7 is_stmt 1 view .LVU783 2884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2592 .loc 1 2884 18 is_stmt 0 view .LVU784 2593 0100 EA68 ldr r2, [r5, #12] 2884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2594 .loc 1 2884 10 view .LVU785 2595 0102 8D4B ldr r3, .L239+4 2596 0104 9A42 cmp r2, r3 2597 0106 00F09780 beq .L231 2598 .L178: 2901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2599 .loc 1 2901 5 is_stmt 1 view .LVU786 2901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2600 .loc 1 2901 9 is_stmt 0 view .LVU787 2601 010a 2B68 ldr r3, [r5] 2901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2602 .loc 1 2901 8 view .LVU788 2603 010c 8B4A ldr r2, .L239+8 2604 010e 1342 tst r3, r2 2605 0110 00F09581 beq .L221 2903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2606 .loc 1 2903 7 is_stmt 1 view .LVU789 2607 .LVL200: 2608 .LBB403: 2609 .LBI403: 2877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2610 .loc 2 2877 26 view .LVU790 2611 .LBB404: 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2612 .loc 2 2879 3 view .LVU791 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2613 .loc 2 2879 21 is_stmt 0 view .LVU792 2614 0114 8A4A ldr r2, .L239+12 2615 0116 9268 ldr r2, [r2, #8] 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2616 .loc 2 2879 10 view .LVU793 ARM GAS /tmp/ccICigVb.s page 245 2617 0118 02F0E071 and r1, r2, #29360128 2618 .LVL201: 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2619 .loc 2 2879 10 view .LVU794 2620 .LBE404: 2621 .LBE403: 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2622 .loc 1 2907 7 is_stmt 1 view .LVU795 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2623 .loc 1 2907 10 is_stmt 0 view .LVU796 2624 011c 8948 ldr r0, .L239+16 2625 011e 8342 cmp r3, r0 2626 0120 00F04481 beq .L204 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2627 .loc 1 2907 62 discriminator 1 view .LVU797 2628 0124 8848 ldr r0, .L239+20 2629 0126 8342 cmp r3, r0 2630 0128 00F04081 beq .L204 2631 .L205: 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2632 .loc 1 2927 12 is_stmt 1 view .LVU798 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2633 .loc 1 2927 15 is_stmt 0 view .LVU799 2634 012c 8748 ldr r0, .L239+24 2635 012e 8342 cmp r3, r0 2636 0130 00F06281 beq .L232 2637 .L208: 2935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2638 .loc 1 2935 12 is_stmt 1 view .LVU800 2935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2639 .loc 1 2935 15 is_stmt 0 view .LVU801 2640 0134 8648 ldr r0, .L239+28 2641 0136 8342 cmp r3, r0 2642 0138 00F07081 beq .L233 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2643 .loc 1 2760 21 view .LVU802 2644 013c 0020 movs r0, #0 2645 013e 77E7 b .L155 2646 .LVL202: 2647 .L228: 2817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2648 .loc 1 2817 9 is_stmt 1 view .LVU803 2649 0140 0022 movs r2, #0 2650 0142 2968 ldr r1, [r5] 2651 0144 FFF7FEFF bl LL_ADC_SetChannelSamplingTime 2652 .LVL203: 2820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2653 .loc 1 2820 9 view .LVU804 2654 0148 2268 ldr r2, [r4] 2655 .LVL204: 2656 .LBB405: 2657 .LBI405: 3560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2658 .loc 2 3560 22 view .LVU805 2659 .LBB406: 3562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2660 .loc 2 3562 3 view .LVU806 ARM GAS /tmp/ccICigVb.s page 246 2661 014a 5369 ldr r3, [r2, #20] 2662 014c 43F00043 orr r3, r3, #-2147483648 2663 0150 5361 str r3, [r2, #20] 3563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2664 .loc 2 3563 1 is_stmt 0 view .LVU807 2665 0152 91E7 b .L160 2666 .LVL205: 2667 .L229: 3563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2668 .loc 2 3563 1 view .LVU808 2669 .LBE406: 2670 .LBE405: 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2671 .loc 1 2846 9 view .LVU809 2672 0154 4FF00076 mov r6, #33554432 2673 .LVL206: 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2674 .loc 1 2846 9 view .LVU810 2675 0158 B7E7 b .L162 2676 .LVL207: 2677 .L161: 2852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2678 .loc 1 2852 9 is_stmt 1 view .LVU811 2679 .LBB407: 2680 .LBI407: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2681 .loc 2 3303 26 view .LVU812 2682 .LBB408: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2683 .loc 2 3305 3 view .LVU813 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2684 .loc 2 3307 3 view .LVU814 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2685 .loc 2 3307 10 is_stmt 0 view .LVU815 2686 015a 136E ldr r3, [r2, #96] 2687 .LVL208: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2688 .loc 2 3307 10 view .LVU816 2689 .LBE408: 2690 .LBE407: 2691 .LBB409: 2692 .LBI409: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2693 .loc 2 3303 26 is_stmt 1 view .LVU817 2694 .LBB410: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2695 .loc 2 3305 3 view .LVU818 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2696 .loc 2 3307 3 view .LVU819 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2697 .loc 2 3307 10 is_stmt 0 view .LVU820 2698 015c 116E ldr r1, [r2, #96] 2699 .LVL209: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2700 .loc 2 3307 10 view .LVU821 2701 .LBE410: 2702 .LBE409: ARM GAS /tmp/ccICigVb.s page 247 2852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2703 .loc 1 2852 13 view .LVU822 2704 015e C1F38461 ubfx r1, r1, #26, #5 2853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2705 .loc 1 2853 16 view .LVU823 2706 0162 2B68 ldr r3, [r5] 2707 0164 C3F31200 ubfx r0, r3, #0, #19 2708 0168 78BB cbnz r0, .L163 2853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2709 .loc 1 2853 16 discriminator 1 view .LVU824 2710 016a C3F38463 ubfx r3, r3, #26, #5 2711 .L164: 2852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2712 .loc 1 2852 12 view .LVU825 2713 016e 9942 cmp r1, r3 2714 0170 33D0 beq .L234 2715 .L166: 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2716 .loc 1 2857 9 is_stmt 1 view .LVU826 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2717 .loc 1 2857 13 is_stmt 0 view .LVU827 2718 0172 2168 ldr r1, [r4] 2719 .LVL210: 2720 .LBB411: 2721 .LBI411: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2722 .loc 2 3303 26 is_stmt 1 view .LVU828 2723 .LBB412: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2724 .loc 2 3305 3 view .LVU829 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2725 .loc 2 3307 3 view .LVU830 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2726 .loc 2 3307 10 is_stmt 0 view .LVU831 2727 0174 4B6E ldr r3, [r1, #100] 2728 .LVL211: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2729 .loc 2 3307 10 view .LVU832 2730 .LBE412: 2731 .LBE411: 2732 .LBB413: 2733 .LBI413: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2734 .loc 2 3303 26 is_stmt 1 view .LVU833 2735 .LBB414: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2736 .loc 2 3305 3 view .LVU834 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2737 .loc 2 3307 3 view .LVU835 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2738 .loc 2 3307 10 is_stmt 0 view .LVU836 2739 0176 4A6E ldr r2, [r1, #100] 2740 .LVL212: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2741 .loc 2 3307 10 view .LVU837 2742 .LBE414: 2743 .LBE413: ARM GAS /tmp/ccICigVb.s page 248 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2744 .loc 1 2857 13 view .LVU838 2745 0178 C2F38462 ubfx r2, r2, #26, #5 2858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2746 .loc 1 2858 16 view .LVU839 2747 017c 2B68 ldr r3, [r5] 2748 017e C3F31200 ubfx r0, r3, #0, #19 2749 0182 78BB cbnz r0, .L167 2858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2750 .loc 1 2858 16 discriminator 1 view .LVU840 2751 0184 C3F38463 ubfx r3, r3, #26, #5 2752 .L168: 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2753 .loc 1 2857 12 view .LVU841 2754 0188 9A42 cmp r2, r3 2755 018a 33D0 beq .L235 2756 .L170: 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2757 .loc 1 2862 9 is_stmt 1 view .LVU842 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2758 .loc 1 2862 13 is_stmt 0 view .LVU843 2759 018c 2168 ldr r1, [r4] 2760 .LVL213: 2761 .LBB415: 2762 .LBI415: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2763 .loc 2 3303 26 is_stmt 1 view .LVU844 2764 .LBB416: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2765 .loc 2 3305 3 view .LVU845 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2766 .loc 2 3307 3 view .LVU846 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2767 .loc 2 3307 10 is_stmt 0 view .LVU847 2768 018e 8B6E ldr r3, [r1, #104] 2769 .LVL214: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2770 .loc 2 3307 10 view .LVU848 2771 .LBE416: 2772 .LBE415: 2773 .LBB417: 2774 .LBI417: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2775 .loc 2 3303 26 is_stmt 1 view .LVU849 2776 .LBB418: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2777 .loc 2 3305 3 view .LVU850 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2778 .loc 2 3307 3 view .LVU851 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2779 .loc 2 3307 10 is_stmt 0 view .LVU852 2780 0190 8A6E ldr r2, [r1, #104] 2781 .LVL215: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2782 .loc 2 3307 10 view .LVU853 2783 .LBE418: 2784 .LBE417: ARM GAS /tmp/ccICigVb.s page 249 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2785 .loc 1 2862 13 view .LVU854 2786 0192 C2F38462 ubfx r2, r2, #26, #5 2863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2787 .loc 1 2863 16 view .LVU855 2788 0196 2B68 ldr r3, [r5] 2789 0198 C3F31200 ubfx r0, r3, #0, #19 2790 019c 78BB cbnz r0, .L171 2863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2791 .loc 1 2863 16 discriminator 1 view .LVU856 2792 019e C3F38463 ubfx r3, r3, #26, #5 2793 .L172: 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2794 .loc 1 2862 12 view .LVU857 2795 01a2 9A42 cmp r2, r3 2796 01a4 33D0 beq .L236 2797 .L174: 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2798 .loc 1 2867 9 is_stmt 1 view .LVU858 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2799 .loc 1 2867 13 is_stmt 0 view .LVU859 2800 01a6 2168 ldr r1, [r4] 2801 .LVL216: 2802 .LBB419: 2803 .LBI419: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2804 .loc 2 3303 26 is_stmt 1 view .LVU860 2805 .LBB420: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2806 .loc 2 3305 3 view .LVU861 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2807 .loc 2 3307 3 view .LVU862 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2808 .loc 2 3307 10 is_stmt 0 view .LVU863 2809 01a8 CB6E ldr r3, [r1, #108] 2810 .LVL217: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2811 .loc 2 3307 10 view .LVU864 2812 .LBE420: 2813 .LBE419: 2814 .LBB421: 2815 .LBI421: 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2816 .loc 2 3303 26 is_stmt 1 view .LVU865 2817 .LBB422: 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2818 .loc 2 3305 3 view .LVU866 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2819 .loc 2 3307 3 view .LVU867 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2820 .loc 2 3307 10 is_stmt 0 view .LVU868 2821 01aa CA6E ldr r2, [r1, #108] 2822 .LVL218: 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2823 .loc 2 3307 10 view .LVU869 2824 .LBE422: 2825 .LBE421: ARM GAS /tmp/ccICigVb.s page 250 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2826 .loc 1 2867 13 view .LVU870 2827 01ac C2F38462 ubfx r2, r2, #26, #5 2868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2828 .loc 1 2868 16 view .LVU871 2829 01b0 2B68 ldr r3, [r5] 2830 01b2 C3F31200 ubfx r0, r3, #0, #19 2831 01b6 78BB cbnz r0, .L175 2868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2832 .loc 1 2868 16 discriminator 1 view .LVU872 2833 01b8 C3F38463 ubfx r3, r3, #26, #5 2834 .L176: 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(sConfig->Channel)) 2835 .loc 1 2867 12 view .LVU873 2836 01bc 9A42 cmp r2, r3 2837 01be 8CD1 bne .L158 2870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2838 .loc 1 2870 11 is_stmt 1 view .LVU874 2839 .LVL219: 2840 .LBB423: 2841 .LBI423: 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2842 .loc 2 3362 22 view .LVU875 2843 .LBB424: 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2844 .loc 2 3364 3 view .LVU876 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2845 .loc 2 3366 3 view .LVU877 2846 01c0 CB6E ldr r3, [r1, #108] 2847 01c2 23F00043 bic r3, r3, #-2147483648 2848 01c6 CB66 str r3, [r1, #108] 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2849 .loc 2 3369 1 is_stmt 0 view .LVU878 2850 01c8 87E7 b .L158 2851 .LVL220: 2852 .L163: 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2853 .loc 2 3369 1 view .LVU879 2854 .LBE424: 2855 .LBE423: 2856 .LBB425: 2857 .LBI425: 2858 .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 ARM GAS /tmp/ccICigVb.s page 251 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 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 ARM GAS /tmp/ccICigVb.s page 252 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 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. ARM GAS /tmp/ccICigVb.s page 253 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 **** } 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 ########################### */ ARM GAS /tmp/ccICigVb.s page 254 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 **** 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 **** ARM GAS /tmp/ccICigVb.s page 255 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 **** } 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 **** */ ARM GAS /tmp/ccICigVb.s page 256 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 **** } 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) ARM GAS /tmp/ccICigVb.s page 257 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 **** 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 **** } ARM GAS /tmp/ccICigVb.s page 258 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) 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 **** } ARM GAS /tmp/ccICigVb.s page 259 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) 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 **** */ ARM GAS /tmp/ccICigVb.s page 260 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 **** 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 **** { ARM GAS /tmp/ccICigVb.s page 261 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 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 **** ARM GAS /tmp/ccICigVb.s page 262 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 **** 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 ARM GAS /tmp/ccICigVb.s page 263 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 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; ARM GAS /tmp/ccICigVb.s page 264 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 **** */ 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 **** */ ARM GAS /tmp/ccICigVb.s page 265 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 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"); ARM GAS /tmp/ccICigVb.s page 266 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 **** /** 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 **** ARM GAS /tmp/ccICigVb.s page 267 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) 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 ARM GAS /tmp/ccICigVb.s page 268 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 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 **** ARM GAS /tmp/ccICigVb.s page 269 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) 2859 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU880 2860 .LBB426: 1049:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 2861 .loc 3 1050 3 discriminator 2 view .LVU881 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) ); 2862 .loc 3 1055 4 discriminator 2 view .LVU882 2863 .syntax unified 2864 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2865 01ca 93FAA3F3 rbit r3, r3 2866 @ 0 "" 2 2867 .LVL221: 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 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** return result; 2868 .loc 3 1068 3 discriminator 2 view .LVU883 2869 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU884 2870 .thumb 2871 .syntax unified 2872 .LBE426: 2873 .LBE425: 2874 .LBB427: 2875 .LBI427: 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) 2876 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU885 2877 .LBB428: ARM GAS /tmp/ccICigVb.s page 270 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) 2878 .loc 3 1089 3 discriminator 2 view .LVU886 2879 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU887 2880 01ce 13B1 cbz r3, .L210 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); 2881 .loc 3 1093 3 is_stmt 1 view .LVU888 2882 .loc 3 1093 10 is_stmt 0 view .LVU889 2883 01d0 B3FA83F3 clz r3, r3 2884 .LVL222: 2885 .loc 3 1093 10 view .LVU890 2886 01d4 CBE7 b .L164 2887 .LVL223: 2888 .L210: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2889 .loc 3 1091 12 view .LVU891 2890 01d6 2023 movs r3, #32 2891 .LVL224: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2892 .loc 3 1091 12 view .LVU892 2893 01d8 C9E7 b .L164 2894 .L234: 2895 .LBE428: 2896 .LBE427: 2855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2897 .loc 1 2855 11 is_stmt 1 view .LVU893 2898 .LVL225: 2899 .LBB429: 2900 .LBI429: 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2901 .loc 2 3362 22 view .LVU894 2902 .LBB430: 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2903 .loc 2 3364 3 view .LVU895 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2904 .loc 2 3366 3 view .LVU896 2905 01da 136E ldr r3, [r2, #96] 2906 01dc 23F00043 bic r3, r3, #-2147483648 2907 01e0 1366 str r3, [r2, #96] 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2908 .loc 2 3369 1 is_stmt 0 view .LVU897 2909 01e2 C6E7 b .L166 2910 .LVL226: 2911 .L167: 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 271 2912 .loc 2 3369 1 view .LVU898 2913 .LBE430: 2914 .LBE429: 2915 .LBB431: 2916 .LBI431: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2917 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU899 2918 .LBB432: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 2919 .loc 3 1050 3 discriminator 2 view .LVU900 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 2920 .loc 3 1055 4 discriminator 2 view .LVU901 2921 .syntax unified 2922 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2923 01e4 93FAA3F3 rbit r3, r3 2924 @ 0 "" 2 2925 .LVL227: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2926 .loc 3 1068 3 discriminator 2 view .LVU902 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2927 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU903 2928 .thumb 2929 .syntax unified 2930 .LBE432: 2931 .LBE431: 2932 .LBB433: 2933 .LBI433: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2934 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU904 2935 .LBB434: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2936 .loc 3 1089 3 discriminator 2 view .LVU905 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2937 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU906 2938 01e8 13B1 cbz r3, .L211 2939 .loc 3 1093 3 is_stmt 1 view .LVU907 2940 .loc 3 1093 10 is_stmt 0 view .LVU908 2941 01ea B3FA83F3 clz r3, r3 2942 .LVL228: 2943 .loc 3 1093 10 view .LVU909 2944 01ee CBE7 b .L168 2945 .LVL229: 2946 .L211: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2947 .loc 3 1091 12 view .LVU910 2948 01f0 2023 movs r3, #32 2949 .LVL230: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2950 .loc 3 1091 12 view .LVU911 2951 01f2 C9E7 b .L168 2952 .L235: 2953 .LBE434: 2954 .LBE433: 2860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2955 .loc 1 2860 11 is_stmt 1 view .LVU912 2956 .LVL231: 2957 .LBB435: ARM GAS /tmp/ccICigVb.s page 272 2958 .LBI435: 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2959 .loc 2 3362 22 view .LVU913 2960 .LBB436: 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2961 .loc 2 3364 3 view .LVU914 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2962 .loc 2 3366 3 view .LVU915 2963 01f4 4B6E ldr r3, [r1, #100] 2964 01f6 23F00043 bic r3, r3, #-2147483648 2965 01fa 4B66 str r3, [r1, #100] 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2966 .loc 2 3369 1 is_stmt 0 view .LVU916 2967 01fc C6E7 b .L170 2968 .LVL232: 2969 .L171: 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2970 .loc 2 3369 1 view .LVU917 2971 .LBE436: 2972 .LBE435: 2973 .LBB437: 2974 .LBI437: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2975 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU918 2976 .LBB438: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 2977 .loc 3 1050 3 discriminator 2 view .LVU919 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 2978 .loc 3 1055 4 discriminator 2 view .LVU920 2979 .syntax unified 2980 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2981 01fe 93FAA3F3 rbit r3, r3 2982 @ 0 "" 2 2983 .LVL233: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2984 .loc 3 1068 3 discriminator 2 view .LVU921 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2985 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU922 2986 .thumb 2987 .syntax unified 2988 .LBE438: 2989 .LBE437: 2990 .LBB439: 2991 .LBI439: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2992 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU923 2993 .LBB440: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2994 .loc 3 1089 3 discriminator 2 view .LVU924 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2995 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU925 2996 0202 13B1 cbz r3, .L212 2997 .loc 3 1093 3 is_stmt 1 view .LVU926 2998 .loc 3 1093 10 is_stmt 0 view .LVU927 2999 0204 B3FA83F3 clz r3, r3 3000 .LVL234: 3001 .loc 3 1093 10 view .LVU928 ARM GAS /tmp/ccICigVb.s page 273 3002 0208 CBE7 b .L172 3003 .LVL235: 3004 .L212: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3005 .loc 3 1091 12 view .LVU929 3006 020a 2023 movs r3, #32 3007 .LVL236: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3008 .loc 3 1091 12 view .LVU930 3009 020c C9E7 b .L172 3010 .L236: 3011 .LBE440: 3012 .LBE439: 2865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3013 .loc 1 2865 11 is_stmt 1 view .LVU931 3014 .LVL237: 3015 .LBB441: 3016 .LBI441: 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3017 .loc 2 3362 22 view .LVU932 3018 .LBB442: 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3019 .loc 2 3364 3 view .LVU933 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 3020 .loc 2 3366 3 view .LVU934 3021 020e 8B6E ldr r3, [r1, #104] 3022 0210 23F00043 bic r3, r3, #-2147483648 3023 0214 8B66 str r3, [r1, #104] 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3024 .loc 2 3369 1 is_stmt 0 view .LVU935 3025 0216 C6E7 b .L174 3026 .LVL238: 3027 .L175: 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3028 .loc 2 3369 1 view .LVU936 3029 .LBE442: 3030 .LBE441: 3031 .LBB443: 3032 .LBI443: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3033 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU937 3034 .LBB444: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3035 .loc 3 1050 3 discriminator 2 view .LVU938 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3036 .loc 3 1055 4 discriminator 2 view .LVU939 3037 .syntax unified 3038 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3039 0218 93FAA3F3 rbit r3, r3 3040 @ 0 "" 2 3041 .LVL239: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3042 .loc 3 1068 3 discriminator 2 view .LVU940 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3043 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU941 3044 .thumb 3045 .syntax unified ARM GAS /tmp/ccICigVb.s page 274 3046 .LBE444: 3047 .LBE443: 3048 .LBB445: 3049 .LBI445: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3050 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU942 3051 .LBB446: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3052 .loc 3 1089 3 discriminator 2 view .LVU943 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3053 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU944 3054 021c 13B1 cbz r3, .L213 3055 .loc 3 1093 3 is_stmt 1 view .LVU945 3056 .loc 3 1093 10 is_stmt 0 view .LVU946 3057 021e B3FA83F3 clz r3, r3 3058 .LVL240: 3059 .loc 3 1093 10 view .LVU947 3060 0222 CBE7 b .L176 3061 .LVL241: 3062 .L213: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3063 .loc 3 1091 12 view .LVU948 3064 0224 2023 movs r3, #32 3065 .LVL242: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3066 .loc 3 1091 12 view .LVU949 3067 0226 C9E7 b .L176 3068 .LVL243: 3069 .L230: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3070 .loc 3 1091 12 view .LVU950 3071 .LBE446: 3072 .LBE445: 3073 .LBB447: 3074 .LBB402: 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 3075 .loc 2 5503 5 is_stmt 1 view .LVU951 3076 0228 D3F8B010 ldr r1, [r3, #176] 3077 022c C2F31202 ubfx r2, r2, #0, #19 3078 .LVL244: 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 3079 .loc 2 5503 5 is_stmt 0 view .LVU952 3080 0230 0A43 orrs r2, r2, r1 3081 0232 C3F8B020 str r2, [r3, #176] 3082 .LVL245: 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 3083 .loc 2 5503 5 view .LVU953 3084 0236 63E7 b .L180 3085 .LVL246: 3086 .L231: 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK); 3087 .loc 2 5503 5 view .LVU954 3088 .LBE402: 3089 .LBE447: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T 3090 .loc 1 2888 9 is_stmt 1 view .LVU955 3091 0238 2068 ldr r0, [r4] ARM GAS /tmp/ccICigVb.s page 275 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3092 .loc 1 2889 50 is_stmt 0 view .LVU956 3093 023a 2B68 ldr r3, [r5] 3094 023c C3F31206 ubfx r6, r3, #0, #19 3095 0240 26BB cbnz r6, .L181 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3096 .loc 1 2889 50 discriminator 1 view .LVU957 3097 0242 9A0E lsrs r2, r3, #26 3098 0244 0132 adds r2, r2, #1 3099 0246 02F01F02 and r2, r2, #31 3100 024a 092A cmp r2, #9 3101 024c 8CBF ite hi 3102 024e 0022 movhi r2, #0 3103 0250 0122 movls r2, #1 3104 .L182: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T 3105 .loc 1 2888 9 view .LVU958 3106 0252 002A cmp r2, #0 3107 0254 52D0 beq .L184 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3108 .loc 1 2889 50 view .LVU959 3109 0256 46BB cbnz r6, .L185 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3110 .loc 1 2889 50 discriminator 3 view .LVU960 3111 0258 990E lsrs r1, r3, #26 3112 025a 0131 adds r1, r1, #1 3113 025c 8906 lsls r1, r1, #26 3114 025e 01F0F841 and r1, r1, #2080374784 3115 .L186: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3116 .loc 1 2889 50 discriminator 6 view .LVU961 3117 0262 76BB cbnz r6, .L188 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3118 .loc 1 2889 50 discriminator 7 view .LVU962 3119 0264 9F0E lsrs r7, r3, #26 3120 0266 0137 adds r7, r7, #1 3121 0268 07F01F07 and r7, r7, #31 3122 026c 0122 movs r2, #1 3123 026e BA40 lsls r2, r2, r7 3124 .L189: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3125 .loc 1 2889 50 discriminator 10 view .LVU963 3126 0270 1143 orrs r1, r1, r2 3127 0272 AEBB cbnz r6, .L191 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3128 .loc 1 2889 50 discriminator 11 view .LVU964 3129 0274 9B0E lsrs r3, r3, #26 3130 0276 0133 adds r3, r3, #1 3131 0278 03F01F03 and r3, r3, #31 3132 027c 03EB4303 add r3, r3, r3, lsl #1 3133 0280 1B05 lsls r3, r3, #20 3134 .L192: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T 3135 .loc 1 2888 9 view .LVU965 3136 0282 1943 orrs r1, r1, r3 3137 .L194: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T ARM GAS /tmp/ccICigVb.s page 276 3138 .loc 1 2888 9 discriminator 1 view .LVU966 3139 0284 AA68 ldr r2, [r5, #8] 3140 0286 FFF7FEFF bl LL_ADC_SetChannelSamplingTime 3141 .LVL247: 3142 028a 3EE7 b .L178 3143 .L181: 3144 .LVL248: 3145 .LBB448: 3146 .LBI448: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3147 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU967 3148 .LBB449: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3149 .loc 3 1050 3 discriminator 2 view .LVU968 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3150 .loc 3 1055 4 discriminator 2 view .LVU969 3151 .syntax unified 3152 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3153 028c 93FAA3F2 rbit r2, r3 3154 @ 0 "" 2 3155 .LVL249: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3156 .loc 3 1068 3 discriminator 2 view .LVU970 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3157 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU971 3158 .thumb 3159 .syntax unified 3160 .LBE449: 3161 .LBE448: 3162 .LBB450: 3163 .LBI450: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3164 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU972 3165 .LBB451: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3166 .loc 3 1089 3 discriminator 2 view .LVU973 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3167 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU974 3168 0290 4AB1 cbz r2, .L214 3169 .loc 3 1093 3 is_stmt 1 view .LVU975 3170 .loc 3 1093 10 is_stmt 0 view .LVU976 3171 0292 B2FA82F2 clz r2, r2 3172 .LVL250: 3173 .L183: 3174 .loc 3 1093 10 view .LVU977 3175 .LBE451: 3176 .LBE450: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3177 .loc 1 2889 50 view .LVU978 3178 0296 0132 adds r2, r2, #1 3179 0298 02F01F02 and r2, r2, #31 3180 029c 092A cmp r2, #9 3181 029e 8CBF ite hi 3182 02a0 0022 movhi r2, #0 3183 02a2 0122 movls r2, #1 3184 02a4 D5E7 b .L182 3185 .LVL251: ARM GAS /tmp/ccICigVb.s page 277 3186 .L214: 3187 .LBB453: 3188 .LBB452: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3189 .loc 3 1091 12 view .LVU979 3190 02a6 2022 movs r2, #32 3191 .LVL252: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3192 .loc 3 1091 12 view .LVU980 3193 02a8 F5E7 b .L183 3194 .LVL253: 3195 .L185: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3196 .loc 3 1091 12 view .LVU981 3197 .LBE452: 3198 .LBE453: 3199 .LBB454: 3200 .LBI454: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3201 .loc 3 1048 31 is_stmt 1 discriminator 4 view .LVU982 3202 .LBB455: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3203 .loc 3 1050 3 discriminator 4 view .LVU983 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3204 .loc 3 1055 4 discriminator 4 view .LVU984 3205 .syntax unified 3206 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3207 02aa 93FAA3F1 rbit r1, r3 3208 @ 0 "" 2 3209 .LVL254: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3210 .loc 3 1068 3 discriminator 4 view .LVU985 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3211 .loc 3 1068 3 is_stmt 0 discriminator 4 view .LVU986 3212 .thumb 3213 .syntax unified 3214 .LBE455: 3215 .LBE454: 3216 .LBB456: 3217 .LBI456: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3218 .loc 3 1078 30 is_stmt 1 discriminator 4 view .LVU987 3219 .LBB457: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3220 .loc 3 1089 3 discriminator 4 view .LVU988 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3221 .loc 3 1089 6 is_stmt 0 discriminator 4 view .LVU989 3222 02ae 31B1 cbz r1, .L215 3223 .loc 3 1093 3 is_stmt 1 view .LVU990 3224 .loc 3 1093 10 is_stmt 0 view .LVU991 3225 02b0 B1FA81F1 clz r1, r1 3226 .LVL255: 3227 .L187: 3228 .loc 3 1093 10 view .LVU992 3229 .LBE457: 3230 .LBE456: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); ARM GAS /tmp/ccICigVb.s page 278 3231 .loc 1 2889 50 view .LVU993 3232 02b4 0131 adds r1, r1, #1 3233 02b6 8906 lsls r1, r1, #26 3234 02b8 01F0F841 and r1, r1, #2080374784 3235 02bc D1E7 b .L186 3236 .LVL256: 3237 .L215: 3238 .LBB459: 3239 .LBB458: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3240 .loc 3 1091 12 view .LVU994 3241 02be 2021 movs r1, #32 3242 .LVL257: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3243 .loc 3 1091 12 view .LVU995 3244 02c0 F8E7 b .L187 3245 .LVL258: 3246 .L188: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3247 .loc 3 1091 12 view .LVU996 3248 .LBE458: 3249 .LBE459: 3250 .LBB460: 3251 .LBI460: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3252 .loc 3 1048 31 is_stmt 1 discriminator 8 view .LVU997 3253 .LBB461: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3254 .loc 3 1050 3 discriminator 8 view .LVU998 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3255 .loc 3 1055 4 discriminator 8 view .LVU999 3256 .syntax unified 3257 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3258 02c2 93FAA3F2 rbit r2, r3 3259 @ 0 "" 2 3260 .LVL259: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3261 .loc 3 1068 3 discriminator 8 view .LVU1000 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3262 .loc 3 1068 3 is_stmt 0 discriminator 8 view .LVU1001 3263 .thumb 3264 .syntax unified 3265 .LBE461: 3266 .LBE460: 3267 .LBB462: 3268 .LBI462: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3269 .loc 3 1078 30 is_stmt 1 discriminator 8 view .LVU1002 3270 .LBB463: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3271 .loc 3 1089 3 discriminator 8 view .LVU1003 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3272 .loc 3 1089 6 is_stmt 0 discriminator 8 view .LVU1004 3273 02c6 4AB1 cbz r2, .L216 3274 .loc 3 1093 3 is_stmt 1 view .LVU1005 3275 .loc 3 1093 10 is_stmt 0 view .LVU1006 3276 02c8 B2FA82F2 clz r2, r2 ARM GAS /tmp/ccICigVb.s page 279 3277 .LVL260: 3278 .L190: 3279 .loc 3 1093 10 view .LVU1007 3280 .LBE463: 3281 .LBE462: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3282 .loc 1 2889 50 view .LVU1008 3283 02cc 0132 adds r2, r2, #1 3284 02ce 02F01F02 and r2, r2, #31 3285 02d2 4FF0010C mov ip, #1 3286 02d6 0CFA02F2 lsl r2, ip, r2 3287 02da C9E7 b .L189 3288 .LVL261: 3289 .L216: 3290 .LBB465: 3291 .LBB464: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3292 .loc 3 1091 12 view .LVU1009 3293 02dc 2022 movs r2, #32 3294 .LVL262: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3295 .loc 3 1091 12 view .LVU1010 3296 02de F5E7 b .L190 3297 .LVL263: 3298 .L191: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3299 .loc 3 1091 12 view .LVU1011 3300 .LBE464: 3301 .LBE465: 3302 .LBB466: 3303 .LBI466: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3304 .loc 3 1048 31 is_stmt 1 discriminator 12 view .LVU1012 3305 .LBB467: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3306 .loc 3 1050 3 discriminator 12 view .LVU1013 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3307 .loc 3 1055 4 discriminator 12 view .LVU1014 3308 .syntax unified 3309 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3310 02e0 93FAA3F3 rbit r3, r3 3311 @ 0 "" 2 3312 .LVL264: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3313 .loc 3 1068 3 discriminator 12 view .LVU1015 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3314 .loc 3 1068 3 is_stmt 0 discriminator 12 view .LVU1016 3315 .thumb 3316 .syntax unified 3317 .LBE467: 3318 .LBE466: 3319 .LBB468: 3320 .LBI468: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3321 .loc 3 1078 30 is_stmt 1 discriminator 12 view .LVU1017 3322 .LBB469: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { ARM GAS /tmp/ccICigVb.s page 280 3323 .loc 3 1089 3 discriminator 12 view .LVU1018 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3324 .loc 3 1089 6 is_stmt 0 discriminator 12 view .LVU1019 3325 02e4 43B1 cbz r3, .L217 3326 .loc 3 1093 3 is_stmt 1 view .LVU1020 3327 .loc 3 1093 10 is_stmt 0 view .LVU1021 3328 02e6 B3FA83F3 clz r3, r3 3329 .LVL265: 3330 .L193: 3331 .loc 3 1093 10 view .LVU1022 3332 .LBE469: 3333 .LBE468: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3334 .loc 1 2889 50 view .LVU1023 3335 02ea 0133 adds r3, r3, #1 3336 02ec 03F01F03 and r3, r3, #31 3337 02f0 03EB4303 add r3, r3, r3, lsl #1 3338 02f4 1B05 lsls r3, r3, #20 3339 02f6 C4E7 b .L192 3340 .LVL266: 3341 .L217: 3342 .LBB471: 3343 .LBB470: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3344 .loc 3 1091 12 view .LVU1024 3345 02f8 2023 movs r3, #32 3346 .LVL267: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3347 .loc 3 1091 12 view .LVU1025 3348 02fa F6E7 b .L193 3349 .LVL268: 3350 .L184: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3351 .loc 3 1091 12 view .LVU1026 3352 .LBE470: 3353 .LBE471: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3354 .loc 1 2889 50 view .LVU1027 3355 02fc 56BB cbnz r6, .L195 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3356 .loc 1 2889 50 discriminator 13 view .LVU1028 3357 02fe 990E lsrs r1, r3, #26 3358 0300 0131 adds r1, r1, #1 3359 0302 8906 lsls r1, r1, #26 3360 0304 01F0F841 and r1, r1, #2080374784 3361 .L196: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3362 .loc 1 2889 50 discriminator 16 view .LVU1029 3363 0308 86BB cbnz r6, .L198 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3364 .loc 1 2889 50 discriminator 17 view .LVU1030 3365 030a 9F0E lsrs r7, r3, #26 3366 030c 0137 adds r7, r7, #1 3367 030e 07F01F07 and r7, r7, #31 3368 0312 0122 movs r2, #1 3369 0314 BA40 lsls r2, r2, r7 3370 .L199: ARM GAS /tmp/ccICigVb.s page 281 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3371 .loc 1 2889 50 discriminator 20 view .LVU1031 3372 0316 1143 orrs r1, r1, r2 3373 0318 BEBB cbnz r6, .L201 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3374 .loc 1 2889 50 discriminator 21 view .LVU1032 3375 031a 9B0E lsrs r3, r3, #26 3376 031c 0133 adds r3, r3, #1 3377 031e 03F01F03 and r3, r3, #31 3378 0322 03EB4303 add r3, r3, r3, lsl #1 3379 0326 1E3B subs r3, r3, #30 3380 0328 1B05 lsls r3, r3, #20 3381 032a 43F00073 orr r3, r3, #33554432 3382 .L202: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_T 3383 .loc 1 2888 9 discriminator 2 view .LVU1033 3384 032e 1943 orrs r1, r1, r3 3385 0330 A8E7 b .L194 3386 .L240: 3387 0332 00BF .align 2 3388 .L239: 3389 0334 00F0FF03 .word 67104768 3390 0338 00007F40 .word 1082064896 3391 033c 00000880 .word -2146959360 3392 0340 00030050 .word 1342178048 3393 0344 000021C3 .word -1021247488 3394 0348 1000C090 .word -1866465264 3395 034c 000052C7 .word -950927360 3396 0350 000084CB .word -880541696 3397 .L195: 3398 .LVL269: 3399 .LBB472: 3400 .LBI472: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3401 .loc 3 1048 31 is_stmt 1 discriminator 14 view .LVU1034 3402 .LBB473: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3403 .loc 3 1050 3 discriminator 14 view .LVU1035 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3404 .loc 3 1055 4 discriminator 14 view .LVU1036 3405 .syntax unified 3406 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3407 0354 93FAA3F1 rbit r1, r3 3408 @ 0 "" 2 3409 .LVL270: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3410 .loc 3 1068 3 discriminator 14 view .LVU1037 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3411 .loc 3 1068 3 is_stmt 0 discriminator 14 view .LVU1038 3412 .thumb 3413 .syntax unified 3414 .LBE473: 3415 .LBE472: 3416 .LBB474: 3417 .LBI474: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3418 .loc 3 1078 30 is_stmt 1 discriminator 14 view .LVU1039 ARM GAS /tmp/ccICigVb.s page 282 3419 .LBB475: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3420 .loc 3 1089 3 discriminator 14 view .LVU1040 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3421 .loc 3 1089 6 is_stmt 0 discriminator 14 view .LVU1041 3422 0358 31B1 cbz r1, .L218 3423 .loc 3 1093 3 is_stmt 1 view .LVU1042 3424 .loc 3 1093 10 is_stmt 0 view .LVU1043 3425 035a B1FA81F1 clz r1, r1 3426 .LVL271: 3427 .L197: 3428 .loc 3 1093 10 view .LVU1044 3429 .LBE475: 3430 .LBE474: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3431 .loc 1 2889 50 view .LVU1045 3432 035e 0131 adds r1, r1, #1 3433 0360 8906 lsls r1, r1, #26 3434 0362 01F0F841 and r1, r1, #2080374784 3435 0366 CFE7 b .L196 3436 .LVL272: 3437 .L218: 3438 .LBB477: 3439 .LBB476: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3440 .loc 3 1091 12 view .LVU1046 3441 0368 2021 movs r1, #32 3442 .LVL273: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3443 .loc 3 1091 12 view .LVU1047 3444 036a F8E7 b .L197 3445 .LVL274: 3446 .L198: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3447 .loc 3 1091 12 view .LVU1048 3448 .LBE476: 3449 .LBE477: 3450 .LBB478: 3451 .LBI478: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3452 .loc 3 1048 31 is_stmt 1 discriminator 18 view .LVU1049 3453 .LBB479: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3454 .loc 3 1050 3 discriminator 18 view .LVU1050 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3455 .loc 3 1055 4 discriminator 18 view .LVU1051 3456 .syntax unified 3457 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3458 036c 93FAA3F2 rbit r2, r3 3459 @ 0 "" 2 3460 .LVL275: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3461 .loc 3 1068 3 discriminator 18 view .LVU1052 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3462 .loc 3 1068 3 is_stmt 0 discriminator 18 view .LVU1053 3463 .thumb 3464 .syntax unified ARM GAS /tmp/ccICigVb.s page 283 3465 .LBE479: 3466 .LBE478: 3467 .LBB480: 3468 .LBI480: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3469 .loc 3 1078 30 is_stmt 1 discriminator 18 view .LVU1054 3470 .LBB481: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3471 .loc 3 1089 3 discriminator 18 view .LVU1055 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3472 .loc 3 1089 6 is_stmt 0 discriminator 18 view .LVU1056 3473 0370 4AB1 cbz r2, .L219 3474 .loc 3 1093 3 is_stmt 1 view .LVU1057 3475 .loc 3 1093 10 is_stmt 0 view .LVU1058 3476 0372 B2FA82F2 clz r2, r2 3477 .LVL276: 3478 .L200: 3479 .loc 3 1093 10 view .LVU1059 3480 .LBE481: 3481 .LBE480: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3482 .loc 1 2889 50 view .LVU1060 3483 0376 0132 adds r2, r2, #1 3484 0378 02F01F02 and r2, r2, #31 3485 037c 4FF0010C mov ip, #1 3486 0380 0CFA02F2 lsl r2, ip, r2 3487 0384 C7E7 b .L199 3488 .LVL277: 3489 .L219: 3490 .LBB483: 3491 .LBB482: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3492 .loc 3 1091 12 view .LVU1061 3493 0386 2022 movs r2, #32 3494 .LVL278: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3495 .loc 3 1091 12 view .LVU1062 3496 0388 F5E7 b .L200 3497 .LVL279: 3498 .L201: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3499 .loc 3 1091 12 view .LVU1063 3500 .LBE482: 3501 .LBE483: 3502 .LBB484: 3503 .LBI484: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3504 .loc 3 1048 31 is_stmt 1 discriminator 22 view .LVU1064 3505 .LBB485: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3506 .loc 3 1050 3 discriminator 22 view .LVU1065 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3507 .loc 3 1055 4 discriminator 22 view .LVU1066 3508 .syntax unified 3509 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3510 038a 93FAA3F3 rbit r3, r3 3511 @ 0 "" 2 ARM GAS /tmp/ccICigVb.s page 284 3512 .LVL280: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3513 .loc 3 1068 3 discriminator 22 view .LVU1067 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3514 .loc 3 1068 3 is_stmt 0 discriminator 22 view .LVU1068 3515 .thumb 3516 .syntax unified 3517 .LBE485: 3518 .LBE484: 3519 .LBB486: 3520 .LBI486: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3521 .loc 3 1078 30 is_stmt 1 discriminator 22 view .LVU1069 3522 .LBB487: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3523 .loc 3 1089 3 discriminator 22 view .LVU1070 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3524 .loc 3 1089 6 is_stmt 0 discriminator 22 view .LVU1071 3525 038e 5BB1 cbz r3, .L220 3526 .loc 3 1093 3 is_stmt 1 view .LVU1072 3527 .loc 3 1093 10 is_stmt 0 view .LVU1073 3528 0390 B3FA83F3 clz r3, r3 3529 .LVL281: 3530 .L203: 3531 .loc 3 1093 10 view .LVU1074 3532 .LBE487: 3533 .LBE486: 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sConfig->SamplingTime); 3534 .loc 1 2889 50 view .LVU1075 3535 0394 0133 adds r3, r3, #1 3536 0396 03F01F03 and r3, r3, #31 3537 039a 03EB4303 add r3, r3, r3, lsl #1 3538 039e 1E3B subs r3, r3, #30 3539 03a0 1B05 lsls r3, r3, #20 3540 03a2 43F00073 orr r3, r3, #33554432 3541 03a6 C2E7 b .L202 3542 .LVL282: 3543 .L220: 3544 .LBB489: 3545 .LBB488: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3546 .loc 3 1091 12 view .LVU1076 3547 03a8 2023 movs r3, #32 3548 .LVL283: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3549 .loc 3 1091 12 view .LVU1077 3550 03aa F3E7 b .L203 3551 .LVL284: 3552 .L204: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3553 .loc 3 1091 12 view .LVU1078 3554 .LBE488: 3555 .LBE489: 2908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3556 .loc 1 2908 11 view .LVU1079 3557 03ac 12F4000F tst r2, #8388608 3558 03b0 7FF4BCAE bne .L205 ARM GAS /tmp/ccICigVb.s page 285 2910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3559 .loc 1 2910 9 is_stmt 1 view .LVU1080 2910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3560 .loc 1 2910 13 is_stmt 0 view .LVU1081 3561 03b4 2368 ldr r3, [r4] 2910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3562 .loc 1 2910 12 view .LVU1082 3563 03b6 B3F1A04F cmp r3, #1342177280 3564 03ba 01D0 beq .L237 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3565 .loc 1 2760 21 view .LVU1083 3566 03bc 0020 movs r0, #0 3567 03be 37E6 b .L155 3568 .L237: 2912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_chan 3569 .loc 1 2912 11 is_stmt 1 view .LVU1084 3570 03c0 41F40001 orr r1, r1, #8388608 3571 .LVL285: 3572 .LBB490: 3573 .LBI490: 2796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3574 .loc 2 2796 22 view .LVU1085 3575 .LBB491: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3576 .loc 2 2798 3 view .LVU1086 3577 03c4 234A ldr r2, .L241 3578 .LVL286: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3579 .loc 2 2798 3 is_stmt 0 view .LVU1087 3580 03c6 9368 ldr r3, [r2, #8] 3581 03c8 23F0E073 bic r3, r3, #29360128 3582 03cc 1943 orrs r1, r1, r3 3583 .LVL287: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3584 .loc 2 2798 3 view .LVU1088 3585 03ce 9160 str r1, [r2, #8] 3586 .LVL288: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3587 .loc 2 2798 3 view .LVU1089 3588 .LBE491: 3589 .LBE490: 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3590 .loc 1 2920 11 is_stmt 1 view .LVU1090 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3591 .loc 1 2920 91 is_stmt 0 view .LVU1091 3592 03d0 214B ldr r3, .L241+4 3593 03d2 1B68 ldr r3, [r3] 3594 03d4 9B09 lsrs r3, r3, #6 3595 03d6 214A ldr r2, .L241+8 3596 03d8 A2FB0323 umull r2, r3, r2, r3 3597 03dc 9B09 lsrs r3, r3, #6 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3598 .loc 1 2920 71 view .LVU1092 3599 03de 0133 adds r3, r3, #1 3600 03e0 03EB4303 add r3, r3, r3, lsl #1 3601 03e4 9B00 lsls r3, r3, #2 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) ARM GAS /tmp/ccICigVb.s page 286 3602 .loc 1 2920 27 view .LVU1093 3603 03e6 0193 str r3, [sp, #4] 2921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3604 .loc 1 2921 11 is_stmt 1 view .LVU1094 3605 .L206: 2921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3606 .loc 1 2921 34 view .LVU1095 3607 03e8 019B ldr r3, [sp, #4] 3608 03ea 1BB1 cbz r3, .L238 2923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3609 .loc 1 2923 13 view .LVU1096 2923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3610 .loc 1 2923 28 is_stmt 0 view .LVU1097 3611 03ec 019B ldr r3, [sp, #4] 3612 03ee 013B subs r3, r3, #1 3613 03f0 0193 str r3, [sp, #4] 3614 03f2 F9E7 b .L206 3615 .L238: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3616 .loc 1 2760 21 view .LVU1098 3617 03f4 0020 movs r0, #0 3618 03f6 1BE6 b .L155 3619 .LVL289: 3620 .L232: 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3621 .loc 1 2927 55 discriminator 1 view .LVU1099 3622 03f8 12F0807F tst r2, #16777216 3623 03fc 7FF49AAE bne .L208 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3624 .loc 1 2929 9 is_stmt 1 view .LVU1100 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3625 .loc 1 2929 13 is_stmt 0 view .LVU1101 3626 0400 2268 ldr r2, [r4] 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3627 .loc 1 2929 12 view .LVU1102 3628 0402 174B ldr r3, .L241+12 3629 0404 9A42 cmp r2, r3 3630 0406 1CD0 beq .L223 2931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel); 3631 .loc 1 2931 11 is_stmt 1 view .LVU1103 3632 0408 41F08071 orr r1, r1, #16777216 3633 .LVL290: 3634 .LBB492: 3635 .LBI492: 2796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3636 .loc 2 2796 22 view .LVU1104 3637 .LBB493: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3638 .loc 2 2798 3 view .LVU1105 3639 040c 114A ldr r2, .L241 3640 040e 9368 ldr r3, [r2, #8] 3641 0410 23F0E073 bic r3, r3, #29360128 3642 0414 1943 orrs r1, r1, r3 3643 .LVL291: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3644 .loc 2 2798 3 is_stmt 0 view .LVU1106 3645 0416 9160 str r1, [r2, #8] ARM GAS /tmp/ccICigVb.s page 287 3646 .LBE493: 3647 .LBE492: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3648 .loc 1 2760 21 view .LVU1107 3649 0418 0020 movs r0, #0 3650 .LBB495: 3651 .LBB494: 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3652 .loc 2 2799 1 view .LVU1108 3653 041a 09E6 b .L155 3654 .LVL292: 3655 .L233: 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3656 .loc 2 2799 1 view .LVU1109 3657 .LBE494: 3658 .LBE495: 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3659 .loc 1 2936 16 view .LVU1110 3660 041c 12F4800F tst r2, #4194304 3661 0420 11D1 bne .L225 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3662 .loc 1 2938 9 is_stmt 1 view .LVU1111 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3663 .loc 1 2938 13 is_stmt 0 view .LVU1112 3664 0422 2268 ldr r2, [r4] 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3665 .loc 1 2938 12 view .LVU1113 3666 0424 0E4B ldr r3, .L241+12 3667 0426 9A42 cmp r2, r3 3668 0428 0FD0 beq .L226 2940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel 3669 .loc 1 2940 11 is_stmt 1 view .LVU1114 3670 042a 41F48003 orr r3, r1, #4194304 3671 .LVL293: 3672 .LBB496: 3673 .LBI496: 2796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3674 .loc 2 2796 22 view .LVU1115 3675 .LBB497: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3676 .loc 2 2798 3 view .LVU1116 3677 042e 0949 ldr r1, .L241 3678 .LVL294: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3679 .loc 2 2798 3 is_stmt 0 view .LVU1117 3680 0430 8A68 ldr r2, [r1, #8] 3681 0432 22F0E072 bic r2, r2, #29360128 3682 0436 1343 orrs r3, r3, r2 3683 .LVL295: 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3684 .loc 2 2798 3 view .LVU1118 3685 0438 8B60 str r3, [r1, #8] 3686 .LBE497: 3687 .LBE496: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3688 .loc 1 2760 21 view .LVU1119 3689 043a 0020 movs r0, #0 ARM GAS /tmp/ccICigVb.s page 288 3690 .LBB499: 3691 .LBB498: 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3692 .loc 2 2799 1 view .LVU1120 3693 043c F8E5 b .L155 3694 .LVL296: 3695 .L221: 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3696 .loc 2 2799 1 view .LVU1121 3697 .LBE498: 3698 .LBE499: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3699 .loc 1 2760 21 view .LVU1122 3700 043e 0020 movs r0, #0 3701 0440 F6E5 b .L155 3702 .LVL297: 3703 .L223: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3704 .loc 1 2760 21 view .LVU1123 3705 0442 0020 movs r0, #0 3706 0444 F4E5 b .L155 3707 .L225: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3708 .loc 1 2760 21 view .LVU1124 3709 0446 0020 movs r0, #0 3710 0448 F2E5 b .L155 3711 .L226: 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3712 .loc 1 2760 21 view .LVU1125 3713 044a 0020 movs r0, #0 3714 044c F0E5 b .L155 3715 .LVL298: 3716 .L209: 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3717 .loc 1 2790 3 view .LVU1126 3718 044e 0220 movs r0, #2 3719 .LVL299: 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3720 .loc 1 2790 3 view .LVU1127 3721 0450 F1E5 b .L153 3722 .L242: 3723 0452 00BF .align 2 3724 .L241: 3725 0454 00030050 .word 1342178048 3726 0458 00000000 .word SystemCoreClock 3727 045c 632D3E05 .word 87960931 3728 0460 00010050 .word 1342177536 3729 .cfi_endproc 3730 .LFE349: 3732 .section .text.HAL_ADC_AnalogWDGConfig,"ax",%progbits 3733 .align 1 3734 .global HAL_ADC_AnalogWDGConfig 3735 .syntax unified 3736 .thumb 3737 .thumb_func 3739 HAL_ADC_AnalogWDGConfig: 3740 .LVL300: ARM GAS /tmp/ccICigVb.s page 289 3741 .LFB350: 2992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3742 .loc 1 2992 1 is_stmt 1 view -0 3743 .cfi_startproc 3744 @ args = 0, pretend = 0, frame = 0 3745 @ frame_needed = 0, uses_anonymous_args = 0 2992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3746 .loc 1 2992 1 is_stmt 0 view .LVU1129 3747 0000 38B5 push {r3, r4, r5, lr} 3748 .LCFI19: 3749 .cfi_def_cfa_offset 16 3750 .cfi_offset 3, -16 3751 .cfi_offset 4, -12 3752 .cfi_offset 5, -8 3753 .cfi_offset 14, -4 2993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpAWDHighThresholdShifted; 3754 .loc 1 2993 3 is_stmt 1 view .LVU1130 3755 .LVL301: 2994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpAWDLowThresholdShifted; 3756 .loc 1 2994 3 view .LVU1131 2995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3757 .loc 1 2995 3 view .LVU1132 2996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3758 .loc 1 2996 3 view .LVU1133 2997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3759 .loc 1 2997 3 view .LVU1134 3000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(AnalogWDGConfig->WatchdogNumber)); 3760 .loc 1 3000 3 view .LVU1135 3001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(AnalogWDGConfig->WatchdogMode)); 3761 .loc 1 3001 3 view .LVU1136 3002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_FILTERING_MODE(AnalogWDGConfig->FilteringConfig)); 3762 .loc 1 3002 3 view .LVU1137 3003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(AnalogWDGConfig->ITMode)); 3763 .loc 1 3003 3 view .LVU1138 3004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3764 .loc 1 3004 3 view .LVU1139 3006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (AnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 3765 .loc 1 3006 3 view .LVU1140 3010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3766 .loc 1 3010 5 view .LVU1141 3014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3767 .loc 1 3014 3 view .LVU1142 3025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), AnalogWDGConfig->LowThreshold)); 3768 .loc 1 3025 5 view .LVU1143 3026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3769 .loc 1 3026 5 view .LVU1144 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3770 .loc 1 3030 3 view .LVU1145 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3771 .loc 1 3030 3 view .LVU1146 3772 0002 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 3773 0006 012B cmp r3, #1 3774 0008 00F06781 beq .L279 3775 000c 0446 mov r4, r0 3776 000e 0D46 mov r5, r1 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3777 .loc 1 3030 3 discriminator 2 view .LVU1147 ARM GAS /tmp/ccICigVb.s page 290 3778 0010 0123 movs r3, #1 3779 0012 80F85830 strb r3, [r0, #88] 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3780 .loc 1 3030 3 discriminator 2 view .LVU1148 3036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3781 .loc 1 3036 3 discriminator 2 view .LVU1149 3036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3782 .loc 1 3036 44 is_stmt 0 discriminator 2 view .LVU1150 3783 0016 0068 ldr r0, [r0] 3784 .LVL302: 3785 .LBB500: 3786 .LBI500: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3787 .loc 2 6851 26 is_stmt 1 discriminator 2 view .LVU1151 3788 .LBB501: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3789 .loc 2 6853 3 discriminator 2 view .LVU1152 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3790 .loc 2 6853 12 is_stmt 0 discriminator 2 view .LVU1153 3791 0018 8368 ldr r3, [r0, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3792 .loc 2 6853 74 discriminator 2 view .LVU1154 3793 001a 13F00403 ands r3, r3, #4 3794 001e 00D0 beq .L245 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3795 .loc 2 6853 74 view .LVU1155 3796 0020 0123 movs r3, #1 3797 .L245: 3798 .LVL303: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3799 .loc 2 6853 74 view .LVU1156 3800 .LBE501: 3801 .LBE500: 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 3802 .loc 1 3037 3 is_stmt 1 view .LVU1157 3803 .LBB502: 3804 .LBI502: 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3805 .loc 2 7076 26 view .LVU1158 3806 .LBB503: 3807 .loc 2 7078 3 view .LVU1159 3808 .loc 2 7078 12 is_stmt 0 view .LVU1160 3809 0022 8268 ldr r2, [r0, #8] 3810 .loc 2 7078 76 view .LVU1161 3811 0024 12F00802 ands r2, r2, #8 3812 0028 00D0 beq .L246 3813 002a 0122 movs r2, #1 3814 .L246: 3815 .LVL304: 3816 .loc 2 7078 76 view .LVU1162 3817 .LBE503: 3818 .LBE502: 3038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3819 .loc 1 3038 3 is_stmt 1 view .LVU1163 3038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3820 .loc 1 3038 6 is_stmt 0 view .LVU1164 3821 002c 002B cmp r3, #0 ARM GAS /tmp/ccICigVb.s page 291 3822 002e 40F0EC80 bne .L247 3039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3823 .loc 1 3039 7 view .LVU1165 3824 0032 002A cmp r2, #0 3825 0034 40F0E980 bne .L247 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3826 .loc 1 3043 5 is_stmt 1 view .LVU1166 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3827 .loc 1 3043 24 is_stmt 0 view .LVU1167 3828 0038 2968 ldr r1, [r5] 3829 .LVL305: 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3830 .loc 1 3043 8 view .LVU1168 3831 003a A94B ldr r3, .L291 3832 .LVL306: 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3833 .loc 1 3043 8 view .LVU1169 3834 003c 9942 cmp r1, r3 3835 003e 16D0 beq .L283 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3836 .loc 1 3109 7 is_stmt 1 view .LVU1170 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3837 .loc 1 3109 30 is_stmt 0 view .LVU1171 3838 0040 6B68 ldr r3, [r5, #4] 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3839 .loc 1 3109 7 view .LVU1172 3840 0042 B3F1A07F cmp r3, #20971520 3841 0046 00F09280 beq .L259 3842 004a 00F28980 bhi .L260 3843 004e B3F5400F cmp r3, #12582912 3844 0052 00F08C80 beq .L259 3845 0056 B3F1807F cmp r3, #16777216 3846 005a 00F0BF80 beq .L261 3847 005e B3F5000F cmp r3, #8388608 3848 0062 00F0BB80 beq .L261 3849 .L262: 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3850 .loc 1 3133 11 is_stmt 1 view .LVU1173 3851 0066 0022 movs r2, #0 3852 .LVL307: 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3853 .loc 1 3133 11 is_stmt 0 view .LVU1174 3854 0068 FFF7FEFF bl LL_ADC_SetAnalogWDMonitChannels 3855 .LVL308: 3134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3856 .loc 1 3134 11 is_stmt 1 view .LVU1175 3857 006c B9E0 b .L267 3858 .LVL309: 3859 .L283: 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3860 .loc 1 3048 7 view .LVU1176 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3861 .loc 1 3048 30 is_stmt 0 view .LVU1177 3862 006e 6B68 ldr r3, [r5, #4] 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3863 .loc 1 3048 7 view .LVU1178 3864 0070 B3F1A07F cmp r3, #20971520 ARM GAS /tmp/ccICigVb.s page 292 3865 0074 51D0 beq .L249 3866 0076 1AD8 bhi .L250 3867 0078 B3F5400F cmp r3, #12582912 3868 007c 2AD0 beq .L251 3869 007e B3F1807F cmp r3, #16777216 3870 0082 08D1 bne .L284 3070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3871 .loc 1 3070 11 is_stmt 1 view .LVU1179 3872 .LVL310: 3873 .LBB504: 3874 .LBI504: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3875 .loc 2 5725 22 view .LVU1180 3876 .LBB505: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 3877 .loc 2 5731 3 view .LVU1181 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3878 .loc 2 5734 3 view .LVU1182 3879 0084 C368 ldr r3, [r0, #12] 3880 0086 23F0FB43 bic r3, r3, #2105540608 3881 008a 23F48003 bic r3, r3, #4194304 3882 008e 43F08073 orr r3, r3, #16777216 3883 0092 C360 str r3, [r0, #12] 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3884 .loc 2 5737 1 is_stmt 0 view .LVU1183 3885 0094 2AE0 b .L257 3886 .LVL311: 3887 .L284: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3888 .loc 2 5737 1 view .LVU1184 3889 .LBE505: 3890 .LBE504: 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3891 .loc 1 3048 7 view .LVU1185 3892 0096 B3F5000F cmp r3, #8388608 3893 009a 54D1 bne .L254 3066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3894 .loc 1 3066 11 is_stmt 1 view .LVU1186 3895 .LVL312: 3896 .LBB506: 3897 .LBI506: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3898 .loc 2 5725 22 view .LVU1187 3899 .LBB507: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 3900 .loc 2 5731 3 view .LVU1188 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3901 .loc 2 5734 3 view .LVU1189 3902 009c C368 ldr r3, [r0, #12] 3903 009e 23F0FB43 bic r3, r3, #2105540608 3904 00a2 23F48003 bic r3, r3, #4194304 3905 00a6 43F40003 orr r3, r3, #8388608 3906 00aa C360 str r3, [r0, #12] 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3907 .loc 2 5737 1 is_stmt 0 view .LVU1190 3908 00ac 1EE0 b .L257 3909 .LVL313: ARM GAS /tmp/ccICigVb.s page 293 3910 .L250: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3911 .loc 2 5737 1 view .LVU1191 3912 .LBE507: 3913 .LBE506: 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3914 .loc 1 3048 7 view .LVU1192 3915 00ae B3F1C07F cmp r3, #25165824 3916 00b2 3FD0 beq .L255 3917 00b4 B3F1E07F cmp r3, #29360128 3918 00b8 45D1 bne .L254 3061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 3919 .loc 1 3061 11 is_stmt 1 view .LVU1193 3061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJECTED)); 3920 .loc 1 3061 72 is_stmt 0 view .LVU1194 3921 00ba AA68 ldr r2, [r5, #8] 3922 .LVL314: 3923 .LBB508: 3924 .LBI508: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3925 .loc 2 5725 22 is_stmt 1 view .LVU1195 3926 .LBB509: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 3927 .loc 2 5731 3 view .LVU1196 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3928 .loc 2 5734 3 view .LVU1197 3929 00bc C368 ldr r3, [r0, #12] 3930 00be 23F0FB43 bic r3, r3, #2105540608 3931 00c2 23F48003 bic r3, r3, #4194304 3932 00c6 02F0F842 and r2, r2, #2080374784 3933 .LVL315: 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3934 .loc 2 5734 3 is_stmt 0 view .LVU1198 3935 00ca 42F0E072 orr r2, r2, #29360128 3936 00ce 1343 orrs r3, r3, r2 3937 00d0 C360 str r3, [r0, #12] 3938 .LVL316: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3939 .loc 2 5737 1 view .LVU1199 3940 00d2 0BE0 b .L257 3941 .LVL317: 3942 .L251: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3943 .loc 2 5737 1 view .LVU1200 3944 .LBE509: 3945 .LBE508: 3051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 3946 .loc 1 3051 11 is_stmt 1 view .LVU1201 3051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 3947 .loc 1 3051 72 is_stmt 0 view .LVU1202 3948 00d4 AA68 ldr r2, [r5, #8] 3949 .LVL318: 3950 .LBB510: 3951 .LBI510: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3952 .loc 2 5725 22 is_stmt 1 view .LVU1203 3953 .LBB511: ARM GAS /tmp/ccICigVb.s page 294 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 3954 .loc 2 5731 3 view .LVU1204 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3955 .loc 2 5734 3 view .LVU1205 3956 00d6 C368 ldr r3, [r0, #12] 3957 00d8 23F0FB43 bic r3, r3, #2105540608 3958 00dc 23F48003 bic r3, r3, #4194304 3959 00e0 02F0F842 and r2, r2, #2080374784 3960 .LVL319: 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3961 .loc 2 5734 3 is_stmt 0 view .LVU1206 3962 00e4 42F44002 orr r2, r2, #12582912 3963 00e8 1343 orrs r3, r3, r2 3964 00ea C360 str r3, [r0, #12] 3965 .LVL320: 3966 .L257: 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3967 .loc 2 5734 3 view .LVU1207 3968 .LBE511: 3969 .LBE510: 3083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_TR1_AWDFILT, 3970 .loc 1 3083 7 is_stmt 1 view .LVU1208 3971 00ec 2268 ldr r2, [r4] 3972 00ee 136A ldr r3, [r2, #32] 3973 00f0 23F4E043 bic r3, r3, #28672 3974 00f4 A969 ldr r1, [r5, #24] 3975 00f6 0B43 orrs r3, r3, r1 3976 00f8 1362 str r3, [r2, #32] 3088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3977 .loc 1 3088 7 view .LVU1209 3978 00fa E36D ldr r3, [r4, #92] 3979 00fc 23F48033 bic r3, r3, #65536 3980 0100 E365 str r3, [r4, #92] 3094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3981 .loc 1 3094 7 view .LVU1210 3982 0102 2368 ldr r3, [r4] 3983 .LVL321: 3984 .LBB512: 3985 .LBI512: 7079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected command of conversion stop state 7083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_IsStopConversionOngoing 7084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group injected. 7086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsStopConversionOngoing(ADC_TypeDef *ADCx) 7088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTP) == (ADC_CR_JADSTP)) ? 1UL : 0UL); 7090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 7095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all oversampling increased data width (for devices 7096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with feature oversampling). ARM GAS /tmp/ccICigVb.s page 295 7097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32\n 7098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData32\n 7099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData32\n 7100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData32 7101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32(ADC_TypeDef *ADCx, uint32_t Rank) 7110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 7114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 7115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 12 bits. 7121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData12\n 7125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData12\n 7126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData12\n 7127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData12 7128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 7135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12(ADC_TypeDef *ADCx, uint32_t Rank) 7137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 7142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 10 bits. 7148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData10\n 7152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData10\n 7153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData10\n ARM GAS /tmp/ccICigVb.s page 296 7154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData10 7155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 7162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10(ADC_TypeDef *ADCx, uint32_t Rank) 7164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 7168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 7169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 8 bits. 7175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData8\n 7179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData8\n 7180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData8\n 7181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData8 7182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 7184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 7189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8(ADC_TypeDef *ADCx, uint32_t Rank) 7191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(*preg, 7195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 7196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 7201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 6 bits. 7202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 7205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData6\n 7206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData6\n 7207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData6\n 7208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData6 7209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: ARM GAS /tmp/ccICigVb.s page 297 7211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 7212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 7213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 7214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 7215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x3F 7216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData6(ADC_TypeDef *ADCx, uint32_t Rank) 7218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK 7220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(*preg, 7222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 7223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 7224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 7228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_FLAG_Management ADC flag management 7231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC ready. 7236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 7238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_IsActiveFlag_ADRDY 7240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_ADRDY(ADC_TypeDef *ADCx) 7244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_ADRDY) == (LL_ADC_FLAG_ADRDY)) ? 1UL : 0UL); 7246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of unitary conversion. 7250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_IsActiveFlag_EOC 7251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOC(ADC_TypeDef *ADCx) 7255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, ADC_ISR_EOC) == (ADC_ISR_EOC)) ? 1UL : 0UL); 7257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of sequence conversions. 7261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_IsActiveFlag_EOS 7262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOS(ADC_TypeDef *ADCx) 7266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOS) == (LL_ADC_FLAG_EOS)) ? 1UL : 0UL); ARM GAS /tmp/ccICigVb.s page 298 7268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular overrun. 7272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_IsActiveFlag_OVR 7273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_OVR(ADC_TypeDef *ADCx) 7277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_OVR) == (LL_ADC_FLAG_OVR)) ? 1UL : 0UL); 7279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of sampling phase. 7283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_IsActiveFlag_EOSMP 7284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOSMP(ADC_TypeDef *ADCx) 7288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOSMP) == (LL_ADC_FLAG_EOSMP)) ? 1UL : 0UL); 7290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected end of unitary conversion. 7294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_IsActiveFlag_JEOC 7295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOC(ADC_TypeDef *ADCx) 7299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOC) == (LL_ADC_FLAG_JEOC)) ? 1UL : 0UL); 7301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected end of sequence conversions. 7305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_IsActiveFlag_JEOS 7306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOS(ADC_TypeDef *ADCx) 7310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOS) == (LL_ADC_FLAG_JEOS)) ? 1UL : 0UL); 7312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected contexts queue overflow. 7316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_IsActiveFlag_JQOVF 7317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JQOVF(ADC_TypeDef *ADCx) 7321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JQOVF) == (LL_ADC_FLAG_JQOVF)) ? 1UL : 0UL); 7323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/ccICigVb.s page 299 7325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 1 flag 7327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_IsActiveFlag_AWD1 7328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD1(ADC_TypeDef *ADCx) 7332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD1) == (LL_ADC_FLAG_AWD1)) ? 1UL : 0UL); 7334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 2. 7338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_IsActiveFlag_AWD2 7339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD2(ADC_TypeDef *ADCx) 7343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD2) == (LL_ADC_FLAG_AWD2)) ? 1UL : 0UL); 7345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 3. 7349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_IsActiveFlag_AWD3 7350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD3(ADC_TypeDef *ADCx) 7354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD3) == (LL_ADC_FLAG_AWD3)) ? 1UL : 0UL); 7356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC ready. 7360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 7362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_ClearFlag_ADRDY 7364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_ADRDY(ADC_TypeDef *ADCx) 7368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_ADRDY); 7370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of unitary conversion. 7374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_ClearFlag_EOC 7375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOC(ADC_TypeDef *ADCx) 7379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOC); 7381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/ccICigVb.s page 300 7382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sequence conversions. 7385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_ClearFlag_EOS 7386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOS(ADC_TypeDef *ADCx) 7390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOS); 7392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular overrun. 7396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_ClearFlag_OVR 7397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_OVR(ADC_TypeDef *ADCx) 7401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_OVR); 7403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sampling phase. 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_ClearFlag_EOSMP 7408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOSMP(ADC_TypeDef *ADCx) 7412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOSMP); 7414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected end of unitary conversion. 7418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_ClearFlag_JEOC 7419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOC(ADC_TypeDef *ADCx) 7423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOC); 7425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected end of sequence conversions. 7429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_ClearFlag_JEOS 7430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOS(ADC_TypeDef *ADCx) 7434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOS); 7436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 301 7439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected contexts queue overflow. 7440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_ClearFlag_JQOVF 7441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JQOVF(ADC_TypeDef *ADCx) 7445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JQOVF); 7447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 1. 7451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_ClearFlag_AWD1 7452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx) 3986 .loc 2 7455 22 view .LVU1211 3987 .LBB513: 7456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD1); 3988 .loc 2 7457 3 view .LVU1212 3989 0104 8022 movs r2, #128 3990 0106 1A60 str r2, [r3] 3991 .LVL322: 3992 .loc 2 7457 3 is_stmt 0 view .LVU1213 3993 .LBE513: 3994 .LBE512: 3097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3995 .loc 1 3097 7 is_stmt 1 view .LVU1214 3097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3996 .loc 1 3097 26 is_stmt 0 view .LVU1215 3997 0108 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3998 .loc 1 3097 10 view .LVU1216 3999 010a 012B cmp r3, #1 4000 010c 22D0 beq .L285 3103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4001 .loc 1 3103 9 is_stmt 1 view .LVU1217 4002 010e 2268 ldr r2, [r4] 4003 .LVL323: 4004 .LBB514: 4005 .LBI514: 7458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 2. 7462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_ClearFlag_AWD2 7463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD2(ADC_TypeDef *ADCx) 7467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD2); 7469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 302 7472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 3. 7473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_ClearFlag_AWD3 7474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD3(ADC_TypeDef *ADCx) 7478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD3); 7480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 7483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC master. 7485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR ADRDY_MST LL_ADC_IsActiveFlag_MST_ADRDY 7486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_ADRDY(ADC_Common_TypeDef *ADCxy_COMMON) 7491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_ADRDY_MST) == (LL_ADC_FLAG_ADRDY_MST)) ? 1UL : 0 7493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC slave. 7497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR ADRDY_SLV LL_ADC_IsActiveFlag_SLV_ADRDY 7498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_ADRDY(ADC_Common_TypeDef *ADCxy_COMMON) 7503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_ADRDY_SLV) == (LL_ADC_FLAG_ADRDY_SLV)) ? 1UL : 0 7505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC master. 7509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOC_MST LL_ADC_IsActiveFlag_MST_EOC 7510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOC(ADC_Common_TypeDef *ADCxy_COMMON) 7515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOC_SLV) == (LL_ADC_FLAG_EOC_SLV)) ? 1UL : 0UL); 7517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC slave. 7521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOC_SLV LL_ADC_IsActiveFlag_SLV_EOC 7522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOC(ADC_Common_TypeDef *ADCxy_COMMON) 7527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOC_SLV) == (LL_ADC_FLAG_EOC_SLV)) ? 1UL : 0UL); ARM GAS /tmp/ccICigVb.s page 303 7529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC master. 7533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOS_MST LL_ADC_IsActiveFlag_MST_EOS 7534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOS(ADC_Common_TypeDef *ADCxy_COMMON) 7539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOS_MST) == (LL_ADC_FLAG_EOS_MST)) ? 1UL : 0UL); 7541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC slave. 7545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOS_SLV LL_ADC_IsActiveFlag_SLV_EOS 7546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOS(ADC_Common_TypeDef *ADCxy_COMMON) 7551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOS_SLV) == (LL_ADC_FLAG_EOS_SLV)) ? 1UL : 0UL); 7553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC master. 7557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR OVR_MST LL_ADC_IsActiveFlag_MST_OVR 7558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_OVR(ADC_Common_TypeDef *ADCxy_COMMON) 7563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_MST) == (LL_ADC_FLAG_OVR_MST)) ? 1UL : 0UL); 7565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC slave. 7569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR OVR_SLV LL_ADC_IsActiveFlag_SLV_OVR 7570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_OVR(ADC_Common_TypeDef *ADCxy_COMMON) 7575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_OVR_SLV) == (LL_ADC_FLAG_OVR_SLV)) ? 1UL : 0UL); 7577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC master. 7581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOSMP_MST LL_ADC_IsActiveFlag_MST_EOSMP 7582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/ccICigVb.s page 304 7586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOSMP(ADC_Common_TypeDef *ADCxy_COMMON) 7587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOSMP_MST) == (LL_ADC_FLAG_EOSMP_MST)) ? 1UL : 0 7589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC slave. 7593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOSMP_SLV LL_ADC_IsActiveFlag_SLV_EOSMP 7594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOSMP(ADC_Common_TypeDef *ADCxy_COMMON) 7599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_EOSMP_SLV) == (LL_ADC_FLAG_EOSMP_SLV)) ? 1UL : 0 7601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC master. 7605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOC_MST LL_ADC_IsActiveFlag_MST_JEOC 7606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOC(ADC_Common_TypeDef *ADCxy_COMMON) 7611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOC_MST) == (LL_ADC_FLAG_JEOC_MST)) ? 1UL : 0UL 7613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC slave. 7617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOC_SLV LL_ADC_IsActiveFlag_SLV_JEOC 7618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOC(ADC_Common_TypeDef *ADCxy_COMMON) 7623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOC_SLV) == (LL_ADC_FLAG_JEOC_SLV)) ? 1UL : 0UL 7625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC master. 7629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOS_MST LL_ADC_IsActiveFlag_MST_JEOS 7630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOS(ADC_Common_TypeDef *ADCxy_COMMON) 7635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOS_MST) == (LL_ADC_FLAG_JEOS_MST)) ? 1UL : 0UL 7637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC slave. 7641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOS_SLV LL_ADC_IsActiveFlag_SLV_JEOS 7642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance ARM GAS /tmp/ccICigVb.s page 305 7643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOS(ADC_Common_TypeDef *ADCxy_COMMON) 7647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JEOS_SLV) == (LL_ADC_FLAG_JEOS_SLV)) ? 1UL : 0UL 7649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC master. 7653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JQOVF_MST LL_ADC_IsActiveFlag_MST_JQOVF 7654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JQOVF(ADC_Common_TypeDef *ADCxy_COMMON) 7659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JQOVF_MST) == (LL_ADC_FLAG_JQOVF_MST)) ? 1UL : 0 7661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC slave. 7665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JQOVF_SLV LL_ADC_IsActiveFlag_SLV_JQOVF 7666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JQOVF(ADC_Common_TypeDef *ADCxy_COMMON) 7671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_JQOVF_SLV) == (LL_ADC_FLAG_JQOVF_SLV)) ? 1UL : 0 7673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 1 of the ADC master. 7677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD1_MST LL_ADC_IsActiveFlag_MST_AWD1 7678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD1(ADC_Common_TypeDef *ADCxy_COMMON) 7683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_MST) == (LL_ADC_FLAG_AWD1_MST)) ? 1UL : 0UL 7685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode analog watchdog 1 of the ADC slave. 7689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD1_SLV LL_ADC_IsActiveFlag_SLV_AWD1 7690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD1(ADC_Common_TypeDef *ADCxy_COMMON) 7695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD1_SLV) == (LL_ADC_FLAG_AWD1_SLV)) ? 1UL : 0UL 7697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 306 7700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC master. 7701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD2_MST LL_ADC_IsActiveFlag_MST_AWD2 7702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD2(ADC_Common_TypeDef *ADCxy_COMMON) 7707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD2_MST) == (LL_ADC_FLAG_AWD2_MST)) ? 1UL : 0UL 7709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC slave. 7713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD2_SLV LL_ADC_IsActiveFlag_SLV_AWD2 7714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD2(ADC_Common_TypeDef *ADCxy_COMMON) 7719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD2_SLV) == (LL_ADC_FLAG_AWD2_SLV)) ? 1UL : 0UL 7721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC master. 7725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD3_MST LL_ADC_IsActiveFlag_MST_AWD3 7726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD3(ADC_Common_TypeDef *ADCxy_COMMON) 7731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD3_MST) == (LL_ADC_FLAG_AWD3_MST)) ? 1UL : 0UL 7733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC slave. 7737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD3_SLV LL_ADC_IsActiveFlag_SLV_AWD3 7738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (can be set directly from CMSIS definition or by using helper macro @ref __LL_ADC_COMMO 7740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 7741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD3(ADC_Common_TypeDef *ADCxy_COMMON) 7743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCxy_COMMON->CSR, LL_ADC_FLAG_AWD3_SLV) == (LL_ADC_FLAG_AWD3_SLV)) ? 1UL : 0UL 7745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 7747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 7750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_IT_Management ADC IT management 7753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/ccICigVb.s page 307 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC ready. 7758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_EnableIT_ADRDY 7759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_ADRDY(ADC_TypeDef *ADCx) 7763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 7765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of unitary conversion. 7769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_EnableIT_EOC 7770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOC(ADC_TypeDef *ADCx) 7774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOC); 7776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sequence conversions. 7780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_EnableIT_EOS 7781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOS(ADC_TypeDef *ADCx) 7785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOS); 7787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC group regular interruption overrun. 7791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_EnableIT_OVR 7792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_OVR(ADC_TypeDef *ADCx) 7796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_OVR); 7798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sampling. 7802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_EnableIT_EOSMP 7803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOSMP(ADC_TypeDef *ADCx) 7807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 7809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of unitary conversion. 7813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_EnableIT_JEOC ARM GAS /tmp/ccICigVb.s page 308 7814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOC(ADC_TypeDef *ADCx) 7818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOC); 7820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of sequence conversions. 7824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_EnableIT_JEOS 7825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOS(ADC_TypeDef *ADCx) 7829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOS); 7831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected context queue overflow. 7835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_EnableIT_JQOVF 7836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JQOVF(ADC_TypeDef *ADCx) 7840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 7842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 1. 7846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_EnableIT_AWD1 7847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD1(ADC_TypeDef *ADCx) 7851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD1); 7853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 2. 7857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_EnableIT_AWD2 7858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD2(ADC_TypeDef *ADCx) 7862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD2); 7864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 3. 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_EnableIT_AWD3 7869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None ARM GAS /tmp/ccICigVb.s page 309 7871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD3(ADC_TypeDef *ADCx) 7873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD3); 7875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC ready. 7879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_DisableIT_ADRDY 7880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_ADRDY(ADC_TypeDef *ADCx) 7884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 7886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. 7890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_DisableIT_EOC 7891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOC(ADC_TypeDef *ADCx) 7895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOC); 7897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sequence conversions. 7901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_DisableIT_EOS 7902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOS(ADC_TypeDef *ADCx) 7906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOS); 7908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular overrun. 7912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_DisableIT_OVR 7913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_OVR(ADC_TypeDef *ADCx) 7917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_OVR); 7919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sampling. 7923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_DisableIT_EOSMP 7924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOSMP(ADC_TypeDef *ADCx) ARM GAS /tmp/ccICigVb.s page 310 7928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 7930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. 7934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_DisableIT_JEOC 7935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOC(ADC_TypeDef *ADCx) 7939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOC); 7941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group injected end of sequence conversions. 7945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_DisableIT_JEOS 7946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOS(ADC_TypeDef *ADCx) 7950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOS); 7952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group injected context queue overflow. 7956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_DisableIT_JQOVF 7957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JQOVF(ADC_TypeDef *ADCx) 7961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 7963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 1. 7967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_DisableIT_AWD1 7968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD1(ADC_TypeDef *ADCx) 4006 .loc 2 7971 22 view .LVU1218 4007 .LBB515: 7972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD1); 4008 .loc 2 7973 3 view .LVU1219 4009 0110 5368 ldr r3, [r2, #4] 4010 0112 23F08003 bic r3, r3, #128 4011 0116 5360 str r3, [r2, #4] 7974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4012 .loc 2 7974 1 is_stmt 0 view .LVU1220 4013 0118 77E0 b .L247 4014 .LVL324: 4015 .L249: ARM GAS /tmp/ccICigVb.s page 311 4016 .loc 2 7974 1 view .LVU1221 4017 .LBE515: 4018 .LBE514: 3056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 4019 .loc 1 3056 11 is_stmt 1 view .LVU1222 3056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 4020 .loc 1 3056 72 is_stmt 0 view .LVU1223 4021 011a AA68 ldr r2, [r5, #8] 4022 .LVL325: 4023 .LBB516: 4024 .LBI516: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4025 .loc 2 5725 22 is_stmt 1 view .LVU1224 4026 .LBB517: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 4027 .loc 2 5731 3 view .LVU1225 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4028 .loc 2 5734 3 view .LVU1226 4029 011c C368 ldr r3, [r0, #12] 4030 011e 23F0FB43 bic r3, r3, #2105540608 4031 0122 23F48003 bic r3, r3, #4194304 4032 0126 02F0F842 and r2, r2, #2080374784 4033 .LVL326: 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4034 .loc 2 5734 3 is_stmt 0 view .LVU1227 4035 012a 42F0A072 orr r2, r2, #20971520 4036 012e 1343 orrs r3, r3, r2 4037 0130 C360 str r3, [r0, #12] 4038 .LVL327: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4039 .loc 2 5737 1 view .LVU1228 4040 0132 DBE7 b .L257 4041 .LVL328: 4042 .L255: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4043 .loc 2 5737 1 view .LVU1229 4044 .LBE517: 4045 .LBE516: 3074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4046 .loc 1 3074 11 is_stmt 1 view .LVU1230 4047 .LBB518: 4048 .LBI518: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4049 .loc 2 5725 22 view .LVU1231 4050 .LBB519: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 4051 .loc 2 5731 3 view .LVU1232 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4052 .loc 2 5734 3 view .LVU1233 4053 0134 C368 ldr r3, [r0, #12] 4054 0136 23F0FB43 bic r3, r3, #2105540608 4055 013a 23F48003 bic r3, r3, #4194304 4056 013e 43F0C073 orr r3, r3, #25165824 4057 0142 C360 str r3, [r0, #12] 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4058 .loc 2 5737 1 is_stmt 0 view .LVU1234 4059 0144 D2E7 b .L257 ARM GAS /tmp/ccICigVb.s page 312 4060 .LVL329: 4061 .L254: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4062 .loc 2 5737 1 view .LVU1235 4063 .LBE519: 4064 .LBE518: 3078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4065 .loc 1 3078 11 is_stmt 1 view .LVU1236 4066 .LBB520: 4067 .LBI520: 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4068 .loc 2 5725 22 view .LVU1237 4069 .LBB521: 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) * ADC_AWD_C 4070 .loc 2 5731 3 view .LVU1238 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4071 .loc 2 5734 3 view .LVU1239 4072 0146 C368 ldr r3, [r0, #12] 4073 0148 23F0FB43 bic r3, r3, #2105540608 4074 014c 23F48003 bic r3, r3, #4194304 4075 0150 C360 str r3, [r0, #12] 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4076 .loc 2 5737 1 is_stmt 0 view .LVU1240 4077 0152 CBE7 b .L257 4078 .LVL330: 4079 .L285: 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4080 .loc 2 5737 1 view .LVU1241 4081 .LBE521: 4082 .LBE520: 3099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4083 .loc 1 3099 9 is_stmt 1 view .LVU1242 4084 0154 2268 ldr r2, [r4] 4085 .LVL331: 4086 .LBB522: 4087 .LBI522: 7850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4088 .loc 2 7850 22 view .LVU1243 4089 .LBB523: 7852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4090 .loc 2 7852 3 view .LVU1244 4091 0156 5368 ldr r3, [r2, #4] 4092 0158 43F08003 orr r3, r3, #128 4093 015c 5360 str r3, [r2, #4] 7853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4094 .loc 2 7853 1 is_stmt 0 view .LVU1245 4095 015e 54E0 b .L247 4096 .LVL332: 4097 .L260: 7853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4098 .loc 2 7853 1 view .LVU1246 4099 .LBE523: 4100 .LBE522: 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4101 .loc 1 3109 7 view .LVU1247 4102 0160 B3F1C07F cmp r3, #25165824 4103 0164 3AD0 beq .L261 ARM GAS /tmp/ccICigVb.s page 313 4104 0166 B3F1E07F cmp r3, #29360128 4105 016a 7FF47CAF bne .L262 4106 .L259: 3116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4107 .loc 1 3116 11 is_stmt 1 view .LVU1248 3116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4108 .loc 1 3116 14 is_stmt 0 view .LVU1249 4109 016e 5D4B ldr r3, .L291+4 4110 0170 9942 cmp r1, r3 4111 0172 0DD0 beq .L286 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4112 .loc 1 3122 13 is_stmt 1 view .LVU1250 4113 0174 AB68 ldr r3, [r5, #8] 4114 0176 C3F31202 ubfx r2, r3, #0, #19 4115 .LVL333: 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4116 .loc 1 3122 13 is_stmt 0 view .LVU1251 4117 017a 1ABB cbnz r2, .L268 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4118 .loc 1 3122 13 discriminator 1 view .LVU1252 4119 017c C3F38463 ubfx r3, r3, #26, #5 4120 0180 0122 movs r2, #1 4121 0182 9A40 lsls r2, r2, r3 4122 .L269: 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4123 .loc 1 3122 13 discriminator 4 view .LVU1253 4124 0184 D0F8A430 ldr r3, [r0, #164] 4125 0188 1343 orrs r3, r3, r2 4126 018a C0F8A430 str r3, [r0, #164] 4127 018e 28E0 b .L267 4128 .LVL334: 4129 .L286: 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4130 .loc 1 3118 13 is_stmt 1 view .LVU1254 4131 0190 AB68 ldr r3, [r5, #8] 4132 0192 C3F31202 ubfx r2, r3, #0, #19 4133 .LVL335: 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4134 .loc 1 3118 13 is_stmt 0 view .LVU1255 4135 0196 4AB9 cbnz r2, .L264 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4136 .loc 1 3118 13 discriminator 1 view .LVU1256 4137 0198 C3F38463 ubfx r3, r3, #26, #5 4138 019c 0122 movs r2, #1 4139 019e 9A40 lsls r2, r2, r3 4140 .L265: 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4141 .loc 1 3118 13 discriminator 4 view .LVU1257 4142 01a0 D0F8A030 ldr r3, [r0, #160] 4143 01a4 1343 orrs r3, r3, r2 4144 01a6 C0F8A030 str r3, [r0, #160] 4145 01aa 1AE0 b .L267 4146 .L264: 4147 .LVL336: 4148 .LBB524: 4149 .LBI524: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { ARM GAS /tmp/ccICigVb.s page 314 4150 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU1258 4151 .LBB525: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 4152 .loc 3 1050 3 discriminator 2 view .LVU1259 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 4153 .loc 3 1055 4 discriminator 2 view .LVU1260 4154 .syntax unified 4155 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 4156 01ac 93FAA3F3 rbit r3, r3 4157 @ 0 "" 2 4158 .LVL337: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4159 .loc 3 1068 3 discriminator 2 view .LVU1261 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4160 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU1262 4161 .thumb 4162 .syntax unified 4163 .LBE525: 4164 .LBE524: 4165 .LBB526: 4166 .LBI526: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4167 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU1263 4168 .LBB527: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4169 .loc 3 1089 3 discriminator 2 view .LVU1264 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4170 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU1265 4171 01b0 33B1 cbz r3, .L280 4172 .loc 3 1093 3 is_stmt 1 view .LVU1266 4173 .loc 3 1093 10 is_stmt 0 view .LVU1267 4174 01b2 B3FA83F3 clz r3, r3 4175 .LVL338: 4176 .L266: 4177 .loc 3 1093 10 view .LVU1268 4178 .LBE527: 4179 .LBE526: 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4180 .loc 1 3118 13 view .LVU1269 4181 01b6 03F01F03 and r3, r3, #31 4182 01ba 0122 movs r2, #1 4183 01bc 9A40 lsls r2, r2, r3 4184 01be EFE7 b .L265 4185 .LVL339: 4186 .L280: 4187 .LBB529: 4188 .LBB528: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4189 .loc 3 1091 12 view .LVU1270 4190 01c0 2023 movs r3, #32 4191 .LVL340: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4192 .loc 3 1091 12 view .LVU1271 4193 01c2 F8E7 b .L266 4194 .LVL341: 4195 .L268: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } ARM GAS /tmp/ccICigVb.s page 315 4196 .loc 3 1091 12 view .LVU1272 4197 .LBE528: 4198 .LBE529: 4199 .LBB530: 4200 .LBI530: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4201 .loc 3 1048 31 is_stmt 1 discriminator 2 view .LVU1273 4202 .LBB531: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 4203 .loc 3 1050 3 discriminator 2 view .LVU1274 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 4204 .loc 3 1055 4 discriminator 2 view .LVU1275 4205 .syntax unified 4206 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 4207 01c4 93FAA3F3 rbit r3, r3 4208 @ 0 "" 2 4209 .LVL342: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4210 .loc 3 1068 3 discriminator 2 view .LVU1276 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4211 .loc 3 1068 3 is_stmt 0 discriminator 2 view .LVU1277 4212 .thumb 4213 .syntax unified 4214 .LBE531: 4215 .LBE530: 4216 .LBB532: 4217 .LBI532: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4218 .loc 3 1078 30 is_stmt 1 discriminator 2 view .LVU1278 4219 .LBB533: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4220 .loc 3 1089 3 discriminator 2 view .LVU1279 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4221 .loc 3 1089 6 is_stmt 0 discriminator 2 view .LVU1280 4222 01c8 33B1 cbz r3, .L281 4223 .loc 3 1093 3 is_stmt 1 view .LVU1281 4224 .loc 3 1093 10 is_stmt 0 view .LVU1282 4225 01ca B3FA83F3 clz r3, r3 4226 .LVL343: 4227 .L270: 4228 .loc 3 1093 10 view .LVU1283 4229 .LBE533: 4230 .LBE532: 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4231 .loc 1 3122 13 view .LVU1284 4232 01ce 03F01F03 and r3, r3, #31 4233 01d2 0122 movs r2, #1 4234 01d4 9A40 lsls r2, r2, r3 4235 01d6 D5E7 b .L269 4236 .LVL344: 4237 .L281: 4238 .LBB535: 4239 .LBB534: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4240 .loc 3 1091 12 view .LVU1285 4241 01d8 2023 movs r3, #32 4242 .LVL345: ARM GAS /tmp/ccICigVb.s page 316 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4243 .loc 3 1091 12 view .LVU1286 4244 01da F8E7 b .L270 4245 .LVL346: 4246 .L261: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4247 .loc 3 1091 12 view .LVU1287 4248 .LBE534: 4249 .LBE535: 3129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4250 .loc 1 3129 11 is_stmt 1 view .LVU1288 4251 01dc 424A ldr r2, .L291+8 4252 .LVL347: 3129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4253 .loc 1 3129 11 is_stmt 0 view .LVU1289 4254 01de FFF7FEFF bl LL_ADC_SetAnalogWDMonitChannels 4255 .LVL348: 3130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4256 .loc 1 3130 11 is_stmt 1 view .LVU1290 4257 .L267: 3137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4258 .loc 1 3137 7 view .LVU1291 3137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4259 .loc 1 3137 26 is_stmt 0 view .LVU1292 4260 01e2 2A68 ldr r2, [r5] 3137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4261 .loc 1 3137 10 view .LVU1293 4262 01e4 3F4B ldr r3, .L291+4 4263 01e6 9A42 cmp r2, r3 4264 01e8 44D0 beq .L287 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4265 .loc 1 3162 9 is_stmt 1 view .LVU1294 4266 01ea E36D ldr r3, [r4, #92] 4267 01ec 23F48023 bic r3, r3, #262144 4268 01f0 E365 str r3, [r4, #92] 3168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4269 .loc 1 3168 9 view .LVU1295 4270 01f2 2368 ldr r3, [r4] 4271 .LVL349: 4272 .LBB536: 4273 .LBI536: 7477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4274 .loc 2 7477 22 view .LVU1296 4275 .LBB537: 7479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4276 .loc 2 7479 3 view .LVU1297 4277 01f4 4FF40072 mov r2, #512 4278 01f8 1A60 str r2, [r3] 4279 .LVL350: 7479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4280 .loc 2 7479 3 is_stmt 0 view .LVU1298 4281 .LBE537: 4282 .LBE536: 3171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4283 .loc 1 3171 9 is_stmt 1 view .LVU1299 3171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4284 .loc 1 3171 28 is_stmt 0 view .LVU1300 ARM GAS /tmp/ccICigVb.s page 317 4285 01fa 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4286 .loc 1 3171 12 view .LVU1301 4287 01fc 012B cmp r3, #1 4288 01fe 50D0 beq .L288 3177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4289 .loc 1 3177 11 is_stmt 1 view .LVU1302 4290 0200 2268 ldr r2, [r4] 4291 .LVL351: 4292 .LBB538: 4293 .LBI538: 7975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 2. 7978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_DisableIT_AWD2 7979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD2(ADC_TypeDef *ADCx) 7983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD2); 7985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 3. 7989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_DisableIT_AWD3 7990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD3(ADC_TypeDef *ADCx) 4294 .loc 2 7993 22 view .LVU1303 4295 .LBB539: 7994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD3); 4296 .loc 2 7995 3 view .LVU1304 4297 0202 5368 ldr r3, [r2, #4] 4298 0204 23F40073 bic r3, r3, #512 4299 0208 5360 str r3, [r2, #4] 4300 .LVL352: 4301 .L247: 4302 .loc 2 7995 3 is_stmt 0 view .LVU1305 4303 .LBE539: 4304 .LBE538: 3185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4305 .loc 1 3185 3 is_stmt 1 view .LVU1306 3185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4306 .loc 1 3185 22 is_stmt 0 view .LVU1307 4307 020a 2B68 ldr r3, [r5] 3185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4308 .loc 1 3185 6 view .LVU1308 4309 020c 344A ldr r2, .L291 4310 020e 9342 cmp r3, r2 4311 0210 4DD0 beq .L289 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThre 4312 .loc 1 3199 5 is_stmt 1 view .LVU1309 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThre 4313 .loc 1 3199 34 is_stmt 0 view .LVU1310 ARM GAS /tmp/ccICigVb.s page 318 4314 0212 2068 ldr r0, [r4] 4315 0214 C268 ldr r2, [r0, #12] 4316 0216 02F01802 and r2, r2, #24 4317 021a 182A cmp r2, #24 4318 021c 56D0 beq .L276 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThre 4319 .loc 1 3199 34 discriminator 1 view .LVU1311 4320 021e 2969 ldr r1, [r5, #16] 4321 0220 C268 ldr r2, [r0, #12] 4322 0222 C2F3C102 ubfx r2, r2, #3, #2 4323 0226 C2F10202 rsb r2, r2, #2 4324 022a 5200 lsls r2, r2, #1 4325 022c 02F01E02 and r2, r2, #30 4326 0230 21FA02FC lsr ip, r1, r2 4327 .L277: 4328 .LVL353: 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4329 .loc 1 3200 5 is_stmt 1 discriminator 4 view .LVU1312 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4330 .loc 1 3200 34 is_stmt 0 discriminator 4 view .LVU1313 4331 0234 C268 ldr r2, [r0, #12] 4332 0236 02F01802 and r2, r2, #24 4333 023a 182A cmp r2, #24 4334 023c 4AD0 beq .L278 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4335 .loc 1 3200 34 discriminator 1 view .LVU1314 4336 023e 6969 ldr r1, [r5, #20] 4337 0240 C268 ldr r2, [r0, #12] 4338 0242 C2F3C102 ubfx r2, r2, #3, #2 4339 0246 C2F10202 rsb r2, r2, #2 4340 024a 5200 lsls r2, r2, #1 4341 024c 02F01E02 and r2, r2, #30 4342 0250 D140 lsrs r1, r1, r2 4343 .L275: 4344 .LVL354: 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted); 4345 .loc 1 3204 3 is_stmt 1 view .LVU1315 4346 0252 2068 ldr r0, [r4] 4347 .LVL355: 4348 .LBB540: 4349 .LBI540: 5965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdLowValue) 4350 .loc 2 5965 22 view .LVU1316 4351 .LBB541: 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4352 .loc 2 5973 3 view .LVU1317 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4353 .loc 2 5973 25 is_stmt 0 view .LVU1318 4354 0254 2030 adds r0, r0, #32 4355 .LVL356: 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4356 .loc 2 5973 25 view .LVU1319 4357 0256 1B0D lsrs r3, r3, #20 4358 .LVL357: 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4359 .loc 2 5973 25 view .LVU1320 4360 0258 9B00 lsls r3, r3, #2 ARM GAS /tmp/ccICigVb.s page 319 4361 025a 03F00C03 and r3, r3, #12 4362 .LVL358: 5975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 4363 .loc 2 5975 3 is_stmt 1 view .LVU1321 4364 025e C258 ldr r2, [r0, r3] 4365 0260 02F0F022 and r2, r2, #-268374016 4366 0264 41EA0C41 orr r1, r1, ip, lsl #16 4367 .LVL359: 5975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 4368 .loc 2 5975 3 is_stmt 0 view .LVU1322 4369 0268 0A43 orrs r2, r2, r1 4370 026a C250 str r2, [r0, r3] 4371 .LVL360: 5975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 4372 .loc 2 5975 3 view .LVU1323 4373 .LBE541: 4374 .LBE540: 3208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4375 .loc 1 3208 3 is_stmt 1 view .LVU1324 3208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4376 .loc 1 3208 3 view .LVU1325 4377 026c 0020 movs r0, #0 4378 026e 84F85800 strb r0, [r4, #88] 3208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4379 .loc 1 3208 3 view .LVU1326 3211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4380 .loc 1 3211 3 view .LVU1327 4381 .LVL361: 4382 .L244: 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4383 .loc 1 3212 1 is_stmt 0 view .LVU1328 4384 0272 38BD pop {r3, r4, r5, pc} 4385 .LVL362: 4386 .L287: 3140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4387 .loc 1 3140 9 is_stmt 1 view .LVU1329 4388 0274 E36D ldr r3, [r4, #92] 4389 0276 23F40033 bic r3, r3, #131072 4390 027a E365 str r3, [r4, #92] 3146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4391 .loc 1 3146 9 view .LVU1330 4392 027c 2368 ldr r3, [r4] 4393 .LVL363: 4394 .LBB542: 4395 .LBI542: 7466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4396 .loc 2 7466 22 view .LVU1331 4397 .LBB543: 7468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4398 .loc 2 7468 3 view .LVU1332 4399 027e 4FF48072 mov r2, #256 4400 0282 1A60 str r2, [r3] 4401 .LVL364: 7468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4402 .loc 2 7468 3 is_stmt 0 view .LVU1333 4403 .LBE543: 4404 .LBE542: ARM GAS /tmp/ccICigVb.s page 320 3149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4405 .loc 1 3149 9 is_stmt 1 view .LVU1334 3149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4406 .loc 1 3149 28 is_stmt 0 view .LVU1335 4407 0284 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4408 .loc 1 3149 12 view .LVU1336 4409 0286 012B cmp r3, #1 4410 0288 05D0 beq .L290 3155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4411 .loc 1 3155 11 is_stmt 1 view .LVU1337 4412 028a 2268 ldr r2, [r4] 4413 .LVL365: 4414 .LBB544: 4415 .LBI544: 7982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4416 .loc 2 7982 22 view .LVU1338 4417 .LBB545: 7984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4418 .loc 2 7984 3 view .LVU1339 4419 028c 5368 ldr r3, [r2, #4] 4420 028e 23F48073 bic r3, r3, #256 4421 0292 5360 str r3, [r2, #4] 7985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4422 .loc 2 7985 1 is_stmt 0 view .LVU1340 4423 0294 B9E7 b .L247 4424 .LVL366: 4425 .L290: 7985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4426 .loc 2 7985 1 view .LVU1341 4427 .LBE545: 4428 .LBE544: 3151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4429 .loc 1 3151 11 is_stmt 1 view .LVU1342 4430 0296 2268 ldr r2, [r4] 4431 .LVL367: 4432 .LBB546: 4433 .LBI546: 7861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4434 .loc 2 7861 22 view .LVU1343 4435 .LBB547: 7863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4436 .loc 2 7863 3 view .LVU1344 4437 0298 5368 ldr r3, [r2, #4] 4438 029a 43F48073 orr r3, r3, #256 4439 029e 5360 str r3, [r2, #4] 7864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4440 .loc 2 7864 1 is_stmt 0 view .LVU1345 4441 02a0 B3E7 b .L247 4442 .LVL368: 4443 .L288: 7864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4444 .loc 2 7864 1 view .LVU1346 4445 .LBE547: 4446 .LBE546: 3173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4447 .loc 1 3173 11 is_stmt 1 view .LVU1347 ARM GAS /tmp/ccICigVb.s page 321 4448 02a2 2268 ldr r2, [r4] 4449 .LVL369: 4450 .LBB548: 4451 .LBI548: 7872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4452 .loc 2 7872 22 view .LVU1348 4453 .LBB549: 7874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4454 .loc 2 7874 3 view .LVU1349 4455 02a4 5368 ldr r3, [r2, #4] 4456 02a6 43F40073 orr r3, r3, #512 4457 02aa 5360 str r3, [r2, #4] 7875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4458 .loc 2 7875 1 is_stmt 0 view .LVU1350 4459 02ac ADE7 b .L247 4460 .LVL370: 4461 .L289: 7875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4462 .loc 2 7875 1 view .LVU1351 4463 .LBE549: 4464 .LBE548: 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres 4465 .loc 1 3190 5 is_stmt 1 view .LVU1352 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres 4466 .loc 1 3190 34 is_stmt 0 view .LVU1353 4467 02ae 2969 ldr r1, [r5, #16] 4468 02b0 2068 ldr r0, [r4] 4469 02b2 C268 ldr r2, [r0, #12] 4470 02b4 C2F3C102 ubfx r2, r2, #3, #2 4471 02b8 5200 lsls r2, r2, #1 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThres 4472 .loc 1 3190 32 view .LVU1354 4473 02ba 01FA02FC lsl ip, r1, r2 4474 .LVL371: 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4475 .loc 1 3191 5 is_stmt 1 view .LVU1355 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4476 .loc 1 3191 34 is_stmt 0 view .LVU1356 4477 02be 6969 ldr r1, [r5, #20] 4478 02c0 C268 ldr r2, [r0, #12] 4479 02c2 C2F3C102 ubfx r2, r2, #3, #2 4480 02c6 5200 lsls r2, r2, #1 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4481 .loc 1 3191 32 view .LVU1357 4482 02c8 9140 lsls r1, r1, r2 4483 .LVL372: 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4484 .loc 1 3191 32 view .LVU1358 4485 02ca C2E7 b .L275 4486 .LVL373: 4487 .L276: 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpAWDLowThresholdShifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, AnalogWDGConfig->LowThre 4488 .loc 1 3199 34 discriminator 2 view .LVU1359 4489 02cc 2A69 ldr r2, [r5, #16] 4490 02ce 4FEA820C lsl ip, r2, #2 4491 02d2 AFE7 b .L277 4492 .LVL374: ARM GAS /tmp/ccICigVb.s page 322 4493 .L278: 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4494 .loc 1 3200 34 discriminator 2 view .LVU1360 4495 02d4 6969 ldr r1, [r5, #20] 4496 02d6 8900 lsls r1, r1, #2 4497 02d8 BBE7 b .L275 4498 .LVL375: 4499 .L279: 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4500 .loc 1 3030 3 view .LVU1361 4501 02da 0220 movs r0, #2 4502 .LVL376: 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4503 .loc 1 3030 3 view .LVU1362 4504 02dc C9E7 b .L244 4505 .L292: 4506 02de 00BF .align 2 4507 .L291: 4508 02e0 0000C07D .word 2109734912 4509 02e4 FFFF1700 .word 1572863 4510 02e8 FFFF8701 .word 25690111 4511 .cfi_endproc 4512 .LFE350: 4514 .section .text.HAL_ADC_GetState,"ax",%progbits 4515 .align 1 4516 .global HAL_ADC_GetState 4517 .syntax unified 4518 .thumb 4519 .thumb_func 4521 HAL_ADC_GetState: 4522 .LVL377: 4523 .LFB351: 3247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 4524 .loc 1 3247 1 is_stmt 1 view -0 4525 .cfi_startproc 4526 @ args = 0, pretend = 0, frame = 0 4527 @ frame_needed = 0, uses_anonymous_args = 0 4528 @ link register save eliminated. 3249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4529 .loc 1 3249 3 view .LVU1364 3252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4530 .loc 1 3252 3 view .LVU1365 3252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4531 .loc 1 3252 14 is_stmt 0 view .LVU1366 4532 0000 C06D ldr r0, [r0, #92] 4533 .LVL378: 3253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4534 .loc 1 3253 1 view .LVU1367 4535 0002 7047 bx lr 4536 .cfi_endproc 4537 .LFE351: 4539 .section .text.HAL_ADC_GetError,"ax",%progbits 4540 .align 1 4541 .global HAL_ADC_GetError 4542 .syntax unified 4543 .thumb 4544 .thumb_func ARM GAS /tmp/ccICigVb.s page 323 4546 HAL_ADC_GetError: 4547 .LVL379: 4548 .LFB352: 3261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 4549 .loc 1 3261 1 is_stmt 1 view -0 4550 .cfi_startproc 4551 @ args = 0, pretend = 0, frame = 0 4552 @ frame_needed = 0, uses_anonymous_args = 0 4553 @ link register save eliminated. 3263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4554 .loc 1 3263 3 view .LVU1369 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4555 .loc 1 3265 3 view .LVU1370 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4556 .loc 1 3265 14 is_stmt 0 view .LVU1371 4557 0000 006E ldr r0, [r0, #96] 4558 .LVL380: 3266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4559 .loc 1 3266 1 view .LVU1372 4560 0002 7047 bx lr 4561 .cfi_endproc 4562 .LFE352: 4564 .section .text.ADC_ConversionStop,"ax",%progbits 4565 .align 1 4566 .global ADC_ConversionStop 4567 .syntax unified 4568 .thumb 4569 .thumb_func 4571 ADC_ConversionStop: 4572 .LVL381: 4573 .LFB353: 3291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4574 .loc 1 3291 1 is_stmt 1 view -0 4575 .cfi_startproc 4576 @ args = 0, pretend = 0, frame = 0 4577 @ frame_needed = 0, uses_anonymous_args = 0 3291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4578 .loc 1 3291 1 is_stmt 0 view .LVU1374 4579 0000 70B5 push {r4, r5, r6, lr} 4580 .LCFI20: 4581 .cfi_def_cfa_offset 16 4582 .cfi_offset 4, -16 4583 .cfi_offset 5, -12 4584 .cfi_offset 6, -8 4585 .cfi_offset 14, -4 4586 0002 0446 mov r4, r0 3292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 4587 .loc 1 3292 3 is_stmt 1 view .LVU1375 3293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 4588 .loc 1 3293 3 view .LVU1376 4589 .LVL382: 3294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 4590 .loc 1 3294 3 view .LVU1377 3295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 4591 .loc 1 3295 3 view .LVU1378 3296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 4592 .loc 1 3296 3 view .LVU1379 ARM GAS /tmp/ccICigVb.s page 324 3297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4593 .loc 1 3297 3 view .LVU1380 3300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 4594 .loc 1 3300 3 view .LVU1381 3301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4595 .loc 1 3301 3 view .LVU1382 3305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 4596 .loc 1 3305 3 view .LVU1383 3305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 4597 .loc 1 3305 44 is_stmt 0 view .LVU1384 4598 0004 0368 ldr r3, [r0] 4599 .LVL383: 4600 .LBB550: 4601 .LBI550: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4602 .loc 2 6851 26 is_stmt 1 view .LVU1385 4603 .LBB551: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4604 .loc 2 6853 3 view .LVU1386 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4605 .loc 2 6853 12 is_stmt 0 view .LVU1387 4606 0006 9A68 ldr r2, [r3, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4607 .loc 2 6853 74 view .LVU1388 4608 0008 12F00402 ands r2, r2, #4 4609 000c 00D0 beq .L296 4610 000e 0122 movs r2, #1 4611 .L296: 4612 .LVL384: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4613 .loc 2 6853 74 view .LVU1389 4614 .LBE551: 4615 .LBE550: 3306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 4616 .loc 1 3306 3 is_stmt 1 view .LVU1390 4617 .LBB552: 4618 .LBI552: 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4619 .loc 2 7076 26 view .LVU1391 4620 .LBB553: 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4621 .loc 2 7078 3 view .LVU1392 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4622 .loc 2 7078 12 is_stmt 0 view .LVU1393 4623 0010 9868 ldr r0, [r3, #8] 4624 .LVL385: 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4625 .loc 2 7078 76 view .LVU1394 4626 0012 10F00800 ands r0, r0, #8 4627 0016 00D0 beq .L297 4628 0018 0120 movs r0, #1 4629 .L297: 4630 .LVL386: 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4631 .loc 2 7078 76 view .LVU1395 4632 .LBE553: 4633 .LBE552: ARM GAS /tmp/ccICigVb.s page 325 3307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 4634 .loc 1 3307 3 is_stmt 1 view .LVU1396 3307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 4635 .loc 1 3307 6 is_stmt 0 view .LVU1397 4636 001a 0AB9 cbnz r2, .L298 3308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4637 .loc 1 3308 7 view .LVU1398 4638 001c 0028 cmp r0, #0 4639 001e 6DD0 beq .L311 4640 .L298: 3317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4641 .loc 1 3317 5 is_stmt 1 view .LVU1399 3317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4642 .loc 1 3317 25 is_stmt 0 view .LVU1400 4643 0020 DA68 ldr r2, [r3, #12] 4644 .LVL387: 3317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4645 .loc 1 3317 8 view .LVU1401 4646 0022 12F0007F tst r2, #33554432 4647 0026 04D0 beq .L300 3319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4648 .loc 1 3319 9 view .LVU1402 4649 0028 A08B ldrh r0, [r4, #28] 4650 .LVL388: 3319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4651 .loc 1 3319 9 view .LVU1403 4652 002a 40F20112 movw r2, #257 4653 002e 9042 cmp r0, r2 4654 0030 4ED0 beq .L317 4655 .L300: 3346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4656 .loc 1 3346 5 is_stmt 1 view .LVU1404 3346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4657 .loc 1 3346 8 is_stmt 0 view .LVU1405 4658 0032 0229 cmp r1, #2 4659 0034 12D0 beq .L305 4660 .LVL389: 4661 .L304: 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4662 .loc 1 3349 7 is_stmt 1 view .LVU1406 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4663 .loc 1 3349 11 is_stmt 0 view .LVU1407 4664 0036 2368 ldr r3, [r4] 4665 .LVL390: 4666 .LBB554: 4667 .LBI554: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4668 .loc 2 6851 26 is_stmt 1 view .LVU1408 4669 .LBB555: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4670 .loc 2 6853 3 view .LVU1409 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4671 .loc 2 6853 12 is_stmt 0 view .LVU1410 4672 0038 9A68 ldr r2, [r3, #8] 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4673 .loc 2 6853 74 view .LVU1411 4674 003a 12F0040F tst r2, #4 ARM GAS /tmp/ccICigVb.s page 326 4675 003e 0BD0 beq .L306 4676 .LVL391: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4677 .loc 2 6853 74 view .LVU1412 4678 .LBE555: 4679 .LBE554: 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4680 .loc 1 3351 9 is_stmt 1 view .LVU1413 4681 .LBB556: 4682 .LBI556: 6740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4683 .loc 2 6740 26 view .LVU1414 4684 .LBB557: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4685 .loc 2 6742 3 view .LVU1415 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4686 .loc 2 6742 12 is_stmt 0 view .LVU1416 4687 0040 9A68 ldr r2, [r3, #8] 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4688 .loc 2 6742 70 view .LVU1417 4689 0042 12F0020F tst r2, #2 4690 0046 07D1 bne .L306 4691 .LVL392: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4692 .loc 2 6742 70 view .LVU1418 4693 .LBE557: 4694 .LBE556: 3354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4695 .loc 1 3354 11 is_stmt 1 view .LVU1419 4696 .LBB558: 4697 .LBI558: 6835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4698 .loc 2 6835 22 view .LVU1420 4699 .LBB559: 6840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4700 .loc 2 6840 3 view .LVU1421 4701 0048 9A68 ldr r2, [r3, #8] 4702 004a 22F00042 bic r2, r2, #-2147483648 4703 004e 22F03F02 bic r2, r2, #63 4704 0052 42F01002 orr r2, r2, #16 4705 0056 9A60 str r2, [r3, #8] 4706 .LVL393: 4707 .L306: 6840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4708 .loc 2 6840 3 is_stmt 0 view .LVU1422 4709 .LBE559: 4710 .LBE558: 3360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4711 .loc 1 3360 5 is_stmt 1 view .LVU1423 3360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4712 .loc 1 3360 8 is_stmt 0 view .LVU1424 4713 0058 0129 cmp r1, #1 4714 005a 47D0 beq .L313 4715 .L305: 3363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4716 .loc 1 3363 7 is_stmt 1 view .LVU1425 3363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 327 4717 .loc 1 3363 11 is_stmt 0 view .LVU1426 4718 005c 2368 ldr r3, [r4] 4719 .LVL394: 4720 .LBB560: 4721 .LBI560: 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4722 .loc 2 7076 26 is_stmt 1 view .LVU1427 4723 .LBB561: 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4724 .loc 2 7078 3 view .LVU1428 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4725 .loc 2 7078 12 is_stmt 0 view .LVU1429 4726 005e 9A68 ldr r2, [r3, #8] 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4727 .loc 2 7078 76 view .LVU1430 4728 0060 12F0080F tst r2, #8 4729 0064 0BD0 beq .L308 4730 .LVL395: 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4731 .loc 2 7078 76 view .LVU1431 4732 .LBE561: 4733 .LBE560: 3365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4734 .loc 1 3365 9 is_stmt 1 view .LVU1432 4735 .LBB562: 4736 .LBI562: 6740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4737 .loc 2 6740 26 view .LVU1433 4738 .LBB563: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4739 .loc 2 6742 3 view .LVU1434 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4740 .loc 2 6742 12 is_stmt 0 view .LVU1435 4741 0066 9A68 ldr r2, [r3, #8] 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4742 .loc 2 6742 70 view .LVU1436 4743 0068 12F0020F tst r2, #2 4744 006c 07D1 bne .L308 4745 .LVL396: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4746 .loc 2 6742 70 view .LVU1437 4747 .LBE563: 4748 .LBE562: 3368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4749 .loc 1 3368 11 is_stmt 1 view .LVU1438 4750 .LBB564: 4751 .LBI564: 7060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4752 .loc 2 7060 22 view .LVU1439 4753 .LBB565: 7065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4754 .loc 2 7065 3 view .LVU1440 4755 006e 9A68 ldr r2, [r3, #8] 4756 0070 22F00042 bic r2, r2, #-2147483648 4757 0074 22F03F02 bic r2, r2, #63 4758 0078 42F02002 orr r2, r2, #32 4759 007c 9A60 str r2, [r3, #8] ARM GAS /tmp/ccICigVb.s page 328 4760 .LVL397: 4761 .L308: 7065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4762 .loc 2 7065 3 is_stmt 0 view .LVU1441 4763 .LBE565: 4764 .LBE564: 3374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4765 .loc 1 3374 5 is_stmt 1 view .LVU1442 4766 007e 0229 cmp r1, #2 4767 0080 36D0 beq .L314 4768 0082 0329 cmp r1, #3 4769 0084 36D1 bne .L315 4770 0086 0C25 movs r5, #12 4771 .L307: 4772 .LVL398: 3389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4773 .loc 1 3389 5 view .LVU1443 3389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4774 .loc 1 3389 17 is_stmt 0 view .LVU1444 4775 0088 FFF7FEFF bl HAL_GetTick 4776 .LVL399: 4777 008c 0646 mov r6, r0 4778 .LVL400: 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4779 .loc 1 3391 5 is_stmt 1 view .LVU1445 4780 .L309: 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4781 .loc 1 3391 63 view .LVU1446 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4782 .loc 1 3391 17 is_stmt 0 view .LVU1447 4783 008e 2368 ldr r3, [r4] 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4784 .loc 1 3391 27 view .LVU1448 4785 0090 9B68 ldr r3, [r3, #8] 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4786 .loc 1 3391 63 view .LVU1449 4787 0092 2B42 tst r3, r5 4788 0094 30D0 beq .L318 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4789 .loc 1 3393 7 is_stmt 1 view .LVU1450 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4790 .loc 1 3393 12 is_stmt 0 view .LVU1451 4791 0096 FFF7FEFF bl HAL_GetTick 4792 .LVL401: 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4793 .loc 1 3393 26 view .LVU1452 4794 009a 801B subs r0, r0, r6 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4795 .loc 1 3393 10 view .LVU1453 4796 009c 0528 cmp r0, #5 4797 009e F6D9 bls .L309 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4798 .loc 1 3396 9 is_stmt 1 view .LVU1454 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4799 .loc 1 3396 18 is_stmt 0 view .LVU1455 4800 00a0 2368 ldr r3, [r4] 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 329 4801 .loc 1 3396 28 view .LVU1456 4802 00a2 9B68 ldr r3, [r3, #8] 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4803 .loc 1 3396 12 view .LVU1457 4804 00a4 2B42 tst r3, r5 4805 00a6 F2D0 beq .L309 3399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4806 .loc 1 3399 11 is_stmt 1 view .LVU1458 4807 00a8 E36D ldr r3, [r4, #92] 4808 00aa 43F01003 orr r3, r3, #16 4809 00ae E365 str r3, [r4, #92] 3402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4810 .loc 1 3402 11 view .LVU1459 4811 00b0 236E ldr r3, [r4, #96] 4812 00b2 43F00103 orr r3, r3, #1 4813 00b6 2366 str r3, [r4, #96] 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4814 .loc 1 3404 11 view .LVU1460 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4815 .loc 1 3404 18 is_stmt 0 view .LVU1461 4816 00b8 0120 movs r0, #1 4817 00ba 1EE0 b .L299 4818 .LVL402: 4819 .L320: 3331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4820 .loc 1 3331 11 is_stmt 1 view .LVU1462 4821 00bc E36D ldr r3, [r4, #92] 4822 00be 43F01003 orr r3, r3, #16 4823 00c2 E365 str r3, [r4, #92] 3334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4824 .loc 1 3334 11 view .LVU1463 4825 00c4 236E ldr r3, [r4, #96] 4826 00c6 43F00103 orr r3, r3, #1 4827 00ca 2366 str r3, [r4, #96] 3336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4828 .loc 1 3336 11 view .LVU1464 3336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4829 .loc 1 3336 18 is_stmt 0 view .LVU1465 4830 00cc 0120 movs r0, #1 4831 00ce 14E0 b .L299 4832 .LVL403: 4833 .L317: 3293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 4834 .loc 1 3293 12 view .LVU1466 4835 00d0 0022 movs r2, #0 4836 .LVL404: 4837 .L301: 3326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4838 .loc 1 3326 54 is_stmt 1 view .LVU1467 3326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4839 .loc 1 3326 14 is_stmt 0 view .LVU1468 4840 00d2 1968 ldr r1, [r3] 3326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4841 .loc 1 3326 54 view .LVU1469 4842 00d4 11F0400F tst r1, #64 4843 00d8 04D1 bne .L319 3328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/ccICigVb.s page 330 4844 .loc 1 3328 9 is_stmt 1 view .LVU1470 3328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4845 .loc 1 3328 12 is_stmt 0 view .LVU1471 4846 00da 0949 ldr r1, .L321 4847 00dc 8A42 cmp r2, r1 4848 00de EDD8 bhi .L320 3338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4849 .loc 1 3338 9 is_stmt 1 view .LVU1472 3338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4850 .loc 1 3338 39 is_stmt 0 view .LVU1473 4851 00e0 0132 adds r2, r2, #1 4852 .LVL405: 3338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4853 .loc 1 3338 39 view .LVU1474 4854 00e2 F6E7 b .L301 4855 .L319: 3342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4856 .loc 1 3342 7 is_stmt 1 view .LVU1475 4857 00e4 4022 movs r2, #64 4858 .LVL406: 3342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4859 .loc 1 3342 7 is_stmt 0 view .LVU1476 4860 00e6 1A60 str r2, [r3] 4861 .LVL407: 3346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4862 .loc 1 3346 5 is_stmt 1 view .LVU1477 3323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4863 .loc 1 3323 35 is_stmt 0 view .LVU1478 4864 00e8 0121 movs r1, #1 4865 00ea A4E7 b .L304 4866 .LVL408: 4867 .L313: 3384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4868 .loc 1 3384 37 view .LVU1479 4869 00ec 0425 movs r5, #4 4870 00ee CBE7 b .L307 4871 .L314: 3380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4872 .loc 1 3380 37 view .LVU1480 4873 00f0 0825 movs r5, #8 4874 00f2 C9E7 b .L307 4875 .L315: 3384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4876 .loc 1 3384 37 view .LVU1481 4877 00f4 0425 movs r5, #4 4878 00f6 C7E7 b .L307 4879 .LVL409: 4880 .L318: 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4881 .loc 1 3412 10 view .LVU1482 4882 00f8 0020 movs r0, #0 4883 .LVL410: 4884 .L299: 3413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4885 .loc 1 3413 1 view .LVU1483 4886 00fa 70BD pop {r4, r5, r6, pc} 4887 .LVL411: ARM GAS /tmp/ccICigVb.s page 331 4888 .L311: 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4889 .loc 1 3412 10 view .LVU1484 4890 00fc 0020 movs r0, #0 4891 .LVL412: 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4892 .loc 1 3412 10 view .LVU1485 4893 00fe FCE7 b .L299 4894 .L322: 4895 .align 2 4896 .L321: 4897 0100 FFFF3FA3 .word -1556086785 4898 .cfi_endproc 4899 .LFE353: 4901 .section .text.ADC_Enable,"ax",%progbits 4902 .align 1 4903 .global ADC_Enable 4904 .syntax unified 4905 .thumb 4906 .thumb_func 4908 ADC_Enable: 4909 .LVL413: 4910 .LFB354: 3423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4911 .loc 1 3423 1 is_stmt 1 view -0 4912 .cfi_startproc 4913 @ args = 0, pretend = 0, frame = 0 4914 @ frame_needed = 0, uses_anonymous_args = 0 3423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4915 .loc 1 3423 1 is_stmt 0 view .LVU1487 4916 0000 38B5 push {r3, r4, r5, lr} 4917 .LCFI21: 4918 .cfi_def_cfa_offset 16 4919 .cfi_offset 3, -16 4920 .cfi_offset 4, -12 4921 .cfi_offset 5, -8 4922 .cfi_offset 14, -4 3424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4923 .loc 1 3424 3 is_stmt 1 view .LVU1488 3430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4924 .loc 1 3430 3 view .LVU1489 3430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4925 .loc 1 3430 7 is_stmt 0 view .LVU1490 4926 0002 0368 ldr r3, [r0] 4927 .LVL414: 4928 .LBB566: 4929 .LBI566: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4930 .loc 2 6729 26 is_stmt 1 view .LVU1491 4931 .LBB567: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4932 .loc 2 6731 3 view .LVU1492 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4933 .loc 2 6731 12 is_stmt 0 view .LVU1493 4934 0004 9A68 ldr r2, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4935 .loc 2 6731 68 view .LVU1494 ARM GAS /tmp/ccICigVb.s page 332 4936 0006 12F0010F tst r2, #1 4937 000a 40D1 bne .L329 4938 000c 0446 mov r4, r0 4939 .LVL415: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4940 .loc 2 6731 68 view .LVU1495 4941 .LBE567: 4942 .LBE566: 3433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4943 .loc 1 3433 5 is_stmt 1 view .LVU1496 3433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4944 .loc 1 3433 24 is_stmt 0 view .LVU1497 4945 000e 9968 ldr r1, [r3, #8] 3433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4946 .loc 1 3433 8 view .LVU1498 4947 0010 204A ldr r2, .L332 4948 0012 1142 tst r1, r2 4949 0014 09D0 beq .L325 3437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4950 .loc 1 3437 7 is_stmt 1 view .LVU1499 4951 0016 C36D ldr r3, [r0, #92] 4952 0018 43F01003 orr r3, r3, #16 4953 001c C365 str r3, [r0, #92] 3440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4954 .loc 1 3440 7 view .LVU1500 4955 001e 036E ldr r3, [r0, #96] 4956 0020 43F00103 orr r3, r3, #1 4957 0024 0366 str r3, [r0, #96] 3442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4958 .loc 1 3442 7 view .LVU1501 3442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4959 .loc 1 3442 14 is_stmt 0 view .LVU1502 4960 0026 0120 movs r0, #1 4961 .LVL416: 3442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4962 .loc 1 3442 14 view .LVU1503 4963 0028 32E0 b .L324 4964 .LVL417: 4965 .L325: 3446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4966 .loc 1 3446 5 is_stmt 1 view .LVU1504 4967 .LBB568: 4968 .LBI568: 6690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4969 .loc 2 6690 22 view .LVU1505 4970 .LBB569: 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4971 .loc 2 6695 3 view .LVU1506 4972 002a 9A68 ldr r2, [r3, #8] 4973 002c 22F00042 bic r2, r2, #-2147483648 4974 0030 22F03F02 bic r2, r2, #63 4975 0034 42F00102 orr r2, r2, #1 4976 0038 9A60 str r2, [r3, #8] 4977 .LVL418: 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4978 .loc 2 6695 3 is_stmt 0 view .LVU1507 4979 .LBE569: ARM GAS /tmp/ccICigVb.s page 333 4980 .LBE568: 3449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4981 .loc 1 3449 5 is_stmt 1 view .LVU1508 3449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4982 .loc 1 3449 17 is_stmt 0 view .LVU1509 4983 003a FFF7FEFF bl HAL_GetTick 4984 .LVL419: 3449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4985 .loc 1 3449 17 view .LVU1510 4986 003e 0546 mov r5, r0 4987 .LVL420: 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4988 .loc 1 3451 5 is_stmt 1 view .LVU1511 4989 .L326: 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4990 .loc 1 3451 51 view .LVU1512 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4991 .loc 1 3451 12 is_stmt 0 view .LVU1513 4992 0040 2368 ldr r3, [r4] 4993 0042 1A68 ldr r2, [r3] 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4994 .loc 1 3451 51 view .LVU1514 4995 0044 12F0010F tst r2, #1 4996 0048 1FD1 bne .L331 3461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4997 .loc 1 3461 7 is_stmt 1 view .LVU1515 4998 .LVL421: 4999 .LBB570: 5000 .LBI570: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5001 .loc 2 6729 26 view .LVU1516 5002 .LBB571: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5003 .loc 2 6731 3 view .LVU1517 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5004 .loc 2 6731 12 is_stmt 0 view .LVU1518 5005 004a 9A68 ldr r2, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5006 .loc 2 6731 68 view .LVU1519 5007 004c 12F0010F tst r2, #1 5008 0050 07D1 bne .L327 5009 .LVL422: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5010 .loc 2 6731 68 view .LVU1520 5011 .LBE571: 5012 .LBE570: 3463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5013 .loc 1 3463 9 is_stmt 1 view .LVU1521 5014 .LBB572: 5015 .LBI572: 6690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5016 .loc 2 6690 22 view .LVU1522 5017 .LBB573: 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5018 .loc 2 6695 3 view .LVU1523 5019 0052 9A68 ldr r2, [r3, #8] 5020 0054 22F00042 bic r2, r2, #-2147483648 ARM GAS /tmp/ccICigVb.s page 334 5021 0058 22F03F02 bic r2, r2, #63 5022 005c 42F00102 orr r2, r2, #1 5023 0060 9A60 str r2, [r3, #8] 5024 .LVL423: 5025 .L327: 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5026 .loc 2 6695 3 is_stmt 0 view .LVU1524 5027 .LBE573: 5028 .LBE572: 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5029 .loc 1 3466 7 is_stmt 1 view .LVU1525 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5030 .loc 1 3466 12 is_stmt 0 view .LVU1526 5031 0062 FFF7FEFF bl HAL_GetTick 5032 .LVL424: 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5033 .loc 1 3466 26 view .LVU1527 5034 0066 431B subs r3, r0, r5 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5035 .loc 1 3466 10 view .LVU1528 5036 0068 022B cmp r3, #2 5037 006a E9D9 bls .L326 3469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5038 .loc 1 3469 9 is_stmt 1 view .LVU1529 3469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5039 .loc 1 3469 13 is_stmt 0 view .LVU1530 5040 006c 2368 ldr r3, [r4] 5041 006e 1B68 ldr r3, [r3] 3469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5042 .loc 1 3469 12 view .LVU1531 5043 0070 13F0010F tst r3, #1 5044 0074 E4D1 bne .L326 3472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5045 .loc 1 3472 11 is_stmt 1 view .LVU1532 5046 0076 E36D ldr r3, [r4, #92] 5047 0078 43F01003 orr r3, r3, #16 5048 007c E365 str r3, [r4, #92] 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5049 .loc 1 3475 11 view .LVU1533 5050 007e 236E ldr r3, [r4, #96] 5051 0080 43F00103 orr r3, r3, #1 5052 0084 2366 str r3, [r4, #96] 3477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5053 .loc 1 3477 11 view .LVU1534 3477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5054 .loc 1 3477 18 is_stmt 0 view .LVU1535 5055 0086 0120 movs r0, #1 5056 0088 02E0 b .L324 5057 .L331: 3484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5058 .loc 1 3484 10 view .LVU1536 5059 008a 0020 movs r0, #0 5060 008c 00E0 b .L324 5061 .LVL425: 5062 .L329: 3484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5063 .loc 1 3484 10 view .LVU1537 ARM GAS /tmp/ccICigVb.s page 335 5064 008e 0020 movs r0, #0 5065 .LVL426: 5066 .L324: 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5067 .loc 1 3485 1 view .LVU1538 5068 0090 38BD pop {r3, r4, r5, pc} 5069 .L333: 5070 0092 00BF .align 2 5071 .L332: 5072 0094 3F000080 .word -2147483585 5073 .cfi_endproc 5074 .LFE354: 5076 .section .text.HAL_ADC_Start,"ax",%progbits 5077 .align 1 5078 .global HAL_ADC_Start 5079 .syntax unified 5080 .thumb 5081 .thumb_func 5083 HAL_ADC_Start: 5084 .LVL427: 5085 .LFB333: 1221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5086 .loc 1 1221 1 is_stmt 1 view -0 5087 .cfi_startproc 5088 @ args = 0, pretend = 0, frame = 0 5089 @ frame_needed = 0, uses_anonymous_args = 0 1221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5090 .loc 1 1221 1 is_stmt 0 view .LVU1540 5091 0000 38B5 push {r3, r4, r5, lr} 5092 .LCFI22: 5093 .cfi_def_cfa_offset 16 5094 .cfi_offset 3, -16 5095 .cfi_offset 4, -12 5096 .cfi_offset 5, -8 5097 .cfi_offset 14, -4 1222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 5098 .loc 1 1222 3 is_stmt 1 view .LVU1541 1224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 5099 .loc 1 1224 3 view .LVU1542 1225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 5100 .loc 1 1225 3 view .LVU1543 5101 .LVL428: 5102 .LBB574: 5103 .LBI574: 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5104 .loc 2 6392 26 view .LVU1544 5105 .LBB575: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5106 .loc 2 6394 3 view .LVU1545 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5107 .loc 2 6394 21 is_stmt 0 view .LVU1546 5108 0002 3C4B ldr r3, .L353 5109 0004 9D68 ldr r5, [r3, #8] 5110 .LVL429: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5111 .loc 2 6394 21 view .LVU1547 5112 .LBE575: ARM GAS /tmp/ccICigVb.s page 336 5113 .LBE574: 1229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5114 .loc 1 1229 3 is_stmt 1 view .LVU1548 1232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5115 .loc 1 1232 3 view .LVU1549 1232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5116 .loc 1 1232 7 is_stmt 0 view .LVU1550 5117 0006 0368 ldr r3, [r0] 5118 .LVL430: 5119 .LBB576: 5120 .LBI576: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5121 .loc 2 6851 26 is_stmt 1 view .LVU1551 5122 .LBB577: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5123 .loc 2 6853 3 view .LVU1552 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5124 .loc 2 6853 12 is_stmt 0 view .LVU1553 5125 0008 9B68 ldr r3, [r3, #8] 5126 .LVL431: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5127 .loc 2 6853 74 view .LVU1554 5128 000a 13F0040F tst r3, #4 5129 000e 6CD1 bne .L346 5130 0010 0446 mov r4, r0 5131 0012 05F01F05 and r5, r5, #31 5132 .LVL432: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5133 .loc 2 6853 74 view .LVU1555 5134 .LBE577: 5135 .LBE576: 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5136 .loc 1 1235 5 is_stmt 1 view .LVU1556 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5137 .loc 1 1235 5 view .LVU1557 5138 0016 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 5139 001a 012B cmp r3, #1 5140 001c 67D0 beq .L347 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5141 .loc 1 1235 5 discriminator 2 view .LVU1558 5142 001e 0123 movs r3, #1 5143 0020 80F85830 strb r3, [r0, #88] 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5144 .loc 1 1235 5 discriminator 2 view .LVU1559 1238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5145 .loc 1 1238 5 discriminator 2 view .LVU1560 1238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5146 .loc 1 1238 22 is_stmt 0 discriminator 2 view .LVU1561 5147 0024 FFF7FEFF bl ADC_Enable 5148 .LVL433: 1241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5149 .loc 1 1241 5 is_stmt 1 discriminator 2 view .LVU1562 1241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5150 .loc 1 1241 8 is_stmt 0 discriminator 2 view .LVU1563 5151 0028 0028 cmp r0, #0 5152 002a 5AD1 bne .L336 1246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A ARM GAS /tmp/ccICigVb.s page 337 5153 .loc 1 1246 7 is_stmt 1 view .LVU1564 5154 002c E36D ldr r3, [r4, #92] 5155 002e 23F47063 bic r3, r3, #3840 5156 0032 23F00103 bic r3, r3, #1 5157 0036 43F48073 orr r3, r3, #256 5158 003a E365 str r3, [r4, #92] 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5159 .loc 1 1254 7 view .LVU1565 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5160 .loc 1 1254 12 is_stmt 0 view .LVU1566 5161 003c 2368 ldr r3, [r4] 5162 003e 2E4A ldr r2, .L353+4 5163 0040 9342 cmp r3, r2 5164 0042 32D0 beq .L351 5165 0044 1A46 mov r2, r3 5166 .L337: 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5167 .loc 1 1254 10 discriminator 4 view .LVU1567 5168 0046 9342 cmp r3, r2 5169 0048 00D0 beq .L338 1255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5170 .loc 1 1255 11 view .LVU1568 5171 004a 1DB9 cbnz r5, .L339 5172 .L338: 1258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5173 .loc 1 1258 9 is_stmt 1 view .LVU1569 5174 004c E26D ldr r2, [r4, #92] 5175 004e 22F48012 bic r2, r2, #1048576 5176 0052 E265 str r2, [r4, #92] 5177 .L339: 1264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5178 .loc 1 1264 7 view .LVU1570 1264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5179 .loc 1 1264 11 is_stmt 0 view .LVU1571 5180 0054 E26D ldr r2, [r4, #92] 1264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5181 .loc 1 1264 10 view .LVU1572 5182 0056 12F4805F tst r2, #4096 5183 005a 29D0 beq .L340 1267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5184 .loc 1 1267 9 is_stmt 1 view .LVU1573 5185 005c 226E ldr r2, [r4, #96] 5186 005e 22F00602 bic r2, r2, #6 5187 0062 2266 str r2, [r4, #96] 5188 .L341: 1277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5189 .loc 1 1277 7 view .LVU1574 5190 0064 1C22 movs r2, #28 5191 0066 1A60 str r2, [r3] 1282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5192 .loc 1 1282 7 view .LVU1575 1282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5193 .loc 1 1282 7 view .LVU1576 5194 0068 0023 movs r3, #0 5195 006a 84F85830 strb r3, [r4, #88] 1282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5196 .loc 1 1282 7 view .LVU1577 ARM GAS /tmp/ccICigVb.s page 338 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5197 .loc 1 1293 7 view .LVU1578 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5198 .loc 1 1293 12 is_stmt 0 view .LVU1579 5199 006e 2368 ldr r3, [r4] 5200 0070 214A ldr r2, .L353+4 5201 0072 9342 cmp r3, r2 5202 0074 1FD0 beq .L352 5203 0076 1A46 mov r2, r3 5204 .L342: 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5205 .loc 1 1293 10 discriminator 4 view .LVU1580 5206 0078 9342 cmp r3, r2 5207 007a 1FD0 beq .L343 5208 007c 092D cmp r5, #9 5209 007e 05D8 bhi .L344 5210 0080 40F22121 movw r1, #545 5211 0084 E940 lsrs r1, r1, r5 5212 0086 11F0010F tst r1, #1 5213 008a 17D1 bne .L343 5214 .L344: 1311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 5215 .loc 1 1311 9 is_stmt 1 view .LVU1581 5216 008c E36D ldr r3, [r4, #92] 5217 008e 43F48013 orr r3, r3, #1048576 5218 0092 E365 str r3, [r4, #92] 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 5219 .loc 1 1314 9 view .LVU1582 5220 .LVL434: 1315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5221 .loc 1 1315 9 view .LVU1583 1315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5222 .loc 1 1315 13 is_stmt 0 view .LVU1584 5223 0094 D368 ldr r3, [r2, #12] 1315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5224 .loc 1 1315 12 view .LVU1585 5225 0096 13F0007F tst r3, #33554432 5226 009a 27D0 beq .L335 1317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5227 .loc 1 1317 11 is_stmt 1 view .LVU1586 5228 009c E36D ldr r3, [r4, #92] 5229 009e 23F44053 bic r3, r3, #12288 5230 00a2 43F48053 orr r3, r3, #4096 5231 00a6 E365 str r3, [r4, #92] 5232 00a8 20E0 b .L335 5233 .LVL435: 5234 .L351: 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5235 .loc 1 1254 12 is_stmt 0 view .LVU1587 5236 00aa 4FF0A042 mov r2, #1342177280 5237 00ae CAE7 b .L337 5238 .L340: 1272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5239 .loc 1 1272 9 is_stmt 1 view .LVU1588 5240 00b0 0022 movs r2, #0 5241 00b2 2266 str r2, [r4, #96] 5242 00b4 D6E7 b .L341 ARM GAS /tmp/ccICigVb.s page 339 5243 .L352: 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5244 .loc 1 1293 12 is_stmt 0 view .LVU1589 5245 00b6 4FF0A042 mov r2, #1342177280 5246 00ba DDE7 b .L342 5247 .L343: 1300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5248 .loc 1 1300 9 is_stmt 1 view .LVU1590 1300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5249 .loc 1 1300 13 is_stmt 0 view .LVU1591 5250 00bc DA68 ldr r2, [r3, #12] 1300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5251 .loc 1 1300 12 view .LVU1592 5252 00be 12F0007F tst r2, #33554432 5253 00c2 05D0 beq .L345 1302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5254 .loc 1 1302 11 is_stmt 1 view .LVU1593 5255 00c4 E26D ldr r2, [r4, #92] 5256 00c6 22F44052 bic r2, r2, #12288 5257 00ca 42F48052 orr r2, r2, #4096 5258 00ce E265 str r2, [r4, #92] 5259 .L345: 1306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5260 .loc 1 1306 9 view .LVU1594 5261 .LVL436: 5262 .LBB578: 5263 .LBI578: 6815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5264 .loc 2 6815 22 view .LVU1595 5265 .LBB579: 6820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5266 .loc 2 6820 3 view .LVU1596 5267 00d0 9A68 ldr r2, [r3, #8] 5268 00d2 22F00042 bic r2, r2, #-2147483648 5269 00d6 22F03F02 bic r2, r2, #63 5270 00da 42F00402 orr r2, r2, #4 5271 00de 9A60 str r2, [r3, #8] 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5272 .loc 2 6823 1 is_stmt 0 view .LVU1597 5273 00e0 04E0 b .L335 5274 .LVL437: 5275 .L336: 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5276 .loc 2 6823 1 view .LVU1598 5277 .LBE579: 5278 .LBE578: 1334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5279 .loc 1 1334 7 is_stmt 1 discriminator 1 view .LVU1599 1334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5280 .loc 1 1334 7 discriminator 1 view .LVU1600 5281 00e2 0023 movs r3, #0 5282 00e4 84F85830 strb r3, [r4, #88] 5283 00e8 00E0 b .L335 5284 .LVL438: 5285 .L346: 1339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5286 .loc 1 1339 20 is_stmt 0 view .LVU1601 ARM GAS /tmp/ccICigVb.s page 340 5287 00ea 0220 movs r0, #2 5288 .LVL439: 5289 .L335: 1344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5290 .loc 1 1344 1 view .LVU1602 5291 00ec 38BD pop {r3, r4, r5, pc} 5292 .LVL440: 5293 .L347: 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5294 .loc 1 1235 5 view .LVU1603 5295 00ee 0220 movs r0, #2 5296 .LVL441: 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5297 .loc 1 1235 5 view .LVU1604 5298 00f0 FCE7 b .L335 5299 .L354: 5300 00f2 00BF .align 2 5301 .L353: 5302 00f4 00030050 .word 1342178048 5303 00f8 00010050 .word 1342177536 5304 .cfi_endproc 5305 .LFE333: 5307 .section .text.HAL_ADC_Start_IT,"ax",%progbits 5308 .align 1 5309 .global HAL_ADC_Start_IT 5310 .syntax unified 5311 .thumb 5312 .thumb_func 5314 HAL_ADC_Start_IT: 5315 .LVL442: 5316 .LFB337: 1742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5317 .loc 1 1742 1 is_stmt 1 view -0 5318 .cfi_startproc 5319 @ args = 0, pretend = 0, frame = 0 5320 @ frame_needed = 0, uses_anonymous_args = 0 1742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5321 .loc 1 1742 1 is_stmt 0 view .LVU1606 5322 0000 38B5 push {r3, r4, r5, lr} 5323 .LCFI23: 5324 .cfi_def_cfa_offset 16 5325 .cfi_offset 3, -16 5326 .cfi_offset 4, -12 5327 .cfi_offset 5, -8 5328 .cfi_offset 14, -4 1743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 5329 .loc 1 1743 3 is_stmt 1 view .LVU1607 1745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 5330 .loc 1 1745 3 view .LVU1608 1746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 5331 .loc 1 1746 3 view .LVU1609 5332 .LVL443: 5333 .LBB580: 5334 .LBI580: 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5335 .loc 2 6392 26 view .LVU1610 5336 .LBB581: ARM GAS /tmp/ccICigVb.s page 341 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5337 .loc 2 6394 3 view .LVU1611 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5338 .loc 2 6394 21 is_stmt 0 view .LVU1612 5339 0002 614B ldr r3, .L382 5340 0004 9D68 ldr r5, [r3, #8] 5341 .LVL444: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5342 .loc 2 6394 21 view .LVU1613 5343 .LBE581: 5344 .LBE580: 1750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5345 .loc 1 1750 3 is_stmt 1 view .LVU1614 1753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5346 .loc 1 1753 3 view .LVU1615 1753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5347 .loc 1 1753 7 is_stmt 0 view .LVU1616 5348 0006 0368 ldr r3, [r0] 5349 .LVL445: 5350 .LBB582: 5351 .LBI582: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5352 .loc 2 6851 26 is_stmt 1 view .LVU1617 5353 .LBB583: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5354 .loc 2 6853 3 view .LVU1618 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5355 .loc 2 6853 12 is_stmt 0 view .LVU1619 5356 0008 9B68 ldr r3, [r3, #8] 5357 .LVL446: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5358 .loc 2 6853 74 view .LVU1620 5359 000a 13F0040F tst r3, #4 5360 000e 40F0B680 bne .L372 5361 0012 0446 mov r4, r0 5362 0014 05F01F05 and r5, r5, #31 5363 .LVL447: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5364 .loc 2 6853 74 view .LVU1621 5365 .LBE583: 5366 .LBE582: 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5367 .loc 1 1756 5 is_stmt 1 view .LVU1622 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5368 .loc 1 1756 5 view .LVU1623 5369 0018 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 5370 001c 012B cmp r3, #1 5371 001e 00F0B080 beq .L373 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5372 .loc 1 1756 5 discriminator 2 view .LVU1624 5373 0022 0123 movs r3, #1 5374 0024 80F85830 strb r3, [r0, #88] 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5375 .loc 1 1756 5 discriminator 2 view .LVU1625 1759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5376 .loc 1 1759 5 discriminator 2 view .LVU1626 1759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 342 5377 .loc 1 1759 22 is_stmt 0 discriminator 2 view .LVU1627 5378 0028 FFF7FEFF bl ADC_Enable 5379 .LVL448: 1762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5380 .loc 1 1762 5 is_stmt 1 discriminator 2 view .LVU1628 1762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5381 .loc 1 1762 8 is_stmt 0 discriminator 2 view .LVU1629 5382 002c 0028 cmp r0, #0 5383 002e 40F0A280 bne .L357 1767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_A 5384 .loc 1 1767 7 is_stmt 1 view .LVU1630 5385 0032 E36D ldr r3, [r4, #92] 5386 0034 23F47063 bic r3, r3, #3840 5387 0038 23F00103 bic r3, r3, #1 5388 003c 43F48073 orr r3, r3, #256 5389 0040 E365 str r3, [r4, #92] 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5390 .loc 1 1775 7 view .LVU1631 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5391 .loc 1 1775 12 is_stmt 0 view .LVU1632 5392 0042 2368 ldr r3, [r4] 5393 0044 514A ldr r2, .L382+4 5394 0046 9342 cmp r3, r2 5395 0048 52D0 beq .L377 5396 004a 1A46 mov r2, r3 5397 .L358: 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5398 .loc 1 1775 10 discriminator 4 view .LVU1633 5399 004c 9342 cmp r3, r2 5400 004e 00D0 beq .L359 1776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5401 .loc 1 1776 11 view .LVU1634 5402 0050 1DB9 cbnz r5, .L360 5403 .L359: 1779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5404 .loc 1 1779 9 is_stmt 1 view .LVU1635 5405 0052 E26D ldr r2, [r4, #92] 5406 0054 22F48012 bic r2, r2, #1048576 5407 0058 E265 str r2, [r4, #92] 5408 .L360: 1785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5409 .loc 1 1785 7 view .LVU1636 1785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5410 .loc 1 1785 16 is_stmt 0 view .LVU1637 5411 005a E26D ldr r2, [r4, #92] 1785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5412 .loc 1 1785 10 view .LVU1638 5413 005c 12F4805F tst r2, #4096 5414 0060 49D0 beq .L361 1788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5415 .loc 1 1788 9 is_stmt 1 view .LVU1639 5416 0062 226E ldr r2, [r4, #96] 5417 0064 22F00602 bic r2, r2, #6 5418 0068 2266 str r2, [r4, #96] 5419 .L362: 1798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5420 .loc 1 1798 7 view .LVU1640 ARM GAS /tmp/ccICigVb.s page 343 5421 006a 1C22 movs r2, #28 5422 006c 1A60 str r2, [r3] 1803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5423 .loc 1 1803 7 view .LVU1641 1803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5424 .loc 1 1803 7 view .LVU1642 5425 006e 0023 movs r3, #0 5426 0070 84F85830 strb r3, [r4, #88] 1803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5427 .loc 1 1803 7 view .LVU1643 1806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5428 .loc 1 1806 7 view .LVU1644 5429 0074 2268 ldr r2, [r4] 5430 0076 5368 ldr r3, [r2, #4] 5431 0078 23F01C03 bic r3, r3, #28 5432 007c 5360 str r3, [r2, #4] 1809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5433 .loc 1 1809 7 view .LVU1645 1809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5434 .loc 1 1809 25 is_stmt 0 view .LVU1646 5435 007e A369 ldr r3, [r4, #24] 1809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5436 .loc 1 1809 7 view .LVU1647 5437 0080 082B cmp r3, #8 5438 0082 3BD0 beq .L378 1816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5439 .loc 1 1816 11 is_stmt 1 view .LVU1648 5440 0084 2268 ldr r2, [r4] 5441 0086 5368 ldr r3, [r2, #4] 5442 0088 43F00403 orr r3, r3, #4 5443 008c 5360 str r3, [r2, #4] 1817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5444 .loc 1 1817 11 view .LVU1649 5445 .L364: 1824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5446 .loc 1 1824 7 view .LVU1650 1824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5447 .loc 1 1824 21 is_stmt 0 view .LVU1651 5448 008e E36B ldr r3, [r4, #60] 1824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5449 .loc 1 1824 10 view .LVU1652 5450 0090 23B9 cbnz r3, .L365 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5451 .loc 1 1826 9 is_stmt 1 view .LVU1653 5452 0092 2268 ldr r2, [r4] 5453 0094 5368 ldr r3, [r2, #4] 5454 0096 43F01003 orr r3, r3, #16 5455 009a 5360 str r3, [r2, #4] 5456 .L365: 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5457 .loc 1 1838 7 view .LVU1654 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5458 .loc 1 1838 12 is_stmt 0 view .LVU1655 5459 009c 2368 ldr r3, [r4] 5460 009e 3B4A ldr r2, .L382+4 5461 00a0 9342 cmp r3, r2 5462 00a2 31D0 beq .L379 ARM GAS /tmp/ccICigVb.s page 344 5463 00a4 1A46 mov r2, r3 5464 .L366: 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5465 .loc 1 1838 10 discriminator 4 view .LVU1656 5466 00a6 9342 cmp r3, r2 5467 00a8 31D0 beq .L367 5468 00aa 092D cmp r5, #9 5469 00ac 05D8 bhi .L368 5470 00ae 40F22121 movw r1, #545 5471 00b2 E940 lsrs r1, r1, r5 5472 00b4 11F0010F tst r1, #1 5473 00b8 29D1 bne .L367 5474 .L368: 1873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 5475 .loc 1 1873 9 is_stmt 1 view .LVU1657 5476 00ba E16D ldr r1, [r4, #92] 5477 00bc 41F48011 orr r1, r1, #1048576 5478 00c0 E165 str r1, [r4, #92] 1876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 5479 .loc 1 1876 9 view .LVU1658 5480 .LVL449: 1877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5481 .loc 1 1877 9 view .LVU1659 1877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5482 .loc 1 1877 13 is_stmt 0 view .LVU1660 5483 00c2 D268 ldr r2, [r2, #12] 5484 .LVL450: 1877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5485 .loc 1 1877 12 view .LVU1661 5486 00c4 12F0007F tst r2, #33554432 5487 00c8 5AD0 beq .L356 1881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 5488 .loc 1 1881 11 is_stmt 1 view .LVU1662 5489 00ca E26D ldr r2, [r4, #92] 5490 00cc 22F44052 bic r2, r2, #12288 5491 00d0 42F48052 orr r2, r2, #4096 5492 00d4 E265 str r2, [r4, #92] 1883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5493 .loc 1 1883 11 view .LVU1663 1883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5494 .loc 1 1883 29 is_stmt 0 view .LVU1664 5495 00d6 A269 ldr r2, [r4, #24] 1883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5496 .loc 1 1883 11 view .LVU1665 5497 00d8 082A cmp r2, #8 5498 00da 42D0 beq .L380 1891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 5499 .loc 1 1891 15 is_stmt 1 view .LVU1666 5500 00dc 5A68 ldr r2, [r3, #4] 5501 00de 22F04002 bic r2, r2, #64 5502 00e2 5A60 str r2, [r3, #4] 1892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5503 .loc 1 1892 15 view .LVU1667 5504 00e4 2268 ldr r2, [r4] 5505 00e6 5368 ldr r3, [r2, #4] 5506 00e8 43F02003 orr r3, r3, #32 5507 00ec 5360 str r3, [r2, #4] ARM GAS /tmp/ccICigVb.s page 345 1893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5508 .loc 1 1893 15 view .LVU1668 5509 00ee 47E0 b .L356 5510 .LVL451: 5511 .L377: 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5512 .loc 1 1775 12 is_stmt 0 view .LVU1669 5513 00f0 4FF0A042 mov r2, #1342177280 5514 00f4 AAE7 b .L358 5515 .L361: 1793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5516 .loc 1 1793 9 is_stmt 1 view .LVU1670 5517 00f6 0022 movs r2, #0 5518 00f8 2266 str r2, [r4, #96] 5519 00fa B6E7 b .L362 5520 .L378: 1812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5521 .loc 1 1812 11 view .LVU1671 5522 00fc 2268 ldr r2, [r4] 5523 00fe 5368 ldr r3, [r2, #4] 5524 0100 43F00803 orr r3, r3, #8 5525 0104 5360 str r3, [r2, #4] 1813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5526 .loc 1 1813 11 view .LVU1672 5527 0106 C2E7 b .L364 5528 .L379: 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5529 .loc 1 1838 12 is_stmt 0 view .LVU1673 5530 0108 4FF0A042 mov r2, #1342177280 5531 010c CBE7 b .L366 5532 .L367: 1845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5533 .loc 1 1845 9 is_stmt 1 view .LVU1674 1845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5534 .loc 1 1845 13 is_stmt 0 view .LVU1675 5535 010e DA68 ldr r2, [r3, #12] 1845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5536 .loc 1 1845 12 view .LVU1676 5537 0110 12F0007F tst r2, #33554432 5538 0114 11D0 beq .L369 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5539 .loc 1 1847 11 is_stmt 1 view .LVU1677 5540 0116 E26D ldr r2, [r4, #92] 5541 0118 22F44052 bic r2, r2, #12288 5542 011c 42F48052 orr r2, r2, #4096 5543 0120 E265 str r2, [r4, #92] 1853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5544 .loc 1 1853 11 view .LVU1678 1853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5545 .loc 1 1853 29 is_stmt 0 view .LVU1679 5546 0122 A269 ldr r2, [r4, #24] 1853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5547 .loc 1 1853 11 view .LVU1680 5548 0124 082A cmp r2, #8 5549 0126 12D0 beq .L381 1861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 5550 .loc 1 1861 15 is_stmt 1 view .LVU1681 ARM GAS /tmp/ccICigVb.s page 346 5551 0128 5A68 ldr r2, [r3, #4] 5552 012a 22F04002 bic r2, r2, #64 5553 012e 5A60 str r2, [r3, #4] 1862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5554 .loc 1 1862 15 view .LVU1682 5555 0130 2268 ldr r2, [r4] 5556 0132 5368 ldr r3, [r2, #4] 5557 0134 43F02003 orr r3, r3, #32 5558 0138 5360 str r3, [r2, #4] 1863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5559 .loc 1 1863 15 view .LVU1683 5560 .L369: 1868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5561 .loc 1 1868 9 view .LVU1684 5562 013a 2268 ldr r2, [r4] 5563 .LVL452: 5564 .LBB584: 5565 .LBI584: 6815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5566 .loc 2 6815 22 view .LVU1685 5567 .LBB585: 6820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5568 .loc 2 6820 3 view .LVU1686 5569 013c 9368 ldr r3, [r2, #8] 5570 013e 23F00043 bic r3, r3, #-2147483648 5571 0142 23F03F03 bic r3, r3, #63 5572 0146 43F00403 orr r3, r3, #4 5573 014a 9360 str r3, [r2, #8] 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5574 .loc 2 6823 1 is_stmt 0 view .LVU1687 5575 014c 18E0 b .L356 5576 .LVL453: 5577 .L381: 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5578 .loc 2 6823 1 view .LVU1688 5579 .LBE585: 5580 .LBE584: 1856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 5581 .loc 1 1856 15 is_stmt 1 view .LVU1689 5582 014e 5A68 ldr r2, [r3, #4] 5583 0150 22F02002 bic r2, r2, #32 5584 0154 5A60 str r2, [r3, #4] 1857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5585 .loc 1 1857 15 view .LVU1690 5586 0156 2268 ldr r2, [r4] 5587 0158 5368 ldr r3, [r2, #4] 5588 015a 43F04003 orr r3, r3, #64 5589 015e 5360 str r3, [r2, #4] 1858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5590 .loc 1 1858 15 view .LVU1691 5591 0160 EBE7 b .L369 5592 .LVL454: 5593 .L380: 1886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 5594 .loc 1 1886 15 view .LVU1692 5595 0162 5A68 ldr r2, [r3, #4] 5596 0164 22F02002 bic r2, r2, #32 ARM GAS /tmp/ccICigVb.s page 347 5597 0168 5A60 str r2, [r3, #4] 1887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5598 .loc 1 1887 15 view .LVU1693 5599 016a 2268 ldr r2, [r4] 5600 016c 5368 ldr r3, [r2, #4] 5601 016e 43F04003 orr r3, r3, #64 5602 0172 5360 str r3, [r2, #4] 1888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5603 .loc 1 1888 15 view .LVU1694 5604 0174 04E0 b .L356 5605 .LVL455: 5606 .L357: 1928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5607 .loc 1 1928 7 discriminator 1 view .LVU1695 1928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5608 .loc 1 1928 7 discriminator 1 view .LVU1696 5609 0176 0023 movs r3, #0 5610 0178 84F85830 strb r3, [r4, #88] 5611 017c 00E0 b .L356 5612 .LVL456: 5613 .L372: 1934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5614 .loc 1 1934 20 is_stmt 0 view .LVU1697 5615 017e 0220 movs r0, #2 5616 .LVL457: 5617 .L356: 1939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5618 .loc 1 1939 1 view .LVU1698 5619 0180 38BD pop {r3, r4, r5, pc} 5620 .LVL458: 5621 .L373: 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5622 .loc 1 1756 5 view .LVU1699 5623 0182 0220 movs r0, #2 5624 .LVL459: 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5625 .loc 1 1756 5 view .LVU1700 5626 0184 FCE7 b .L356 5627 .L383: 5628 0186 00BF .align 2 5629 .L382: 5630 0188 00030050 .word 1342178048 5631 018c 00010050 .word 1342177536 5632 .cfi_endproc 5633 .LFE337: 5635 .section .text.HAL_ADC_Start_DMA,"ax",%progbits 5636 .align 1 5637 .global HAL_ADC_Start_DMA 5638 .syntax unified 5639 .thumb 5640 .thumb_func 5642 HAL_ADC_Start_DMA: 5643 .LVL460: 5644 .LFB339: 2002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5645 .loc 1 2002 1 is_stmt 1 view -0 5646 .cfi_startproc ARM GAS /tmp/ccICigVb.s page 348 5647 @ args = 0, pretend = 0, frame = 0 5648 @ frame_needed = 0, uses_anonymous_args = 0 2002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5649 .loc 1 2002 1 is_stmt 0 view .LVU1702 5650 0000 F8B5 push {r3, r4, r5, r6, r7, lr} 5651 .LCFI24: 5652 .cfi_def_cfa_offset 24 5653 .cfi_offset 3, -24 5654 .cfi_offset 4, -20 5655 .cfi_offset 5, -16 5656 .cfi_offset 6, -12 5657 .cfi_offset 7, -8 5658 .cfi_offset 14, -4 5659 0002 0446 mov r4, r0 2003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 5660 .loc 1 2003 3 is_stmt 1 view .LVU1703 2005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif 5661 .loc 1 2005 3 view .LVU1704 5662 .LVL461: 5663 .LBB586: 5664 .LBI586: 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5665 .loc 2 6392 26 view .LVU1705 5666 .LBB587: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5667 .loc 2 6394 3 view .LVU1706 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5668 .loc 2 6394 21 is_stmt 0 view .LVU1707 5669 0004 3A4B ldr r3, .L399 5670 0006 9D68 ldr r5, [r3, #8] 5671 .LVL462: 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5672 .loc 2 6394 21 view .LVU1708 5673 .LBE587: 5674 .LBE586: 2009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5675 .loc 1 2009 3 is_stmt 1 view .LVU1709 2012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5676 .loc 1 2012 3 view .LVU1710 2012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5677 .loc 1 2012 7 is_stmt 0 view .LVU1711 5678 0008 0068 ldr r0, [r0] 5679 .LVL463: 5680 .LBB588: 5681 .LBI588: 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5682 .loc 2 6851 26 is_stmt 1 view .LVU1712 5683 .LBB589: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5684 .loc 2 6853 3 view .LVU1713 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5685 .loc 2 6853 12 is_stmt 0 view .LVU1714 5686 000a 8068 ldr r0, [r0, #8] 5687 .LVL464: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5688 .loc 2 6853 74 view .LVU1715 5689 000c 10F0040F tst r0, #4 ARM GAS /tmp/ccICigVb.s page 349 5690 0010 69D1 bne .L394 5691 0012 0E46 mov r6, r1 5692 0014 1746 mov r7, r2 5693 0016 05F01F05 and r5, r5, #31 5694 .LVL465: 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5695 .loc 2 6853 74 view .LVU1716 5696 .LBE589: 5697 .LBE588: 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5698 .loc 1 2015 5 is_stmt 1 view .LVU1717 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5699 .loc 1 2015 5 view .LVU1718 5700 001a 94F85830 ldrb r3, [r4, #88] @ zero_extendqisi2 5701 001e 012B cmp r3, #1 5702 0020 63D0 beq .L395 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5703 .loc 1 2015 5 discriminator 2 view .LVU1719 5704 0022 0123 movs r3, #1 5705 0024 84F85830 strb r3, [r4, #88] 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5706 .loc 1 2015 5 discriminator 2 view .LVU1720 2020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5707 .loc 1 2020 5 discriminator 2 view .LVU1721 2020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5708 .loc 1 2020 8 is_stmt 0 discriminator 2 view .LVU1722 5709 0028 45B1 cbz r5, .L386 2022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 5710 .loc 1 2022 9 view .LVU1723 5711 002a 052D cmp r5, #5 5712 002c 06D0 beq .L386 2023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5713 .loc 1 2023 9 view .LVU1724 5714 002e 092D cmp r5, #9 5715 0030 04D0 beq .L386 2115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 5716 .loc 1 2115 7 is_stmt 1 discriminator 1 view .LVU1725 5717 .LVL466: 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5718 .loc 1 2117 7 discriminator 1 view .LVU1726 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5719 .loc 1 2117 7 discriminator 1 view .LVU1727 5720 0032 0023 movs r3, #0 5721 0034 84F85830 strb r3, [r4, #88] 2115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 5722 .loc 1 2115 22 is_stmt 0 discriminator 1 view .LVU1728 5723 0038 0120 movs r0, #1 5724 003a 55E0 b .L385 5725 .LVL467: 5726 .L386: 2028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5727 .loc 1 2028 7 is_stmt 1 view .LVU1729 2028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5728 .loc 1 2028 24 is_stmt 0 view .LVU1730 5729 003c 2046 mov r0, r4 5730 003e FFF7FEFF bl ADC_Enable 5731 .LVL468: ARM GAS /tmp/ccICigVb.s page 350 2031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5732 .loc 1 2031 7 is_stmt 1 view .LVU1731 2031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5733 .loc 1 2031 10 is_stmt 0 view .LVU1732 5734 0042 0028 cmp r0, #0 5735 0044 4BD1 bne .L388 2036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 5736 .loc 1 2036 9 is_stmt 1 view .LVU1733 5737 0046 E36D ldr r3, [r4, #92] 5738 0048 23F47063 bic r3, r3, #3840 5739 004c 23F00103 bic r3, r3, #1 5740 0050 43F48073 orr r3, r3, #256 5741 0054 E365 str r3, [r4, #92] 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5742 .loc 1 2044 9 view .LVU1734 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5743 .loc 1 2044 14 is_stmt 0 view .LVU1735 5744 0056 2368 ldr r3, [r4] 5745 0058 264A ldr r2, .L399+4 5746 005a 9342 cmp r3, r2 5747 005c 39D0 beq .L398 5748 005e 1A46 mov r2, r3 5749 .L389: 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5750 .loc 1 2044 12 discriminator 4 view .LVU1736 5751 0060 9342 cmp r3, r2 5752 0062 00D0 beq .L390 2045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5753 .loc 1 2045 13 view .LVU1737 5754 0064 1DB9 cbnz r5, .L391 5755 .L390: 2048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5756 .loc 1 2048 11 is_stmt 1 view .LVU1738 5757 0066 E36D ldr r3, [r4, #92] 5758 0068 23F48013 bic r3, r3, #1048576 5759 006c E365 str r3, [r4, #92] 5760 .L391: 2053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5761 .loc 1 2053 9 view .LVU1739 2053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5762 .loc 1 2053 18 is_stmt 0 view .LVU1740 5763 006e E36D ldr r3, [r4, #92] 2053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5764 .loc 1 2053 12 view .LVU1741 5765 0070 13F4805F tst r3, #4096 5766 0074 30D0 beq .L392 2056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5767 .loc 1 2056 11 is_stmt 1 view .LVU1742 5768 0076 236E ldr r3, [r4, #96] 5769 0078 23F00603 bic r3, r3, #6 5770 007c 2366 str r3, [r4, #96] 5771 .L393: 2065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5772 .loc 1 2065 9 view .LVU1743 2065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5773 .loc 1 2065 13 is_stmt 0 view .LVU1744 5774 007e 636D ldr r3, [r4, #84] ARM GAS /tmp/ccICigVb.s page 351 2065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5775 .loc 1 2065 44 view .LVU1745 5776 0080 1D4A ldr r2, .L399+8 5777 0082 DA62 str r2, [r3, #44] 2068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5778 .loc 1 2068 9 is_stmt 1 view .LVU1746 2068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5779 .loc 1 2068 13 is_stmt 0 view .LVU1747 5780 0084 636D ldr r3, [r4, #84] 2068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5781 .loc 1 2068 48 view .LVU1748 5782 0086 1D4A ldr r2, .L399+12 5783 0088 1A63 str r2, [r3, #48] 2071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5784 .loc 1 2071 9 is_stmt 1 view .LVU1749 2071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5785 .loc 1 2071 13 is_stmt 0 view .LVU1750 5786 008a 636D ldr r3, [r4, #84] 2071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5787 .loc 1 2071 45 view .LVU1751 5788 008c 1C4A ldr r2, .L399+16 5789 008e 5A63 str r2, [r3, #52] 2080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5790 .loc 1 2080 9 is_stmt 1 view .LVU1752 5791 0090 2368 ldr r3, [r4] 5792 0092 1C22 movs r2, #28 5793 0094 1A60 str r2, [r3] 2085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5794 .loc 1 2085 9 view .LVU1753 2085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5795 .loc 1 2085 9 view .LVU1754 5796 0096 0023 movs r3, #0 5797 0098 84F85830 strb r3, [r4, #88] 2085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5798 .loc 1 2085 9 view .LVU1755 2090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5799 .loc 1 2090 9 view .LVU1756 5800 009c 2268 ldr r2, [r4] 5801 009e 5368 ldr r3, [r2, #4] 5802 00a0 43F01003 orr r3, r3, #16 5803 00a4 5360 str r3, [r2, #4] 2093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5804 .loc 1 2093 9 view .LVU1757 5805 00a6 2268 ldr r2, [r4] 5806 00a8 D368 ldr r3, [r2, #12] 5807 00aa 43F00103 orr r3, r3, #1 5808 00ae D360 str r3, [r2, #12] 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5809 .loc 1 2096 9 view .LVU1758 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5810 .loc 1 2096 76 is_stmt 0 view .LVU1759 5811 00b0 2168 ldr r1, [r4] 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5812 .loc 1 2096 26 view .LVU1760 5813 00b2 3B46 mov r3, r7 5814 00b4 3246 mov r2, r6 5815 00b6 4031 adds r1, r1, #64 ARM GAS /tmp/ccICigVb.s page 352 5816 00b8 606D ldr r0, [r4, #84] 5817 .LVL469: 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5818 .loc 1 2096 26 view .LVU1761 5819 00ba FFF7FEFF bl HAL_DMA_Start_IT 5820 .LVL470: 2103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5821 .loc 1 2103 9 is_stmt 1 view .LVU1762 5822 00be 2268 ldr r2, [r4] 5823 .LVL471: 5824 .LBB590: 5825 .LBI590: 6815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5826 .loc 2 6815 22 view .LVU1763 5827 .LBB591: 6820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5828 .loc 2 6820 3 view .LVU1764 5829 00c0 9368 ldr r3, [r2, #8] 5830 00c2 23F00043 bic r3, r3, #-2147483648 5831 00c6 23F03F03 bic r3, r3, #63 5832 00ca 43F00403 orr r3, r3, #4 5833 00ce 9360 str r3, [r2, #8] 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5834 .loc 2 6823 1 is_stmt 0 view .LVU1765 5835 00d0 0AE0 b .L385 5836 .LVL472: 5837 .L398: 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5838 .loc 2 6823 1 view .LVU1766 5839 .LBE591: 5840 .LBE590: 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5841 .loc 1 2044 14 view .LVU1767 5842 00d2 4FF0A042 mov r2, #1342177280 5843 00d6 C3E7 b .L389 5844 .L392: 2061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5845 .loc 1 2061 11 is_stmt 1 view .LVU1768 5846 00d8 0023 movs r3, #0 5847 00da 2366 str r3, [r4, #96] 5848 00dc CFE7 b .L393 5849 .L388: 2108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5850 .loc 1 2108 9 view .LVU1769 2108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5851 .loc 1 2108 9 view .LVU1770 5852 00de 0023 movs r3, #0 5853 00e0 84F85830 strb r3, [r4, #88] 5854 00e4 00E0 b .L385 5855 .LVL473: 5856 .L394: 2123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5857 .loc 1 2123 20 is_stmt 0 view .LVU1771 5858 00e6 0220 movs r0, #2 5859 .LVL474: 5860 .L385: 2128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 353 5861 .loc 1 2128 1 view .LVU1772 5862 00e8 F8BD pop {r3, r4, r5, r6, r7, pc} 5863 .LVL475: 5864 .L395: 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5865 .loc 1 2015 5 view .LVU1773 5866 00ea 0220 movs r0, #2 5867 00ec FCE7 b .L385 5868 .L400: 5869 00ee 00BF .align 2 5870 .L399: 5871 00f0 00030050 .word 1342178048 5872 00f4 00010050 .word 1342177536 5873 00f8 00000000 .word ADC_DMAConvCplt 5874 00fc 00000000 .word ADC_DMAHalfConvCplt 5875 0100 00000000 .word ADC_DMAError 5876 .cfi_endproc 5877 .LFE339: 5879 .section .text.ADC_Disable,"ax",%progbits 5880 .align 1 5881 .global ADC_Disable 5882 .syntax unified 5883 .thumb 5884 .thumb_func 5886 ADC_Disable: 5887 .LVL476: 5888 .LFB355: 3495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 5889 .loc 1 3495 1 is_stmt 1 view -0 5890 .cfi_startproc 5891 @ args = 0, pretend = 0, frame = 0 5892 @ frame_needed = 0, uses_anonymous_args = 0 3495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 5893 .loc 1 3495 1 is_stmt 0 view .LVU1775 5894 0000 38B5 push {r3, r4, r5, lr} 5895 .LCFI25: 5896 .cfi_def_cfa_offset 16 5897 .cfi_offset 3, -16 5898 .cfi_offset 4, -12 5899 .cfi_offset 5, -8 5900 .cfi_offset 14, -4 5901 0002 0446 mov r4, r0 3496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 5902 .loc 1 3496 3 is_stmt 1 view .LVU1776 3497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5903 .loc 1 3497 3 view .LVU1777 3497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5904 .loc 1 3497 48 is_stmt 0 view .LVU1778 5905 0004 0268 ldr r2, [r0] 5906 .LVL477: 5907 .LBB592: 5908 .LBI592: 6740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5909 .loc 2 6740 26 is_stmt 1 view .LVU1779 5910 .LBB593: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5911 .loc 2 6742 3 view .LVU1780 ARM GAS /tmp/ccICigVb.s page 354 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5912 .loc 2 6742 12 is_stmt 0 view .LVU1781 5913 0006 9368 ldr r3, [r2, #8] 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5914 .loc 2 6742 70 view .LVU1782 5915 0008 13F00203 ands r3, r3, #2 5916 000c 00D0 beq .L402 5917 000e 0123 movs r3, #1 5918 .L402: 5919 .LVL478: 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5920 .loc 2 6742 70 view .LVU1783 5921 .LBE593: 5922 .LBE592: 3502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) 5923 .loc 1 3502 3 is_stmt 1 view .LVU1784 5924 .LBB594: 5925 .LBI594: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5926 .loc 2 6729 26 view .LVU1785 5927 .LBB595: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5928 .loc 2 6731 3 view .LVU1786 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5929 .loc 2 6731 12 is_stmt 0 view .LVU1787 5930 0010 9168 ldr r1, [r2, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5931 .loc 2 6731 68 view .LVU1788 5932 0012 11F0010F tst r1, #1 5933 0016 39D0 beq .L407 5934 .LVL479: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5935 .loc 2 6731 68 view .LVU1789 5936 .LBE595: 5937 .LBE594: 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5938 .loc 1 3503 7 view .LVU1790 5939 0018 002B cmp r3, #0 5940 001a 39D1 bne .L408 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5941 .loc 1 3507 5 is_stmt 1 view .LVU1791 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5942 .loc 1 3507 24 is_stmt 0 view .LVU1792 5943 001c 9368 ldr r3, [r2, #8] 5944 .LVL480: 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5945 .loc 1 3507 29 view .LVU1793 5946 001e 03F00D03 and r3, r3, #13 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5947 .loc 1 3507 8 view .LVU1794 5948 0022 012B cmp r3, #1 5949 0024 09D0 beq .L410 3516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5950 .loc 1 3516 7 is_stmt 1 view .LVU1795 5951 0026 E36D ldr r3, [r4, #92] 5952 0028 43F01003 orr r3, r3, #16 5953 002c E365 str r3, [r4, #92] ARM GAS /tmp/ccICigVb.s page 355 3519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5954 .loc 1 3519 7 view .LVU1796 5955 002e 236E ldr r3, [r4, #96] 5956 0030 43F00103 orr r3, r3, #1 5957 0034 2366 str r3, [r4, #96] 3521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5958 .loc 1 3521 7 view .LVU1797 3521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5959 .loc 1 3521 14 is_stmt 0 view .LVU1798 5960 0036 0120 movs r0, #1 5961 .LVL481: 3521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5962 .loc 1 3521 14 view .LVU1799 5963 0038 29E0 b .L403 5964 .LVL482: 5965 .L410: 3510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 5966 .loc 1 3510 7 is_stmt 1 view .LVU1800 5967 .LBB596: 5968 .LBI596: 6710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5969 .loc 2 6710 22 view .LVU1801 5970 .LBB597: 6715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5971 .loc 2 6715 3 view .LVU1802 5972 003a 9368 ldr r3, [r2, #8] 5973 003c 23F00043 bic r3, r3, #-2147483648 5974 0040 23F03F03 bic r3, r3, #63 5975 0044 43F00203 orr r3, r3, #2 5976 0048 9360 str r3, [r2, #8] 5977 .LVL483: 6715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5978 .loc 2 6715 3 is_stmt 0 view .LVU1803 5979 .LBE597: 5980 .LBE596: 3511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5981 .loc 1 3511 7 is_stmt 1 view .LVU1804 5982 004a 2368 ldr r3, [r4] 5983 004c 0322 movs r2, #3 5984 004e 1A60 str r2, [r3] 3526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5985 .loc 1 3526 5 view .LVU1805 3526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5986 .loc 1 3526 17 is_stmt 0 view .LVU1806 5987 0050 FFF7FEFF bl HAL_GetTick 5988 .LVL484: 3526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5989 .loc 1 3526 17 view .LVU1807 5990 0054 0546 mov r5, r0 5991 .LVL485: 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5992 .loc 1 3528 5 is_stmt 1 view .LVU1808 5993 .L405: 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5994 .loc 1 3528 47 view .LVU1809 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5995 .loc 1 3528 17 is_stmt 0 view .LVU1810 ARM GAS /tmp/ccICigVb.s page 356 5996 0056 2368 ldr r3, [r4] 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5997 .loc 1 3528 27 view .LVU1811 5998 0058 9B68 ldr r3, [r3, #8] 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5999 .loc 1 3528 47 view .LVU1812 6000 005a 13F0010F tst r3, #1 6001 005e 13D0 beq .L411 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6002 .loc 1 3530 7 is_stmt 1 view .LVU1813 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6003 .loc 1 3530 12 is_stmt 0 view .LVU1814 6004 0060 FFF7FEFF bl HAL_GetTick 6005 .LVL486: 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6006 .loc 1 3530 26 view .LVU1815 6007 0064 401B subs r0, r0, r5 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6008 .loc 1 3530 10 view .LVU1816 6009 0066 0228 cmp r0, #2 6010 0068 F5D9 bls .L405 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6011 .loc 1 3533 9 is_stmt 1 view .LVU1817 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6012 .loc 1 3533 18 is_stmt 0 view .LVU1818 6013 006a 2368 ldr r3, [r4] 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6014 .loc 1 3533 28 view .LVU1819 6015 006c 9B68 ldr r3, [r3, #8] 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6016 .loc 1 3533 12 view .LVU1820 6017 006e 13F0010F tst r3, #1 6018 0072 F0D0 beq .L405 3536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6019 .loc 1 3536 11 is_stmt 1 view .LVU1821 6020 0074 E36D ldr r3, [r4, #92] 6021 0076 43F01003 orr r3, r3, #16 6022 007a E365 str r3, [r4, #92] 3539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6023 .loc 1 3539 11 view .LVU1822 6024 007c 236E ldr r3, [r4, #96] 6025 007e 43F00103 orr r3, r3, #1 6026 0082 2366 str r3, [r4, #96] 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6027 .loc 1 3541 11 view .LVU1823 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6028 .loc 1 3541 18 is_stmt 0 view .LVU1824 6029 0084 0120 movs r0, #1 6030 0086 02E0 b .L403 6031 .L411: 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6032 .loc 1 3548 10 view .LVU1825 6033 0088 0020 movs r0, #0 6034 008a 00E0 b .L403 6035 .LVL487: 6036 .L407: 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 357 6037 .loc 1 3548 10 view .LVU1826 6038 008c 0020 movs r0, #0 6039 .LVL488: 6040 .L403: 3549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6041 .loc 1 3549 1 view .LVU1827 6042 008e 38BD pop {r3, r4, r5, pc} 6043 .LVL489: 6044 .L408: 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6045 .loc 1 3548 10 view .LVU1828 6046 0090 0020 movs r0, #0 6047 .LVL490: 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6048 .loc 1 3548 10 view .LVU1829 6049 0092 FCE7 b .L403 6050 .cfi_endproc 6051 .LFE355: 6053 .section .text.HAL_ADC_DeInit,"ax",%progbits 6054 .align 1 6055 .global HAL_ADC_DeInit 6056 .syntax unified 6057 .thumb 6058 .thumb_func 6060 HAL_ADC_DeInit: 6061 .LVL491: 6062 .LFB330: 715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6063 .loc 1 715 1 is_stmt 1 view -0 6064 .cfi_startproc 6065 @ args = 0, pretend = 0, frame = 0 6066 @ frame_needed = 0, uses_anonymous_args = 0 715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6067 .loc 1 715 1 is_stmt 0 view .LVU1831 6068 0000 38B5 push {r3, r4, r5, lr} 6069 .LCFI26: 6070 .cfi_def_cfa_offset 16 6071 .cfi_offset 3, -16 6072 .cfi_offset 4, -12 6073 .cfi_offset 5, -8 6074 .cfi_offset 14, -4 716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6075 .loc 1 716 3 is_stmt 1 view .LVU1832 719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6076 .loc 1 719 3 view .LVU1833 719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6077 .loc 1 719 6 is_stmt 0 view .LVU1834 6078 0002 0028 cmp r0, #0 6079 0004 00F0C980 beq .L418 6080 0008 0446 mov r4, r0 725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6081 .loc 1 725 3 is_stmt 1 view .LVU1835 728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6082 .loc 1 728 3 view .LVU1836 6083 000a C36D ldr r3, [r0, #92] 6084 000c 43F00203 orr r3, r3, #2 6085 0010 C365 str r3, [r0, #92] ARM GAS /tmp/ccICigVb.s page 358 731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6086 .loc 1 731 3 view .LVU1837 731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6087 .loc 1 731 20 is_stmt 0 view .LVU1838 6088 0012 0321 movs r1, #3 6089 0014 FFF7FEFF bl ADC_ConversionStop 6090 .LVL492: 739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6091 .loc 1 739 3 is_stmt 1 view .LVU1839 6092 0018 2268 ldr r2, [r4] 6093 001a D368 ldr r3, [r2, #12] 6094 001c 43F40013 orr r3, r3, #2097152 6095 0020 D360 str r3, [r2, #12] 742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6096 .loc 1 742 3 view .LVU1840 742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6097 .loc 1 742 6 is_stmt 0 view .LVU1841 6098 0022 0546 mov r5, r0 6099 0024 0028 cmp r0, #0 6100 0026 00F09F80 beq .L420 6101 .L414: 6102 .LVL493: 763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 6103 .loc 1 763 3 is_stmt 1 view .LVU1842 6104 002a 2268 ldr r2, [r4] 6105 002c 5368 ldr r3, [r2, #4] 6106 002e 23F4FF63 bic r3, r3, #2040 6107 0032 23F00703 bic r3, r3, #7 6108 0036 5360 str r3, [r2, #4] 770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 6109 .loc 1 770 3 view .LVU1843 6110 0038 2368 ldr r3, [r4] 6111 003a 40F2FF72 movw r2, #2047 6112 003e 1A60 str r2, [r3] 781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 6113 .loc 1 781 3 view .LVU1844 6114 0040 2268 ldr r2, [r4] 6115 0042 9368 ldr r3, [r2, #8] 6116 0044 23F0A043 bic r3, r3, #1342177280 6117 0048 9360 str r3, [r2, #8] 782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6118 .loc 1 782 3 view .LVU1845 6119 004a 2268 ldr r2, [r4] 6120 004c 9368 ldr r3, [r2, #8] 6121 004e 43F00053 orr r3, r3, #536870912 6122 0052 9360 str r3, [r2, #8] 785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQDIS); 6123 .loc 1 785 3 view .LVU1846 6124 0054 2268 ldr r2, [r4] 6125 0056 D368 ldr r3, [r2, #12] 6126 0058 23F0FF43 bic r3, r3, #2139095040 6127 005c 23F4FF03 bic r3, r3, #8355840 6128 0060 23F4FF43 bic r3, r3, #32640 6129 0064 23F07B03 bic r3, r3, #123 6130 0068 D360 str r3, [r2, #12] 786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6131 .loc 1 786 3 view .LVU1847 ARM GAS /tmp/ccICigVb.s page 359 6132 006a 2268 ldr r2, [r4] 6133 006c D368 ldr r3, [r2, #12] 6134 006e 43F00043 orr r3, r3, #-2147483648 6135 0072 D360 str r3, [r2, #12] 789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 6136 .loc 1 789 3 view .LVU1848 6137 0074 2268 ldr r2, [r4] 6138 0076 1369 ldr r3, [r2, #16] 6139 0078 23F4FF63 bic r3, r3, #2040 6140 007c 23F00703 bic r3, r3, #7 6141 0080 1361 str r3, [r2, #16] 793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6142 .loc 1 793 3 view .LVU1849 6143 0082 2268 ldr r2, [r4] 6144 0084 5369 ldr r3, [r2, #20] 6145 0086 03F08043 and r3, r3, #1073741824 6146 008a 5361 str r3, [r2, #20] 796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | 6147 .loc 1 796 3 view .LVU1850 6148 008c 2268 ldr r2, [r4] 6149 008e 9369 ldr r3, [r2, #24] 6150 0090 03F07843 and r3, r3, #-134217728 6151 0094 9361 str r3, [r2, #24] 801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6152 .loc 1 801 3 view .LVU1851 6153 0096 2268 ldr r2, [r4] 6154 0098 136A ldr r3, [r2, #32] 6155 009a 03F0F023 and r3, r3, #-268374016 6156 009e 1362 str r3, [r2, #32] 804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6157 .loc 1 804 3 view .LVU1852 6158 00a0 2268 ldr r2, [r4] 6159 00a2 536A ldr r3, [r2, #36] 6160 00a4 03F0FF23 and r3, r3, #-16711936 6161 00a8 5362 str r3, [r2, #36] 807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6162 .loc 1 807 3 view .LVU1853 6163 00aa 2268 ldr r2, [r4] 6164 00ac 936A ldr r3, [r2, #40] 6165 00ae 03F0FF23 and r3, r3, #-16711936 6166 00b2 9362 str r3, [r2, #40] 810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 6167 .loc 1 810 3 view .LVU1854 6168 00b4 2268 ldr r2, [r4] 6169 00b6 116B ldr r1, [r2, #48] 6170 00b8 394B ldr r3, .L422 6171 00ba 0B40 ands r3, r3, r1 6172 00bc 1363 str r3, [r2, #48] 814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 6173 .loc 1 814 3 view .LVU1855 6174 00be 2268 ldr r2, [r4] 6175 00c0 536B ldr r3, [r2, #52] 6176 00c2 3849 ldr r1, .L422+4 6177 00c4 0B40 ands r3, r3, r1 6178 00c6 5363 str r3, [r2, #52] 818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 6179 .loc 1 818 3 view .LVU1856 ARM GAS /tmp/ccICigVb.s page 360 6180 00c8 2268 ldr r2, [r4] 6181 00ca 936B ldr r3, [r2, #56] 6182 00cc 0B40 ands r3, r3, r1 6183 00ce 9363 str r3, [r2, #56] 822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6184 .loc 1 822 3 view .LVU1857 6185 00d0 2268 ldr r2, [r4] 6186 00d2 D36B ldr r3, [r2, #60] 6187 00d4 23F4FB63 bic r3, r3, #2008 6188 00d8 23F00703 bic r3, r3, #7 6189 00dc D363 str r3, [r2, #60] 830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR2 */ 6190 .loc 1 830 3 view .LVU1858 6191 00de 2168 ldr r1, [r4] 6192 00e0 0A6E ldr r2, [r1, #96] 6193 00e2 314B ldr r3, .L422+8 6194 00e4 1A40 ands r2, r2, r3 6195 00e6 0A66 str r2, [r1, #96] 832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR3 */ 6196 .loc 1 832 3 view .LVU1859 6197 00e8 2168 ldr r1, [r4] 6198 00ea 4A6E ldr r2, [r1, #100] 6199 00ec 1A40 ands r2, r2, r3 6200 00ee 4A66 str r2, [r1, #100] 834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR4 */ 6201 .loc 1 834 3 view .LVU1860 6202 00f0 2168 ldr r1, [r4] 6203 00f2 8A6E ldr r2, [r1, #104] 6204 00f4 1A40 ands r2, r2, r3 6205 00f6 8A66 str r2, [r1, #104] 836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6206 .loc 1 836 3 view .LVU1861 6207 00f8 2168 ldr r1, [r4] 6208 00fa CA6E ldr r2, [r1, #108] 6209 00fc 1340 ands r3, r3, r2 6210 00fe CB66 str r3, [r1, #108] 842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6211 .loc 1 842 3 view .LVU1862 6212 0100 2268 ldr r2, [r4] 6213 0102 D2F8A030 ldr r3, [r2, #160] 6214 0106 DB0C lsrs r3, r3, #19 6215 0108 DB04 lsls r3, r3, #19 6216 010a C2F8A030 str r3, [r2, #160] 845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6217 .loc 1 845 3 view .LVU1863 6218 010e 2268 ldr r2, [r4] 6219 0110 D2F8A430 ldr r3, [r2, #164] 6220 0114 DB0C lsrs r3, r3, #19 6221 0116 DB04 lsls r3, r3, #19 6222 0118 C2F8A430 str r3, [r2, #164] 848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6223 .loc 1 848 3 view .LVU1864 6224 011c 2268 ldr r2, [r4] 6225 011e D2F8B030 ldr r3, [r2, #176] 6226 0122 DB0C lsrs r3, r3, #19 6227 0124 DB04 lsls r3, r3, #19 6228 0126 C2F8B030 str r3, [r2, #176] ARM GAS /tmp/ccICigVb.s page 361 851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6229 .loc 1 851 3 view .LVU1865 6230 012a 2268 ldr r2, [r4] 6231 012c D2F8B430 ldr r3, [r2, #180] 6232 0130 23F07F13 bic r3, r3, #8323199 6233 0134 C2F8B430 str r3, [r2, #180] 858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6234 .loc 1 858 3 view .LVU1866 6235 .LVL494: 6236 .LBB598: 6237 .LBI598: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6238 .loc 2 6729 26 view .LVU1867 6239 .LBB599: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6240 .loc 2 6731 3 view .LVU1868 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6241 .loc 2 6731 12 is_stmt 0 view .LVU1869 6242 0138 4FF0A043 mov r3, #1342177280 6243 013c 9A68 ldr r2, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6244 .loc 2 6731 68 view .LVU1870 6245 013e 12F00102 ands r2, r2, #1 6246 0142 00D0 beq .L415 6247 0144 0122 movs r2, #1 6248 .L415: 6249 .LVL495: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6250 .loc 2 6731 68 view .LVU1871 6251 .LBE599: 6252 .LBE598: 6253 .LBB600: 6254 .LBI600: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6255 .loc 2 6729 26 is_stmt 1 view .LVU1872 6256 .LBB601: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6257 .loc 2 6731 3 view .LVU1873 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6258 .loc 2 6731 12 is_stmt 0 view .LVU1874 6259 0146 194B ldr r3, .L422+12 6260 0148 9B68 ldr r3, [r3, #8] 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6261 .loc 2 6731 68 view .LVU1875 6262 014a 13F00103 ands r3, r3, #1 6263 014e 00D0 beq .L416 6264 0150 0123 movs r3, #1 6265 .L416: 6266 .LVL496: 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6267 .loc 2 6731 68 view .LVU1876 6268 .LBE601: 6269 .LBE600: 858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6270 .loc 1 858 6 view .LVU1877 6271 0152 1343 orrs r3, r3, r2 6272 0154 12D0 beq .L421 ARM GAS /tmp/ccICigVb.s page 362 6273 .L417: 892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6274 .loc 1 892 3 is_stmt 1 view .LVU1878 6275 0156 0023 movs r3, #0 6276 0158 2366 str r3, [r4, #96] 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 6277 .loc 1 895 3 view .LVU1879 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 6278 .loc 1 895 38 is_stmt 0 view .LVU1880 6279 015a 6366 str r3, [r4, #100] 896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6280 .loc 1 896 3 is_stmt 1 view .LVU1881 896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6281 .loc 1 896 38 is_stmt 0 view .LVU1882 6282 015c A366 str r3, [r4, #104] 899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6283 .loc 1 899 3 is_stmt 1 view .LVU1883 899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6284 .loc 1 899 15 is_stmt 0 view .LVU1884 6285 015e E365 str r3, [r4, #92] 902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6286 .loc 1 902 3 is_stmt 1 view .LVU1885 902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6287 .loc 1 902 3 view .LVU1886 6288 0160 84F85830 strb r3, [r4, #88] 902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6289 .loc 1 902 3 view .LVU1887 905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6290 .loc 1 905 3 view .LVU1888 6291 .LVL497: 6292 .L413: 906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6293 .loc 1 906 1 is_stmt 0 view .LVU1889 6294 0164 2846 mov r0, r5 6295 0166 38BD pop {r3, r4, r5, pc} 6296 .LVL498: 6297 .L420: 745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6298 .loc 1 745 5 is_stmt 1 view .LVU1890 745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6299 .loc 1 745 22 is_stmt 0 view .LVU1891 6300 0168 2046 mov r0, r4 6301 .LVL499: 745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6302 .loc 1 745 22 view .LVU1892 6303 016a FFF7FEFF bl ADC_Disable 6304 .LVL500: 748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6305 .loc 1 748 5 is_stmt 1 view .LVU1893 748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6306 .loc 1 748 8 is_stmt 0 view .LVU1894 6307 016e 0546 mov r5, r0 6308 0170 0028 cmp r0, #0 6309 0172 7FF45AAF bne .L414 751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6310 .loc 1 751 7 is_stmt 1 view .LVU1895 751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/ccICigVb.s page 363 6311 .loc 1 751 19 is_stmt 0 view .LVU1896 6312 0176 0123 movs r3, #1 6313 0178 E365 str r3, [r4, #92] 6314 017a 56E7 b .L414 6315 .LVL501: 6316 .L421: 867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6317 .loc 1 867 5 is_stmt 1 view .LVU1897 6318 017c 0C4A ldr r2, .L422+16 6319 017e 9368 ldr r3, [r2, #8] 6320 0180 23F0FF73 bic r3, r3, #33423360 6321 0184 23F4F733 bic r3, r3, #126464 6322 0188 23F48F73 bic r3, r3, #286 6323 018c 23F00103 bic r3, r3, #1 6324 0190 9360 str r3, [r2, #8] 887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 6325 .loc 1 887 5 view .LVU1898 6326 0192 2046 mov r0, r4 6327 0194 FFF7FEFF bl HAL_ADC_MspDeInit 6328 .LVL502: 6329 0198 DDE7 b .L417 6330 .LVL503: 6331 .L418: 721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6332 .loc 1 721 12 is_stmt 0 view .LVU1899 6333 019a 0125 movs r5, #1 6334 019c E2E7 b .L413 6335 .L423: 6336 019e 00BF .align 2 6337 .L422: 6338 01a0 300882E0 .word -528349136 6339 01a4 200882E0 .word -528349152 6340 01a8 00F0FF03 .word 67104768 6341 01ac 00010050 .word 1342177536 6342 01b0 00030050 .word 1342178048 6343 .cfi_endproc 6344 .LFE330: 6346 .section .text.HAL_ADC_Stop,"ax",%progbits 6347 .align 1 6348 .global HAL_ADC_Stop 6349 .syntax unified 6350 .thumb 6351 .thumb_func 6353 HAL_ADC_Stop: 6354 .LVL504: 6355 .LFB334: 1356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6356 .loc 1 1356 1 is_stmt 1 view -0 6357 .cfi_startproc 6358 @ args = 0, pretend = 0, frame = 0 6359 @ frame_needed = 0, uses_anonymous_args = 0 1357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6360 .loc 1 1357 3 view .LVU1901 1360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6361 .loc 1 1360 3 view .LVU1902 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6362 .loc 1 1363 3 view .LVU1903 ARM GAS /tmp/ccICigVb.s page 364 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6363 .loc 1 1363 3 view .LVU1904 6364 0000 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6365 0004 012B cmp r3, #1 6366 0006 1AD0 beq .L427 1356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6367 .loc 1 1356 1 is_stmt 0 discriminator 2 view .LVU1905 6368 0008 10B5 push {r4, lr} 6369 .LCFI27: 6370 .cfi_def_cfa_offset 8 6371 .cfi_offset 4, -8 6372 .cfi_offset 14, -4 6373 000a 0446 mov r4, r0 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6374 .loc 1 1363 3 is_stmt 1 discriminator 2 view .LVU1906 6375 000c 0123 movs r3, #1 6376 000e 80F85830 strb r3, [r0, #88] 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6377 .loc 1 1363 3 discriminator 2 view .LVU1907 1366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6378 .loc 1 1366 3 discriminator 2 view .LVU1908 1366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6379 .loc 1 1366 20 is_stmt 0 discriminator 2 view .LVU1909 6380 0012 0321 movs r1, #3 6381 0014 FFF7FEFF bl ADC_ConversionStop 6382 .LVL505: 1369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6383 .loc 1 1369 3 is_stmt 1 discriminator 2 view .LVU1910 1369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6384 .loc 1 1369 6 is_stmt 0 discriminator 2 view .LVU1911 6385 0018 18B1 cbz r0, .L432 6386 .L426: 1385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6387 .loc 1 1385 3 is_stmt 1 view .LVU1912 1385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6388 .loc 1 1385 3 view .LVU1913 6389 001a 0023 movs r3, #0 6390 001c 84F85830 strb r3, [r4, #88] 1385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6391 .loc 1 1385 3 view .LVU1914 1388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6392 .loc 1 1388 3 view .LVU1915 1389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6393 .loc 1 1389 1 is_stmt 0 view .LVU1916 6394 0020 10BD pop {r4, pc} 6395 .LVL506: 6396 .L432: 1372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6397 .loc 1 1372 5 is_stmt 1 view .LVU1917 1372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6398 .loc 1 1372 22 is_stmt 0 view .LVU1918 6399 0022 2046 mov r0, r4 6400 .LVL507: 1372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6401 .loc 1 1372 22 view .LVU1919 6402 0024 FFF7FEFF bl ADC_Disable 6403 .LVL508: ARM GAS /tmp/ccICigVb.s page 365 1375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6404 .loc 1 1375 5 is_stmt 1 view .LVU1920 1375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6405 .loc 1 1375 8 is_stmt 0 view .LVU1921 6406 0028 0028 cmp r0, #0 6407 002a F6D1 bne .L426 1378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6408 .loc 1 1378 7 is_stmt 1 view .LVU1922 6409 002c E36D ldr r3, [r4, #92] 6410 002e 23F48853 bic r3, r3, #4352 6411 0032 23F00103 bic r3, r3, #1 6412 0036 43F00103 orr r3, r3, #1 6413 003a E365 str r3, [r4, #92] 6414 003c EDE7 b .L426 6415 .LVL509: 6416 .L427: 6417 .LCFI28: 6418 .cfi_def_cfa_offset 0 6419 .cfi_restore 4 6420 .cfi_restore 14 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6421 .loc 1 1363 3 is_stmt 0 view .LVU1923 6422 003e 0220 movs r0, #2 6423 .LVL510: 1389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6424 .loc 1 1389 1 view .LVU1924 6425 0040 7047 bx lr 6426 .cfi_endproc 6427 .LFE334: 6429 .section .text.HAL_ADC_Stop_IT,"ax",%progbits 6430 .align 1 6431 .global HAL_ADC_Stop_IT 6432 .syntax unified 6433 .thumb 6434 .thumb_func 6436 HAL_ADC_Stop_IT: 6437 .LVL511: 6438 .LFB338: 1949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6439 .loc 1 1949 1 is_stmt 1 view -0 6440 .cfi_startproc 6441 @ args = 0, pretend = 0, frame = 0 6442 @ frame_needed = 0, uses_anonymous_args = 0 1950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6443 .loc 1 1950 3 view .LVU1926 1953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6444 .loc 1 1953 3 view .LVU1927 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6445 .loc 1 1956 3 view .LVU1928 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6446 .loc 1 1956 3 view .LVU1929 6447 0000 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6448 0004 012B cmp r3, #1 6449 0006 1FD0 beq .L436 1949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6450 .loc 1 1949 1 is_stmt 0 discriminator 2 view .LVU1930 6451 0008 10B5 push {r4, lr} ARM GAS /tmp/ccICigVb.s page 366 6452 .LCFI29: 6453 .cfi_def_cfa_offset 8 6454 .cfi_offset 4, -8 6455 .cfi_offset 14, -4 6456 000a 0446 mov r4, r0 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6457 .loc 1 1956 3 is_stmt 1 discriminator 2 view .LVU1931 6458 000c 0123 movs r3, #1 6459 000e 80F85830 strb r3, [r0, #88] 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6460 .loc 1 1956 3 discriminator 2 view .LVU1932 1959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6461 .loc 1 1959 3 discriminator 2 view .LVU1933 1959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6462 .loc 1 1959 20 is_stmt 0 discriminator 2 view .LVU1934 6463 0012 0321 movs r1, #3 6464 0014 FFF7FEFF bl ADC_ConversionStop 6465 .LVL512: 1962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6466 .loc 1 1962 3 is_stmt 1 discriminator 2 view .LVU1935 1962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6467 .loc 1 1962 6 is_stmt 0 discriminator 2 view .LVU1936 6468 0018 18B1 cbz r0, .L441 6469 .L435: 1982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6470 .loc 1 1982 3 is_stmt 1 view .LVU1937 1982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6471 .loc 1 1982 3 view .LVU1938 6472 001a 0023 movs r3, #0 6473 001c 84F85830 strb r3, [r4, #88] 1982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6474 .loc 1 1982 3 view .LVU1939 1985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6475 .loc 1 1985 3 view .LVU1940 1986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6476 .loc 1 1986 1 is_stmt 0 view .LVU1941 6477 0020 10BD pop {r4, pc} 6478 .LVL513: 6479 .L441: 1966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6480 .loc 1 1966 5 is_stmt 1 view .LVU1942 6481 0022 2268 ldr r2, [r4] 6482 0024 5368 ldr r3, [r2, #4] 6483 0026 23F01C03 bic r3, r3, #28 6484 002a 5360 str r3, [r2, #4] 1969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6485 .loc 1 1969 5 view .LVU1943 1969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6486 .loc 1 1969 22 is_stmt 0 view .LVU1944 6487 002c 2046 mov r0, r4 6488 .LVL514: 1969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6489 .loc 1 1969 22 view .LVU1945 6490 002e FFF7FEFF bl ADC_Disable 6491 .LVL515: 1972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6492 .loc 1 1972 5 is_stmt 1 view .LVU1946 ARM GAS /tmp/ccICigVb.s page 367 1972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6493 .loc 1 1972 8 is_stmt 0 view .LVU1947 6494 0032 0028 cmp r0, #0 6495 0034 F1D1 bne .L435 1975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6496 .loc 1 1975 7 is_stmt 1 view .LVU1948 6497 0036 E36D ldr r3, [r4, #92] 6498 0038 23F48853 bic r3, r3, #4352 6499 003c 23F00103 bic r3, r3, #1 6500 0040 43F00103 orr r3, r3, #1 6501 0044 E365 str r3, [r4, #92] 6502 0046 E8E7 b .L435 6503 .LVL516: 6504 .L436: 6505 .LCFI30: 6506 .cfi_def_cfa_offset 0 6507 .cfi_restore 4 6508 .cfi_restore 14 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6509 .loc 1 1956 3 is_stmt 0 view .LVU1949 6510 0048 0220 movs r0, #2 6511 .LVL517: 1986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6512 .loc 1 1986 1 view .LVU1950 6513 004a 7047 bx lr 6514 .cfi_endproc 6515 .LFE338: 6517 .section .text.HAL_ADC_Stop_DMA,"ax",%progbits 6518 .align 1 6519 .global HAL_ADC_Stop_DMA 6520 .syntax unified 6521 .thumb 6522 .thumb_func 6524 HAL_ADC_Stop_DMA: 6525 .LVL518: 6526 .LFB340: 2144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6527 .loc 1 2144 1 is_stmt 1 view -0 6528 .cfi_startproc 6529 @ args = 0, pretend = 0, frame = 0 6530 @ frame_needed = 0, uses_anonymous_args = 0 2144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6531 .loc 1 2144 1 is_stmt 0 view .LVU1952 6532 0000 38B5 push {r3, r4, r5, lr} 6533 .LCFI31: 6534 .cfi_def_cfa_offset 16 6535 .cfi_offset 3, -16 6536 .cfi_offset 4, -12 6537 .cfi_offset 5, -8 6538 .cfi_offset 14, -4 2145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6539 .loc 1 2145 3 is_stmt 1 view .LVU1953 2148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6540 .loc 1 2148 3 view .LVU1954 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6541 .loc 1 2151 3 view .LVU1955 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/ccICigVb.s page 368 6542 .loc 1 2151 3 view .LVU1956 6543 0002 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6544 0006 012B cmp r3, #1 6545 0008 39D0 beq .L448 6546 000a 0446 mov r4, r0 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6547 .loc 1 2151 3 discriminator 2 view .LVU1957 6548 000c 0123 movs r3, #1 6549 000e 80F85830 strb r3, [r0, #88] 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6550 .loc 1 2151 3 discriminator 2 view .LVU1958 2154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6551 .loc 1 2154 3 discriminator 2 view .LVU1959 2154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6552 .loc 1 2154 20 is_stmt 0 discriminator 2 view .LVU1960 6553 0012 0321 movs r1, #3 6554 0014 FFF7FEFF bl ADC_ConversionStop 6555 .LVL519: 2157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6556 .loc 1 2157 3 is_stmt 1 discriminator 2 view .LVU1961 2157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6557 .loc 1 2157 6 is_stmt 0 discriminator 2 view .LVU1962 6558 0018 0546 mov r5, r0 6559 001a E8B9 cbnz r0, .L444 2160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6560 .loc 1 2160 5 is_stmt 1 view .LVU1963 6561 001c 2268 ldr r2, [r4] 6562 001e D368 ldr r3, [r2, #12] 6563 0020 23F00103 bic r3, r3, #1 6564 0024 D360 str r3, [r2, #12] 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6565 .loc 1 2164 5 view .LVU1964 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6566 .loc 1 2164 13 is_stmt 0 view .LVU1965 6567 0026 606D ldr r0, [r4, #84] 6568 .LVL520: 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6569 .loc 1 2164 25 view .LVU1966 6570 0028 90F82530 ldrb r3, [r0, #37] @ zero_extendqisi2 6571 002c DBB2 uxtb r3, r3 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6572 .loc 1 2164 8 view .LVU1967 6573 002e 022B cmp r3, #2 6574 0030 17D0 beq .L450 6575 .LVL521: 6576 .L445: 2177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6577 .loc 1 2177 5 is_stmt 1 view .LVU1968 6578 0032 2268 ldr r2, [r4] 6579 0034 5368 ldr r3, [r2, #4] 6580 0036 23F01003 bic r3, r3, #16 6581 003a 5360 str r3, [r2, #4] 2182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6582 .loc 1 2182 5 view .LVU1969 2182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6583 .loc 1 2182 8 is_stmt 0 view .LVU1970 6584 003c DDB9 cbnz r5, .L446 ARM GAS /tmp/ccICigVb.s page 369 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6585 .loc 1 2184 7 is_stmt 1 view .LVU1971 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6586 .loc 1 2184 24 is_stmt 0 view .LVU1972 6587 003e 2046 mov r0, r4 6588 0040 FFF7FEFF bl ADC_Disable 6589 .LVL522: 6590 0044 0546 mov r5, r0 6591 .LVL523: 6592 .L447: 2192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6593 .loc 1 2192 5 is_stmt 1 view .LVU1973 2192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6594 .loc 1 2192 8 is_stmt 0 view .LVU1974 6595 0046 3DB9 cbnz r5, .L444 2195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6596 .loc 1 2195 7 is_stmt 1 view .LVU1975 6597 0048 E36D ldr r3, [r4, #92] 6598 004a 23F48853 bic r3, r3, #4352 6599 004e 23F00103 bic r3, r3, #1 6600 0052 43F00103 orr r3, r3, #1 6601 0056 E365 str r3, [r4, #92] 6602 .LVL524: 6603 .L444: 2203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6604 .loc 1 2203 3 view .LVU1976 2203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6605 .loc 1 2203 3 view .LVU1977 6606 0058 0023 movs r3, #0 6607 005a 84F85830 strb r3, [r4, #88] 2203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6608 .loc 1 2203 3 view .LVU1978 2206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6609 .loc 1 2206 3 view .LVU1979 6610 .LVL525: 6611 .L443: 2207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6612 .loc 1 2207 1 is_stmt 0 view .LVU1980 6613 005e 2846 mov r0, r5 6614 0060 38BD pop {r3, r4, r5, pc} 6615 .LVL526: 6616 .L450: 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6617 .loc 1 2166 7 is_stmt 1 view .LVU1981 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6618 .loc 1 2166 24 is_stmt 0 view .LVU1982 6619 0062 FFF7FEFF bl HAL_DMA_Abort 6620 .LVL527: 2169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6621 .loc 1 2169 7 is_stmt 1 view .LVU1983 2169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6622 .loc 1 2169 10 is_stmt 0 view .LVU1984 6623 0066 0546 mov r5, r0 6624 0068 0028 cmp r0, #0 6625 006a E2D0 beq .L445 2172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6626 .loc 1 2172 9 is_stmt 1 view .LVU1985 ARM GAS /tmp/ccICigVb.s page 370 6627 006c E36D ldr r3, [r4, #92] 6628 006e 43F04003 orr r3, r3, #64 6629 0072 E365 str r3, [r4, #92] 6630 0074 DDE7 b .L445 6631 .LVL528: 6632 .L446: 2188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6633 .loc 1 2188 7 view .LVU1986 2188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6634 .loc 1 2188 13 is_stmt 0 view .LVU1987 6635 0076 2046 mov r0, r4 6636 0078 FFF7FEFF bl ADC_Disable 6637 .LVL529: 6638 007c E3E7 b .L447 6639 .LVL530: 6640 .L448: 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6641 .loc 1 2151 3 view .LVU1988 6642 007e 0225 movs r5, #2 6643 0080 EDE7 b .L443 6644 .cfi_endproc 6645 .LFE340: 6647 .text 6648 .Letext0: 6649 .file 4 "/usr/lib/gcc/arm-none-eabi/12.2.1/include/stdint.h" 6650 .file 5 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g431xx.h" 6651 .file 6 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4xx.h" 6652 .file 7 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_def.h" 6653 .file 8 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_dma.h" 6654 .file 9 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_adc.h" 6655 .file 10 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_adc_ex.h" 6656 .file 11 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/system_stm32g4xx.h" 6657 .file 12 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal.h" ARM GAS /tmp/ccICigVb.s page 371 DEFINED SYMBOLS *ABS*:00000000 stm32g4xx_hal_adc.c /tmp/ccICigVb.s:21 .text.LL_ADC_REG_SetSequencerRanks:00000000 $t /tmp/ccICigVb.s:26 .text.LL_ADC_REG_SetSequencerRanks:00000000 LL_ADC_REG_SetSequencerRanks /tmp/ccICigVb.s:73 .text.LL_ADC_SetChannelSamplingTime:00000000 $t /tmp/ccICigVb.s:78 .text.LL_ADC_SetChannelSamplingTime:00000000 LL_ADC_SetChannelSamplingTime /tmp/ccICigVb.s:123 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 $t /tmp/ccICigVb.s:128 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 LL_ADC_SetAnalogWDMonitChannels /tmp/ccICigVb.s:166 .text.HAL_ADC_MspInit:00000000 $t /tmp/ccICigVb.s:172 .text.HAL_ADC_MspInit:00000000 HAL_ADC_MspInit /tmp/ccICigVb.s:187 .text.HAL_ADC_Init:00000000 $t /tmp/ccICigVb.s:193 .text.HAL_ADC_Init:00000000 HAL_ADC_Init /tmp/ccICigVb.s:762 .text.HAL_ADC_Init:0000022c $d /tmp/ccICigVb.s:771 .text.HAL_ADC_MspDeInit:00000000 $t /tmp/ccICigVb.s:777 .text.HAL_ADC_MspDeInit:00000000 HAL_ADC_MspDeInit /tmp/ccICigVb.s:792 .text.HAL_ADC_PollForConversion:00000000 $t /tmp/ccICigVb.s:798 .text.HAL_ADC_PollForConversion:00000000 HAL_ADC_PollForConversion /tmp/ccICigVb.s:1083 .text.HAL_ADC_PollForConversion:00000114 $d /tmp/ccICigVb.s:1089 .text.HAL_ADC_PollForEvent:00000000 $t /tmp/ccICigVb.s:1095 .text.HAL_ADC_PollForEvent:00000000 HAL_ADC_PollForEvent /tmp/ccICigVb.s:1283 .text.HAL_ADC_GetValue:00000000 $t /tmp/ccICigVb.s:1289 .text.HAL_ADC_GetValue:00000000 HAL_ADC_GetValue /tmp/ccICigVb.s:1310 .text.HAL_ADC_StartSampling:00000000 $t /tmp/ccICigVb.s:1316 .text.HAL_ADC_StartSampling:00000000 HAL_ADC_StartSampling /tmp/ccICigVb.s:1340 .text.HAL_ADC_StopSampling:00000000 $t /tmp/ccICigVb.s:1346 .text.HAL_ADC_StopSampling:00000000 HAL_ADC_StopSampling /tmp/ccICigVb.s:1370 .text.HAL_ADC_ConvCpltCallback:00000000 $t /tmp/ccICigVb.s:1376 .text.HAL_ADC_ConvCpltCallback:00000000 HAL_ADC_ConvCpltCallback /tmp/ccICigVb.s:1391 .text.HAL_ADC_ConvHalfCpltCallback:00000000 $t /tmp/ccICigVb.s:1397 .text.HAL_ADC_ConvHalfCpltCallback:00000000 HAL_ADC_ConvHalfCpltCallback /tmp/ccICigVb.s:1412 .text.ADC_DMAHalfConvCplt:00000000 $t /tmp/ccICigVb.s:1418 .text.ADC_DMAHalfConvCplt:00000000 ADC_DMAHalfConvCplt /tmp/ccICigVb.s:1445 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 $t /tmp/ccICigVb.s:1451 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 HAL_ADC_LevelOutOfWindowCallback /tmp/ccICigVb.s:1466 .text.HAL_ADC_ErrorCallback:00000000 $t /tmp/ccICigVb.s:1472 .text.HAL_ADC_ErrorCallback:00000000 HAL_ADC_ErrorCallback /tmp/ccICigVb.s:1487 .text.HAL_ADC_IRQHandler:00000000 $t /tmp/ccICigVb.s:1493 .text.HAL_ADC_IRQHandler:00000000 HAL_ADC_IRQHandler /tmp/ccICigVb.s:2066 .text.HAL_ADC_IRQHandler:00000274 $d /tmp/ccICigVb.s:2071 .text.HAL_ADC_IRQHandler:0000027c $t /tmp/ccICigVb.s:2092 .text.ADC_DMAConvCplt:00000000 $t /tmp/ccICigVb.s:2098 .text.ADC_DMAConvCplt:00000000 ADC_DMAConvCplt /tmp/ccICigVb.s:2233 .text.ADC_DMAError:00000000 $t /tmp/ccICigVb.s:2239 .text.ADC_DMAError:00000000 ADC_DMAError /tmp/ccICigVb.s:2273 .text.HAL_ADC_ConfigChannel:00000000 $t /tmp/ccICigVb.s:2279 .text.HAL_ADC_ConfigChannel:00000000 HAL_ADC_ConfigChannel /tmp/ccICigVb.s:3389 .text.HAL_ADC_ConfigChannel:00000334 $d /tmp/ccICigVb.s:3407 .text.HAL_ADC_ConfigChannel:00000354 $t /tmp/ccICigVb.s:3725 .text.HAL_ADC_ConfigChannel:00000454 $d /tmp/ccICigVb.s:3733 .text.HAL_ADC_AnalogWDGConfig:00000000 $t /tmp/ccICigVb.s:3739 .text.HAL_ADC_AnalogWDGConfig:00000000 HAL_ADC_AnalogWDGConfig /tmp/ccICigVb.s:4508 .text.HAL_ADC_AnalogWDGConfig:000002e0 $d /tmp/ccICigVb.s:4515 .text.HAL_ADC_GetState:00000000 $t /tmp/ccICigVb.s:4521 .text.HAL_ADC_GetState:00000000 HAL_ADC_GetState /tmp/ccICigVb.s:4540 .text.HAL_ADC_GetError:00000000 $t /tmp/ccICigVb.s:4546 .text.HAL_ADC_GetError:00000000 HAL_ADC_GetError /tmp/ccICigVb.s:4565 .text.ADC_ConversionStop:00000000 $t ARM GAS /tmp/ccICigVb.s page 372 /tmp/ccICigVb.s:4571 .text.ADC_ConversionStop:00000000 ADC_ConversionStop /tmp/ccICigVb.s:4897 .text.ADC_ConversionStop:00000100 $d /tmp/ccICigVb.s:4902 .text.ADC_Enable:00000000 $t /tmp/ccICigVb.s:4908 .text.ADC_Enable:00000000 ADC_Enable /tmp/ccICigVb.s:5072 .text.ADC_Enable:00000094 $d /tmp/ccICigVb.s:5077 .text.HAL_ADC_Start:00000000 $t /tmp/ccICigVb.s:5083 .text.HAL_ADC_Start:00000000 HAL_ADC_Start /tmp/ccICigVb.s:5302 .text.HAL_ADC_Start:000000f4 $d /tmp/ccICigVb.s:5308 .text.HAL_ADC_Start_IT:00000000 $t /tmp/ccICigVb.s:5314 .text.HAL_ADC_Start_IT:00000000 HAL_ADC_Start_IT /tmp/ccICigVb.s:5630 .text.HAL_ADC_Start_IT:00000188 $d /tmp/ccICigVb.s:5636 .text.HAL_ADC_Start_DMA:00000000 $t /tmp/ccICigVb.s:5642 .text.HAL_ADC_Start_DMA:00000000 HAL_ADC_Start_DMA /tmp/ccICigVb.s:5871 .text.HAL_ADC_Start_DMA:000000f0 $d /tmp/ccICigVb.s:5880 .text.ADC_Disable:00000000 $t /tmp/ccICigVb.s:5886 .text.ADC_Disable:00000000 ADC_Disable /tmp/ccICigVb.s:6054 .text.HAL_ADC_DeInit:00000000 $t /tmp/ccICigVb.s:6060 .text.HAL_ADC_DeInit:00000000 HAL_ADC_DeInit /tmp/ccICigVb.s:6338 .text.HAL_ADC_DeInit:000001a0 $d /tmp/ccICigVb.s:6347 .text.HAL_ADC_Stop:00000000 $t /tmp/ccICigVb.s:6353 .text.HAL_ADC_Stop:00000000 HAL_ADC_Stop /tmp/ccICigVb.s:6430 .text.HAL_ADC_Stop_IT:00000000 $t /tmp/ccICigVb.s:6436 .text.HAL_ADC_Stop_IT:00000000 HAL_ADC_Stop_IT /tmp/ccICigVb.s:6518 .text.HAL_ADC_Stop_DMA:00000000 $t /tmp/ccICigVb.s:6524 .text.HAL_ADC_Stop_DMA:00000000 HAL_ADC_Stop_DMA UNDEFINED SYMBOLS SystemCoreClock HAL_GetTick HAL_ADCEx_EndOfSamplingCallback HAL_ADCEx_InjectedConvCpltCallback HAL_ADCEx_LevelOutOfWindow2Callback HAL_ADCEx_LevelOutOfWindow3Callback HAL_ADCEx_InjectedQueueOverflowCallback HAL_DMA_Start_IT HAL_DMA_Abort