ARM GAS /tmp/cco84Mp4.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/cco84Mp4.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/cco84Mp4.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 (d 117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compatibility with some ADC on oth 118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** having this setting set by HW defa 119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_SOURCE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & 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 **** ((ADC_CFGR_EXTSEL) << (4U * 126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_CFGR_EXTSEL) << (4U * 127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EDGE_MASK (((LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN) << (4U * 0 132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 1 133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 2 134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_REG_TRIG_EXT_EDGE_DEFAULT) << (4U * 3 135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group regular trigger bits information. */ 137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EXTSEL_BITOFFSET_POS (ADC_CFGR_EXTSEL_Pos) 138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_REG_TRIG_EXTEN_BITOFFSET_POS (ADC_CFGR_EXTEN_Pos) 139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC group injected trigger: */ 143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_INJ_TRIG_x the relevant bits for: */ ARM GAS /tmp/cco84Mp4.s page 4 144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - injected trigger source */ 145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - injected trigger edge */ 146: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 ( 147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compatibility with some ADC on ot 148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** having this setting set by HW def 149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger source masks for each of possible */ 151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_SOURCE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTSEL) << (4U 154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_JSQR_JEXTSEL) << (4U 157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Mask containing trigger edge masks for each of possible */ 159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* trigger edge selection duplicated with shifts [0; 4; 8; 12] */ 160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to {SW start; ext trigger; ext trigger; ext trigger}. */ 161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EDGE_MASK (((LL_ADC_INJ_TRIG_SOFTWARE & ADC_JSQR_JEXTEN) << (4U * 162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((ADC_INJ_TRIG_EXT_EDGE_DEFAULT) << (4U * 165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of ADC group injected trigger bits information. */ 167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTSEL_BITOFFSET_POS (ADC_JSQR_JEXTSEL_Pos) 168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_INJ_TRIG_EXTEN_BITOFFSET_POS (ADC_JSQR_JEXTEN_Pos) 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 **** 172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC channel: */ 176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literal LL_ADC_CHANNEL_x the relevant bits for: */ 177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel identifier defined by number */ 178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel identifier defined by bitfield */ 179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel differentiation between external channels (connected to */ 180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* GPIO pins) and internal channels (connected to internal paths) */ 181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - channel sampling time defined by SMPRx register offset */ 182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* and SMPx bits positions into SMPRx register */ 183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_MASK (ADC_CFGR_AWD1CH) 184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_BITFIELD_MASK (ADC_AWD2CR_AWD2CH) 185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS (ADC_CFGR_AWD1CH_Pos) 186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_MASK (ADC_CHANNEL_ID_NUMBER_MASK | ADC_CHANNEL_ID_BITFIELD_MA 187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_ID_INTERNAL_CH_MASK) 188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Equivalent mask of ADC_CHANNEL_NUMBER_MASK aligned on register LSB (bit 0) */ 189: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 190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> [Position of bitfield "ADC_CHANNEL_NUMBER_MASK" in register]) */ 191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Channel differentiation between external and internal channels */ 193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH (0x80000000UL) /* Marker of internal channel */ 194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_ID_INTERNAL_CH_2 (0x00080000UL) /* Marker of internal channel for other A 195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of different ADC internal channels map 196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** number on different ADC instances */ 197: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 198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC channel sampling time configuration */ 200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (offset placed into a spare area of literal definition) */ ARM GAS /tmp/cco84Mp4.s page 5 201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPR1_REGOFFSET (0x00000000UL) 202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPR2_REGOFFSET (0x02000000UL) 203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPRX_REGOFFSET_MASK (ADC_SMPR1_REGOFFSET | ADC_SMPR2_REGOFFSET) 204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SMPRX_REGOFFSET_POS (25UL) /* Position of bits ADC_SMPRx_REGOFFSET 205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** in ADC_CHANNEL_SMPRX_REGOFFSET_MASK 206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_MASK (0x01F00000UL) 208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_SMPx_BITOFFSET_POS (20UL) /* Equivalent to bitfield "ADC_CHANNEL_ 209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** position in register */ 210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels ID number information to be inserted into */ 212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ 213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_NUMBER (0x00000000UL) 214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_NUMBER (ADC_CFGR_AWD1CH_0) 215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_NUMBER (ADC_CFGR_AWD1CH_1) 216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_NUMBER (ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH_0) 217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_NUMBER (ADC_CFGR_AWD1CH_2) 218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_NUMBER (ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH_0) 219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_NUMBER (ADC_CFGR_AWD1CH_2 | ADC_CFGR_AWD1CH_1) 220: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 221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_NUMBER (ADC_CFGR_AWD1CH_3) 222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_0) 223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_1) 224: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 225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2) 226: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 227: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 228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_NUMBER (ADC_CFGR_AWD1CH_3 | ADC_CFGR_AWD1CH_2 | \ 229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_AWD1CH_1 | ADC_CFGR_AWD1CH_0) 230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_NUMBER (ADC_CFGR_AWD1CH_4) 231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_NUMBER (ADC_CFGR_AWD1CH_4 | ADC_CFGR_AWD1CH_0) 232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_NUMBER (ADC_CFGR_AWD1CH_4 | ADC_CFGR_AWD1CH_1) 233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels ID bitfield information to be inserted into */ 235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ 236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_BITFIELD (ADC_AWD2CR_AWD2CH_0) 237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_BITFIELD (ADC_AWD2CR_AWD2CH_1) 238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_BITFIELD (ADC_AWD2CR_AWD2CH_2) 239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_BITFIELD (ADC_AWD2CR_AWD2CH_3) 240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_BITFIELD (ADC_AWD2CR_AWD2CH_4) 241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_BITFIELD (ADC_AWD2CR_AWD2CH_5) 242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_BITFIELD (ADC_AWD2CR_AWD2CH_6) 243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_7_BITFIELD (ADC_AWD2CR_AWD2CH_7) 244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_BITFIELD (ADC_AWD2CR_AWD2CH_8) 245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_BITFIELD (ADC_AWD2CR_AWD2CH_9) 246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_BITFIELD (ADC_AWD2CR_AWD2CH_10) 247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_11_BITFIELD (ADC_AWD2CR_AWD2CH_11) 248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_BITFIELD (ADC_AWD2CR_AWD2CH_12) 249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_13_BITFIELD (ADC_AWD2CR_AWD2CH_13) 250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_14_BITFIELD (ADC_AWD2CR_AWD2CH_14) 251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_BITFIELD (ADC_AWD2CR_AWD2CH_15) 252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_BITFIELD (ADC_AWD2CR_AWD2CH_16) 253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_BITFIELD (ADC_AWD2CR_AWD2CH_17) 254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_BITFIELD (ADC_AWD2CR_AWD2CH_18) 255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Definition of channels sampling time information to be inserted into */ 257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* channels literals definition. */ ARM GAS /tmp/cco84Mp4.s page 6 258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Value shifted are equivalent to bitfield "ADC_SMPRx_SMPy" position */ 259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register. */ 260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_0_SMP (ADC_SMPR1_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_1_SMP (ADC_SMPR1_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_2_SMP (ADC_SMPR1_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_3_SMP (ADC_SMPR1_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_4_SMP (ADC_SMPR1_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_5_SMP (ADC_SMPR1_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_6_SMP (ADC_SMPR1_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_7_SMP (ADC_SMPR1_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_8_SMP (ADC_SMPR1_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF 269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_9_SMP (ADC_SMPR1_REGOFFSET | ((27UL) << ADC_CHANNEL_SMPx_BITOF 270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_10_SMP (ADC_SMPR2_REGOFFSET | (( 0UL) << ADC_CHANNEL_SMPx_BITOF 271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_11_SMP (ADC_SMPR2_REGOFFSET | (( 3UL) << ADC_CHANNEL_SMPx_BITOF 272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_12_SMP (ADC_SMPR2_REGOFFSET | (( 6UL) << ADC_CHANNEL_SMPx_BITOF 273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_13_SMP (ADC_SMPR2_REGOFFSET | (( 9UL) << ADC_CHANNEL_SMPx_BITOF 274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_14_SMP (ADC_SMPR2_REGOFFSET | ((12UL) << ADC_CHANNEL_SMPx_BITOF 275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_15_SMP (ADC_SMPR2_REGOFFSET | ((15UL) << ADC_CHANNEL_SMPx_BITOF 276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_16_SMP (ADC_SMPR2_REGOFFSET | ((18UL) << ADC_CHANNEL_SMPx_BITOF 277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_17_SMP (ADC_SMPR2_REGOFFSET | ((21UL) << ADC_CHANNEL_SMPx_BITOF 278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CHANNEL_18_SMP (ADC_SMPR2_REGOFFSET | ((24UL) << ADC_CHANNEL_SMPx_BITOF 279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC mode single or differential ended: */ 282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literals LL_ADC_SINGLE_ENDED or LL_ADC_SINGLE_DIFFERENTIAL */ 283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* the relevant bits for: */ 284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (concatenation of multiple bits used in different registers) */ 285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC calibration: calibration start, calibration factor get or set */ 286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC channels: set each ADC channel ending mode */ 287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_START_MASK (ADC_CR_ADCALDIF) 288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_FACTOR_MASK (ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S) 289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CHANNEL_MASK (ADC_CHANNEL_ID_BITFIELD_MASK) /* Equivalent to ADC_DIFS 290: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 291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to perform of shift when single mode is selected, shift 292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channels bits range. */ 293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK (0x00010000UL) /* Selection of 1 bit to discriminate di 294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mask of bit */ 295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_SINGLEDIFF_CALIB_F_BIT_D_POS (16UL) /* Selection of 1 bit to discriminate di 296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** position of bit */ 297: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 298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SINGLEDIFF_CALIB_F_BIT_D to perform a shift of 4 ran 299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC analog watchdog: */ 301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* To select into literals LL_ADC_AWD_CHANNELx_xxx the relevant bits for: */ 302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (concatenation of multiple bits used in different analog watchdogs, */ 303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (feature of several watchdogs not available on all STM32 series)). */ 304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - analog watchdog 1: monitored channel defined by number, */ 305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* selection of ADC group (ADC groups regular and-or injected). */ 306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - analog watchdog 2 and 3: monitored channel defined by bitfield, no */ 307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* selection on groups. */ 308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog channel configuration */ 310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR1_REGOFFSET (0x00000000UL) 311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR2_REGOFFSET (0x00100000UL) 312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR3_REGOFFSET (0x00200000UL) 313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Register offset gap between AWD1 and AWD2-AWD3 configuration registers */ ARM GAS /tmp/cco84Mp4.s page 7 315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (Set separately as ADC_AWD_CRX_REGOFFSET to spare 32 bits space */ 316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_MASK (ADC_AWD2CR_AWD2CH_0) 317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR12_REGOFFSETGAP_VAL (0x00000024UL) 318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 319: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 320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR1_CHANNEL_MASK (ADC_CFGR_AWD1CH | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | 322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CR23_CHANNEL_MASK (ADC_AWD2CR_AWD2CH) 323: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) 324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_CRX_REGOFFSET_POS (20UL) /* Position of bits ADC_AWD_ 326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** in ADC_AWD_CRX_REGOFFSET_ 327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC analog watchdog threshold configuration */ 329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR1_REGOFFSET (ADC_AWD_CR1_REGOFFSET) 330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR2_REGOFFSET (ADC_AWD_CR2_REGOFFSET) 331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TR3_REGOFFSET (ADC_AWD_CR3_REGOFFSET) 332: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 333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_REGOFFSET_POS (ADC_AWD_CRX_REGOFFSET_POS) /* Position of bits ADC 334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** in ADC_AWD_TRX_REGOF 335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_MASK (0x00010000UL) /* Selection of 1 bit t 336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** threshold high: mask 337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_AWD_TRX_BIT_HIGH_POS (16UL) /* Selection of 1 bit t 338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** threshold high: posi 339: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 340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** position to perform 341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal mask for ADC offset: */ 343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal register offset for ADC offset instance configuration */ 344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR1_REGOFFSET (0x00000000UL) 345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR2_REGOFFSET (0x00000001UL) 346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR3_REGOFFSET (0x00000002UL) 347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFR4_REGOFFSET (0x00000003UL) 348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_OFRx_REGOFFSET_MASK (ADC_OFR1_REGOFFSET | ADC_OFR2_REGOFFSET \ 349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_OFR3_REGOFFSET | ADC_OFR4_REGOFFSET) 350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC registers bits positions */ 353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_RES_BITOFFSET_POS (ADC_CFGR_RES_Pos) 354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_AWD1SGL_BITOFFSET_POS (ADC_CFGR_AWD1SGL_Pos) 355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_AWD1EN_BITOFFSET_POS (ADC_CFGR_AWD1EN_Pos) 356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CFGR_JAWD1EN_BITOFFSET_POS (ADC_CFGR_JAWD1EN_Pos) 357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_TR1_HT1_BITOFFSET_POS (ADC_TR1_HT1_Pos) 358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC registers bits groups */ 361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define ADC_CR_BITS_PROPERTY_RS (ADC_CR_ADCAL | ADC_CR_ADEN | ADC_CR_ADDIS \ 362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CR_JADSTART | ADC_CR_JADSTP \ 363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CR_ADSTART | ADC_CR_ADSTP) /* ADC regi 364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** HW property "rs": Software can read as well as set this 365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Writing '0' has no effect on the bit value. */ 366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ADC internal channels related definitions */ 369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Internal voltage reference VrefInt */ 370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define VREFINT_CAL_ADDR ((uint16_t*) (0x1FFF75AAUL)) /* Internal voltage referen 371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** parameter VREFINT_CAL: VrefInt ADC raw data acquired at ARM GAS /tmp/cco84Mp4.s page 8 372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV 373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define VREFINT_CAL_VREF (3000UL) /* Analog voltage reference 374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with which VrefInt has been calibrated in production 375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-10 mV) (unit: mV). */ 376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Temperature sensor */ 377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x1FFF75A8UL)) /* Address of parameter TS_ 378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** temperature sensor ADC raw data acquired at temperature 379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV 380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x1FFF75CAUL)) /* Address of parameter TS_ 381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** temperature sensor ADC raw data acquired at temperature 382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV 383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL1_TEMP (30L) /* Temperature at which tem 384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** has been calibrated in production for data into TEMPSENS 385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-5 DegC) (unit: DegC). */ 386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL2_TEMP (110L) /* Temperature at which tem 387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** has been calibrated in production for data into TEMPSENS 388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance: +-5 DegC) (unit: DegC). */ 389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define TEMPSENSOR_CAL_VREFANALOG (3000UL) /* Analog voltage reference 390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with which temperature sensor has been calibrated in pro 391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (tolerance +-10 mV) (unit: mV). */ 392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Private macros ------------------------------------------------------------*/ 399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Private_Macros ADC Private Macros 400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Driver macro reserved for internal use: set a pointer to 405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a register from a register basis from which an offset 406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is applied. 407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register basis from which the offset is applied. 408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG_OFFFSET__ Offset to be applied (unit: number of registers). 409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Pointer to register address 410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __ADC_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__) \ 412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL)))) 413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported types ------------------------------------------------------------*/ 420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(USE_FULL_LL_DRIVER) 421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_ES_INIT ADC Exported Init structure 422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 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 common parameters 427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and multimode 428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (all ADC instances belonging to the same ADC common instance). ARM GAS /tmp/cco84Mp4.s page 9 429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_CommonInit() 430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC instances state (all ADC instances 431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sharing the same ADC common instance): 432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances sharing the same ADC common instance must be 433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * disabled. 434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t CommonClock; /*!< Set parameter common to several ADC: Clock source and 438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_COMMON 439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, if ADC group injected is u 440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** constraints between ADC clock and AHB clock must 441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to reference manual. 442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetCommonClock(). */ 444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Multimode; /*!< Set ADC multimode configuration to operate in independ 447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (for devices with several ADC instances). 448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetMultimode(). */ 451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t MultiDMATransfer; /*!< Set ADC multimode conversion data transfer: no transfe 453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetMultiDMATransfer(). */ 456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t MultiTwoSamplingDelay; /*!< Set ADC multimode delay between 2 sampling phases. 458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_MULTI_ 459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetMultiTwoSamplingDelay(). */ 461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_CommonInitTypeDef; 464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC instance. 467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC instance. 468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Affects both group regular and group injected (availability 469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of ADC group injected depends on STM32 series). 470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Instance . 472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_Init() 473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 series. However, the different 477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct ARM GAS /tmp/cco84Mp4.s page 10 486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Resolution; /*!< Set ADC resolution. 488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_RESOLU 489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetResolution(). */ 491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t DataAlignment; /*!< Set ADC conversion data alignment. 493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_DATA_A 494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetDataAlignment(). */ 496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t LowPowerMode; /*!< Set ADC low power mode. 498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_LP_MOD 499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_SetLowPowerMode(). */ 501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_InitTypeDef; 503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Structure definition of some features of ADC group regular. 506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group regular. 507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions with prefix "REG"). 510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_REG_Init() 511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 series. However, the different 515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group regular conversion trigger source: inter 526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** from external peripheral (timer event, external interr 527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_TR 528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** set trigger polarity to rising edge(default sett 530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with some ADC on other STM32 series having this 531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** default value). 532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** In case of need to modify trigger edge, use func 533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_SetTriggerEdge(). 534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_SetTriggerSource(). */ 536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group regular sequencer length. 538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_SetSequencerLength(). */ 541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group regular sequencer discontinuous mode: se ARM GAS /tmp/cco84Mp4.s page 11 543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and scan conversions interrupted every selected number 544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_SE 545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note This parameter has an effect only if group regul 546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** enabled (scan length of 2 ranks or more). 547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_SetSequencerDiscont(). */ 549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ContinuousMode; /*!< Set ADC continuous conversion mode on ADC group regula 551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are performed in single mode (one conversi 552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** continuous mode (after the first trigger, following co 553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** successively automatically). 554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_CO 555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: It is not possible to enable both ADC group regu 556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and discontinuous mode. 557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_SetContinuousMode(). */ 559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t DMATransfer; /*!< Set ADC group regular conversion data transfer: no tra 561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** by DMA, and DMA requests mode. 562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_DM 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 **** @ref LL_ADC_REG_SetDMATransfer(). */ 565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Overrun; /*!< Set ADC group regular behavior in case of overrun: 567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data preserved or overwritten. 568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_REG_OV 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 **** @ref LL_ADC_REG_SetOverrun(). */ 571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_REG_InitTypeDef; 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 **** * @brief Structure definition of some features of ADC group injected. 576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These parameters have an impact on ADC scope: ADC group injected. 577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to corresponding unitary functions into 578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref ADC_LL_EF_Configuration_ADC_Group_Regular 579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions with prefix "INJ"). 580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The setting of these parameters by function @ref LL_ADC_INJ_Init() 581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is conditioned to ADC state: 582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance must be disabled. 583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This condition is applied to all ADC features, for efficiency 584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and compatibility over all STM32 series. However, the different 585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * features can be set under different ADC state conditions 586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (setting possible with ADC enabled without conversion on going, 587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC enabled with conversion on going, ...) 588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Each feature can be updated afterwards with a unitary function 589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and potentially with ADC in a different state than disabled, 590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * refer to description of each function for setting 591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conditioned to ADC state. 592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** typedef struct 594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource; /*!< Set ADC group injected conversion trigger source: inte 596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** or from external peripheral (timer event, external int 597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note On this STM32 series, setting trigger source to 599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** set trigger polarity to rising edge (default set ARM GAS /tmp/cco84Mp4.s page 12 600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compatibility with some ADC on other STM32 serie 601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** setting set by HW default value). 602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** In case of need to modify trigger edge, use func 603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_INJ_SetTriggerEdge(). 604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_INJ_SetTriggerSource(). */ 606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerLength; /*!< Set ADC group injected sequencer length. 608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_INJ_SetSequencerLength(). */ 611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerDiscont; /*!< Set ADC group injected sequencer discontinuous mode: s 613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and scan conversions interrupted every selected number 614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_SE 615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @note This parameter has an effect only if group injec 616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** enabled (scan length of 2 ranks or more). 617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_INJ_SetSequencerDiscont(). */ 619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TrigAuto; /*!< Set ADC group injected conversion trigger: independent 621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular. 622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This parameter can be a value of @ref ADC_LL_EC_INJ_TR 623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: This parameter must be set to set to independent 624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger source is set to an external trigger. 625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This feature can be modified afterwards using unitary 626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_INJ_SetTrigAuto(). */ 627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } LL_ADC_INJ_InitTypeDef; 629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* USE_FULL_LL_DRIVER */ 634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported constants --------------------------------------------------------*/ 636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Constants ADC Exported Constants 637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_FLAG ADC flags 641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Flags defines which can be used with LL_ADC_ReadReg function 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 **** #define LL_ADC_FLAG_ADRDY ADC_ISR_ADRDY /*!< ADC flag ADC instance ready */ 645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOC ADC_ISR_EOC /*!< ADC flag ADC group regular end o 646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion */ 647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOS ADC_ISR_EOS /*!< ADC flag ADC group regular end o 648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions */ 649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_OVR ADC_ISR_OVR /*!< ADC flag ADC group regular overr 650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_EOSMP ADC_ISR_EOSMP /*!< ADC flag ADC group regular end o 651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOC ADC_ISR_JEOC /*!< ADC flag ADC group injected end 652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion */ 653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JEOS ADC_ISR_JEOS /*!< ADC flag ADC group injected end 654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions */ 655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_JQOVF ADC_ISR_JQOVF /*!< ADC flag ADC group injected cont 656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** overflow */ ARM GAS /tmp/cco84Mp4.s page 13 657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD1 ADC_ISR_AWD1 /*!< ADC flag ADC analog watchdog 1 * 658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD2 ADC_ISR_AWD2 /*!< ADC flag ADC analog watchdog 2 * 659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_FLAG_AWD3 ADC_ISR_AWD3 /*!< ADC flag ADC analog watchdog 3 * 660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 661: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 662: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 663: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 664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** unitary conversion */ 665: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 666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** unitary conversion */ 667: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 668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sequence conversions */ 669: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 670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sequence conversions */ 671: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 672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** overrun */ 673: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 674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** overrun */ 675: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 676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phase */ 677: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 678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phase */ 679: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 680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** unitary conversion */ 681: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 682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** unitary conversion */ 683: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 684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sequence conversions */ 685: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 686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sequence conversions */ 687: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 688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** contexts queue overflow */ 689: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 690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** contexts queue overflow */ 691: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 692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC master */ 693: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 694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC slave */ 695: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 696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC master */ 697: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 698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC slave */ 699: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 700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC master */ 701: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 702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of the ADC slave */ 703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 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_IT ADC interruptions for configuration (interruption enable or disable) 709: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 710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_ADRDY ADC_IER_ADRDYIE /*!< ADC interruption ADC instance re 713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOC ADC_IER_EOCIE /*!< ADC interruption ADC group regul ARM GAS /tmp/cco84Mp4.s page 14 714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion */ 715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOS ADC_IER_EOSIE /*!< ADC interruption ADC group regul 716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions */ 717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_OVR ADC_IER_OVRIE /*!< ADC interruption ADC group regul 718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_EOSMP ADC_IER_EOSMPIE /*!< ADC interruption ADC group regul 719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** phase */ 720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JEOC ADC_IER_JEOCIE /*!< ADC interruption ADC group injec 721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion */ 722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JEOS ADC_IER_JEOSIE /*!< ADC interruption ADC group injec 723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions */ 724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_JQOVF ADC_IER_JQOVFIE /*!< ADC interruption ADC group injec 725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** overflow */ 726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD1 ADC_IER_AWD1IE /*!< ADC interruption ADC analog watc 727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD2 ADC_IER_AWD2IE /*!< ADC interruption ADC analog watc 728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_IT_AWD3 ADC_IER_AWD3IE /*!< ADC interruption ADC analog watc 729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REGISTERS ADC registers compliant with specific purpose 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 **** /* List of ADC registers intended to be used (most commonly) with */ 737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* DMA transfer. */ 738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Refer to function @ref LL_ADC_DMA_GetRegAddr(). */ 739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA (0x00000000UL) /* ADC group regular conversion data 740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (corresponding to register DR) to be used with ADC confi 741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mode. Without DMA transfer, register accessed by LL func 742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_ReadConversionData32() and other 743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** functions @ref LL_ADC_REG_ReadConversionDatax() */ 744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DMA_REG_REGULAR_DATA_MULTI (0x00000001UL) /* ADC group regular conversion data 746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (corresponding to register CDR) to be used with ADC conf 747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (available on STM32 devices with several ADC instances). 748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Without DMA transfer, register accessed by LL function 749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_REG_ReadMultiConversionData32() */ 750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 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_COMMON_CLOCK_SOURCE ADC common - Clock source 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_CLOCK_SYNC_PCLK_DIV1 (ADC_CCR_CKMODE_0) /*!< ADC synchrono 759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AHB clock without prescaler */ 760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV2 (ADC_CCR_CKMODE_1) /*!< ADC synchrono 761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AHB clock with prescaler division by 2 */ 762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_SYNC_PCLK_DIV4 (ADC_CCR_CKMODE_1 | ADC_CCR_CKMODE_0) /*!< ADC synchrono 763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AHB clock with prescaler division by 4 */ 764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV1 (0x00000000UL) /*!< ADC asynchronou 765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler */ 766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV2 (ADC_CCR_PRESC_0) /*!< ADC asynchronou 767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 2 */ 768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV4 (ADC_CCR_PRESC_1) /*!< ADC asynchronou 769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 4 */ 770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV6 (ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0) /*!< ADC asynchronou ARM GAS /tmp/cco84Mp4.s page 15 771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 6 */ 772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV8 (ADC_CCR_PRESC_2) /*!< ADC asynchronou 773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 8 */ 774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV10 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_0) /*!< ADC asynchronou 775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 10 */ 776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV12 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1) /*!< ADC asynchronou 777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 12 */ 778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV16 (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 \ 779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_PRESC_0) /*!< ADC asynchrono 780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 16 */ 781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV32 (ADC_CCR_PRESC_3) /*!< ADC asynchronou 782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 32 */ 783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV64 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_0) /*!< ADC asynchronou 784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 64 */ 785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV128 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1) /*!< ADC asynchronou 786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 128 */ 787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CLOCK_ASYNC_DIV256 (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1 \ 788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_PRESC_0) /*!< ADC asynchrono 789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** prescaler division by 256 */ 790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_COMMON_PATH_INTERNAL ADC common - Measurement path to internal channels 795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Other measurement paths to internal channels may be available */ 798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (connections to other peripherals). */ 799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If they are not listed below, they do not require any specific */ 800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* path enable. In this case, Access to measurement path is done */ 801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* only by selecting the corresponding ADC internal channel. */ 802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_NONE (0x00000000UL) /*!< ADC measurement paths all disa 803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VREFINT (ADC_CCR_VREFEN) /*!< ADC measurement path to intern 804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_TEMPSENSOR (ADC_CCR_VSENSESEL) /*!< ADC measurement path to intern 805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** temperature sensor */ 806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_PATH_INTERNAL_VBAT (ADC_CCR_VBATSEL) /*!< ADC measurement path to intern 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 **** 811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_RESOLUTION ADC instance - Resolution 812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_12B (0x00000000UL) /*!< ADC resolution 815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_10B ( ADC_CFGR_RES_0) /*!< ADC resolution 816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_8B (ADC_CFGR_RES_1 ) /*!< ADC resolution 817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_RESOLUTION_6B (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) /*!< ADC resolution 818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_DATA_ALIGN ADC instance - Data alignment 823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_RIGHT (0x00000000UL) /*!< ADC conversion data alignment: r 826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (alignment on data register LSB bit 0)*/ 827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DATA_ALIGN_LEFT (ADC_CFGR_ALIGN) /*!< ADC conversion data alignment: l ARM GAS /tmp/cco84Mp4.s page 16 828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (alignment on data register MSB bit 15)*/ 829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_LP_MODE ADC instance - Low power mode 834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_LP_MODE_NONE (0x00000000UL) /*!< No ADC low power mode activated 837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_LP_AUTOWAIT (ADC_CFGR_AUTDLY) /*!< ADC low power mode auto delay: D 838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mode, ADC conversions are performed only when necessary 839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (when previous ADC conversion data is read). 840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** See description with function @ref LL_ADC_SetLowPowerMod 841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_NB ADC instance - Offset instance 846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_1 ADC_OFR1_REGOFFSET /*!< ADC offset instance 1: ADC chann 849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to which the offset programmed will be applied (independ 850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mapped on ADC group regular or injected) */ 851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_2 ADC_OFR2_REGOFFSET /*!< ADC offset instance 2: ADC chann 852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to which the offset programmed will be applied (independ 853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mapped on ADC group regular or injected) */ 854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_3 ADC_OFR3_REGOFFSET /*!< ADC offset instance 3: ADC chann 855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to which the offset programmed will be applied (independ 856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mapped on ADC group regular or injected) */ 857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_4 ADC_OFR4_REGOFFSET /*!< ADC offset instance 4: ADC chann 858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to which the offset programmed will be applied (independ 859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mapped on ADC group regular or injected) */ 860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_STATE ADC instance - Offset state 865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_DISABLE (0x00000000UL) /*!< ADC offset disabled 868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (setting offset instance wise) */ 869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_ENABLE (ADC_OFR1_OFFSET1_EN) /*!< ADC offset enabled 870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (setting offset instance wise) */ 871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SIGN ADC instance - Offset sign 876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< ADC offset is negative */ 879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SIGN_POSITIVE (ADC_OFR1_OFFSETPOS) /*!< ADC offset is positive */ 880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OFFSET_SATURATION ADC instance - Offset saturation mode ARM GAS /tmp/cco84Mp4.s page 17 885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_DISABLE (0x00000000UL) /*!< ADC offset saturation is disable 888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** selected offset instance 1, 2, 3 or 4) */ 889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OFFSET_SATURATION_ENABLE (ADC_OFR1_SATEN) /*!< ADC offset saturation is enabled 890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** selected offset instance 1, 2, 3 or 4) */ 891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_GROUPS ADC instance - Groups 895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR (0x00000001UL) /*!< ADC group regular (available on 898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_INJECTED (0x00000002UL) /*!< ADC group injected (not availabl 899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** devices)*/ 900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_GROUP_REGULAR_INJECTED (0x00000003UL) /*!< ADC both groups regular and inje 901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL ADC instance - Channel number 906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_0 (ADC_CHANNEL_0_NUMBER | ADC_CHANNEL_0_SMP \ 909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_0_BITFIELD) /*!< AD 910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_1 (ADC_CHANNEL_1_NUMBER | ADC_CHANNEL_1_SMP \ 911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_1_BITFIELD) /*!< AD 912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_2 (ADC_CHANNEL_2_NUMBER | ADC_CHANNEL_2_SMP \ 913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_2_BITFIELD) /*!< AD 914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_3 (ADC_CHANNEL_3_NUMBER | ADC_CHANNEL_3_SMP \ 915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_3_BITFIELD) /*!< AD 916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_4 (ADC_CHANNEL_4_NUMBER | ADC_CHANNEL_4_SMP \ 917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_4_BITFIELD) /*!< AD 918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_5 (ADC_CHANNEL_5_NUMBER | ADC_CHANNEL_5_SMP \ 919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_5_BITFIELD) /*!< AD 920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_6 (ADC_CHANNEL_6_NUMBER | ADC_CHANNEL_6_SMP \ 921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_6_BITFIELD) /*!< AD 922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_7 (ADC_CHANNEL_7_NUMBER | ADC_CHANNEL_7_SMP \ 923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_7_BITFIELD) /*!< AD 924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_8 (ADC_CHANNEL_8_NUMBER | ADC_CHANNEL_8_SMP \ 925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_8_BITFIELD) /*!< AD 926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_9 (ADC_CHANNEL_9_NUMBER | ADC_CHANNEL_9_SMP \ 927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_9_BITFIELD) /*!< AD 928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_10 (ADC_CHANNEL_10_NUMBER | ADC_CHANNEL_10_SMP \ 929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_10_BITFIELD) /*!< AD 930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_11 (ADC_CHANNEL_11_NUMBER | ADC_CHANNEL_11_SMP \ 931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_11_BITFIELD) /*!< AD 932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_12 (ADC_CHANNEL_12_NUMBER | ADC_CHANNEL_12_SMP \ 933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_12_BITFIELD) /*!< AD 934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_13 (ADC_CHANNEL_13_NUMBER | ADC_CHANNEL_13_SMP \ 935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_13_BITFIELD) /*!< AD 936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_14 (ADC_CHANNEL_14_NUMBER | ADC_CHANNEL_14_SMP \ 937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_14_BITFIELD) /*!< AD 938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_15 (ADC_CHANNEL_15_NUMBER | ADC_CHANNEL_15_SMP \ 939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CHANNEL_15_BITFIELD) /*!< AD 940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_16 (ADC_CHANNEL_16_NUMBER | ADC_CHANNEL_16_SMP | \ 941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_16_BITFIELD) /*!< ADC ARM GAS /tmp/cco84Mp4.s page 18 942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_17 (ADC_CHANNEL_17_NUMBER | ADC_CHANNEL_17_SMP | \ 943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_17_BITFIELD) /*!< ADC 944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_18 (ADC_CHANNEL_18_NUMBER | ADC_CHANNEL_18_SMP | \ 945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_18_BITFIELD) /*!< ADC 946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VREFINT (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to VrefInt: Internal voltage reference. 948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** On this STM32 series, ADC channel available on all insta 949: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 950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to internal temperature sensor. 951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** On this STM32 series, ADC channel available only on ADC1 952: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 953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to internal temperature sensor. 954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** On this STM32 series, ADC channel available only on ADC5 955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for ADC5 availability */ 956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VBAT (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to Vbat/3: Vbat voltage through a divider ladd 958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to have channel voltage always below Vdda. On this STM32 959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** available on all ADC instances but ADC2 & ADC4. Refer to 960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** for ADC4 availability */ 961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP1 (LL_ADC_CHANNEL_13 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to OPAMP1 output. 963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** On this STM32 series, ADC channel available only on ADC1 964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP2 (LL_ADC_CHANNEL_16 | ADC_CHANNEL_ID_INTERNAL_CH | \ 965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_INTERNAL_CH_2) /*!< ADC internal channel 966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** output. On this STM32 series, ADC channel available only 967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP3_ADC2 (LL_ADC_CHANNEL_18 | ADC_CHANNEL_ID_INTERNAL_CH | \ 968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_INTERNAL_CH_2) /*!< ADC internal channel 969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** output. On this STM32 series, ADC channel available only 970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP3_ADC3 (LL_ADC_CHANNEL_13 | ADC_CHANNEL_ID_INTERNAL_CH | \ 971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_INTERNAL_CH_2) /*!< ADC internal channel 972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** output. On this STM32 series, ADC channel available only 973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for ADC3 availability */ 974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP4 (LL_ADC_CHANNEL_5 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to OPAMP4 output. On this STM32 series, ADC channel available only on ADC5 instance. 976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for ADC5 & OPAMP4 availability */ 977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP5 (LL_ADC_CHANNEL_3 | ADC_CHANNEL_ID_INTERNAL_CH) /*!< AD 978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to OPAMP5 output. On this STM32 series, ADC channel available only on ADC5 instance. 979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for ADC5 & OPAMP5 availability */ 980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_CHANNEL_VOPAMP6 (LL_ADC_CHANNEL_17 | ADC_CHANNEL_ID_INTERNAL_CH | \ 981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_INTERNAL_CH_2) /*!< AD 982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to OPAMP6 output. 983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** On this STM32 series, ADC channel available only on ADC4 984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for ADC4 & OPAMP6 availability 985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 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 **** /** @defgroup ADC_LL_EC_REG_TRIGGER_SOURCE ADC group regular - Trigger source 990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_SOFTWARE (0x00000000UL) /* 993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger internal: SW start. */ 994: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 | \ 995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM1 TRGO. 997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 998: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 | \ ARM GAS /tmp/cco84Mp4.s page 19 999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM1 TRGO2. 1001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM1_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM1 channe 1004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1008: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) /* 1009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM1 channe 1010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1014: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) /* 1015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM1 channe 1016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1018: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 | \ 1019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM2 TRGO. 1021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1022: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 | \ 1023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | \ 1024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /*!< 1025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM2 channe 1026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1030: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 | \ 1031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM2 channe 1033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1037: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) /* 1038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM2 channe 1039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1043: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) /* 1044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM3 TRGO. 1045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_TIM3_CH1 (ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM3 channe 1048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1052: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 | \ 1053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | \ 1054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM3 channe ARM GAS /tmp/cco84Mp4.s page 20 1056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1060: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 | \ 1061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM4 TRGO. 1063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1064: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 | \ 1065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM4 channe 1067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1071: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 | \ 1072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM4 channe 1074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1078: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 | \ 1079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM6 TRGO. 1081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1082: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 | \ 1083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT 1084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM7 TRGO. 1085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1086: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 | \ 1087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM8 TRGO. 1089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1090: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) /* 1091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM8 TRGO2. 1092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1093: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 | \ 1094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM8 channe 1096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1100: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 | \ 1101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM15 TRGO. 1103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1104: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) /*! 1105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM20 TRGO. 1106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1109: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 | \ 1110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM20 TRGO2 1112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). ARM GAS /tmp/cco84Mp4.s page 21 1113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1115: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 | \ 1116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM20 chann 1118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1122: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 | \ 1123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM20 chann 1125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances, and TIM20 is not available on all devi 1129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1130: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 | \ 1131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: TIM20 chann 1133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** compare: input capture or output capture). 1134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances, and TIM20 is not available on all devi 1137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1138: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 | \ 1139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 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 **** Refer to device datasheet for more details */ 1144: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 | \ 1145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 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 **** ADC3/4/5 instances, and HRTIM is not available on all de 1150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1151: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 | \ 1152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1157: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 | \ 1158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances, and HRTIM is not available on all de 1163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1164: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 | \ 1165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | \ 1166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al ARM GAS /tmp/cco84Mp4.s page 22 1170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1171: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 | \ 1172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1177: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 | \ 1178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_0 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1183: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 | \ 1184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1189: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 | \ 1190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_1 | ADC_CFGR_EXTSEL_0 | \ 1191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1196: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 | \ 1197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_2 | ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: HRTIMER ADC 1199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Refer to device datasheet for more details */ 1202: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 | \ 1203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: external in 1205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC1/2 instances */ 1208: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 | \ 1209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: external in 1211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC3/4/5 instances. Refer to device datasheet for ADCx a 1214: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 | \ 1215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CFGR_EXTSEL_2 | ADC_CFGR_EXTSEL_0 | \ 1216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_REG_TRIG_EXT_EDGE_DEFAULT) /* 1217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger from external peripheral: LPTIMER OUT 1218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 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 **** */ 1222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_TRIGGER_EDGE ADC group regular - Trigger edge 1224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_RISING (ADC_CFGR_EXTEN_0) /*!< ADC group r ARM GAS /tmp/cco84Mp4.s page 23 1227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to rising edge */ 1228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_TRIG_EXT_FALLING (ADC_CFGR_EXTEN_1) /*!< ADC group r 1229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to falling edge */ 1230: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 1231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to both rising and falling edges */ 1232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 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 **** /** @defgroup ADC_LL_EC_REG_SAMPLING_MODE ADC group regular - Sampling mode 1237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_NORMAL (0x00000000UL) /*!< ADC conversions sam 1240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** is defined using @ref ADC_LL_EC_CHANNEL_SAMPLINGTIME */ 1241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_BULB (ADC_CFGR2_BULB) /*!< ADC conversions sam 1242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** immediately after end of conversion, and stops upon trig 1243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: First conversion is using minimal sampling time 1244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (see @ref ADC_LL_EC_CHANNEL_SAMPLINGTIME) */ 1245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED (ADC_CFGR2_SMPTRIG) /*!< ADC conversions sam 1246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** controlled by trigger events: trigger rising edge for st 1247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger falling edge for stop sampling and start convers 1248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 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 **** /** @defgroup ADC_LL_EC_REG_CONTINUOUS_MODE ADC group regular - Continuous mode 1253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_CONV_SINGLE (0x00000000UL) /*!< ADC conversions performed in sin 1256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** one conversion per trigger */ 1257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_CONV_CONTINUOUS (ADC_CFGR_CONT) /*!< ADC conversions performed in con 1258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** after the first trigger, following conversions launched 1259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** automatically */ 1260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1264: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 1265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_NONE (0x00000000UL) /*!< ADC conversions are not transfer 1268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_LIMITED (ADC_CFGR_DMAEN) /*!< ADC conversion data are transfer 1269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** in limited mode (one shot mode): DMA transfer requests a 1270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** number of DMA data transfers (number of ADC conversions) 1271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This ADC mode is intended to be used with DMA mode non-c 1272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_DMA_TRANSFER_UNLIMITED (ADC_CFGR_DMACFG | ADC_CFGR_DMAEN) /*!< ADC conversio 1273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** transferred by DMA, in unlimited mode: DMA transfer requ 1274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** whatever number of DMA data transferred (number of ADC c 1275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This ADC mode is intended to be used with DMA mode circu 1276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_SMPR1_SMPPLUS) 1281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_SAMPLINGTIME_COMMON_CONFIG ADC instance - ADC sampling time common configur 1282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/cco84Mp4.s page 24 1284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_COMMON_DEFAULT (0x00000000UL) /*!< ADC sampling time let to d 1285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 (ADC_SMPR1_SMPPLUS) /*!< ADC additional sampling ti 1286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** cycles replacing 2.5 ADC clock cycles (this applies to a 1287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with selection sampling time 2.5 ADC clock cycles, whate 1288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** on ADC groups regular or injected). */ 1289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_SMPR1_SMPPLUS */ 1293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1294: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 1295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_PRESERVED (0x00000000UL) /*!< ADC group regular behavior in ca 1298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data preserved */ 1299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_OVR_DATA_OVERWRITTEN (ADC_CFGR_OVRMOD) /*!< ADC group regular behavior in ca 1300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data overwritten */ 1301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_SCAN_LENGTH ADC group regular - Sequencer scan length 1306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_DISABLE (0x00000000UL) /*!< ADC group regular se 1309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (equivalent to sequencer of 1 rank: ADC conversion on on 1310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS (ADC_SQR1_L_0) /*!< ADC group regular se 1311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 2 ranks in the sequence */ 1312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS (ADC_SQR1_L_1) /*!< ADC group regular se 1313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 3 ranks in the sequence */ 1314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS (ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular se 1315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 4 ranks in the sequence */ 1316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS (ADC_SQR1_L_2) /*!< ADC group regular se 1317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 5 ranks in the sequence */ 1318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS (ADC_SQR1_L_2 | ADC_SQR1_L_0) /*!< ADC group regular se 1319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 6 ranks in the sequence */ 1320: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) /*!< ADC group regular seq 1321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 7 ranks in the sequence */ 1322: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 \ 1323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR1_L_0) /*!< ADC group regular s 1324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 8 ranks in the sequence */ 1325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS (ADC_SQR1_L_3) /*!< ADC group regular se 1326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 9 ranks in the sequence */ 1327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS (ADC_SQR1_L_3 | ADC_SQR1_L_0) /*!< ADC group regular se 1328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 10 ranks in the sequence */ 1329: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) /*!< ADC group regular se 1330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 11 ranks in the sequence */ 1331: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 \ 1332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR1_L_0) /*!< ADC group regular s 1333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 12 ranks in the sequence */ 1334: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) /*!< ADC group regular se 1335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 13 ranks in the sequence */ 1336: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 \ 1337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR1_L_0) /*!< ADC group regular s 1338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 14 ranks in the sequence */ 1339: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 \ 1340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR1_L_1) /*!< ADC group regular s ARM GAS /tmp/cco84Mp4.s page 25 1341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 15 ranks in the sequence */ 1342: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 \ 1343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SQR1_L_1 | ADC_SQR1_L_0) /*!< ADC group regular s 1344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 16 ranks in the 1345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_REG_SEQ_DISCONT_MODE ADC group regular - Sequencer discontinuous mode 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 **** #define LL_ADC_REG_SEQ_DISCONT_DISABLE (0x00000000UL) /*!< ADC group r 1353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode disable */ 1354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_1RANK (ADC_CFGR_DISCEN) /*!< ADC group r 1355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_2RANKS (ADC_CFGR_DISCNUM_0 | ADC_CFGR_DISCEN) /*!< ADC group r 1357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enabled with sequence interruption ev 1358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_3RANKS (ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISCEN) /*!< ADC group r 1359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_4RANKS (ADC_CFGR_DISCNUM_1 | ADC_CFGR_DISCNUM_0 \ 1361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_DISCEN) /*!< ADC group 1362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_5RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCEN) /*!< ADC group 1364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_6RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_0 \ 1366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_DISCEN) /*!< ADC group 1367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_7RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 \ 1369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_DISCEN) /*!< ADC group 1370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_REG_SEQ_DISCONT_8RANKS (ADC_CFGR_DISCNUM_2 | ADC_CFGR_DISCNUM_1 \ 1372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_DISCNUM_0 | ADC_CFGR_DISCEN) /*!< ADC group 1373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** discontinuous mode enable with sequence interruption eve 1374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 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 **** /** @defgroup ADC_LL_EC_REG_SEQ_RANKS ADC group regular - Sequencer ranks 1379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1381: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) 1382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 1 */ 1383: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) 1384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 2 */ 1385: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) 1386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 3 */ 1387: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) 1388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 4 */ 1389: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) 1390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 5 */ 1391: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) 1392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 6 */ 1393: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) 1394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 7 */ 1395: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) 1396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 8 */ 1397: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) ARM GAS /tmp/cco84Mp4.s page 26 1398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 9 */ 1399: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 1400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 10 */ 1401: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 1402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 11 */ 1403: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 1404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 12 */ 1405: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 1406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 13 */ 1407: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 1408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 14 */ 1409: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 1410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 15 */ 1411: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 1412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular sequencer rank 16 */ 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 **** */ 1416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_SOURCE ADC group injected - Trigger source 1418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_SOFTWARE (0x00000000UL) /* 1421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion trigger internal: SW start. */ 1422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_TIM1_TRGO (ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1425: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) 1426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1428: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 | \ 1429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 3 event (capture compare: input capture or outpu 1432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. Refer to device datasheet for ADCx availabili 1435: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) 1436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1439: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) 1440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1442: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 | \ 1443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 1 event (capture compare: input capture or outpu 1446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances */ 1449: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 | \ 1450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1453: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 | \ 1454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) ARM GAS /tmp/cco84Mp4.s page 27 1455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 1 event (capture compare: input capture or outpu 1457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances */ 1460: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 | \ 1461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 3 event (capture compare: input capture or outpu 1464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances */ 1467: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) 1468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances */ 1473: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 | \ 1474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1477: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) 1478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 3 event (capture compare: input capture or outpu 1480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. Refer to device datasheet for ADCx availabili 1483: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 | \ 1484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. Refer to device datasheet for ADCx availabili 1490: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 | \ 1491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1494: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 | \ 1495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_E 1496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1498: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 | \ 1499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1502: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 | \ 1503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1506: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 | \ 1507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 2 event (capture compare: input capture or outpu 1510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on ARM GAS /tmp/cco84Mp4.s page 28 1512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. Refer to device datasheet for ADCx availabili 1513: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 | \ 1514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1518: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 | \ 1519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_E 1520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). */ 1522: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 | \ 1523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_E 1524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances */ 1529: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) 1530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1534: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 | \ 1535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, TIM20 is not available on al 1539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1540: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 | \ 1541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 2 event (capture compare: input capture or outpu 1544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger available only on ADC3/4/5 instances. On this ST 1546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** not available on all devices. Refer to device datasheet 1547: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 | \ 1548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel 4 event (capture compare: input capture or outpu 1551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger edge set to rising edge (default setting). 1552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Trigger available only on ADC1/2 instances. On this STM3 1553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** not available on all devices. Refer to device datasheet 1554: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 | \ 1555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_E 1556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC trigger 1 event. Trigger edge set to rising edge (de 1558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances, and HRTIM is not available on all devices. Re 1560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** datasheet for more details */ 1561: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 | \ 1562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 2 event. Trigger edge set to rising edge (defaul 1565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1567: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 | \ 1568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_2 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) ARM GAS /tmp/cco84Mp4.s page 29 1569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC trigger 3 event. Trigger edge set to rising edge (de 1571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances, and HRTIM is not available on all devices. Re 1573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** datasheet for more details */ 1574: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 | \ 1575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 4 event. Trigger edge set to rising edge (defaul 1578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1580: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 | \ 1581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 5 event. Trigger edge set to rising edge (defaul 1584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1586: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 | \ 1587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 6 event. Trigger edge set to rising edge (defaul 1590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1592: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 | \ 1593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_E 1594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 7 event. Trigger edge set to rising edge (defaul 1596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1598: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 | \ 1599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 8 event. Trigger edge set to rising edge (defaul 1602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1604: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 | \ 1605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 9 event. Trigger edge set to rising edge (defaul 1608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1610: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 | \ 1611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_1 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger 10 event. Trigger edge set to rising edge (defau 1614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, HRTIM is not available on al 1615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** device datasheet for more details */ 1616: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 | \ 1617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** interrupt line 3. Trigger edge set to rising edge (defau 1620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. Refer to device datasheet for ADCx availabili 1622: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 | \ 1623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_INJ_TRIG_EXT_EDGE_DEFAULT) 1624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** interrupt line 15. Trigger edge set to rising edge (defa ARM GAS /tmp/cco84Mp4.s page 30 1626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Note: On this STM32 series, this trigger is available on 1627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances. */ 1628: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 | \ 1629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL_2 | ADC_JSQR_JEXTSEL_0 | ADC_INJ_TRIG_E 1630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected conversion trigger from external peri 1631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** event. Trigger edge set to rising edge (default setting) 1632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_TRIGGER_EDGE ADC group injected - Trigger edge 1637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_RISING ( ADC_JSQR_JEXTEN_0) /*!< ADC group i 1640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to rising edge */ 1641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_EXT_FALLING (ADC_JSQR_JEXTEN_1 ) /*!< ADC group i 1642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to falling edge */ 1643: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 1644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** trigger polarity set to both rising and falling edges */ 1645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 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 **** /** @defgroup ADC_LL_EC_INJ_TRIG_AUTO ADC group injected - Automatic trigger mode 1650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_INDEPENDENT (0x00000000UL) /*!< ADC group injected conversion tr 1653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Setting mandatory if ADC group injected injected trigger 1654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** an external trigger. */ 1655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_TRIG_FROM_GRP_REGULAR (ADC_CFGR_JAUTO) /*!< ADC group injected conversion tr 1656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular. Setting compliant only with group injected trig 1657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SW start, without any further action on ADC group injec 1658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** or stop: in this case, ADC group injected is controlled 1659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular. */ 1660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_CONTEXT_QUEUE ADC group injected - Context queue mode 1665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE (0x00000000UL) /* Group injected sequence context 1668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and can contain up to 2 contexts. When all contexts have 1669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** the queue maintains the last context active perpetually. 1670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY (ADC_CFGR_JQM) /* Group injected sequence context 1671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and can contain up to 2 contexts. When all contexts have 1672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** the queue is empty and injected group triggers are disab 1673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_QUEUE_DISABLE (ADC_CFGR_JQDIS) /* Group injected sequence context 1674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** only 1 sequence can be configured and is active perpetua 1675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_SCAN_LENGTH ADC group injected - Sequencer scan length 1680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_DISABLE (0x00000000UL) /*!< ADC group injected ARM GAS /tmp/cco84Mp4.s page 31 1683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (equivalent to sequencer of 1 rank: ADC conversion on on 1684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS ( ADC_JSQR_JL_0) /*!< ADC group injected 1685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 2 ranks in the sequence */ 1686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS (ADC_JSQR_JL_1 ) /*!< ADC group injected 1687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 3 ranks in the sequence */ 1688: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 1689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with 4 ranks in the sequence */ 1690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_DISCONT_MODE ADC group injected - Sequencer discontinuous mode 1695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_DISABLE (0x00000000UL) /*!< ADC group injected sequencer dis 1698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** disable */ 1699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_SEQ_DISCONT_1RANK (ADC_CFGR_JDISCEN) /*!< ADC group injected sequencer dis 1700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** enable with sequence interruption every rank */ 1701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_INJ_SEQ_RANKS ADC group injected - Sequencer ranks 1706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_1 (ADC_JDR1_REGOFFSET \ 1709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_INJ_RANK_1_JSQR_BITOFFSET_POS) /*!< ADC group inj 1710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_2 (ADC_JDR2_REGOFFSET \ 1711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_INJ_RANK_2_JSQR_BITOFFSET_POS) /*!< ADC group inj 1712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_3 (ADC_JDR3_REGOFFSET \ 1713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_INJ_RANK_3_JSQR_BITOFFSET_POS) /*!< ADC group inj 1714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_INJ_RANK_4 (ADC_JDR4_REGOFFSET \ 1715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_INJ_RANK_4_JSQR_BITOFFSET_POS) /*!< ADC group inj 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 **** 1720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SAMPLINGTIME Channel - Sampling time 1721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_2CYCLES_5 (0x00000000UL) /*!< Sampling time 2.5 ADC clock cy 1724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_6CYCLES_5 (ADC_SMPR2_SMP10_0) /*!< Sampling time 6.5 ADC clock cy 1725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_12CYCLES_5 (ADC_SMPR2_SMP10_1) /*!< Sampling time 12.5 ADC clock c 1726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_24CYCLES_5 (ADC_SMPR2_SMP10_1 \ 1727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SMPR2_SMP10_0) /*!< Sampling time 24.5 ADC clock 1728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_47CYCLES_5 (ADC_SMPR2_SMP10_2) /*!< Sampling time 47.5 ADC clock c 1729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_92CYCLES_5 (ADC_SMPR2_SMP10_2 \ 1730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SMPR2_SMP10_0) /*!< Sampling time 92.5 ADC clock 1731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_247CYCLES_5 (ADC_SMPR2_SMP10_2 \ 1732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SMPR2_SMP10_1) /*!< Sampling time 247.5 ADC clock 1733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SAMPLINGTIME_640CYCLES_5 (ADC_SMPR2_SMP10_2 \ 1734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SMPR2_SMP10_1 \ 1735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_SMPR2_SMP10_0) /*!< Sampling time 640.5 ADC clock 1736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 32 1740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_CHANNEL_SINGLE_DIFF_ENDING Channel - Single or differential ending 1741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_SINGLE_ENDED ( ADC_CALFACT_CALFACT_S) /*!< A 1744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** set to single ended (literal also used to set calibratio 1745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DIFFERENTIAL_ENDED (ADC_CR_ADCALDIF | ADC_CALFACT_CALFACT_D) /*!< A 1746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** set to differential (literal also used to set calibratio 1747: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 1748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** set to both single ended and differential (literal used 1749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** calibration factors) */ 1750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_NUMBER Analog watchdog - Analog watchdog number 1755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD1 (ADC_AWD_CR1_CHANNEL_MASK \ 1758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_AWD_CR1_REGOFFSET) /*!< ADC analog watchdog numbe 1759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD2 (ADC_AWD_CR23_CHANNEL_MASK \ 1760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_AWD_CR2_REGOFFSET) /*!< ADC analog watchdog numbe 1761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD3 (ADC_AWD_CR23_CHANNEL_MASK \ 1762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_AWD_CR3_REGOFFSET) /*!< ADC analog watchdog numbe 1763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 1764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 1765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 1767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_CHANNELS Analog watchdog - Monitored channels 1768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 1769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 1770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_DISABLE (0x00000000UL) /*!< ADC analog 1771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** disabled */ 1772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG (ADC_AWD_CR23_CHANNEL_MASK \ 1773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN) /*!< ADC analo 1774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of all channels, converted by group regular only */ 1775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_INJ (ADC_AWD_CR23_CHANNEL_MASK \ 1776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN) /*!< ADC analo 1777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of all channels, converted by group injected only */ 1778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_ALL_CHANNELS_REG_INJ (ADC_AWD_CR23_CHANNEL_MASK \ 1779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN) /*!< ADC analo 1780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of all channels, converted by either group regular or in 1781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_REG ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) \ 1782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN0, converted by group regular only 1784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_0_INJ ((LL_ADC_CHANNEL_0 & ADC_CHANNEL_ID_MASK) \ 1785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN0, converted by group injected onl 1787: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) \ 1788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN0, converted by either group regul 1791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_REG ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) \ 1792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN1, converted by group regular only 1794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_1_INJ ((LL_ADC_CHANNEL_1 & ADC_CHANNEL_ID_MASK) \ 1795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN1, converted by group injected onl ARM GAS /tmp/cco84Mp4.s page 33 1797: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) \ 1798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN1, converted by either group regul 1801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_REG ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) \ 1802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN2, converted by group regular only 1804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_2_INJ ((LL_ADC_CHANNEL_2 & ADC_CHANNEL_ID_MASK) \ 1805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN2, converted by group injected onl 1807: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) \ 1808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN2, converted by either group regul 1811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_REG ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) \ 1812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN3, converted by group regular only 1814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_3_INJ ((LL_ADC_CHANNEL_3 & ADC_CHANNEL_ID_MASK) \ 1815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN3, converted by group injected onl 1817: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) \ 1818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN3, converted by either group regul 1821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_REG ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) \ 1822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN4, converted by group regular only 1824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_4_INJ ((LL_ADC_CHANNEL_4 & ADC_CHANNEL_ID_MASK) \ 1825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN4, converted by group injected onl 1827: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) \ 1828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN4, converted by either group regul 1831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_REG ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) \ 1832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN5, converted by group regular only 1834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_5_INJ ((LL_ADC_CHANNEL_5 & ADC_CHANNEL_ID_MASK) \ 1835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN5, converted by group injected onl 1837: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) \ 1838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN5, converted by either group regul 1841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_REG ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) \ 1842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN6, converted by group regular only 1844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_6_INJ ((LL_ADC_CHANNEL_6 & ADC_CHANNEL_ID_MASK) \ 1845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN6, converted by group injected onl 1847: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) \ 1848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN6, converted by either group regul 1851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_REG ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) \ 1852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN7, converted by group regular only ARM GAS /tmp/cco84Mp4.s page 34 1854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_7_INJ ((LL_ADC_CHANNEL_7 & ADC_CHANNEL_ID_MASK) \ 1855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN7, converted by group injected onl 1857: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) \ 1858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN7, converted by either group regul 1861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_REG ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) \ 1862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN8, converted by group regular only 1864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_8_INJ ((LL_ADC_CHANNEL_8 & ADC_CHANNEL_ID_MASK) \ 1865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN8, converted by group injected onl 1867: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) \ 1868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN8, converted by either group regul 1871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_REG ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) \ 1872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN9, converted by group regular only 1874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_9_INJ ((LL_ADC_CHANNEL_9 & ADC_CHANNEL_ID_MASK) \ 1875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN9, converted by group injected onl 1877: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) \ 1878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN9, converted by either group regul 1881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_REG ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) \ 1882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN10, converted by group regular onl 1884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_10_INJ ((LL_ADC_CHANNEL_10 & ADC_CHANNEL_ID_MASK) \ 1885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN10, converted by group injected on 1887: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)\ 1888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN10, converted by either group regu 1891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_REG ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) \ 1892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN11, converted by group regular onl 1894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_11_INJ ((LL_ADC_CHANNEL_11 & ADC_CHANNEL_ID_MASK) \ 1895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN11, converted by group injected on 1897: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) \ 1898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN11, converted by either group regu 1901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_REG ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) \ 1902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN12, converted by group regular onl 1904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_12_INJ ((LL_ADC_CHANNEL_12 & ADC_CHANNEL_ID_MASK) \ 1905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN12, converted by group injected on 1907: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) \ 1908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN12, converted by either group regu ARM GAS /tmp/cco84Mp4.s page 35 1911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_REG ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) \ 1912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN13, converted by group regular onl 1914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_13_INJ ((LL_ADC_CHANNEL_13 & ADC_CHANNEL_ID_MASK) \ 1915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN13, converted by group injected on 1917: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) \ 1918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN13, converted by either group regu 1921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_REG ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) \ 1922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN14, converted by group regular onl 1924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_14_INJ ((LL_ADC_CHANNEL_14 & ADC_CHANNEL_ID_MASK) \ 1925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN14, converted by group only */ 1927: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) \ 1928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN14, converted by either group regu 1931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_REG ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) \ 1932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** monitoring of ADC channel ADCx_IN15, converted by group 1934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_15_INJ ((LL_ADC_CHANNEL_15 & ADC_CHANNEL_ID_MASK) \ 1935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN15, converted by group injected on 1937: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) \ 1938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN15, converted by either group 1941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular or injected */ 1942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_REG ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) \ 1943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN16, converted by group regular onl 1945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_16_INJ ((LL_ADC_CHANNEL_16 & ADC_CHANNEL_ID_MASK) \ 1946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN16, converted by group injected on 1948: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) \ 1949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN16, converted by either group regu 1952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_REG ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) \ 1953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN17, converted by group regular onl 1955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_17_INJ ((LL_ADC_CHANNEL_17 & ADC_CHANNEL_ID_MASK) \ 1956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN17, converted by group injected on 1958: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) \ 1959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN17, converted by either group regu 1962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_REG ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) \ 1963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN18, converted by group regular onl 1965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CHANNEL_18_INJ ((LL_ADC_CHANNEL_18 & ADC_CHANNEL_ID_MASK) \ 1966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN18, converted by group injected on ARM GAS /tmp/cco84Mp4.s page 36 1968: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) \ 1969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC channel ADCx_IN18, converted by either group regu 1972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_REG ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) \ 1973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to VrefInt: Internal 1975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage reference, converted by group regular only */ 1976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VREFINT_INJ ((LL_ADC_CHANNEL_VREFINT & ADC_CHANNEL_ID_MASK) \ 1977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to VrefInt: Internal 1979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage reference, converted by group injected only */ 1980: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) \ 1981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to VrefInt: Internal 1984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage reference, converted by either group regular or 1985: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_MAS 1986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 1987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC1 internal channel connected to internal temperatu 1988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by group regular only */ 1989: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_MAS 1990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) 1991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC1 internal channel connected to internal temperatu 1992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by group injected only */ 1993: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_MAS 1994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 1995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 1996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC1 internal channel connected to internal temperatu 1997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by either group regular or injected */ 1998: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_MAS 1999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC5 internal channel connected to internal temperatu 2001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by group regular only */ 2002: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_MAS 2003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL 2004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC5 internal channel connected to internal temperatu 2005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by group injected only */ 2006: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_MAS 2007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC5 internal channel connected to internal temperatu 2010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** converted by either group regular or injected */ 2011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_REG ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) \ 2012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to Vbat/3: Vbat 2014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage through a divider ladder of factor 1/3 to have c 2015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Vdda, converted by group regular only */ 2016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VBAT_INJ ((LL_ADC_CHANNEL_VBAT & ADC_CHANNEL_ID_MASK) \ 2017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to Vbat/3: Vbat 2019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage through a divider ladder of factor 1/3 to have c 2020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Vdda, converted by group injected only */ 2021: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) \ 2022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to Vbat/3: Vbat ARM GAS /tmp/cco84Mp4.s page 37 2025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** voltage through a divider ladder of factor 1/3 to have c 2026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Vdda */ 2027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP1_REG ((LL_ADC_CHANNEL_VOPAMP1 & ADC_CHANNEL_ID_MASK) \ 2028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP1 output, 2030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC1, converted by group regular onl 2031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP1_INJ ((LL_ADC_CHANNEL_VOPAMP1 & ADC_CHANNEL_ID_MASK) \ 2032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP1 output, 2034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC1, converted by group injected on 2035: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) \ 2036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP1 output, 2039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC1, converted by either group regu 2040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP2_REG ((LL_ADC_CHANNEL_VOPAMP2 & ADC_CHANNEL_ID_MASK) \ 2041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by group regular onl 2043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP2_INJ ((LL_ADC_CHANNEL_VOPAMP2 & ADC_CHANNEL_ID_MASK) \ 2044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP2 output, 2046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by group injected on 2047: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) \ 2048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP2 output, 2051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by either group regu 2052: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) \ 2053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by group regular onl 2056: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) \ 2057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by group injected on 2060: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) \ 2061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC2, converted by either group regu 2065: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) \ 2066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC3, converted by group regular onl 2069: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) \ 2070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC3, converted by group injected on 2073: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) \ 2074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP3 output, 2077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC3, converted by either group regu 2078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP4_REG ((LL_ADC_CHANNEL_VOPAMP4 & ADC_CHANNEL_ID_MASK) \ 2079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP4 output, 2081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by group regular onl ARM GAS /tmp/cco84Mp4.s page 38 2082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP4_INJ ((LL_ADC_CHANNEL_VOPAMP4 & ADC_CHANNEL_ID_MASK) \ 2083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP4 output, 2085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by group injected on 2086: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) \ 2087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP4 output, 2090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by either group regu 2091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP5_REG ((LL_ADC_CHANNEL_VOPAMP5 & ADC_CHANNEL_ID_MASK) \ 2092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP5 output, 2094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by group regular onl 2095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP5_INJ ((LL_ADC_CHANNEL_VOPAMP5 & ADC_CHANNEL_ID_MASK) \ 2096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP5 output, 2098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by group injected on 2099: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) \ 2100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP5 output, 2103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC5, converted by either group regu 2104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP6_REG ((LL_ADC_CHANNEL_VOPAMP6 & ADC_CHANNEL_ID_MASK) \ 2105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP6 output, 2107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC4, converted by group regular onl 2108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_CH_VOPAMP6_INJ ((LL_ADC_CHANNEL_VOPAMP6 & ADC_CHANNEL_ID_MASK) \ 2109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) /*!< ADC analo 2110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP6 output, 2111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC4, converted by group injected on 2112: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) \ 2113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN \ 2114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR_AWD1SGL) /*!< ADC analo 2115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** of ADC internal channel connected to OPAMP6 output, 2116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** channel specific to ADC4, converted by either group regu 2117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_THRESHOLDS Analog watchdog - Thresholds 2122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_HIGH (ADC_TR1_HT1) /*!< ADC analog watchdog threshold hi 2125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLD_LOW (ADC_TR1_LT1) /*!< ADC analog watchdog threshold lo 2126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_THRESHOLDS_HIGH_LOW (ADC_TR1_HT1 \ 2127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_TR1_LT1) /*!< ADC analog watchdog both thresh 2128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** concatenated into the same data */ 2129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_AWD_FILTERING_CONFIG Analog watchdog - filtering config 2134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_NONE (0x00000000UL) /*!< ADC analog 2137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** one out-of-window sample is needed to raise flag or inte 2138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_2SAMPLES (ADC_TR1_AWDFILT_0) /*!< ADC analog ARM GAS /tmp/cco84Mp4.s page 39 2139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** out-of-window samples are needed to raise flag or interr 2140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_3SAMPLES (ADC_TR1_AWDFILT_1) /*!< ADC analog 2141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_4SAMPLES (ADC_TR1_AWDFILT_1 | ADC_TR1_AWDFILT_0) /*!< ADC analog 2143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_5SAMPLES (ADC_TR1_AWDFILT_2) /*!< ADC analog 2145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_6SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT_0) /*!< ADC analog 2147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_7SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT_1) /*!< ADC analog 2149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_AWD_FILTERING_8SAMPLES (ADC_TR1_AWDFILT_2 | ADC_TR1_AWDFILT_1 \ 2151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_TR1_AWDFILT_0) /*!< ADC analog 2152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** consecutives out-of-window samples are needed to raise f 2153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SCOPE Oversampling - Oversampling scope 2158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_DISABLE (0x00000000UL) /*!< ADC oversamplin 2161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_CONTINUED (ADC_CFGR2_ROVSE) /*!< ADC oversamplin 2162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular. If group injected interrupts group re 2163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** when ADC group injected is triggered, the oversampling o 2164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** is temporary stopped and continued afterwards. */ 2165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_REGULAR_RESUMED (ADC_CFGR2_ROVSM | ADC_CFGR2_ROVSE) /*!< ADC oversamplin 2166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group regular. If group injected interrupts group re 2167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** when ADC group injected is triggered, the oversampling o 2168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** is resumed from start (oversampler buffer reset). */ 2169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJECTED (ADC_CFGR2_JOVSE) /*!< ADC oversamplin 2170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC group injected. */ 2171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_GRP_INJ_REG_RESUMED (ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE) /*!< ADC oversamplin 2172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** both ADC groups regular and injected. If group injected 2173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular: when ADC group injected is triggered, the overs 2174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular is resumed from start (oversampler buffer reset) 2175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_DISCONT_MODE Oversampling - Discontinuous mode 2180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_REG_CONT (0x00000000UL) /*!< ADC oversampling discontinuous m 2183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (all conversions of oversampling ratio are done from 1 trigger) */ 2184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_REG_DISCONT (ADC_CFGR2_TROVS) /*!< ADC oversampling discontinuous m 2185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** mode (each conversion of oversampling ratio needs a trig 2186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 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 **** /** @defgroup ADC_LL_EC_OVS_RATIO Oversampling - Ratio 2191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_2 (0x00000000UL) /*!< ADC oversampl 2194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ ARM GAS /tmp/cco84Mp4.s page 40 2196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_4 (ADC_CFGR2_OVSR_0) /*!< ADC oversampl 2197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_8 (ADC_CFGR2_OVSR_1) /*!< ADC oversampl 2200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_16 (ADC_CFGR2_OVSR_1 | ADC_CFGR2_OVSR_0) /*!< ADC oversampl 2203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_32 (ADC_CFGR2_OVSR_2) /*!< ADC oversampl 2206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_64 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_0) /*!< ADC oversampl 2209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_128 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_1) /*!< ADC oversampl 2212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_RATIO_256 (ADC_CFGR2_OVSR_2 | ADC_CFGR2_OVSR_1 \ 2215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR2_OVSR_0) /*!< ADC oversamp 2216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of conversions data computed to result as oversampl 2217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (before potential shift) */ 2218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_OVS_SHIFT Oversampling - Data right shift 2223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_NONE (0x00000000UL) /*!< ADC oversampl 2226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data is not divided to resul 2227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversion data) */ 2228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_1 (ADC_CFGR2_OVSS_0) /*!< ADC oversampl 2229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_2 (ADC_CFGR2_OVSS_1) /*!< ADC oversampl 2232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_3 (ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0) /*!< ADC oversampl 2235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_4 (ADC_CFGR2_OVSS_2) /*!< ADC oversampl 2238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_5 (ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_0) /*!< ADC oversampl 2241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_6 (ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1) /*!< ADC oversampl 2244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_7 (ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 \ 2247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CFGR2_OVSS_0) /*!< ADC oversamp 2248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ 2250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_OVS_SHIFT_RIGHT_8 (ADC_CFGR2_OVSS_3) /*!< ADC oversampl 2251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (sum of the ADC conversions data (after OVS ratio) is di 2252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to result as oversampling conversion data) */ ARM GAS /tmp/cco84Mp4.s page 41 2253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 2258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MODE Multimode - Mode 2259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_INDEPENDENT (0x00000000UL) /*!< ADC dual mode dis 2262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** independent mode) */ 2263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIMULT (ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1) /*!< ADC dual mode ena 2264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** simultaneous */ 2265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INTERL (ADC_CCR_DUAL_2 | ADC_CCR_DUAL_1 \ 2266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_DUAL_0) /*!< ADC dual mode e 2267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular interleaved */ 2268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_SIMULT (ADC_CCR_DUAL_2 | ADC_CCR_DUAL_0) /*!< ADC dual mode ena 2269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** simultaneous */ 2270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_INJ_ALTERN (ADC_CCR_DUAL_3 | ADC_CCR_DUAL_0) /*!< ADC dual mode ena 2271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** alternate trigger. Works only with external triggers (no 2272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM (ADC_CCR_DUAL_0) /*!< ADC dual mode ena 2273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular simultaneous + group injected simultaneous */ 2274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT (ADC_CCR_DUAL_1) /*!< ADC dual mode ena 2275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular simultaneous + group injected alternate trigger 2276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM (ADC_CCR_DUAL_1 | ADC_CCR_DUAL_0) /*!< ADC dual mode ena 2277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regular interleaved + group injected simultaneous */ 2278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_DMA_TRANSFER Multimode - DMA transfer 2283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_EACH_ADC (0x00000000UL) /*!< ADC multimode g 2286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are transferred by DMA: each ADC uses its 2287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** with its individual DMA transfer settings */ 2288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B (ADC_CCR_MDMA_1) /*!< ADC multimode g 2289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are transferred by DMA, one DMA channel fo 2290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC master), in limited mode (one shot mode): DMA tran 2291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** are stopped when number of DMA data transfers (number 2292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** is reached. This ADC mode is intended to be used with 2293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** non-circular. Setting for ADC resolution of 12 and 10 2294: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) /*!< ADC multimode g 2295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are transferred by DMA, one DMA channel fo 2296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC master), in limited mode (one shot mode): DMA tran 2297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** are stopped when number of DMA data transfers (number 2298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** is reached. This ADC mode is intended to be used with 2299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** non-circular. Setting for ADC resolution of 8 and 6 bi 2300: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) /*!< ADC multimode g 2301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are transferred by DMA, one DMA channel fo 2302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC master), in unlimited mode: DMA transfer requests 2303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** whatever number of DMA data transferred (number of ADC 2304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This ADC mode is intended to be used with DMA mode cir 2305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Setting for ADC resolution of 12 and 10 bits */ 2306: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 \ 2307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_MDMA_0) /*!< ADC multimode 2308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** conversions are transferred by DMA, one DMA channel fo 2309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC master), in unlimited mode: DMA transfer requests ARM GAS /tmp/cco84Mp4.s page 42 2310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** whatever number of DMA data transferred (number of ADC 2311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** This ADC mode is intended to be used with DMA mode cir 2312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Setting for ADC resolution of 8 and 6 bits */ 2313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_TWOSMP_DELAY Multimode - Delay between two sampling phases 2318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE (0x00000000UL) /*!< ADC multimode d 2321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 1 ADC clock cycle */ 2322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES (ADC_CCR_DELAY_0) /*!< ADC multimode d 2323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 2 ADC clock cycles */ 2324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES (ADC_CCR_DELAY_1) /*!< ADC multimode d 2325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 3 ADC clock cycles */ 2326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES (ADC_CCR_DELAY_1 | ADC_CCR_DELAY_0) /*!< ADC multimode d 2327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 4 ADC clock cycles */ 2328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES (ADC_CCR_DELAY_2) /*!< ADC multimode d 2329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 5 ADC clock cycles */ 2330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (ADC_CCR_DELAY_2 | ADC_CCR_DELAY_0) /*!< ADC multimode d 2331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 6 ADC clock cycles */ 2332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES (ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1) /*!< ADC multimode d 2333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 7 ADC clock cycles */ 2334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (ADC_CCR_DELAY_2 | ADC_CCR_DELAY_1 \ 2335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_DELAY_0) /*!< ADC multimode 2336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 8 ADC clock cycles */ 2337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (ADC_CCR_DELAY_3) /*!< ADC multimode d 2338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 9 ADC clock cycles */ 2339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_0) /*!< ADC multimode d 2340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 10 ADC clock cycles */ 2341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1) /*!< ADC multimode d 2342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 11 ADC clock cycles */ 2343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (ADC_CCR_DELAY_3 | ADC_CCR_DELAY_1 \ 2344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CCR_DELAY_0) /*!< ADC multimode 2345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** sampling phases: 12 ADC clock cycles */ 2346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_MULTI_MASTER_SLAVE Multimode - ADC master or slave 2351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER (ADC_CDR_RDATA_MST) /*!< In multimode, selection among s 2354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances: ADC master */ 2355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_SLAVE (ADC_CDR_RDATA_SLV) /*!< In multimode, selection among s 2356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances: ADC slave */ 2357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_MULTI_MASTER_SLAVE (ADC_CDR_RDATA_SLV \ 2358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ADC_CDR_RDATA_MST) /*!< In multimode, selection among 2359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** instances: both ADC master and ADC slave */ 2360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 2365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_HELPER_MACRO Definitions of constants used by helper macro ARM GAS /tmp/cco84Mp4.s page 43 2367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_TEMPERATURE_CALC_ERROR ((int16_t)0x7FFF) /* Temperature calculation error usin 2370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref __LL_ADC_CALC_TEMPERATURE(), 2371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** calibration parameters. This value 2372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (to fit on signed word or double w 2373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** to an inconsistent temperature val 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 **** */ 2377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EC_HW_DELAYS Definitions of ADC hardware constraints delays 2379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Only ADC peripheral HW delays are defined in ADC LL driver driver, 2380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not timeout values. 2381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For details on delays values, refer to descriptions in source code 2382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * above each literal definition. 2383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Only ADC peripheral HW delays are defined in ADC LL driver driver, */ 2387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* not timeout values. */ 2388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Timeout values for ADC operations are dependent to device clock */ 2389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration (system clock versus ADC clock), */ 2390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* and therefore must be defined in user application. */ 2391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Indications for estimation of ADC timeout delays, for this */ 2392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* STM32 series: */ 2393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC calibration time: maximum delay is 112/fADC. */ 2394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device datasheet, parameter "tCAL") */ 2395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC enable time: maximum delay is 1 conversion cycle. */ 2396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device datasheet, parameter "tSTAB") */ 2397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC disable time: maximum delay should be a few ADC clock cycles */ 2398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC stop conversion time: maximum delay should be a few ADC clock */ 2399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* cycles */ 2400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* - ADC conversion time: duration depending on ADC clock and ADC */ 2401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration. */ 2402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (refer to device reference manual, section "Timing") */ 2403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for ADC stabilization time (ADC voltage regulator start-up time) */ 2405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 2406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tADCVREG_STUP"). */ 2407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 2408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_INTERNAL_REGUL_STAB_US ( 20UL) /*!< Delay for ADC stabilization time 2409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** regulator start-up time) */ 2410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for internal voltage reference stabilization time. */ 2412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay set to maximum value (refer to device datasheet, */ 2413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tstart_vrefint"). */ 2414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 2415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_VREFINT_STAB_US ( 12UL) /*!< Delay for internal voltage refer 2416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** time */ 2417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay for temperature sensor stabilization time. */ 2419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Literal set to maximum value (refer to device datasheet, */ 2420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* parameter "tSTART"). */ 2421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: us */ 2422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_TEMPSENSOR_STAB_US (120UL) /*!< Delay for temperature sensor sta 2423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_TEMPSENSOR_BUFFER_STAB_US ( 15UL) /*!< Delay for temperature sensor buf ARM GAS /tmp/cco84Mp4.s page 44 2424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** time (starting from ADC enable, 2425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** @ref LL_ADC_Enable()) */ 2426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Delay required between ADC end of calibration and ADC enable. */ 2428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: On this STM32 series, a minimum number of ADC clock cycles */ 2429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* are required between ADC end of calibration and ADC enable. */ 2430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Wait time can be computed in user application by waiting for the */ 2431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* equivalent number of CPU cycles, by taking into account */ 2432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* ratio of CPU clock versus ADC clock prescalers. */ 2433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Unit: ADC clock cycles. */ 2434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES ( 4UL) /*!< Delay required between ADC end o 2435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** and ADC enable */ 2436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported macro ------------------------------------------------------------*/ 2447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Macros ADC Exported Macros 2448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EM_WRITE_READ Common write and read registers Macros 2452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Write a value in ADC register 2457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 2458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register to be written 2459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VALUE__ Value to be written in the register 2460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 2461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE 2463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Read a value in ADC register 2466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __INSTANCE__ ADC Instance 2467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __REG__ Register to be read 2468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Register value 2469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define LL_ADC_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) 2471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 2473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EM_HELPER_MACRO ADC helper macro 2476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 2477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get ADC channel number in decimal format ARM GAS /tmp/cco84Mp4.s page 45 2481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from literals LL_ADC_CHANNEL_x. 2482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Example: 2483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_CHANNEL_TO_DECIMAL_NB(LL_ADC_CHANNEL_4) 2484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will return decimal number "4". 2485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The input can be a value from functions where a channel 2486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number is returned, either defined with number 2487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or with bitfield (only one bit must be set). 2488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 2489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 2494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2527: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 2528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 2529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 2530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 2531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 2533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0 and Max_Data=18 2534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CHANNEL_TO_DECIMAL_NB(__CHANNEL__) \ 2536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__CHANNEL__) & ADC_CHANNEL_ID_BITFIELD_MASK) == 0UL) ? \ 2537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ ARM GAS /tmp/cco84Mp4.s page 46 2538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS \ 2539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 2541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 2542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (uint32_t)POSITION_VAL((__CHANNEL__)) \ 2543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get ADC channel in literal format LL_ADC_CHANNEL_x 2548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from number in decimal format. 2549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Example: 2550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_DECIMAL_NB_TO_CHANNEL(4) 2551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will return a data equivalent to "LL_ADC_CHANNEL_4". 2552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __DECIMAL_NB__ Value between Min_Data=0 and Max_Data=18 2553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 2559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2592: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 2593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 2594: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/cco84Mp4.s page 47 2595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 2596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 2598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 2599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 2600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 2601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_DECIMAL_NB_TO_CHANNEL(__DECIMAL_NB__) 2603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__DECIMAL_NB__) <= 9UL) ? 2604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( 2605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) | 2606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) | 2607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_SMPR1_REGOFFSET | (((3UL * (__DECIMAL_NB__))) << ADC_CHANNEL_SMPx_BITOFFSET_POS)) 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 **** ((__DECIMAL_NB__) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 2612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_AWD2CR_AWD2CH_0 << (__DECIMAL_NB__)) 2613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_SMPR2_REGOFFSET | (((3UL * ((__DECIMAL_NB__) - 10UL))) << ADC_CHANNEL_SMPx_BITOFFSET_PO 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 **** * @brief Helper macro to determine whether the selected channel 2619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponds to literal definitions of driver. 2620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The different literal definitions of ADC channels are: 2621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC internal channel: 2622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ... 2623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC external channel (channel connected to a GPIO pin): 2624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ... 2625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter must be a value defined from literal 2626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 2627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 2628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...), 2629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must not be a value from functions where a channel number is 2630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned from ADC registers, 2631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because internal and external channels share the same channel 2632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 2633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters definitions of driver. 2634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 2635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 2640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 ARM GAS /tmp/cco84Mp4.s page 48 2652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2673: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 2674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 2675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 2676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 2677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 2679: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 2680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** connected to a GPIO pin). 2681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if the channel corresponds to a parameter definition of a ADC internal channe 2682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \ 2684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_INTERNAL_CH_MASK) != 0UL) 2685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to convert a channel defined from parameter 2688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 2689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 2690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to its equivalent parameter definition of a ADC external channel 2691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...). 2692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter can be, additionally to a value 2693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined from parameter definition of a ADC internal channel 2694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_CHANNEL_VREFINT, LL_ADC_CHANNEL_TEMPSENSOR, ...), 2695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a value defined from parameter definition of 2696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 2697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or a value from functions where a channel number is returned 2698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC registers. 2699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 2700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 2705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 ARM GAS /tmp/cco84Mp4.s page 49 2709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2738: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 2739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 2740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 2741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 2742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 2744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 2745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 2747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 2748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 2749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 2750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 2751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(__CHANNEL__) \ ARM GAS /tmp/cco84Mp4.s page 50 2766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) & ~ADC_CHANNEL_ID_INTERNAL_CH_MASK) 2767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to determine whether the internal channel 2770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * selected is available on the ADC instance selected. 2771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The channel parameter must be a value defined from parameter 2772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * definition of a ADC internal channel (LL_ADC_CHANNEL_VREFINT, 2773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_CHANNEL_TEMPSENSOR, ...), 2774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must not be a value defined from parameter definition of 2775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC external channel (LL_ADC_CHANNEL_1, LL_ADC_CHANNEL_2, ...) 2776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or a value from functions where a channel number is 2777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned from ADC registers, 2778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because internal and external channels share the same channel 2779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number in ADC registers. The differentiation is made only with 2780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters definitions of driver. 2781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_INSTANCE__ ADC instance 2782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 2783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2802: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 2803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 2804: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 2805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if the internal channel selected is available on the ADC instance selected. 2806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 2807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(STM32G474xx) || defined(STM32G484xx) || defined(STM32G473xx) || defined(STM32G483xx) 2808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 2809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 2810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 2812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 2813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 2819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 2821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 2822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ ARM GAS /tmp/cco84Mp4.s page 51 2823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 2826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 2828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC4) \ 2834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP6) || \ 2836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC5) \ 2841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP5) || \ 2843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC5) || \ 2844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP4) || \ 2845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32G471xx) 2851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 2852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 2853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 2855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 2856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 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 **** (((__ADC_INSTANCE__) == ADC2) \ 2862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 2864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 2865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 2869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 2871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32G411xB) || defined(STM32G414xx) || defined(STM32GBK1CB) || defined(STM32G431xx) 2877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 2878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 2879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ ARM GAS /tmp/cco84Mp4.s page 52 2880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 2881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 2882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 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 **** || \ 2887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 2888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 2890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 2891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #elif defined(STM32G491xx) || defined(STM32G4A1xx) || defined(STM32G411xC) 2895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE(__ADC_INSTANCE__, __CHANNEL__) \ 2896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADC_INSTANCE__) == ADC1) \ 2897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP1) || \ 2899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_TEMPSENSOR_ADC1) || \ 2900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VBAT) || \ 2901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC2) \ 2906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP2) || \ 2908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC2) \ 2909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** || \ 2912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_INSTANCE__) == ADC3) \ 2913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** &&( \ 2914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP3_ADC3) || \ 2915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VOPAMP6) || \ 2916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__CHANNEL__) == LL_ADC_CHANNEL_VREFINT) \ 2917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 2919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 2920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* STM32G4xx */ 2921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 2923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to define ADC analog watchdog parameter: 2924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * define a single channel to monitor with analog watchdog 2925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from sequencer channel and groups definition. 2926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetAnalogWDMonitChannels(). 2927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: 2928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetAnalogWDMonitChannels( 2929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC1, LL_ADC_AWD1, 2930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_ANALOGWD_CHANNEL_GROUP(LL_ADC_CHANNEL4, LL_ADC_GROUP_REGULAR)) 2931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CHANNEL__ This parameter can be one of the following values: 2932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 2933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 2934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 2935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 2936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) ARM GAS /tmp/cco84Mp4.s page 53 2937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 2938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 2939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 2940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 2941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 2942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 2943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 2944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 2945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 2946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 2947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 2948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 2949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 2950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 2951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 2952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 2953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 2954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 2955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 2956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 2957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 2958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 2959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 2960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 2961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 2962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 2964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 2965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 2966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 2967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 2968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 2969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 2970: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 2971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 2972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 2973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 2974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 2975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 2976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 2977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 2978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 2979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __GROUP__ This parameter can be one of the following values: 2980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR 2981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_INJECTED 2982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_GROUP_REGULAR_INJECTED 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_AWD_DISABLE 2985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 2986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 2987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 2988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 2989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 2990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 2991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 2992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 2993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ ARM GAS /tmp/cco84Mp4.s page 54 2994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 2995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 2996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 2997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 2998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 2999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 3000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 3001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 3002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 3003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 3004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 3005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 3006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 3007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 3008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 3009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 3010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 3011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 3012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 3013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 3014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 3015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 3016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 3017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 3018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 3019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 3020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 3021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 3022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 3023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 3024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 3025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 3026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 3027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 3028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 3029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 3030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 3031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 3032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 3033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 3034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 3035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 3036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 3037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 3038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 3039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 3040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 3041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 3042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 3043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 3044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 3045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0) 3046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0) 3047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ 3048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG (0)(1) 3049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_INJ (0)(1) 3050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG_INJ (1) ARM GAS /tmp/cco84Mp4.s page 55 3051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG (0)(5) 3052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_INJ (0)(5) 3053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG_INJ (5) 3054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(6) 3055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(6) 3056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (6) 3057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG (0)(1) 3058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_INJ (0)(1) 3059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG_INJ (1) 3060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG (0)(2) 3061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_INJ (0)(2) 3062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG_INJ (2) 3063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG (0)(2) 3064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_INJ (0)(2) 3065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG_INJ (2) 3066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG (0)(3) 3067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_INJ (0)(3) 3068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG_INJ (3) 3069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG (0)(5) 3070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_INJ (0)(5) 3071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG_INJ (5) 3072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG (0)(5) 3073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_INJ (0)(5) 3074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG_INJ (5) 3075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG (0)(4) 3076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_INJ (0)(4) 3077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG_INJ (4) 3078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1.\n 3080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 3081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 3082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 3083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 3084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 3085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 3086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 3087: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 3088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 3089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_CHANNEL_GROUP(__CHANNEL__, __GROUP__) 3091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__GROUP__) == LL_ADC_GROUP_REGULAR) 3092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 3093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : 3094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__GROUP__) == LL_ADC_GROUP_INJECTED) 3095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1SGL) 3096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : 3097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CHANNEL__) & ADC_CHANNEL_ID_MASK) | ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 3098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to set the value of ADC analog watchdog threshold high 3102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 3103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * different of 12 bits. 3104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_ConfigAnalogWDThresholds() 3105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or @ref LL_ADC_SetAnalogWDThresholds(). 3106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to set the value of 3107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog threshold high (on 8 bits): ARM GAS /tmp/cco84Mp4.s page 56 3108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetAnalogWDThresholds 3109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (< ADCx param >, 3110: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 ))) 3122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the value of ADC analog watchdog threshold high 3125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low in function of ADC resolution, when ADC resolution is 3126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * different of 12 bits. 3127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). 3128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, with a ADC resolution of 8 bits, to get the value of 3129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog threshold high (on 8 bits): 3130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * < threshold_value_6_bits > = __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION 3131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_RESOLUTION_8B, 3132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_GetAnalogWDThresholds(, LL_ADC_AWD_THRESHOLD_HIGH) 3133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ); 3134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 3135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __AWD_THRESHOLD_12_BITS__ Value between Min_Data=0x000 and Max_Data=0xFFF 3140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 3141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(__ADC_RESOLUTION__, __AWD_THRESHOLD_12_BITS__) \ 3143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__AWD_THRESHOLD_12_BITS__) >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1U ))) 3144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the ADC analog watchdog threshold high 3147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or low from raw value containing both thresholds concatenated. 3148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_GetAnalogWDThresholds(). 3149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, to get analog watchdog threshold high from the register raw value: 3150: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_ 3159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & LL_ADC_AWD_THRESHOLD_LOW) 3160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to set the ADC calibration value with both single ended 3163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential modes calibration factors concatenated. 3164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To be used with function @ref LL_ADC_SetCalibrationFactor(). ARM GAS /tmp/cco84Mp4.s page 57 3165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example, to set calibration factors single ended to 0x55 3166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential ended to 0x2A: 3167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_SetCalibrationFactor( 3168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC1, 3169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(0x55, 0x2A)) 3170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CALIB_FACTOR_SINGLE_ENDED__ Value between Min_Data=0x00 and Max_Data=0x7F 3171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __CALIB_FACTOR_DIFFERENTIAL__ Value between Min_Data=0x00 and Max_Data=0x7F 3172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 3173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(__CALIB_FACTOR_SINGLE_ENDED__, __CALIB_FACTOR_DIFFERENTIA 3175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__CALIB_FACTOR_DIFFERENTIAL__) << ADC_CALFACT_CALFACT_D_Pos) | (__CALIB_FACTOR_SINGLE_ENDED__) 3176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 3178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to get the ADC multimode conversion data of ADC master 3180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or ADC slave from raw value with both ADC conversion data concatenated. 3181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This macro is intended to be used when multimode transfer by DMA 3182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled: refer to function @ref LL_ADC_SetMultiDMATransfer(). 3183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In this case the transferred data need to processed with this macro 3184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to separate the conversion data of ADC master and ADC slave. 3185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_MULTI_MASTER_SLAVE__ This parameter can be one of the following values: 3186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 3187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 3188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_MULTI_CONV_DATA__ Value between Min_Data=0x000 and Max_Data=0xFFF 3189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 3190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3191: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__) 3192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADC_MULTI_CONV_DATA__) >> ((ADC_CDR_RDATA_SLV_Pos) & ~(__ADC_MULTI_MASTER_SLAVE__))) & ADC_C 3193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 3194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 3196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to select, from a ADC instance, to which ADC instance 3198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * it has a dependence in multimode (ADC master of the corresponding 3199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC common instance). 3200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of device with multimode available and a mix of 3201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instances compliant and not compliant with multimode feature, 3202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instances not compliant with multimode feature are 3203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * considered as master instances (do not depend to 3204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * any other ADC instance). 3205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCx__ ADC instance 3206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval __ADCx__ ADC instance master of the corresponding ADC common instance 3207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC5) 3209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_MULTI_INSTANCE_MASTER(__ADCx__) \ 3210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC2) \ 3211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 3212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC1) \ 3213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC4) \ 3215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 3216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC3) \ 3217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADCx__) \ 3219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else ARM GAS /tmp/cco84Mp4.s page 58 3222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_MULTI_INSTANCE_MASTER(__ADCx__) \ 3223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( ( ((__ADCx__) == ADC2) \ 3224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** )? \ 3225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC1) \ 3226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADCx__) \ 3228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC5 */ 3230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 3231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to select the ADC common instance 3234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to which is belonging the selected ADC instance. 3235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC common register instance can be used for: 3236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Set parameters common to several ADC instances 3237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Multimode (for devices with several ADC instances) 3238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 3239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCx__ ADC instance 3240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC common register instance 3241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC345_COMMON) 3243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) \ 3244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((__ADCx__) == ADC1) || ((__ADCx__) == ADC2)) \ 3245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 3246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC12_COMMON) \ 3247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 3250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC345_COMMON) \ 3251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 3254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_COMMON_INSTANCE(__ADCx__) (ADC12_COMMON) 3255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC345_COMMON */ 3256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to check if all ADC instances sharing the same 3258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC common instance are disabled. 3259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This check is required by functions with setting conditioned to 3260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 3262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to functions having argument "ADCxy_COMMON" as parameter. 3263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On devices with only 1 ADC common instance, parameter of this macro 3264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is useless and can be ignored (parameter kept for compatibility 3265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with devices featuring several ADC common instances). 3266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADCXY_COMMON__ ADC common instance 3267: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 3268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if all ADC instances sharing the same ADC common instance 3269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are disabled. 3270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if at least one ADC instance sharing the same ADC common instance 3271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled. 3272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC345_COMMON) 3274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC4) && defined(ADC5) 3275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 3276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADCXY_COMMON__) == ADC12_COMMON) \ 3277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 3278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | \ ARM GAS /tmp/cco84Mp4.s page 59 3279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC2) ) \ 3280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ( \ 3283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC3) | \ 3284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC4) | \ 3285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC5) ) \ 3286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 3289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 3290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__ADCXY_COMMON__) == ADC12_COMMON) \ 3291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ? ( \ 3292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | \ 3293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_IsEnabled(ADC2) ) \ 3294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC3)) \ 3297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC4 && ADC5 */ 3299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 3300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \ 3301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (LL_ADC_IsEnabled(ADC1) | LL_ADC_IsEnabled(ADC2)) 3302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC345_COMMON */ 3303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to define the ADC conversion data full-scale digital 3306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * value corresponding to the selected ADC resolution. 3307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC conversion data full-scale corresponds to voltage range 3308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * determined by analog voltage references Vref+ and Vref- 3309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (refer to reference manual). 3310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 3311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data full-scale digital value (unit: digital value of ADC conversion dat 3316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 3318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (0xFFFUL >> ((__ADC_RESOLUTION__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) 3319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to convert the ADC conversion data from 3322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a resolution to another resolution. 3323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __DATA__ ADC conversion data to be converted 3324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION_CURRENT__ Resolution of the data to be converted 3325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 3326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION_TARGET__ Resolution of the data after conversion 3331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 3332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B ARM GAS /tmp/cco84Mp4.s page 60 3336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data to the requested resolution 3337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CONVERT_DATA_RESOLUTION(__DATA__,\ 3339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION_CURRENT__,\ 3340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION_TARGET__) \ 3341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((__DATA__) \ 3342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << ((__ADC_RESOLUTION_CURRENT__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL))) \ 3343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ((__ADC_RESOLUTION_TARGET__) >> (ADC_CFGR_RES_BITOFFSET_POS - 1UL)) \ 3344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the voltage (unit: mVolt) 3348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponding to a ADC conversion data (unit: digital value). 3349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 3350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 3351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 3352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 3353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_DATA__ ADC conversion data (resolution 12 bits) 3354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: digital value). 3355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 3356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data equivalent voltage value (unit: mVolt) 3361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_DATA_TO_VOLTAGE(__VREFANALOG_VOLTAGE__,\ 3363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_DATA__,\ 3364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 3365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((__ADC_DATA__) * (__VREFANALOG_VOLTAGE__) \ 3366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__) \ 3367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the voltage (unit: mVolt) 3371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponding to a ADC conversion data (unit: digital value) in 3372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * differential ended mode. 3373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC data from ADC data register is unsigned and centered around 3374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * middle code in. Converted voltage can be positive or negative 3375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depending on differential input voltages. 3376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 3377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 3378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 3379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 3380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_DATA__ ADC conversion data (unit: digital value). 3381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 3382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC conversion data equivalent voltage value (unit: mVolt) 3387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_DIFF_DATA_TO_VOLTAGE(__VREFANALOG_VOLTAGE__,\ 3389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_DATA__,\ 3390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__)\ 3391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((int32_t)((__ADC_DATA__) << 1U) * (int32_t)(__VREFANALOG_VOLTAGE__)\ 3392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / (int32_t)(__LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__))\ ARM GAS /tmp/cco84Mp4.s page 61 3393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** - (int32_t)(__VREFANALOG_VOLTAGE__)) 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 Helper macro to calculate analog reference voltage (Vref+) 3397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: mVolt) from ADC conversion data of internal voltage 3398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * reference VrefInt. 3399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using VrefInt calibration value 3400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * stored in system memory for each device during production. 3401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This voltage depends on user board environment: voltage level 3402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * connected to pin Vref+. 3403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On devices with small package, the pin Vref+ is not present 3404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and internally bonded to pin Vdda. 3405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, calibration data of internal voltage reference 3406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * VrefInt corresponds to a resolution of 12 bits, 3407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 3408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal voltage reference VrefInt. 3409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 3410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion data to 12 bits. 3411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFINT_ADC_DATA__ ADC conversion data (resolution 12 bits) 3412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of internal voltage reference VrefInt (unit: digital value). 3413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ This parameter can be one of the following values: 3414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Analog reference voltage (unit: mV) 3419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_VREFANALOG_VOLTAGE(__VREFINT_ADC_DATA__,\ 3421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 3422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((uint32_t)(*VREFINT_CAL_ADDR) * VREFINT_CAL_VREF) \ 3423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ 3424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 3425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_RESOLUTION_12B) \ 3426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 3430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 3431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using temperature sensor calibration values 3432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * stored in system memory for each device during production. 3433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calculation formula: 3434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Temperature = ((TS_ADC_DATA - TS_CAL1) 3435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * * (TS_CAL2_TEMP - TS_CAL1_TEMP)) 3436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / (TS_CAL2 - TS_CAL1) + TS_CAL1_TEMP 3437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 3438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Avg_Slope = (TS_CAL2 - TS_CAL1) 3439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / (TS_CAL2_TEMP - TS_CAL1_TEMP) 3440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_CAL1 = equivalent TS_ADC_DATA at temperature 3441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TEMP_DEGC_CAL1 (calibrated in factory) 3442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_CAL2 = equivalent TS_ADC_DATA at temperature 3443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TEMP_DEGC_CAL2 (calibrated in factory) 3444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Caution: Calculation relevancy under reserve that calibration 3445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameters are correct (address and data). 3446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * To calculate temperature using temperature sensor 3447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * datasheet typical values (generic values less, therefore 3448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * less accurate than calibrated values), 3449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). ARM GAS /tmp/cco84Mp4.s page 62 3450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 3451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 3452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 3453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 3454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 3455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, calibration data of temperature sensor 3456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * corresponds to a resolution of 12 bits, 3457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * this is the recommended ADC resolution to convert voltage of 3458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor. 3459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Otherwise, this macro performs the processing to scale 3460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion data to 12 bits. 3461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog reference voltage (unit: mV) 3462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal 3463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor (unit: digital value). 3464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature 3465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sensor voltage has been measured. 3466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 3467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 3472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In case or error, value LL_ADC_TEMPERATURE_CALC_ERROR is returned (inconsistent tempera 3473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE(__VREFANALOG_VOLTAGE__,\ 3475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 3476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__)\ 3477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) != 0) ? \ 3478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((( ((int32_t)((__LL_ADC_CONVERT_DATA_RESOLUTION((__TEMPSENSOR_ADC_DATA__), \ 3479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (__ADC_RESOLUTION__), \ 3480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** LL_ADC_RESOLUTION_12B) \ 3481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (__VREFANALOG_VOLTAGE__)) \ 3482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / TEMPSENSOR_CAL_VREFANALOG) \ 3483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ 3484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ 3485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ 3486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) + TEMPSENSOR_CAL1_TEMP \ 3487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** : \ 3489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((int32_t)LL_ADC_TEMPERATURE_CALC_ERROR) \ 3490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Helper macro to calculate the temperature (unit: degree Celsius) 3494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC conversion data of internal temperature sensor. 3495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Computation is using temperature sensor typical values 3496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (refer to device datasheet). 3497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calculation formula: 3498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Temperature = (TS_TYP_CALx_VOLT(uV) - TS_ADC_DATA * Conversion_uV) 3499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * / Avg_Slope + CALx_TEMP 3500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with TS_ADC_DATA = temperature sensor raw data measured by ADC 3501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: digital value) 3502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Avg_Slope = temperature sensor slope 3503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: uV/Degree Celsius) 3504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_TYP_CALx_VOLT = temperature sensor digital value at 3505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature CALx_TEMP (unit: mV) 3506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Caution: Calculation relevancy under reserve the temperature sensor ARM GAS /tmp/cco84Mp4.s page 63 3507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of the current device has characteristics in line with 3508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * datasheet typical values. 3509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If temperature sensor calibration values are available on 3510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on this device (presence of macro __LL_ADC_CALC_TEMPERATURE()), 3511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature calculation will be more accurate using 3512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CALC_TEMPERATURE(). 3513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note As calculation input, the analog reference voltage (Vref+) must be 3514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined as it impacts the ADC LSB equivalent voltage. 3515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Analog reference voltage (Vref+) must be either known from 3516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * user board environment or can be calculated using ADC measurement 3517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE(). 3518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC measurement data must correspond to a resolution of 12 bits 3519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (full scale digital value 4095). If not the case, the data must be 3520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * preliminarily rescaled to an equivalent resolution of 12 bits. 3521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_AVGSLOPE__ Device datasheet data: Temperature sensor slope typical v 3522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (unit: uV/DegCelsius). 3523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On STM32G4, refer to device datasheet parameter "Avg_Slop 3524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_TYP_CALX_V__ Device datasheet data: Temperature sensor voltage typical 3525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (at temperature and Vref+ defined in parameters below) (u 3526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On STM32G4, refer to datasheet parameter "V30" (correspon 3527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_CALX_TEMP__ Device datasheet data: Temperature at which temperature s 3528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (see parameter above) is corresponding (unit: mV) 3529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __VREFANALOG_VOLTAGE__ Analog voltage reference (Vref+) value (unit: mV) 3530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __TEMPSENSOR_ADC_DATA__ ADC conversion data of internal temperature sensor (unit: 3531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param __ADC_RESOLUTION__ ADC resolution at which internal temperature sensor volta 3532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This parameter can be one of the following values: 3533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Temperature (unit: degree Celsius) 3538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #define __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(__TEMPSENSOR_TYP_AVGSLOPE__,\ 3540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_TYP_CALX_V__,\ 3541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_CALX_TEMP__,\ 3542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __VREFANALOG_VOLTAGE__,\ 3543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __TEMPSENSOR_ADC_DATA__,\ 3544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __ADC_RESOLUTION__) \ 3545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((((int32_t)((((__TEMPSENSOR_ADC_DATA__) * (__VREFANALOG_VOLTAGE__)) \ 3546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** / __LL_ADC_DIGITAL_SCALE(__ADC_RESOLUTION__)) \ 3547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1000UL) \ 3548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** - \ 3549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (int32_t)(((__TEMPSENSOR_TYP_CALX_V__)) \ 3550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1000UL) \ 3551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) \ 3552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) / (int32_t)(__TEMPSENSOR_TYP_AVGSLOPE__) \ 3553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) + (int32_t)(__TEMPSENSOR_CALX_TEMP__) \ 3554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 3555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 3558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 3562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 64 3564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Exported functions --------------------------------------------------------*/ 3566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_Exported_Functions ADC Exported Functions 3567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 3568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_DMA_Management ADC DMA management 3571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 3572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: LL ADC functions to set DMA transfer are located into sections of */ 3574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* configuration of ADC instance, groups and multimode (if available): */ 3575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* @ref LL_ADC_REG_SetDMATransfer(), ... */ 3576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Function to help to configure DMA transfer from ADC: retrieve the 3579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC register address from ADC instance and a list of ADC registers 3580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * intended to be used (most commonly) with DMA transfer. 3581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note These ADC registers are data registers: 3582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when ADC conversion data is available in ADC data registers, 3583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC generates a DMA transfer request. 3584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This macro is intended to be used with LL DMA driver, refer to 3585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_DMA_ConfigAddresses()". 3586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: 3587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_ConfigAddresses(DMA1, 3588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_CHANNEL_1, 3589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_DMA_GetRegAddr(ADC1, LL_ADC_DMA_REG_REGULAR_DATA), 3590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (uint32_t)&< array or variable >, 3591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_DMA_DIRECTION_PERIPH_TO_MEMORY); 3592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC: in multimode, some devices 3593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use a different data register outside of ADC instance scope 3594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (common data register). This macro manages this register difference, 3595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * only ADC instance has to be set as parameter. 3596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_DMA_GetRegAddr\n 3597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_MST LL_ADC_DMA_GetRegAddr\n 3598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_DMA_GetRegAddr 3599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Register This parameter can be one of the following values: 3601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA 3602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DMA_REG_REGULAR_DATA_MULTI (1) 3603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 3604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Available on devices with several ADC instances. 3605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval ADC register address 3606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 3608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) 3609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t data_reg_addr; 3611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (Register == LL_ADC_DMA_REG_REGULAR_DATA) 3613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register DR */ 3615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data_reg_addr = (uint32_t) &(ADCx->DR); 3616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else /* (Register == LL_ADC_DMA_REG_REGULAR_DATA_MULTI) */ 3618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register CDR */ 3620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** data_reg_addr = (uint32_t) &((__LL_ADC_COMMON_INSTANCE(ADCx))->CDR); ARM GAS /tmp/cco84Mp4.s page 65 3621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return data_reg_addr; 3624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #else 3626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_DMA_GetRegAddr(const ADC_TypeDef *ADCx, uint32_t Register) 3627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 3629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(Register); 3630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve address of register DR */ 3632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) &(ADCx->DR); 3633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 3635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 3638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Common Configuration of ADC hierarchical scope: common to 3641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instances 3642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 3643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: Clock source and prescaler. 3647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, if ADC group injected is used, some 3648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * clock ratio constraints between ADC clock and AHB clock 3649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * must be respected. 3650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 3651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 3654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 3655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 3656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 3657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_SetCommonClock\n 3658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR PRESC LL_ADC_SetCommonClock 3659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3660: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 3661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param CommonClock This parameter can be one of the following values: 3662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 3663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 3664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 3665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 3666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 3667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 3668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 3669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 3670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 3671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 3672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 3673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 3674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 3675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 3676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 3677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None ARM GAS /tmp/cco84Mp4.s page 66 3678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock) 3680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock); 3682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get parameter common to several ADC: Clock source and prescaler. 3686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR CKMODE LL_ADC_GetCommonClock\n 3687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR PRESC LL_ADC_GetCommonClock 3688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3689: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 3690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV1 3692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV2 3693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_SYNC_PCLK_DIV4 3694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV1 3695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV2 3696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV4 3697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV6 3698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV8 3699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV10 3700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV12 3701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV16 3702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV32 3703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV64 3704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128 3705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256 3706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonClock(const ADC_Common_TypeDef *ADCxy_COMMON) 3708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC)); 3710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 3714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 3715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Configure all paths (overwrite current configuration). 3716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 3717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 3718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 3719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The values not selected are removed from configuration. 3720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 3721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, 3722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay is required for internal voltage reference and 3723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor stabilization time. 3724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 3725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 3726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literals @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US, 3727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_DELAY_TEMPSENSOR_BUFFER_STAB_US. 3728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: 3729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For ADC conversion of internal channels, 3730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a sampling time minimum value is required. 3731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 3732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalCh\n 3733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalCh\n 3734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalCh ARM GAS /tmp/cco84Mp4.s page 67 3735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3736: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 3737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 3738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 3739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 3740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 3741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 3742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Path 3745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_VSENSESEL | ADC_CCR_VBATSEL, PathInternal) 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 3751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 3752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Add paths to the current configuration. 3753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 3754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 3755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 3756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Stabilization time of measurement path to internal channel: 3757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * After enabling internal paths, before starting ADC conversion, 3758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay is required for internal voltage reference and 3759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor stabilization time. 3760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 3761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_VREFINT_STAB_US. 3762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literals @ref LL_ADC_DELAY_TEMPSENSOR_STAB_US, 3763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_DELAY_TEMPSENSOR_BUFFER_STAB_US. 3764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note ADC internal channel sampling time constraint: 3765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For ADC conversion of internal channels, 3766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a sampling time minimum value is required. 3767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 3768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChAdd\n 3769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalChAdd\n 3770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalChAdd 3771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3772: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 3773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 3774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 3775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 3776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 3777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 3778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChAdd(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 3781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCxy_COMMON->CCR, PathInternal); 3783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set parameter common to several ADC: measurement path to 3787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal channels (VrefInt, temperature sensor, ...). 3788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Remove paths to the current configuration. 3789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 3790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 3791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) ARM GAS /tmp/cco84Mp4.s page 68 3792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_SetCommonPathInternalChRem\n 3793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_SetCommonPathInternalChRem\n 3794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_SetCommonPathInternalChRem 3795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3796: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 3797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param PathInternal This parameter can be a combination of the following values: 3798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 3799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 3800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 3801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 3802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCommonPathInternalChRem(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t P 3805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCxy_COMMON->CCR, PathInternal); 3807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 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 **** * @brief Get parameter common to several ADC: measurement path to internal 3811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channels (VrefInt, temperature sensor, ...). 3812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 3813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_PATH_INTERNAL_VREFINT | 3814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_PATH_INTERNAL_TEMPSENSOR) 3815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR VREFEN LL_ADC_GetCommonPathInternalCh\n 3816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VSENSESEL LL_ADC_GetCommonPathInternalCh\n 3817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR VBATSEL LL_ADC_GetCommonPathInternalCh 3818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 3819: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 3820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be a combination of the following values: 3821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_NONE 3822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT 3823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR 3824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_PATH_INTERNAL_VBAT 3825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(const ADC_Common_TypeDef *ADCxy_COMMON) 3827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3828: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 3829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 3833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Instance Configuration of ADC hierarchical scope: ADC ins 3836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 3837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC calibration factor in the mode single-ended 3841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 3842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is intended to set calibration parameters 3843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without having to perform a new calibration using 3844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_StartCalibration(). 3845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 3846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 3847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 3848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (calibration factor must be specified for each of these ARM GAS /tmp/cco84Mp4.s page 69 3849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * differential modes, if used afterwards and if the application 3850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * requires their calibration). 3851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of setting calibration factors of both modes single ended 3852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and differential (parameter LL_ADC_BOTH_SINGLE_DIFF_ENDED): 3853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * both calibration factors must be concatenated. 3854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * To perform this processing, use helper macro 3855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CALIB_FACTOR_SINGLE_DIFF(). 3856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled, without calibration on going, without conversion 3859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on group regular. 3860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_SetCalibrationFactor\n 3861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_SetCalibrationFactor 3862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 3864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 3865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 3866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_BOTH_SINGLE_DIFF_ENDED 3867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param CalibrationFactor Value between Min_Data=0x00 and Max_Data=0x7F 3868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetCalibrationFactor(ADC_TypeDef *ADCx, uint32_t SingleDiff, uint32_t C 3871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CALFACT, 3873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK, 3874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CalibrationFactor << (((SingleDiff & ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK) 3875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4) 3876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & ~(SingleDiff & ADC_CALFACT_CALFACT_S))); 3877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC calibration factor in the mode single-ended 3881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 3882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Calibration factors are set by hardware after performing 3883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a calibration run using function @ref LL_ADC_StartCalibration(). 3884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 3885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 3886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 3887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CALFACT CALFACT_S LL_ADC_GetCalibrationFactor\n 3888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CALFACT CALFACT_D LL_ADC_GetCalibrationFactor 3889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 3891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 3892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 3893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x7F 3894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetCalibrationFactor(const ADC_TypeDef *ADCx, uint32_t SingleDiff) 3896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Retrieve bits with position in register depending on parameter */ 3898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "SingleDiff". */ 3899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameter used with mask "ADC_SINGLEDIFF_CALIB_FACTOR_MASK" because */ 3900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 3901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CALFACT, 3902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (SingleDiff & ADC_SINGLEDIFF_CALIB_FACTOR_MASK)) 3903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ((SingleDiff & ADC_SINGLEDIFF_CALIB_F_BIT_D_MASK) >> 3904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SINGLEDIFF_CALIB_F_BIT_D_SHIFT4)); 3905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 70 3906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC resolution. 3909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual for alignments formats 3910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 3911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_SetResolution 3916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Resolution This parameter can be one of the following values: 3918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetResolution(ADC_TypeDef *ADCx, uint32_t Resolution) 3925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_RES, Resolution); 3927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC resolution. 3931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual for alignments formats 3932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 3933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR RES LL_ADC_GetResolution 3934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_12B 3937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_10B 3938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_8B 3939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_RESOLUTION_6B 3940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetResolution(const ADC_TypeDef *ADCx) 3942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_RES)); 3944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC conversion data alignment. 3948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to reference manual for alignments formats 3949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 3950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 3951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 3952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 3953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 3954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR ALIGN LL_ADC_SetDataAlignment 3955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param DataAlignment This parameter can be one of the following values: 3957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_RIGHT 3958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_LEFT 3959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 3960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetDataAlignment(ADC_TypeDef *ADCx, uint32_t DataAlignment) 3962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { ARM GAS /tmp/cco84Mp4.s page 71 3963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_ALIGN, DataAlignment); 3964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC conversion data alignment. 3968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to reference manual for alignments formats 3969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * dependencies to ADC resolutions. 3970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR ALIGN LL_ADC_GetDataAlignment 3971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 3972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 3973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_RIGHT 3974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DATA_ALIGN_LEFT 3975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 3976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetDataAlignment(const ADC_TypeDef *ADCx) 3977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_ALIGN)); 3979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 3982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC low power mode. 3983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC low power modes: 3984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, 3985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary 3986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in order to reduce power consumption. 3987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * New ADC conversion starts only when the previous 3988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 3989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 3990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * has been retrieved by user software. 3991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 3992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other conversion. 3993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 3994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 3995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 3996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * applications. 3997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * How to use this low power mode: 3998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 3999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 4000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 4001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 4002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU 4003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). 4004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 4005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 4006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversion to ensure that conversion is completed and 4007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 4008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 4009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 4010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 4011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of delay during which ADC was idle. 4012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 4013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * correspond to the current voltage level on the selected 4014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 4015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_SetLowPowerMode ARM GAS /tmp/cco84Mp4.s page 72 4020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param LowPowerMode This parameter can be one of the following values: 4022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 4023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 4024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetLowPowerMode(ADC_TypeDef *ADCx, uint32_t LowPowerMode) 4027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_AUTDLY, LowPowerMode); 4029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC low power mode: 4033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC low power modes: 4034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC low power mode "auto wait": Dynamic low power mode, 4035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions occurrences are limited to the minimum necessary 4036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in order to reduce power consumption. 4037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * New ADC conversion starts only when the previous 4038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * unitary conversion data (for ADC group regular) 4039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or previous sequence conversions data (for ADC group injected) 4040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * has been retrieved by user software. 4041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In the meantime, ADC remains idle: does not performs any 4042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other conversion. 4043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This mode allows to automatically adapt the ADC conversions 4044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * triggers to the speed of the software that reads the data. 4045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Moreover, this avoids risk of overrun for low frequency 4046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * applications. 4047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * How to use this low power mode: 4048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - It is not recommended to use with interruption or DMA 4049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * since these modes have to clear immediately the EOC flag 4050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (by CPU to free the IRQ pending event or by DMA). 4051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Auto wait will work but fort a very short time, discarding 4052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * its intended benefit (except specific case of high load of CPU 4053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or DMA transfers which can justify usage of auto wait). 4054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Do use with polling: 1. Start conversion, 4055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 2. Later on, when conversion data is needed: poll for end of 4056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversion to ensure that conversion is completed and 4057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * retrieve ADC conversion data. This will trig another 4058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 4059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note With ADC low power mode "auto wait", the ADC conversion data read 4060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is corresponding to previous ADC conversion start, independently 4061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of delay during which ADC was idle. 4062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, the ADC conversion data may be outdated: does not 4063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * correspond to the current voltage level on the selected 4064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 4065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AUTDLY LL_ADC_GetLowPowerMode 4066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_MODE_NONE 4069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_LP_AUTOWAIT 4070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetLowPowerMode(const ADC_TypeDef *ADCx) 4072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_AUTDLY)); 4074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/cco84Mp4.s page 73 4077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC selected offset instance 1, 2, 3 or 4. 4078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the 2 items of offset configuration: 4079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC channel to which the offset programmed will be applied 4080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 4081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or group injected) 4082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Offset level (offset to be subtracted from the raw 4083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted data). 4084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 4085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset has to be left-aligned on bit 11, the LSB (right bits) 4086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are set to 0. 4087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function enables the offset, by default. It can be forced 4088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to disable state using function LL_ADC_SetOffsetState(). 4089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If a channel is mapped on several offsets numbers, only the offset 4090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with the lowest value is considered for the subtraction. 4091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 4096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 4097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_SetOffset\n 4098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR1 OFFSET1 LL_ADC_SetOffset\n 4099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR1 OFFSET1_EN LL_ADC_SetOffset\n 4100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_SetOffset\n 4101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_SetOffset\n 4102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffset\n 4103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_SetOffset\n 4104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_SetOffset\n 4105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffset\n 4106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_SetOffset\n 4107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_SetOffset\n 4108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffset 4109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 ARM GAS /tmp/cco84Mp4.s page 74 4134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 4145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 4148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4154: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 4155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 4156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 4157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 4158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 4160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0xFFF 4161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4163: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 4164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 4168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 4169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel); 4170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset instance 1, 2, 3 or 4: 4174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channel to which the offset programmed will be applied 4175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (independently of channel mapped on ADC group regular 4176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or group injected) 4177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 4178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 4179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 4180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 4181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 4182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 4184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 4185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 4186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 4187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 4188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 4189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 4190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_CH LL_ADC_GetOffsetChannel\n ARM GAS /tmp/cco84Mp4.s page 75 4191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_CH LL_ADC_GetOffsetChannel\n 4192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_CH LL_ADC_GetOffsetChannel\n 4193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_CH LL_ADC_GetOffsetChannel 4194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 4204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 4205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 4206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 4207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 4208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 4209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 4210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 4211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 4212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 4213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 4214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 4215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 4216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 4217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 4218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 4219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 4220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 4221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 4222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 4223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 4224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 4225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 4226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 4227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 4228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 4229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 4230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 4231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 4233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 4234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 4235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 4236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 4237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 4238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 4239: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 4240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 4241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 4242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 4243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 4244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 4245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 4246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 4247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). ARM GAS /tmp/cco84Mp4.s page 76 4248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetChannel(const ADC_TypeDef *ADCx, uint32_t Offsety) 4250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_CH); 4254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset instance 1, 2, 3 or 4: 4258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Offset level (offset to be subtracted from the raw 4259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted data). 4260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Caution: Offset format is dependent to ADC resolution: 4261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset has to be left-aligned on bit 11, the LSB (right bits) 4262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are set to 0. 4263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1 LL_ADC_GetOffsetLevel\n 4264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2 LL_ADC_GetOffsetLevel\n 4265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3 LL_ADC_GetOffsetLevel\n 4266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4 LL_ADC_GetOffsetLevel 4267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 4274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetLevel(const ADC_TypeDef *ADCx, uint32_t Offsety) 4276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1); 4280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset instance 1, 2, 3 or 4: 4284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * force offset state disable or enable 4285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without modifying offset channel or offset value. 4286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function should be needed only in case of offset to be 4287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled-disabled dynamically, and should not be needed in other cases: 4288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function LL_ADC_SetOffset() automatically enables the offset. 4289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_SetOffsetState\n 4294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_SetOffsetState\n 4295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_SetOffsetState\n 4296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_SetOffsetState 4297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetState This parameter can be one of the following values: 4304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE ARM GAS /tmp/cco84Mp4.s page 77 4305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 4306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetState(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetStat 4309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 4313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 4314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetState); 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset instance 1, 2, 3 or 4: 4319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset state disabled or enabled. 4320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSET1_EN LL_ADC_GetOffsetState\n 4321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSET2_EN LL_ADC_GetOffsetState\n 4322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSET3_EN LL_ADC_GetOffsetState\n 4323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSET4_EN LL_ADC_GetOffsetState 4324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_DISABLE 4332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_ENABLE 4333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetState(const ADC_TypeDef *ADCx, uint32_t Offsety) 4335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSET1_EN); 4339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset instance 1, 2, 3 or 4: 4343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * choose offset sign. 4344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_SetOffsetSign\n 4349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_SetOffsetSign\n 4350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_SetOffsetSign\n 4351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_SetOffsetSign 4352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetSign This parameter can be one of the following values: 4359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 4360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 4361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None ARM GAS /tmp/cco84Mp4.s page 78 4362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSign(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSign) 4364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 4368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 4369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetSign); 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 **** * @brief Get for the ADC selected offset instance 1, 2, 3 or 4: 4374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset sign if positive or negative. 4375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 OFFSETPOS LL_ADC_GetOffsetSign\n 4376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 OFFSETPOS LL_ADC_GetOffsetSign\n 4377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 OFFSETPOS LL_ADC_GetOffsetSign\n 4378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 OFFSETPOS LL_ADC_GetOffsetSign 4379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_NEGATIVE 4387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SIGN_POSITIVE 4388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSign(const ADC_TypeDef *ADCx, uint32_t Offsety) 4390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_OFFSETPOS); 4394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set for the ADC selected offset instance 1, 2, 3 or 4: 4398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * choose offset saturation mode. 4399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_SetOffsetSaturation\n 4404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 SATEN LL_ADC_SetOffsetSaturation\n 4405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 SATEN LL_ADC_SetOffsetSaturation\n 4406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 SATEN LL_ADC_SetOffsetSaturation 4407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OffsetSaturation This parameter can be one of the following values: 4414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 4415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 4416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOffsetSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Offse ARM GAS /tmp/cco84Mp4.s page 79 4419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 4423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 4424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** OffsetSaturation); 4425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get for the ADC selected offset instance 1, 2, 3 or 4: 4429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * offset saturation if enabled or disabled. 4430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll OFR1 SATEN LL_ADC_GetOffsetSaturation\n 4431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR2 SATEN LL_ADC_GetOffsetSaturation\n 4432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR3 SATEN LL_ADC_GetOffsetSaturation\n 4433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * OFR4 SATEN LL_ADC_GetOffsetSaturation 4434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Offsety This parameter can be one of the following values: 4436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_1 4437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_2 4438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_3 4439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_4 4440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_ENABLE 4442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OFFSET_SATURATION_DISABLE 4443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOffsetSaturation(const ADC_TypeDef *ADCx, uint32_t Offsety) 4445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety); 4447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t) READ_BIT(*preg, ADC_OFR1_SATEN); 4449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC gain compensation. 4453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the gain compensation coefficient 4454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * that is applied to raw converted data using the formula: 4455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DATA = DATA(raw) * (gain compensation coef) / 4096 4456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function enables the gain compensation if given 4457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coefficient is above 0, otherwise it disables it. 4458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Gain compensation when enabled is applied to all channels. 4459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll GCOMP GCOMPCOEFF LL_ADC_SetGainCompensation\n 4464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 GCOMP LL_ADC_SetGainCompensation 4465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param GainCompensation This parameter can be: 4467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 0 Gain compensation will be disabled and value set to 0 4468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 -> 16393 Gain compensation will be enabled with specified value 4469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetGainCompensation(ADC_TypeDef *ADCx, uint32_t GainCompensation) 4472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->GCOMP, ADC_GCOMP_GCOMPCOEFF, GainCompensation); 4474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_GCOMP, ((GainCompensation == 0UL) ? 0UL : 1UL) << ADC_CFGR2_GCO 4475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 80 4476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the ADC gain compensation value 4479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll GCOMP GCOMPCOEFF LL_ADC_GetGainCompensation\n 4480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 GCOMP LL_ADC_GetGainCompensation 4481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be: 4483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 0 Gain compensation is disabled 4484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 -> 16393 Gain compensation is enabled with returned value 4485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetGainCompensation(const ADC_TypeDef *ADCx) 4487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CFGR2, ADC_CFGR2_GCOMP) == ADC_CFGR2_GCOMP) ? 4489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** READ_BIT(ADCx->GCOMP, ADC_GCOMP_GCOMPCOEFF) : 0UL); 4490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_SMPR1_SMPPLUS) 4493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC sampling time common configuration impacting 4495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings of sampling time channel wise. 4496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 4500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMPPLUS LL_ADC_SetSamplingTimeCommonConfig 4501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingTimeCommonConfig This parameter can be one of the following values: 4503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_DEFAULT 4504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 4505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetSamplingTimeCommonConfig(ADC_TypeDef *ADCx, uint32_t SamplingTimeCom 4508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->SMPR1, ADC_SMPR1_SMPPLUS, SamplingTimeCommonConfig); 4510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC sampling time common configuration impacting 4514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings of sampling time channel wise. 4515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMPPLUS LL_ADC_GetSamplingTimeCommonConfig 4516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_DEFAULT 4519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5 4520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetSamplingTimeCommonConfig(const ADC_TypeDef *ADCx) 4522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->SMPR1, ADC_SMPR1_SMPPLUS)); 4524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_SMPR1_SMPPLUS */ 4526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 4529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Regular Configuration of ADC hierarchical scope: gr 4532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ ARM GAS /tmp/cco84Mp4.s page 81 4533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger source: 4537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 4539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 4540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * also set trigger polarity to rising edge 4541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 4542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * STM32 series having this setting set by HW default value). 4543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In case of need to modify trigger edge, use 4544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function @ref LL_ADC_REG_SetTriggerEdge(). 4545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 4547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_SetTriggerSource\n 4552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_SetTriggerSource 4553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 4555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 4556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 4557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 4558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 (1) 4559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 (1) 4560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 4561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 4562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH1 (2) 4563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 (1) 4564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 (2) 4565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 4566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 (2) 4567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 (1) 4568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 4569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH1 (2) 4570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 (1) 4571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 4572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM7_TRGO 4573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 4574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 4575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 (2) 4576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 4577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO 4578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO2 4579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH1 4580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH2 (1) 4581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH3 (1) 4582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 4583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG2 (2) 4584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 4585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG4 (2) 4586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG5 4587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG6 4588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG7 4589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG8 ARM GAS /tmp/cco84Mp4.s page 82 4590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG9 4591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG10 4592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (1) 4593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE2 (2) 4594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM_OUT 4595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 4597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 4598: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 4599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 4600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 4603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN | ADC_CFGR_EXTSEL, TriggerSource); 4605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source: 4609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 4610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 4611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To determine whether group regular trigger source is 4612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or external, without detail 4613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of which peripheral is selected as external trigger, 4614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (equivalent to 4615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * "if(LL_ADC_REG_GetTriggerSource(ADC1) == LL_ADC_REG_TRIG_SOFTWARE)") 4616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_REG_IsTriggerSourceSWStart. 4617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 4618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 4619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTSEL LL_ADC_REG_GetTriggerSource\n 4620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR EXTEN LL_ADC_REG_GetTriggerSource 4621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_SOFTWARE 4624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO 4625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_TRGO2 4626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH1 (1) 4627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH2 (1) 4628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM1_CH3 4629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_TRGO 4630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH1 (2) 4631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH2 (1) 4632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM2_CH3 (2) 4633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_TRGO 4634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH1 (2) 4635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM3_CH4 (1) 4636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_TRGO 4637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH1 (2) 4638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM4_CH4 (1) 4639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM6_TRGO 4640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM7_TRGO 4641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO 4642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_TRGO2 4643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM8_CH1 (2) 4644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM15_TRGO 4645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO 4646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_TRGO2 ARM GAS /tmp/cco84Mp4.s page 83 4647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH1 4648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH2 (1) 4649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_TIM20_CH3 (1) 4650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG1 4651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG2 (2) 4652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG3 4653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG4 (2) 4654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG5 4655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG6 4656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG7 4657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG8 4658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG9 4659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_HRTIM_TRG10 4660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE11 (1) 4661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_EXTI_LINE2 (2) 4662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_LPTIM_OUT 4663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 4664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 4665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 4666: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 4667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 4668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerSource(const ADC_TypeDef *ADCx) 4670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t trigger_source = READ_BIT(ADCx->CFGR, ADC_CFGR_EXTSEL | ADC_CFGR_EXTEN); 4672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 4674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to ADC_CFGR_EXTEN {0; 1; 2; 3}. */ 4675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t shift_exten = ((trigger_source & ADC_CFGR_EXTEN) >> (ADC_REG_TRIG_EXTEN_BITOFFSET_POS - 4676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bitfield corresponding to ADC_CFGR_EXTEN and ADC_CFGR_EXTSEL */ 4678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to match with triggers literals definition. */ 4679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((trigger_source 4680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (ADC_REG_TRIG_SOURCE_MASK >> shift_exten) & ADC_CFGR_EXTSEL) 4681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_REG_TRIG_EDGE_MASK >> shift_exten) & ADC_CFGR_EXTEN) 4682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 4683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger source internal (SW start) 4687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or external. 4688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of group regular trigger source set to external trigger, 4689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 4690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_REG_GetTriggerSource(). 4691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_IsTriggerSourceSWStart 4692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 4694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if trigger source SW start. 4695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(const ADC_TypeDef *ADCx) 4697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4698: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 4699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion trigger polarity. 4703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. ARM GAS /tmp/cco84Mp4.s page 84 4704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_SetTriggerEdge 4709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 4711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 4712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 4713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 4714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 4717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_EXTEN, ExternalTriggerEdge); 4719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion trigger polarity. 4723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Applicable only for trigger source set to external trigger. 4724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR EXTEN LL_ADC_REG_GetTriggerEdge 4725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISING 4728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_FALLING 4729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_TRIG_EXT_RISINGFALLING 4730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetTriggerEdge(const ADC_TypeDef *ADCx) 4732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN)); 4734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC sampling mode. 4738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the ADC conversion sampling mode 4739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This mode applies to regular group only. 4740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Set sampling mode is applied to all conversion of regular group. 4741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 BULB LL_ADC_REG_SetSamplingMode\n 4746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 SMPTRIG LL_ADC_REG_SetSamplingMode 4747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingMode This parameter can be one of the following values: 4749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_NORMAL 4750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_BULB 4751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED 4752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSamplingMode(ADC_TypeDef *ADCx, uint32_t SamplingMode) 4755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG, SamplingMode); 4757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the ADC sampling mode ARM GAS /tmp/cco84Mp4.s page 85 4761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 BULB LL_ADC_REG_GetSamplingMode\n 4762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 SMPTRIG LL_ADC_REG_GetSamplingMode 4763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_NORMAL 4766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_BULB 4767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED 4768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSamplingMode(const ADC_TypeDef *ADCx) 4770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_BULB | ADC_CFGR2_SMPTRIG)); 4772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequencer length and scan direction. 4776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 4777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer fully configurable 4778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 4779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are configurable. 4781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function performs configuration of: 4782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 4786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 4787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer not fully configurable 4788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 4789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are defined by channel number. 4791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function performs configuration of: 4792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is 4793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined by number of channels set in the sequence, 4794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. 4795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). 4796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from lowest channel number to 4798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * highest channel number). 4799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 4800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 4801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 4803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_SetSequencerLength 4808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 4810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 4811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 4812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 4813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 4814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 4815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 4816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 4817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS ARM GAS /tmp/cco84Mp4.s page 86 4818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 4819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS 4820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 4821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 4822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 4823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 4824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 4825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 4826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 4829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->SQR1, ADC_SQR1_L, SequencerNbRanks); 4831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequencer length and scan direction. 4835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC group regular sequencer features: 4836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer fully configurable 4837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerRanks()" available): 4838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are configurable. 4840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function retrieves: 4841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 4842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 4844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 4845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerRanks()". 4846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - For devices with sequencer not fully configurable 4847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (function "LL_ADC_REG_SetSequencerChannels()" available): 4848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer length and each rank affectation to a channel 4849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are defined by channel number. 4850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function retrieves: 4851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence is 4852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * defined by number of channels set in the sequence, 4853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * rank of each channel is fixed by channel HW number. 4854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...). 4855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 4856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from lowest channel number to 4857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * highest channel number). 4858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Sequencer ranks are selected using 4859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function "LL_ADC_REG_SetSequencerChannels()". 4860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 4861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 4862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 L LL_ADC_REG_GetSequencerLength 4863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_DISABLE 4866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_2RANKS 4867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_3RANKS 4868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_4RANKS 4869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_5RANKS 4870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_6RANKS 4871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_7RANKS 4872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_8RANKS 4873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_9RANKS 4874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_10RANKS ARM GAS /tmp/cco84Mp4.s page 87 4875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_11RANKS 4876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_12RANKS 4877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_13RANKS 4878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_14RANKS 4879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_15RANKS 4880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_SCAN_ENABLE_16RANKS 4881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerLength(const ADC_TypeDef *ADCx) 4883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->SQR1, ADC_SQR1_L)); 4885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequencer discontinuous mode: 4889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 4891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 4892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 4893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC auto-injected mode 4894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and ADC group regular sequencer discontinuous mode. 4895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_SetSequencerDiscont\n 4900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_SetSequencerDiscont 4901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 4903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 4904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 4905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 4906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 4907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS 4908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS 4909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 4910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 4911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS 4912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 4913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 4915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM, SeqDiscont); 4917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequencer discontinuous mode: 4921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 4922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 4923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DISCEN LL_ADC_REG_GetSequencerDiscont\n 4924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DISCNUM LL_ADC_REG_GetSequencerDiscont 4925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 4927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_DISABLE 4928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_1RANK 4929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_2RANKS 4930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_3RANKS 4931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_4RANKS ARM GAS /tmp/cco84Mp4.s page 88 4932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_5RANKS 4933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_6RANKS 4934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_7RANKS 4935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_SEQ_DISCONT_8RANKS 4936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 4937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerDiscont(const ADC_TypeDef *ADCx) 4938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DISCEN | ADC_CFGR_DISCNUM)); 4940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 4943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular sequence: channel on the selected 4944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan sequence rank. 4945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function performs configuration of: 4946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Channels ordering into each rank of scan sequence: 4947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever channel can be placed into whatever rank. 4948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 4949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * fully configurable: sequencer length and each rank 4950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * affectation to a channel are configurable. 4951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 4952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 4953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 4954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 4955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 4956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 4957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 4958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 4959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 4960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 4961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 4962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_SetSequencerRanks\n 4963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_SetSequencerRanks\n 4964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_SetSequencerRanks\n 4965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_SetSequencerRanks\n 4966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_SetSequencerRanks\n 4967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_SetSequencerRanks\n 4968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_SetSequencerRanks\n 4969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_SetSequencerRanks\n 4970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_SetSequencerRanks\n 4971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_SetSequencerRanks\n 4972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_SetSequencerRanks\n 4973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_SetSequencerRanks\n 4974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_SetSequencerRanks\n 4975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_SetSequencerRanks\n 4976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_SetSequencerRanks\n 4977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_SetSequencerRanks 4978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 4979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 4980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 4981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 4982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 4983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 4984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 4985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 4986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 4987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 4988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 ARM GAS /tmp/cco84Mp4.s page 89 4989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 4990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 4991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 4992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 4993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 4994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 4995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 4996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 4997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 4998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 4999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5035: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 5036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 5037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 5039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 5041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5043: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 5044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 30 .loc 2 5044 1 view -0 ARM GAS /tmp/cco84Mp4.s page 90 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 5044 1 is_stmt 0 view .LVU1 36 0000 10B4 push {r4} 37 .LCFI0: 38 .cfi_def_cfa_offset 4 39 .cfi_offset 4, -4 5045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 5046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "Rank". */ 5047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 5048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 5049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, 40 .loc 2 5049 3 is_stmt 1 view .LVU2 41 .loc 2 5049 25 is_stmt 0 view .LVU3 42 0002 3030 adds r0, r0, #48 43 .LVL1: 44 .loc 2 5049 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: 5050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGO 5051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 49 .loc 2 5052 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 5052 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 5052 3 view .LVU7 60 0022 8A40 lsls r2, r2, r1 61 0024 4CEA0202 orr r2, ip, r2 62 0028 C250 str r2, [r0, r3] 5053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK), 5054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (Rank & ADC_REG_RANK_ID_SQRX_MASK)); 5056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 63 .loc 2 5056 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 ARM GAS /tmp/cco84Mp4.s page 91 78 LL_ADC_SetChannelSamplingTime: 79 .LVL5: 80 .LFB195: 5057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular sequence: channel on the selected 5060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan sequence rank. 5061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, ADC group regular sequencer is 5062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * fully configurable: sequencer length and each rank 5063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * affectation to a channel are configurable. 5064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to description of function @ref LL_ADC_REG_SetSequencerLength(). 5065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 5066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 5067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 5068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 5069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 5070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 5071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 5072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 5074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 5075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 5076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 5077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SQR1 SQ1 LL_ADC_REG_GetSequencerRanks\n 5079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ2 LL_ADC_REG_GetSequencerRanks\n 5080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ3 LL_ADC_REG_GetSequencerRanks\n 5081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR1 SQ4 LL_ADC_REG_GetSequencerRanks\n 5082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ5 LL_ADC_REG_GetSequencerRanks\n 5083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ6 LL_ADC_REG_GetSequencerRanks\n 5084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ7 LL_ADC_REG_GetSequencerRanks\n 5085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ8 LL_ADC_REG_GetSequencerRanks\n 5086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR2 SQ9 LL_ADC_REG_GetSequencerRanks\n 5087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ10 LL_ADC_REG_GetSequencerRanks\n 5088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ11 LL_ADC_REG_GetSequencerRanks\n 5089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ12 LL_ADC_REG_GetSequencerRanks\n 5090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ13 LL_ADC_REG_GetSequencerRanks\n 5091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR3 SQ14 LL_ADC_REG_GetSequencerRanks\n 5092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ15 LL_ADC_REG_GetSequencerRanks\n 5093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SQR4 SQ16 LL_ADC_REG_GetSequencerRanks 5094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 5096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_1 5097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_2 5098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_3 5099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_4 5100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_5 5101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_6 5102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_7 5103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_8 5104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_9 5105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_10 5106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_11 5107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_12 5108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_13 5109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_14 5110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_15 ARM GAS /tmp/cco84Mp4.s page 92 5111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_RANK_16 5112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5151: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 5152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 5153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 5155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 5157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 5158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 5159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 5160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetSequencerRanks(const ADC_TypeDef *ADCx, uint32_t Rank) 5162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, 5164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQR 5165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)((READ_BIT(*preg, 5167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MA ARM GAS /tmp/cco84Mp4.s page 93 5168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (Rank & ADC_REG_RANK_ID_SQRX_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 5169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC continuous conversion mode on ADC group regular. 5174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 5175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - single mode: one conversion per trigger 5176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode: after the first trigger, following 5177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversions launched successively automatically. 5178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group regular 5179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * continuous mode and sequencer discontinuous mode. 5180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 5184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_SetContinuousMode 5185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Continuous This parameter can be one of the following values: 5187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 5188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 5189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetContinuousMode(ADC_TypeDef *ADCx, uint32_t Continuous) 5192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_CONT, Continuous); 5194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC continuous conversion mode on ADC group regular. 5198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Description of ADC continuous conversion mode: 5199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - single mode: one conversion per trigger 5200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode: after the first trigger, following 5201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * conversions launched successively automatically. 5202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR CONT LL_ADC_REG_GetContinuousMode 5203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_SINGLE 5206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_CONV_CONTINUOUS 5207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetContinuousMode(const ADC_TypeDef *ADCx) 5209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_CONT)); 5211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular conversion data transfer: no transfer or 5215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 5216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 5217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode: 5218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 5219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 5220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 5221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 5222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 5223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 5224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). ARM GAS /tmp/cco84Mp4.s page 94 5225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 5226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 5227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 5228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 5229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 5230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 5231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 5232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings are available using function @ref LL_ADC_SetMultiDMATransfer(). 5233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 5234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 5235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_SetDMATransfer\n 5240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_SetDMATransfer 5241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param DMATransfer This parameter can be one of the following values: 5243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE 5244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED 5245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED 5246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetDMATransfer(ADC_TypeDef *ADCx, uint32_t DMATransfer) 5249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMAEN | ADC_CFGR_DMACFG, DMATransfer); 5251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data transfer: no transfer or 5255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, and DMA requests mode. 5256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If transfer by DMA selected, specifies the DMA requests 5257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode: 5258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 5259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 5260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 5261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 5262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 5263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 5264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 5265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 5266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 5267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 5268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 5269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 5270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 5271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with several ADC instances: ADC multimode DMA 5272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * settings are available using function @ref LL_ADC_GetMultiDMATransfer(). 5273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To configure DMA source address (peripheral address), 5274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_DMA_GetRegAddr(). 5275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR DMAEN LL_ADC_REG_GetDMATransfer\n 5276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR DMACFG LL_ADC_REG_GetDMATransfer 5277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_NONE 5280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_LIMITED 5281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_DMA_TRANSFER_UNLIMITED ARM GAS /tmp/cco84Mp4.s page 95 5282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransfer(const ADC_TypeDef *ADCx) 5284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_DMAEN | ADC_CFGR_DMACFG)); 5286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group regular behavior in case of overrun: 5290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * data preserved or overwritten. 5291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Compatibility with devices without feature overrun: 5292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * other devices without this feature have a behavior 5293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * equivalent to data overwritten. 5294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The default setting of overrun is data preserved. 5295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, for compatibility with all devices, parameter 5296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * overrun should be set to data overwritten. 5297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 5301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_SetOverrun 5302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Overrun This parameter can be one of the following values: 5304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 5305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 5306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_SetOverrun(ADC_TypeDef *ADCx, uint32_t Overrun) 5309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_OVRMOD, Overrun); 5311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular behavior in case of overrun: 5315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * data preserved or overwritten. 5316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR OVRMOD LL_ADC_REG_GetOverrun 5317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_PRESERVED 5320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_REG_OVR_DATA_OVERWRITTEN 5321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_GetOverrun(const ADC_TypeDef *ADCx) 5323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_OVRMOD)); 5325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 5329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Group_Injected Configuration of ADC hierarchical scope: g 5332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 5333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger source: 5337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 5338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). ARM GAS /tmp/cco84Mp4.s page 96 5339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting trigger source to external trigger 5340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * also set trigger polarity to rising edge 5341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (default setting for compatibility with some ADC on other 5342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * STM32 series having this setting set by HW default value). 5343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In case of need to modify trigger edge, use 5344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * function @ref LL_ADC_INJ_SetTriggerEdge(). 5345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 5346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 5347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 5351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_SetTriggerSource\n 5352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_SetTriggerSource 5353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 5355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 5356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 5357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 5358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 5359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 5360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 5361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 5362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 5363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 5364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 5365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 5366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 5367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 5368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 5369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 5370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 5371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 5372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 5373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 5374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 5375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 5376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 5377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 5378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 5379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 5380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 5381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 5382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 5383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 5384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 5385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 5386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 5387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 5388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 5389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 5390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 5391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) 5392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 5393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 5394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n ARM GAS /tmp/cco84Mp4.s page 97 5396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 5397: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 5398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 5399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerSource(ADC_TypeDef *ADCx, uint32_t TriggerSource) 5402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN, TriggerSource); 5404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source: 5408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or from external peripheral (timer event, 5409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external interrupt line). 5410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note To determine whether group injected trigger source is 5411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal (SW start) or external, without detail 5412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of which peripheral is selected as external trigger, 5413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (equivalent to 5414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * "if(LL_ADC_INJ_GetTriggerSource(ADC1) == LL_ADC_INJ_TRIG_SOFTWARE)") 5415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_INJ_IsTriggerSourceSWStart. 5416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Availability of parameters of trigger sources from timer 5417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * depends on timers availability on the selected device. 5418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_GetTriggerSource\n 5419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_GetTriggerSource 5420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 5423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 5424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 5425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 5426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 5427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 5428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 5429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 5430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 5431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 5432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 5433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 5434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 5435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 5436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 5437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 5438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 5439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 5440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 5441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 5442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 5443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 5444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 5445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 5446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 5447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 5448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 5449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 5450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 5451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 5452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 ARM GAS /tmp/cco84Mp4.s page 98 5453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 5454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 5455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 5456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 5457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 5458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) 5459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 5460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 5461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 5463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 5464: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 5465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 5466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerSource(const ADC_TypeDef *ADCx) 5468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t trigger_source = READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTSEL | ADC_JSQR_JEXTEN); 5470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Value for shift of {0; 4; 8; 12} depending on value of bitfield */ 5472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* corresponding to ADC_JSQR_JEXTEN {0; 1; 2; 3}. */ 5473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t shift_jexten = ((trigger_source & ADC_JSQR_JEXTEN) >> (ADC_INJ_TRIG_EXTEN_BITOFFSET_POS 5474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bitfield corresponding to ADC_JSQR_JEXTEN and ADC_JSQR_JEXTSEL */ 5476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to match with triggers literals definition. */ 5477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((trigger_source 5478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (ADC_INJ_TRIG_SOURCE_MASK >> shift_jexten) & ADC_JSQR_JEXTSEL) 5479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_INJ_TRIG_EDGE_MASK >> shift_jexten) & ADC_JSQR_JEXTEN) 5480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger source internal (SW start) 5485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** or external 5486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of group injected trigger source set to external trigger, 5487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * to determine which peripheral is selected as external trigger, 5488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_INJ_GetTriggerSource. 5489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_IsTriggerSourceSWStart 5490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value "0" if trigger source external trigger 5492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Value "1" if trigger source SW start. 5493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsTriggerSourceSWStart(const ADC_TypeDef *ADCx) 5495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5496: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)) ? 5497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger polarity. 5501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 5502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 5506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_SetTriggerEdge 5507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 5509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING ARM GAS /tmp/cco84Mp4.s page 99 5510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 5511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 5512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTriggerEdge(ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge) 5515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JEXTEN, ExternalTriggerEdge); 5517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger polarity. 5521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only for trigger source set to external trigger. 5522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTEN LL_ADC_INJ_GetTriggerEdge 5523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 5526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 5527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 5528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTriggerEdge(const ADC_TypeDef *ADCx) 5530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JEXTEN)); 5532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequencer length and scan direction. 5536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function performs configuration of: 5537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 5538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 5539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 5540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: 5541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 5542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 5546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_SetSequencerLength 5547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 5549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 5550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 5551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 5552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 5553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerLength(ADC_TypeDef *ADCx, uint32_t SequencerNbRanks) 5556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, ADC_JSQR_JL, SequencerNbRanks); 5558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequencer length and scan direction. 5562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function retrieves: 5563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence length: Number of ranks in the scan sequence. 5564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Sequence direction: Unless specified in parameters, sequencer 5565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * scan direction is forward (from rank 1 to rank n). 5566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Sequencer disabled is equivalent to sequencer of 1 rank: ARM GAS /tmp/cco84Mp4.s page 100 5567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion on only 1 channel. 5568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JL LL_ADC_INJ_GetSequencerLength 5569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 5572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 5573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 5574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 5575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerLength(const ADC_TypeDef *ADCx) 5577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->JSQR, ADC_JSQR_JL)); 5579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequencer discontinuous mode: 5583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 5584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 5585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 5586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 5587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_SetSequencerDiscont 5588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SeqDiscont This parameter can be one of the following values: 5590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 5591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK 5592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont(ADC_TypeDef *ADCx, uint32_t SeqDiscont) 5595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JDISCEN, SeqDiscont); 5597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequencer discontinuous mode: 5601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence subdivided and scan conversions interrupted every selected 5602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * number of ranks. 5603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JDISCEN LL_ADC_INJ_GetSequencerDiscont 5604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_DISABLE 5607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_DISCONT_1RANK 5608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerDiscont(const ADC_TypeDef *ADCx) 5610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JDISCEN)); 5612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected sequence: channel on the selected 5616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence rank. 5617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 5618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 5619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 5620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 5621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 5622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 5623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs ARM GAS /tmp/cco84Mp4.s page 101 5624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 5625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 5629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_SetSequencerRanks\n 5630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_SetSequencerRanks\n 5631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_SetSequencerRanks\n 5632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_SetSequencerRanks 5633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 5635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 5636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 5637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 5638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 5639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 5640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5678: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 5679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 5680: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/cco84Mp4.s page 102 5681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 5682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 5684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5686: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 5687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Channel" with bits position */ 5689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register depending on parameter "Rank". */ 5690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rank" and "Channel" are used with masks because containing */ 5691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 5692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 5693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (Rank & ADC_INJ_RANK_ID_JSQR_MASK), 5695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (Rank & ADC_INJ_RANK_ID_JSQR_MASK)); 5697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected sequence: channel on the selected 5701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequence rank. 5702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Depending on devices and packages, some channels may not be available. 5703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for channels availability. 5704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 5705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 5706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 5707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 5708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 5709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 5711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 5712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 5713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 5714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 5715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JSQ1 LL_ADC_INJ_GetSequencerRanks\n 5716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_GetSequencerRanks\n 5717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_GetSequencerRanks\n 5718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_GetSequencerRanks 5719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 5721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 5722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 5723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 5724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 5725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 ARM GAS /tmp/cco84Mp4.s page 103 5738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 5740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 5741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 5742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 5743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 5744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 5745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 5746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 5747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 5748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 5749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 5750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 5751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 5752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 5753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 5754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 5755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 5756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 5758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 5759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 5760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 5761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 5762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 5763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 5764: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 5765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 5766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 5767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 5768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 5769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 5770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1, 2, 3, 4, 5, 7) For ADC channel read back from ADC register, 5771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * comparison with internal channel parameter to be done 5772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro @ref __LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL(). 5773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetSequencerRanks(const ADC_TypeDef *ADCx, uint32_t Rank) 5775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)((READ_BIT(ADCx->JSQR, 5777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ADC_CHANNEL_ID_NUMBER_MASK >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 5778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (Rank & ADC_INJ_RANK_ID_JSQR_MASK)) 5779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (Rank & ADC_INJ_RANK_ID_JSQR_MASK)) << ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS 5780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 5781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected conversion trigger: 5785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent or from ADC group regular. 5786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This mode can be used to extend number of data registers 5787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * updated after one ADC conversion trigger and with data 5788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * permanently kept (not erased by successive conversions of scan of 5789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC sequencer ranks), up to 5 data registers: 5790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 1 data register on ADC group regular, 4 data registers 5791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC group injected. 5792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC group injected injected trigger source is set to an 5793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * external trigger, this feature must be must be set to 5794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent trigger. ARM GAS /tmp/cco84Mp4.s page 104 5795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC group injected automatic trigger is compliant only with 5796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group injected trigger source set to SW start, without any 5797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * further action on ADC group injected conversion start or stop: 5798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * in this case, ADC group injected is controlled only 5799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * from ADC group regular. 5800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note It is not possible to enable both ADC group injected 5801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * auto-injected mode and sequencer discontinuous mode. 5802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_SetTrigAuto 5807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TrigAuto This parameter can be one of the following values: 5809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT 5810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 5811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetTrigAuto(ADC_TypeDef *ADCx, uint32_t TrigAuto) 5814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JAUTO, TrigAuto); 5816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion trigger: 5820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * independent or from ADC group regular. 5821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JAUTO LL_ADC_INJ_GetTrigAuto 5822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_INDEPENDENT 5825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_FROM_GRP_REGULAR 5826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetTrigAuto(const ADC_TypeDef *ADCx) 5828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JAUTO)); 5830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC group injected contexts queue mode. 5834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 5835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - group injected trigger 5836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer length 5837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer ranks 5838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If contexts queue is disabled: 5839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - only 1 sequence can be configured 5840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and is active perpetually. 5841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If contexts queue is enabled: 5842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - up to 2 contexts can be queued 5843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * and are checked in and out as a FIFO stack (first-in, first-out). 5844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If a new context is set when queues is full, error is triggered 5845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by interruption "Injected Queue Overflow". 5846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Two behaviors are possible when all contexts have been processed: 5847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the contexts queue can maintain the last context active perpetually 5848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or can be empty and injected group triggers are disabled. 5849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Triggers can be only external (not internal SW start) 5850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Caution: The sequence must be fully configured in one time 5851: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/cco84Mp4.s page 105 5852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * into the queue). 5853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore functions to set separately injected trigger and 5854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sequencer channels cannot be used, register JSQR must be set 5855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using function @ref LL_ADC_INJ_ConfigQueueContext(). 5856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This parameter can be modified only when no conversion is on going 5857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A modification of the context mode (bit JQDIS) causes the contexts 5859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * queue to be flushed and the register JSQR is cleared. 5860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 5863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 5864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_SetQueueMode\n 5865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_SetQueueMode 5866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param QueueMode This parameter can be one of the following values: 5868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 5869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 5870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 5871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 5872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_SetQueueMode(ADC_TypeDef *ADCx, uint32_t QueueMode) 5874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS, QueueMode); 5876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 5879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected context queue mode. 5880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR JQM LL_ADC_INJ_GetQueueMode\n 5881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JQDIS LL_ADC_INJ_GetQueueMode 5882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 5884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_DISABLE 5885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_LAST_ACTIVE 5886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_QUEUE_2CONTEXTS_END_EMPTY 5887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 5888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_GetQueueMode(const ADC_TypeDef *ADCx) 5889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR, ADC_CFGR_JQM | ADC_CFGR_JQDIS)); 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 **** /** 5894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set one context on ADC group injected that will be checked in 5895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * contexts queue. 5896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note A context is a setting of group injected sequencer: 5897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - group injected trigger 5898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer length 5899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - sequencer ranks 5900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function is intended to be used when contexts queue is enabled, 5901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * because the sequence must be fully configured in one time 5902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (functions to set separately injected trigger and sequencer channels 5903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * cannot be used): 5904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_INJ_SetQueueMode(). 5905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In the contexts queue, only the active context can be read. 5906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * The parameters of this function can be read using functions: 5907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerSource() 5908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetTriggerEdge() ARM GAS /tmp/cco84Mp4.s page 106 5909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_GetSequencerRanks() 5910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, to measure internal channels (VrefInt, 5911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TempSensor, ...), measurement paths to internal channels must be 5912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * enabled separately. 5913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This can be done using function @ref LL_ADC_SetCommonPathInternalCh(). 5914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some fast channels are available: fast analog inputs 5915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * coming from GPIO pads (ADC_IN1..5). 5916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 5917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 5918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must not be disabled. Can be enabled with or without conversion 5919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on going on either groups regular or injected. 5920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JSQR JEXTSEL LL_ADC_INJ_ConfigQueueContext\n 5921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JEXTEN LL_ADC_INJ_ConfigQueueContext\n 5922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JL LL_ADC_INJ_ConfigQueueContext\n 5923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ1 LL_ADC_INJ_ConfigQueueContext\n 5924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ2 LL_ADC_INJ_ConfigQueueContext\n 5925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ3 LL_ADC_INJ_ConfigQueueContext\n 5926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JSQR JSQ4 LL_ADC_INJ_ConfigQueueContext 5927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 5928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param TriggerSource This parameter can be one of the following values: 5929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_SOFTWARE 5930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO 5931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_TRGO2 5932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH3 (2) 5933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM1_CH4 5934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_TRGO 5935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM2_CH1 (1) 5936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_TRGO 5937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH1 (1) 5938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH3 (1) 5939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM3_CH4 (1) 5940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_TRGO 5941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH3 (2) 5942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM4_CH4 (2) 5943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM6_TRGO 5944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM7_TRGO 5945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO 5946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_TRGO2 5947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH2 (2) 5948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM8_CH4 5949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM15_TRGO 5950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM16_CH1 (1) 5951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO 5952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_TRGO2 5953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH2 (2) 5954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_TIM20_CH4 (1) 5955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG1 (2) 5956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG2 5957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG3 (2) 5958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG4 5959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG5 5960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG6 5961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG7 5962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG8 5963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG9 5964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_HRTIM_TRG10 5965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE3 (2) ARM GAS /tmp/cco84Mp4.s page 107 5966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_EXTI_LINE15 (1) 5967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_LPTIM_OUT 5968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4 series, parameter not available on all ADC instances: ADC1, ADC2.\n 5970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4 series, parameter not available on all ADC instances: ADC3, ADC4, ADC5. 5971: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 5972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * more details. 5973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ExternalTriggerEdge This parameter can be one of the following values: 5974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISING 5975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_FALLING 5976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_TRIG_EXT_RISINGFALLING 5977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 5978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Note: This parameter is discarded in case of SW start: 5979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * parameter "TriggerSource" set to "LL_ADC_INJ_TRIG_SOFTWARE". 5980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SequencerNbRanks This parameter can be one of the following values: 5981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_DISABLE 5982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS 5983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS 5984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS 5985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank1_Channel This parameter can be one of the following values: 5986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 5987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 5988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 5989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 5990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 5991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 5992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 5993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 5994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 5995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 5996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 5997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 5998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 5999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n ARM GAS /tmp/cco84Mp4.s page 108 6023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6024: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 6025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank2_Channel This parameter can be one of the following values: 6031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 6032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 6033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 6034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 6035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 6036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 6037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6069: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 6070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank3_Channel This parameter can be one of the following values: 6076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 6077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 6078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 6079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) ARM GAS /tmp/cco84Mp4.s page 109 6080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 6081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 6082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6114: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 6115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank4_Channel This parameter can be one of the following values: 6121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 6122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 6123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 6124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 6125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 6126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 6127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 ARM GAS /tmp/cco84Mp4.s page 110 6137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6159: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 6160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_ConfigQueueContext(ADC_TypeDef *ADCx, 6168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t TriggerSource, 6169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ExternalTriggerEdge, 6170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t SequencerNbRanks, 6171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank1_Channel, 6172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank2_Channel, 6173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank3_Channel, 6174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t Rank4_Channel) 6175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "Rankx_Channel" with bits position */ 6177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register depending on literal "LL_ADC_INJ_RANK_x". */ 6178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "Rankx_Channel" and "LL_ADC_INJ_RANK_x" are used with masks */ 6179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* because containing other bits reserved for other purpose. */ 6180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If parameter "TriggerSource" is set to SW start, then parameter */ 6181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "ExternalTriggerEdge" is discarded. */ 6182: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); 6183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->JSQR, 6184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTSEL | 6185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JEXTEN | 6186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ4 | 6187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ3 | 6188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ2 | 6189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JSQ1 | 6190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JSQR_JL, 6191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (TriggerSource & ADC_JSQR_JEXTSEL) | 6192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (ExternalTriggerEdge * (is_trigger_not_sw)) | 6193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank4_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) ARM GAS /tmp/cco84Mp4.s page 111 6194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (LL_ADC_INJ_RANK_4 & ADC_INJ_RANK_ID_JSQR_MASK)) | 6195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank3_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 6196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (LL_ADC_INJ_RANK_3 & ADC_INJ_RANK_ID_JSQR_MASK)) | 6197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank2_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 6198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (LL_ADC_INJ_RANK_2 & ADC_INJ_RANK_ID_JSQR_MASK)) | 6199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (((Rank1_Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) 6200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << (LL_ADC_INJ_RANK_1 & ADC_INJ_RANK_ID_JSQR_MASK)) | 6201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SequencerNbRanks 6202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 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 **** 6209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_Channels Configuration of ADC hierarchical scope: channels 6210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set sampling time of the selected ADC channel 6215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Unit: ADC clock cycles. 6216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 6217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. 6218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of internal channel (VrefInt, TempSensor, ...) to be 6219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * converted: 6220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * sampling time constraints must be respected (sampling time can be 6221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * adjusted in function of ADC clock frequency and sampling time 6222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * setting). 6223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet for timings values (parameters TS_vrefint, 6224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TS_temp, ...). 6225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 6226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 6227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 6228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 6229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 6230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 6231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC conversion of internal channel (VrefInt, 6232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temperature sensor, ...), a sampling time minimum value 6233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is required. 6234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet. 6235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_SetChannelSamplingTime\n 6240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_SetChannelSamplingTime\n 6241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_SetChannelSamplingTime\n 6242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_SetChannelSamplingTime\n 6243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_SetChannelSamplingTime\n 6244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_SetChannelSamplingTime\n 6245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_SetChannelSamplingTime\n 6246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_SetChannelSamplingTime\n 6247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_SetChannelSamplingTime\n 6248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_SetChannelSamplingTime\n 6249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_SetChannelSamplingTime\n 6250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_SetChannelSamplingTime\n ARM GAS /tmp/cco84Mp4.s page 112 6251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_SetChannelSamplingTime\n 6252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_SetChannelSamplingTime\n 6253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_SetChannelSamplingTime\n 6254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_SetChannelSamplingTime\n 6255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_SetChannelSamplingTime\n 6256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_SetChannelSamplingTime\n 6257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_SetChannelSamplingTime 6258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 6260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 6261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 6262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 6263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 6264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 6265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 6266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6298: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 6299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SamplingTime This parameter can be one of the following values: 6305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 (1) 6306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_6CYCLES_5 6307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_12CYCLES_5 ARM GAS /tmp/cco84Mp4.s page 113 6308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_24CYCLES_5 6309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_47CYCLES_5 6310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_92CYCLES_5 6311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_247CYCLES_5 6312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_640CYCLES_5 6313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On some devices, ADC sampling time 2.5 ADC clock cycles 6315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can be replaced by 3.5 ADC clock cycles. 6316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_SetSamplingTimeCommonConfig(). 6317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sa 6320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 81 .loc 2 6320 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 6320 1 is_stmt 0 view .LVU10 87 0000 10B4 push {r4} 88 .LCFI2: 89 .cfi_def_cfa_offset 4 90 .cfi_offset 4, -4 6321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "SamplingTime" with bits position */ 6322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "Channel". */ 6323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameter "Channel" is used with masks because containing */ 6324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* other bits reserved for other purpose. */ 6325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, 91 .loc 2 6325 3 is_stmt 1 view .LVU11 92 .loc 2 6325 25 is_stmt 0 view .LVU12 93 0002 1430 adds r0, r0, #20 94 .LVL6: 95 .loc 2 6325 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: 6326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_S 6327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 100 .loc 2 6328 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 6328 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 6328 3 view .LVU16 111 0020 4CEA0202 orr r2, ip, r2 112 0024 C250 str r2, [r0, r3] 6329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 6330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BIT 6331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 113 .loc 2 6331 1 view .LVU17 ARM GAS /tmp/cco84Mp4.s page 114 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: 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 **** * @brief Get sampling time of the selected ADC channel 6335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Unit: ADC clock cycles. 6336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this device, sampling time is on channel scope: independently 6337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of channel mapped on ADC group regular or injected. 6338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Conversion time is the addition of sampling time and processing time. 6339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * On this STM32 series, ADC processing time is: 6340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 12.5 ADC clock cycles at ADC resolution 12 bits 6341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 10.5 ADC clock cycles at ADC resolution 10 bits 6342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 8.5 ADC clock cycles at ADC resolution 8 bits 6343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - 6.5 ADC clock cycles at ADC resolution 6 bits 6344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll SMPR1 SMP0 LL_ADC_GetChannelSamplingTime\n 6345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP1 LL_ADC_GetChannelSamplingTime\n 6346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP2 LL_ADC_GetChannelSamplingTime\n 6347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP3 LL_ADC_GetChannelSamplingTime\n 6348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP4 LL_ADC_GetChannelSamplingTime\n 6349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP5 LL_ADC_GetChannelSamplingTime\n 6350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP6 LL_ADC_GetChannelSamplingTime\n 6351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP7 LL_ADC_GetChannelSamplingTime\n 6352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP8 LL_ADC_GetChannelSamplingTime\n 6353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR1 SMP9 LL_ADC_GetChannelSamplingTime\n 6354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP10 LL_ADC_GetChannelSamplingTime\n 6355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP11 LL_ADC_GetChannelSamplingTime\n 6356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP12 LL_ADC_GetChannelSamplingTime\n 6357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP13 LL_ADC_GetChannelSamplingTime\n 6358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP14 LL_ADC_GetChannelSamplingTime\n 6359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP15 LL_ADC_GetChannelSamplingTime\n 6360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP16 LL_ADC_GetChannelSamplingTime\n 6361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP17 LL_ADC_GetChannelSamplingTime\n 6362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * SMPR2 SMP18 LL_ADC_GetChannelSamplingTime 6363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 6365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_0 6366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 (8) 6367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 (8) 6368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 (8) 6369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 (8) 6370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 (8) 6371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 ARM GAS /tmp/cco84Mp4.s page 115 6374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_16 6382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_17 6383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_18 6384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VREFINT (7) 6385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC1 (1) 6386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_TEMPSENSOR_ADC5 (5) 6387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VBAT (6) 6388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP1 (1) 6389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP2 (2) 6390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC2 (2) 6391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP3_ADC3 (3) 6392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP4 (5) 6393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP5 (5) 6394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_VOPAMP6 (4) 6395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6403: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 6404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (8) On STM32G4, fast channel allows: 2.5 (sampling) + 12.5 (conversion) = 15 ADC clock 6406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * convert in 12-bit resolution. 6407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Other channels are slow channels allows: 6.5 (sampling) + 12.5 (conversion) = 19 A 6408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (fADC) to convert in 12-bit resolution.\n 6409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_2CYCLES_5 (1) 6411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_6CYCLES_5 6412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_12CYCLES_5 6413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_24CYCLES_5 6414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_47CYCLES_5 6415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_92CYCLES_5 6416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_247CYCLES_5 6417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SAMPLINGTIME_640CYCLES_5 6418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On some devices, ADC sampling time 2.5 ADC clock cycles 6420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can be replaced by 3.5 ADC clock cycles. 6421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to function @ref LL_ADC_SetSamplingTimeCommonConfig(). 6422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSamplingTime(const ADC_TypeDef *ADCx, uint32_t Channel) 6424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6425: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 6426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ADC_SMPRX_REGOFFSET_POS)); 6427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 6429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_SMPR1_SMP0 6430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BI ARM GAS /tmp/cco84Mp4.s page 116 6431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_P 6432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set mode single-ended or differential input of the selected 6437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 6438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Channel ending is on channel scope: independently of channel mapped 6439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC group regular or injected. 6440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * In differential mode: Differential measurement is carried out 6441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * between the selected channel 'i' (positive input) and 6442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel 'i+1' (negative input). Only channel 'i' has to be 6443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configured, channel 'i+1' is configured automatically. 6444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 6445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * available in differential mode. 6446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 6447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not available in differential mode. 6448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 6449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 6450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some channels are internally fixed to single-ended inputs 6451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configuration: 6452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC1: Channels 12, 15, 16, 17 and 18 6453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC2: Channels 15, 17 and 18 6454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC3: Channels 12, 16, 17 and 18 (1) 6455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC4: Channels 16, 17 and 18 (1) 6456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC5: Channels 2, 3, 4, 16, 17 and 18 (1) 6457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) ADC3/4/5 are not available on all devices, refer to device datasheet 6458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For ADC channels configured in differential mode, both inputs 6460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * should be biased at (Vref+)/2 +/-200mV. 6461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (Vref+ is the analog voltage reference) 6462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 6465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. 6466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 6467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_SetChannelSingleDiff 6468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be one of the following values: 6470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 6471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 6472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 6473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 6474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 6475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 6484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be a combination of the following values: 6486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 6487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED ARM GAS /tmp/cco84Mp4.s page 117 6488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t Sing 6491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Bits of channels in single or differential mode are set only for */ 6493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* differential mode (for single mode, mask of bits allowed to be set is */ 6494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* shifted out of range of bits of channels in single or differential mode. */ 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->DIFSEL, 6496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 6497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) 6498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK))); 6499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get mode single-ended or differential input of the selected 6503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC channel. 6504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 6505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 6506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Therefore, to ensure a channel is configured in single-ended mode, 6507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the configuration of channel itself and the channel 'i-1' must be 6508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * read back (to ensure that the selected channel channel has not been 6509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configured in differential mode by the previous channel). 6510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Refer to Reference Manual to ensure the selected channel is 6511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * available in differential mode. 6512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * For example, internal channels (VrefInt, TempSensor, ...) are 6513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * not available in differential mode. 6514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note When configuring a channel 'i' in differential mode, 6515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the channel 'i+1' is not usable separately. 6516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On STM32G4, some channels are internally fixed to single-ended inputs 6517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * configuration: 6518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC1: Channels 12, 15, 16, 17 and 18 6519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC2: Channels 15, 17 and 18 6520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC3: Channels 12, 16, 17 and 18 (1) 6521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC4: Channels 16, 17 and 18 (1) 6522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC5: Channels 2, 3, 4, 16, 17 and 18 (1) 6523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) ADC3/4/5 are not available on all devices, refer to device datasheet 6524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note One or several values can be selected. In this case, the value 6526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * returned is null if all channels are in single ended-mode. 6527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Example: (LL_ADC_CHANNEL_4 | LL_ADC_CHANNEL_12 | ...) 6528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DIFSEL DIFSEL LL_ADC_GetChannelSingleDiff 6529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Channel This parameter can be a combination of the following values: 6531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_1 6532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_2 6533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_3 6534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_4 6535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_5 6536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_6 6537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_7 6538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_8 6539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_9 6540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_10 6541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_11 6542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_12 6543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_13 6544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_14 ARM GAS /tmp/cco84Mp4.s page 118 6545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_CHANNEL_15 6546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: channel in single-ended mode, else: channel in differential mode 6547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetChannelSingleDiff(const ADC_TypeDef *ADCx, uint32_t Channel) 6549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DIFSEL, (Channel & ADC_SINGLEDIFF_CHANNEL_MASK))); 6551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 6555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_AnalogWatchdog Configuration of ADC transversal scope: an 6558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 6559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog monitored channels: 6563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a single channel, multiple channels or all channels, 6564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on ADC groups regular and-or injected. 6565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Once monitored channels are selected, analog watchdog 6566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled. 6567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of need to define a single channel to monitor 6568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with analog watchdog from sequencer channel definition, 6569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use helper macro @ref __LL_ADC_ANALOGWD_CHANNEL_GROUP(). 6570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 6571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 6572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 6573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 6574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 6575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 6576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 6577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 6578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 6579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 6580:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 6581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 6582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 6583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 6584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 6585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 6586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 6587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 6588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 6589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 6590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 6591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_SetAnalogWDMonitChannels\n 6596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_SetAnalogWDMonitChannels\n 6597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_SetAnalogWDMonitChannels\n 6598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_SetAnalogWDMonitChannels\n 6599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_SetAnalogWDMonitChannels\n 6600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_SetAnalogWDMonitChannels 6601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/cco84Mp4.s page 119 6602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDChannelGroup This parameter can be one of the following values: 6607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 6608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 6609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 6610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 6611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 6612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 6613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 6614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 6615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 6616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 6617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 6618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 6619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 6620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 6621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 6622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 6623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 6624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 6625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 6626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 6627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 6628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 6629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 6630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 6631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 6632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 6633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 6634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 6635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 6636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 6637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 6638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 6639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 6640:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 6641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 6642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 6643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 6644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 6645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 6646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 6647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 6648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 6649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 6650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 6651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 6652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ 6653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 6654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 6655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 6656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 6657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 6658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ ARM GAS /tmp/cco84Mp4.s page 120 6659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 6660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 6661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 6662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 6663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 6664:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 6665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 6666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 6667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 6668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG (0) 6669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_INJ (0) 6670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VREFINT_REG_INJ 6671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG (0)(1) 6672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_INJ (0)(1) 6673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC1_REG_INJ (1) 6674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG (0)(5) 6675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_INJ (0)(5) 6676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_TEMPSENSOR_ADC5_REG_INJ (5) 6677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG (0)(6) 6678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_INJ (0)(6) 6679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VBAT_REG_INJ (6) 6680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG (0)(1) 6681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_INJ (0)(1) 6682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP1_REG_INJ (1) 6683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG (0)(2) 6684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_INJ (0)(2) 6685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP2_REG_INJ (2) 6686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG (0)(2) 6687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_INJ (0)(2) 6688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC2_REG_INJ (2) 6689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG (0)(3) 6690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_INJ (0)(3) 6691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP3_ADC3_REG_INJ (3) 6692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG (0)(5) 6693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_INJ (0)(5) 6694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP4_REG_INJ (5) 6695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG (0)(5) 6696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_INJ (0)(5) 6697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP5_REG_INJ (5) 6698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG (0)(4) 6699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_INJ (0)(4) 6700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CH_VOPAMP6_REG_INJ (4) 6701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1.\n 6703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On STM32G4, parameter available only on ADC instance: ADC1.\n 6704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) On STM32G4, parameter available only on ADC instance: ADC2.\n 6705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) On STM32G4, parameter available only on ADC instance: ADC3.\n 6706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (4) On STM32G4, parameter available only on ADC instance: ADC4.\n 6707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (5) On STM32G4, parameter available only on ADC instance: ADC5.\n 6708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (6) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC5.\n 6709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (7) On STM32G4, parameter available only on ADC instances: ADC1, ADC3, ADC4, ADC5.\n 6710: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 6711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * for more details. 6712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDMonitChannels(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 6715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { ARM GAS /tmp/cco84Mp4.s page 121 131 .loc 2 6715 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 6715 1 is_stmt 0 view .LVU19 136 0000 00B5 push {lr} 137 .LCFI4: 138 .cfi_def_cfa_offset 4 139 .cfi_offset 14, -4 6716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDChannelGroup" with bits position */ 6717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* in register and register position depending on parameter "AWDy". */ 6718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDChannelGroup" and "AWDy" are used with masks because */ 6719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, 140 .loc 2 6720 3 is_stmt 1 view .LVU20 141 .loc 2 6720 25 is_stmt 0 view .LVU21 142 0002 0C30 adds r0, r0, #12 143 .LVL11: 144 .loc 2 6720 25 view .LVU22 145 0004 C1F3015C ubfx ip, r1, #20, #2 146 0008 41F30003 sbfx r3, r1, #0, #1 147 000c 03F02403 and r3, r3, #36 148 0010 9C44 add ip, ip, r3 149 .LVL12: 6721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 6722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) 6723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC_AWD_CR12_REGOFFSETGAP_VAL)); 6724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 150 .loc 2 6725 3 is_stmt 1 view .LVU23 151 0012 50F82C30 ldr r3, [r0, ip, lsl #2] 152 0016 21F0024E bic lr, r1, #-2113929216 153 001a 2EF4601E bic lr, lr, #3670016 154 001e 23EA0E03 bic r3, r3, lr 155 0022 1140 ands r1, r1, r2 156 .LVL13: 157 .loc 2 6725 3 is_stmt 0 view .LVU24 158 0024 0B43 orrs r3, r3, r1 159 0026 40F82C30 str r3, [r0, ip, lsl #2] 6726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 6727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDChannelGroup & AWDy); 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 160 .loc 2 6728 1 view .LVU25 161 002a 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 **** ****************************************************************************** ARM GAS /tmp/cco84Mp4.s page 122 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 **** ****************************************************************************** 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 **** ARM GAS /tmp/cco84Mp4.s page 123 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. 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 ARM GAS /tmp/cco84Mp4.s page 124 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 **** 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 ARM GAS /tmp/cco84Mp4.s page 125 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. 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 @ref 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 @ref HAL_ADC_RegisterCallback() allows to register following callbacks: 230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) ConvCpltCallback : ADC conversion complete callback ARM GAS /tmp/cco84Mp4.s page 126 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 @ref 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 **** @ref 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 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 @ref HAL_ADC_Init() and when the state is @ref 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 @ref HAL_ADC_ConvCpltCallback(), @ref 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 @ref HAL_ADC_Init()/ @ref 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 @ref HAL_ADC_Init()/ @ref 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 @ref 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 @ref HAL_ADC_STATE_READY or @ref 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 @ref HAL_ADC_RegisterCallback() before calling @ref HAL_ADC_DeInit() 285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** or @ref HAL_ADC_Init() function. 286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 127 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 **** 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 321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** be updated when no regular conversion is on-going */ 322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout values for ADC operations (enable settling time, */ 324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* disable settling time, ...). */ 325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Values defined to be higher than worst cases: low clock frequency, */ 326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* maximum prescalers. */ 327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_ENABLE_TIMEOUT (2UL) /*!< ADC enable time-out value */ 328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_DISABLE_TIMEOUT (2UL) /*!< ADC disable time-out value */ 329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout to wait for current conversion on going to be completed. */ 331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout fixed to longest ADC conversion possible, for 1 channel: */ 332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - maximum sampling time (640.5 adc_clk) */ 333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - ADC resolution (Tsar 12 bits= 12.5 adc_clk) */ 334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - System clock / ADC clock <= 4096 (hypothesis of maximum clock ratio) */ 335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - ADC oversampling ratio 256 */ 336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Calculation: 653 * 4096 * 256 CPU clock cycles max */ 337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unit: cycles of CPU clock. */ 338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #define ADC_CONVERSION_TIME_MAX_CPU_CYCLES (653UL * 4096UL * 256UL) /*!< ADC conversion completion 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 **** ARM GAS /tmp/cco84Mp4.s page 128 345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private macro -------------------------------------------------------------*/ 346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private variables ---------------------------------------------------------*/ 347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Private function prototypes -----------------------------------------------*/ 348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Exported functions --------------------------------------------------------*/ 349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions ADC Exported Functions 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 **** 354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group1 Initialization and de-initialization functions 355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC Initialization and Configuration functions 356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Initialization and de-initialization functions ##### 360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Initialize and configure the ADC. 363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) De-initialize the ADC. 364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Initialize the ADC peripheral and regular group according to 370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameters specified in structure "ADC_InitTypeDef". 371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note As prerequisite, ADC clock must be configured at RCC top level 372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (refer to description of RCC configuration for ADC 373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in header of this file). 374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes the ADC MSP (HAL_ADC_MspInit()) only when 376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * coming from ADC state reset. Following calls to this function can 377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * be used to reconfigure some parameters of ADC_InitTypeDef 378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * structure on the fly, without modifying MSP configuration. If ADC 379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * MSP has to be modified again, HAL_ADC_DeInit() must be called 380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * before HAL_ADC_Init(). 381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For parameters constraints, see comments of structure 383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "ADC_InitTypeDef". 384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function configures the ADC within 2 scopes: scope of entire 385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC and scope of regular group. For parameters details, see comments 386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * of structure "ADC_InitTypeDef". 387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Parameters related to common ADC registers (ADC clock mode) are set 388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * only if all ADCs are disabled. 389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * If this is not the case, these common parameters setting are 390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behaviour in 391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of update of a parameter of ADC_InitTypeDef on the fly, 392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * without disabling the other ADCs. 393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc) 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; ARM GAS /tmp/cco84Mp4.s page 129 402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 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)); 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 **** { ARM GAS /tmp/cco84Mp4.s page 130 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); 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 **** ARM GAS /tmp/cco84Mp4.s page 131 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_is_conversion_on_going_regular = 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_is_conversion_on_going_regular == 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 **** { 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 **** tmp_cfgr = (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 | ARM GAS /tmp/cco84Mp4.s page 132 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 **** tmp_cfgr |= 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 **** tmp_cfgr |= ((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, tmp_cfgr); 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_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = (ADC_CFGR_DFSDM(hadc) | 612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); 614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmp_cfgr); 616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.GainCompensation != 0UL) 618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); 621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_GCOMP); 625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); 626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 133 630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OVERSAMPLING_RATIO(hadc->Init.Oversampling.Ratio)); 631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift)); 632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of Oversampler: */ 636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Oversampling Ratio */ 637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Right bit shift */ 638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Triggered mode */ 639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Oversampling mode (continued/resumed) */ 640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->CFGR2, 641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | 642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSS | 643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_TROVS | 644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_ROVSM, 645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_ROVSE | 646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.Ratio | 647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.RightBitShift | 648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.TriggeredMode | 649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Oversampling.OversamplingStopReset 650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC oversampling scope on ADC group regular */ 655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE); 656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Configuration of regular group sequencer: */ 661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if scan mode is disabled, regular channels sequence length is set to */ 662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 0x00: 1 channel converted (channel on regular rank 1) */ 663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameter "NbrOfConversion" is discarded. */ 664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Scan mode is not present by hardware on this device, but */ 665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* emulated by software for alignment over all STM32 devices. */ 666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if scan mode is enabled, regular channels sequence length is set to */ 667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameter "NbrOfConversion". */ 668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE) 670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set number of ranks in regular group sequencer */ 672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1)); 673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L); 677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Initialize the ADC state */ 680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */ 681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); 682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); ARM GAS /tmp/cco84Mp4.s page 134 687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** * @brief Deinitialize the ADC peripheral registers to their default reset 697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * values, with deinitialization of the ADC MSP. 698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note For devices with several ADCs: reset of ADC common registers is done 699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * only if all ADCs sharing the same common group are disabled. 700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (function "HAL_ADC_MspDeInit()" is also called under the same conditions: 701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * all ADC instances use the same core clock at RCC level, disabling 702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the core clock reset all ADC instances). 703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * If this is not the case, reset of these common parameters reset is 704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bypassed without error reporting: it can be the intended behavior in 705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of reset of a single ADC while the other ADCs sharing the same 706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * common group is still running. 707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note By default, HAL_ADC_DeInit() set ADC in mode deep power-down: 708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * this saves more power by reducing leakage currents 709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * and is particularly interesting before entering MCU low-power modes. 710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_DeInit(ADC_HandleTypeDef *hadc) 714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC handle */ 718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc == NULL) 719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 723:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 726:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL); 728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop potential conversion on going */ 730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Flush register JSQR: reset the queue sequencer when injected */ 734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* queue sequencer is enabled and ADC disabled. */ 735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* The software and hardware triggers of the injected sequence are both */ 736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* internally disabled just after the completion of the last valid */ 737:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* injected sequence. */ 738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQM); 739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 740:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the ADC peripheral */ ARM GAS /tmp/cco84Mp4.s page 135 744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state */ 750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_READY; 751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Note: HAL ADC deInit is done independently of ADC conversion stop */ 755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* and disable return status. In case of status fail, attempt to */ 756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* perform deinitialization anyway and it is up user code in */ 757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in HAL_ADC_MspDeInit() to reset the ADC peripheral using */ 758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* system RCC hard reset. */ 759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Reset ADC registers ========== */ 761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register IER */ 762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_AWD3 | ADC_IT_AWD2 | ADC_IT_AWD1 | 763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JEOS | ADC_IT_JEOC | 765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_EOS | ADC_IT_EOC | 766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_EOSMP | ADC_IT_RDY)); 767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register ISR */ 769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_AWD3 | ADC_FLAG_AWD2 | ADC_FLAG_AWD1 | 770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JEOS | ADC_FLAG_JEOC | 772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_EOS | ADC_FLAG_EOC | 773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CR */ 776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Bits ADC_CR_JADSTP, ADC_CR_ADSTP, ADC_CR_JADSTART, ADC_CR_ADSTART, 777: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": 778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** no direct reset applicable. 779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Update CR register to reset value where doable by software */ 780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CR, ADC_CR_ADVREGEN | ADC_CR_ADCALDIF); 781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CFGR */ 784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR, ADC_CFGR_FIELDS); 785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQDIS); 786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CFGR2 */ 788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSM | ADC_CFGR2_TROVS | ADC_CFGR2_OVSS | 789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SMPR1 */ 792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR1, ADC_SMPR1_FIELDS); 793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SMPR2 */ 795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SMPR2, ADC_SMPR2_SMP18 | ADC_SMPR2_SMP17 | ADC_SMPR2_SMP16 | 796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | 797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP12 | ADC_SMPR2_SMP11 | ADC_SMPR2_SMP10); 798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR1 */ 800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR1, ADC_TR1_HT1 | ADC_TR1_LT1); ARM GAS /tmp/cco84Mp4.s page 136 801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR2 */ 803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR2, ADC_TR2_HT2 | ADC_TR2_LT2); 804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register TR3 */ 806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->TR3, ADC_TR3_HT3 | ADC_TR3_LT3); 807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR1 */ 809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_SQ4 | ADC_SQR1_SQ3 | ADC_SQR1_SQ2 | 810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR2 */ 813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR2, ADC_SQR2_SQ9 | ADC_SQR2_SQ8 | ADC_SQR2_SQ7 | 814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR3 */ 817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR3, ADC_SQR3_SQ14 | ADC_SQR3_SQ13 | ADC_SQR3_SQ12 | 818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register SQR4 */ 821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->SQR4, ADC_SQR4_SQ16 | ADC_SQR4_SQ15); 822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Register JSQR was reset when the ADC was disabled */ 824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register DR */ 826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR1 */ 829: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); 830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR2 */ 831: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); 832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR3 */ 833: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); 834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR4 */ 835: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); 836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset registers JDR1, JDR2, JDR3, JDR4 */ 838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bits in access mode read only, no direct reset applicable*/ 839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register AWD2CR */ 841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD2CR, ADC_AWD2CR_AWD2CH); 842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register AWD3CR */ 844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->AWD3CR, ADC_AWD3CR_AWD3CH); 845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register DIFSEL */ 847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->DIFSEL, ADC_DIFSEL_DIFSEL); 848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register CALFACT */ 850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CALFACT, ADC_CALFACT_CALFACT_D | ADC_CALFACT_CALFACT_S); 851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Reset common ADC registers ========== */ 854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to change common parameters only when all the other 856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADCs are disabled. */ 857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL) ARM GAS /tmp/cco84Mp4.s page 137 858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset configuration of ADC common register CCR: 860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - clock mode: CKMODE, PRESCEN 861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - multimode related parameters (when this feature is available): MDMA, 862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** DMACFG, DELAY, DUAL (set by HAL_ADCEx_MultiModeConfigChannel() API) 863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - internal measurement paths: Vbat, temperature sensor, Vref (set into 864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConfigChannel() or HAL_ADCEx_InjectedConfigChannel() ) 865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_COMMON_CONTROL_REGISTER(hadc); 867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Hard reset ADC peripheral ========== */ 869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Performs a global reset of the entire ADC peripherals instances */ 870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* sharing the same common ADC instance: ADC state is forced to */ 871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* a similar state as after device power-on. */ 872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: A possible implementation is to add RCC bus reset of ADC */ 873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (for example, using macro */ 874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* __HAL_RCC_ADC..._FORCE_RESET()/..._RELEASE_RESET()/..._CLK_DISABLE()) */ 875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function "void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)": */ 876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->MspDeInitCallback == NULL) 878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ 880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DeInit the low level hardware */ 883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback(hadc); 884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DeInit the low level hardware */ 886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_MspDeInit(hadc); 887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to none */ 891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset injected channel configuration parameters */ 894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ContextQueue = 0; 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->State = HAL_ADC_STATE_RESET; 899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** * @brief Initialize the ADC MSP. 909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) 913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 175 .loc 1 913 1 is_stmt 1 view -0 ARM GAS /tmp/cco84Mp4.s page 138 176 .cfi_startproc 177 @ args = 0, pretend = 0, frame = 0 178 @ frame_needed = 0, uses_anonymous_args = 0 179 @ link register save eliminated. 914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 180 .loc 1 915 3 view .LVU27 916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_MspInit must be implemented in the user file. 919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 181 .loc 1 920 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 191 .thumb_func 193 HAL_ADC_Init: 194 .LVL15: 195 .LFB329: 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 196 .loc 1 397 1 is_stmt 1 view -0 197 .cfi_startproc 198 @ args = 0, pretend = 0, frame = 8 199 @ frame_needed = 0, uses_anonymous_args = 0 397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 200 .loc 1 397 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 398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 210 .loc 1 398 3 is_stmt 1 view .LVU31 211 .LVL16: 399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 212 .loc 1 399 3 view .LVU32 400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 213 .loc 1 400 3 view .LVU33 401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 214 .loc 1 401 3 view .LVU34 402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 215 .loc 1 402 3 view .LVU35 402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 216 .loc 1 402 17 is_stmt 0 view .LVU36 217 0004 0023 movs r3, #0 218 0006 0193 str r3, [sp, #4] 405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 139 219 .loc 1 405 3 is_stmt 1 view .LVU37 405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 220 .loc 1 405 6 is_stmt 0 view .LVU38 221 0008 0028 cmp r0, #0 222 000a 00F0FF80 beq .L29 223 000e 0446 mov r4, r0 411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CLOCKPRESCALER(hadc->Init.ClockPrescaler)); 224 .loc 1 411 3 is_stmt 1 view .LVU39 412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RESOLUTION(hadc->Init.Resolution)); 225 .loc 1 412 3 view .LVU40 413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); 226 .loc 1 413 3 view .LVU41 414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_GAIN_COMPENSATION(hadc->Init.GainCompensation)); 227 .loc 1 414 3 view .LVU42 415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); 228 .loc 1 415 3 view .LVU43 416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); 229 .loc 1 416 3 view .LVU44 417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); 230 .loc 1 417 3 view .LVU45 418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EXTTRIG(hadc, hadc->Init.ExternalTrigConv)); 231 .loc 1 418 3 view .LVU46 419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLINGMODE(hadc->Init.SamplingMode)); 232 .loc 1 419 3 view .LVU47 420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests)); 233 .loc 1 420 3 view .LVU48 421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 234 .loc 1 421 3 view .LVU49 422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun)); 235 .loc 1 422 3 view .LVU50 423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait)); 236 .loc 1 423 3 view .LVU51 424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode)); 237 .loc 1 424 3 view .LVU52 425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 238 .loc 1 425 3 view .LVU53 427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 239 .loc 1 427 3 view .LVU54 429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DiscontinuousConvMode)); 240 .loc 1 429 5 view .LVU55 430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 241 .loc 1 430 5 view .LVU56 432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 242 .loc 1 432 5 view .LVU57 434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 243 .loc 1 434 7 view .LVU58 439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 244 .loc 1 439 3 view .LVU59 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 245 .loc 1 443 3 view .LVU60 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 246 .loc 1 443 11 is_stmt 0 view .LVU61 247 0010 C36D ldr r3, [r0, #92] 443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 248 .loc 1 443 6 view .LVU62 249 0012 13B3 cbz r3, .L32 250 .LVL17: ARM GAS /tmp/cco84Mp4.s page 140 251 .L10: 477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 252 .loc 1 477 3 is_stmt 1 view .LVU63 477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 253 .loc 1 477 41 is_stmt 0 view .LVU64 254 0014 2368 ldr r3, [r4] 255 .LVL18: 256 .LBB334: 257 .LBI334: 6729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog monitored channel. 6732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Usage of the returned channel number: 6733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To reinject this channel into another function LL_ADC_xxx: 6734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the returned channel number is only partly formatted on definition 6735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * of literals LL_ADC_CHANNEL_x. Therefore, it has to be compared 6736:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with parts of literals LL_ADC_CHANNEL_x or using 6737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * helper macro @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 6738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Then the selected literal LL_ADC_CHANNEL_x can be used 6739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * as parameter for another function. 6740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - To get the channel number in decimal format: 6741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * process the returned value with the helper macro 6742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_CHANNEL_TO_DECIMAL_NB(). 6743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Applicable only when the analog watchdog is set to monitor 6744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * one channel. 6745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 6746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 6747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 6748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 6749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 6750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 6751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 6752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 6753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 6754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 6755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 6756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 6757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 6758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 6759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 6760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 6761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 6762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 6763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 6764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 6765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 6766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 6767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 6768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 6769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 6770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR AWD1CH LL_ADC_GetAnalogWDMonitChannels\n 6771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1SGL LL_ADC_GetAnalogWDMonitChannels\n 6772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR AWD1EN LL_ADC_GetAnalogWDMonitChannels\n 6773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR JAWD1EN LL_ADC_GetAnalogWDMonitChannels\n 6774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD2CR AWD2CH LL_ADC_GetAnalogWDMonitChannels\n 6775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * AWD3CR AWD3CH LL_ADC_GetAnalogWDMonitChannels 6776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/cco84Mp4.s page 141 6777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 (1) 6780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 (1) 6781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) On this AWD number, monitored channel can be retrieved 6783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * if only 1 channel is programmed (or none or all channels). 6784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This function cannot retrieve monitored channel if 6785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * multiple channels are programmed simultaneously 6786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by bitfield. 6787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 6788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_DISABLE 6789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG (0) 6790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_INJ (0) 6791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_ALL_CHANNELS_REG_INJ 6792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG (0) 6793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_INJ (0) 6794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_0_REG_INJ 6795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG (0) 6796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_INJ (0) 6797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_1_REG_INJ 6798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG (0) 6799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_INJ (0) 6800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_2_REG_INJ 6801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG (0) 6802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_INJ (0) 6803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_3_REG_INJ 6804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG (0) 6805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_INJ (0) 6806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_4_REG_INJ 6807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG (0) 6808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_INJ (0) 6809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_5_REG_INJ 6810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG (0) 6811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_INJ (0) 6812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_6_REG_INJ 6813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG (0) 6814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_INJ (0) 6815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_7_REG_INJ 6816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG (0) 6817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_INJ (0) 6818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_8_REG_INJ 6819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG (0) 6820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_INJ (0) 6821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_9_REG_INJ 6822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG (0) 6823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_INJ (0) 6824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_10_REG_INJ 6825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG (0) 6826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_INJ (0) 6827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_11_REG_INJ 6828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG (0) 6829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_INJ (0) 6830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_12_REG_INJ 6831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG (0) 6832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_INJ (0) 6833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_13_REG_INJ ARM GAS /tmp/cco84Mp4.s page 142 6834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG (0) 6835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_INJ (0) 6836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_14_REG_INJ 6837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG (0) 6838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_INJ (0) 6839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_15_REG_INJ 6840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG (0) 6841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_INJ (0) 6842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_16_REG_INJ 6843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG (0) 6844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_INJ (0) 6845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_17_REG_INJ 6846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG (0) 6847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_INJ (0) 6848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_CHANNEL_18_REG_INJ 6849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 6850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (0) On STM32G4, parameter available only on analog watchdog number: AWD1. 6851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDMonitChannels(const ADC_TypeDef *ADCx, uint32_t AWDy) 6853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->CFGR, 6855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_ 6856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** + ((AWDy & ADC_AWD_CR12_REGOFFSETGAP_MASK) 6857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC_AWD_CR12_REGOFFSETGAP_VAL)); 6858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t analog_wd_monit_channels = (READ_BIT(*preg, AWDy) & AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK); 6860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* If "analog_wd_monit_channels" == 0, then the selected AWD is disabled */ 6862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* (parameter value LL_ADC_AWD_DISABLE). */ 6863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Else, the selected AWD is enabled and is monitoring a group of channels */ 6864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* or a single channel. */ 6865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (analog_wd_monit_channels != 0UL) 6866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if (AWDy == LL_ADC_AWD1) 6868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if ((analog_wd_monit_channels & ADC_CFGR_AWD1SGL) == 0UL) 6870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ 6872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** analog_wd_monit_channels = ((analog_wd_monit_channels 6873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_AWD_CR23_CHANNEL_MASK) 6874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ) 6875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & (~(ADC_CFGR_AWD1CH)) 6876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 6879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a single channel */ 6881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** analog_wd_monit_channels = (analog_wd_monit_channels 6882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_AWD2CR_AWD2CH_0 << (analog_wd_monit_channels >> ADC_CFGR 6883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 6887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** if ((analog_wd_monit_channels & ADC_AWD_CR23_CHANNEL_MASK) == ADC_AWD_CR23_CHANNEL_MASK) 6889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ ARM GAS /tmp/cco84Mp4.s page 143 6891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** analog_wd_monit_channels = (ADC_AWD_CR23_CHANNEL_MASK 6892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | ((ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN)) 6893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** else 6896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a single channel */ 6898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* AWD monitoring a group of channels */ 6899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** analog_wd_monit_channels = (analog_wd_monit_channels 6900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (ADC_CFGR_JAWD1EN | ADC_CFGR_AWD1EN | ADC_CFGR_AWD1SGL) 6901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** | (__LL_ADC_CHANNEL_TO_DECIMAL_NB(analog_wd_monit_channels) << 6902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 6903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return analog_wd_monit_channels; 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 **** /** 6911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog thresholds value of both thresholds 6912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * high and low. 6913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If value of only one threshold high or low must be set, 6914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_SetAnalogWDThresholds(). 6915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 6916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 6917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). 6918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 6919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 6920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 6921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 6922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 6923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 6924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 6925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 6926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 6927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 6928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 6929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 6930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) 6931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 6932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 6933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 6934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 6935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 6936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 6937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 6938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 6939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC oversampling is enabled, ADC analog watchdog thresholds are 6940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * impacted: the comparison of analog watchdog thresholds is done on 6941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * oversampling final computation (after ratio and shift application): 6942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC data register bitfield [15:4] (12 most significant bits). 6943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Examples: 6944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data 6945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 12 bits (ratio 16 and shift 4, or ratio 32 and shift 5, ...): 6946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds must be divided by 16. 6947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data ARM GAS /tmp/cco84Mp4.s page 144 6948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 14 bits (ratio 16 and shift 2, or ratio 32 and shift 3, ...): 6949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds must be divided by 4. 6950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data 6951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 16 bits (ratio 16 and shift none, or ratio 32 and shift 1, ...): 6952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds match directly to ADC data register. 6953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_ConfigAnalogWDThresholds\n 6954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_ConfigAnalogWDThresholds\n 6955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_ConfigAnalogWDThresholds\n 6956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_ConfigAnalogWDThresholds\n 6957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_ConfigAnalogWDThresholds\n 6958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_ConfigAnalogWDThresholds 6959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 6960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 6961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 6962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 6963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 6964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdHighValue Value between Min_Data=0x000 and Max_Data=0xFFF 6965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdLowValue Value between Min_Data=0x000 and Max_Data=0xFFF 6966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 6967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 6968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWD 6969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdLowValue) 6970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdxxxValue" with bits */ 6972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* position in register and register position depending on parameter */ 6973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "AWDy". */ 6974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdxxxValue" are used with masks because */ 6975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, 6977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 6978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 6980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 6981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDThresholdHighValue << ADC_TR1_HT1_BITOFFSET_POS) | AWDThresholdLowValue); 6982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 6984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 6985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog threshold value of threshold 6986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * high or low. 6987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If values of both thresholds high or low must be set, 6988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * use function @ref LL_ADC_ConfigAnalogWDThresholds(). 6989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 6990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 6991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_SET_THRESHOLD_RESOLUTION(). 6992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, there are 2 kinds of analog watchdog 6993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * instance: 6994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD standard (instance AWD1): 6995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: can monitor 1 channel or all channels. 6996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: ADC groups regular and-or injected. 6997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is not limited (corresponds to 6998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution configured). 6999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - AWD flexible (instances AWD2, AWD3): 7000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - channels monitored: flexible on channels monitored, selection is 7001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * channel wise, from from 1 to all channels. 7002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specificity of this analog watchdog: Multiple channels can 7003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * be selected. For example: 7004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (LL_ADC_AWD_CHANNEL4_REG_INJ | LL_ADC_AWD_CHANNEL5_REG_INJ | ...) ARM GAS /tmp/cco84Mp4.s page 145 7005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - groups monitored: not selection possible (monitoring on both 7006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * groups regular and injected). 7007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Channels selected are monitored on groups regular and injected: 7008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG_INJ (do not use parameters 7009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * LL_ADC_AWD_CHANNELxx_REG and LL_ADC_AWD_CHANNELxx_INJ) 7010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - resolution: resolution is limited to 8 bits: if ADC resolution is 7011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 12 bits the 4 LSB are ignored, if ADC resolution is 10 bits 7012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the 2 LSB are ignored. 7013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC oversampling is enabled, ADC analog watchdog thresholds are 7014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * impacted: the comparison of analog watchdog thresholds is done on 7015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * oversampling final computation (after ratio and shift application): 7016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC data register bitfield [15:4] (12 most significant bits). 7017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Examples: 7018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data 7019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 12 bits (ratio 16 and shift 4, or ratio 32 and shift 5, ...): 7020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds must be divided by 16. 7021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data 7022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 14 bits (ratio 16 and shift 2, or ratio 32 and shift 3, ...): 7023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds must be divided by 4. 7024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Oversampling ratio and shift selected to have ADC conversion data 7025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on 16 bits (ratio 16 and shift none, or ratio 32 and shift 1, ...): 7026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC analog watchdog thresholds match directly to ADC data register. 7027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is not conditioned to 7028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC can be disabled, enabled with or without conversion on going 7030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either ADC groups regular or injected. 7031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_SetAnalogWDThresholds\n 7032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_SetAnalogWDThresholds\n 7033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_SetAnalogWDThresholds\n 7034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_SetAnalogWDThresholds\n 7035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_SetAnalogWDThresholds\n 7036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_SetAnalogWDThresholds 7037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 7039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 7040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 7041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 7042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 7043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 7044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 7045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdValue Value between Min_Data=0x000 and Max_Data=0xFFF 7046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAnalogWDThresholds(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t AWDThr 7049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdValue) 7050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Set bits with content of parameter "AWDThresholdValue" with bits */ 7052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* position in register and register position depending on parameters */ 7053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* "AWDThresholdsHighLow" and "AWDy". */ 7054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Parameters "AWDy" and "AWDThresholdValue" are used with masks because */ 7055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* containing other bits reserved for other purpose. */ 7056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, 7057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 7058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(*preg, 7060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDThresholdsHighLow, 7061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** AWDThresholdValue << ((AWDThresholdsHighLow & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TR ARM GAS /tmp/cco84Mp4.s page 146 7062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog threshold value of threshold high, 7066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * threshold low or raw data with ADC thresholds high and low 7067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * concatenated. 7068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If raw data with ADC thresholds high and low is retrieved, 7069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the data of each threshold high or low can be isolated 7070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using helper macro: 7071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_ANALOGWD_THRESHOLDS_HIGH_LOW(). 7072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC resolution different of 12 bits, 7073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog thresholds data require a specific shift. 7074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Use helper macro @ref __LL_ADC_ANALOGWD_GET_THRESHOLD_RESOLUTION(). 7075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 HT1 LL_ADC_GetAnalogWDThresholds\n 7076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 HT2 LL_ADC_GetAnalogWDThresholds\n 7077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 HT3 LL_ADC_GetAnalogWDThresholds\n 7078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR1 LT1 LL_ADC_GetAnalogWDThresholds\n 7079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR2 LT2 LL_ADC_GetAnalogWDThresholds\n 7080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * TR3 LT3 LL_ADC_GetAnalogWDThresholds 7081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 7083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 7084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD2 7085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD3 7086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDThresholdsHighLow This parameter can be one of the following values: 7087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_HIGH 7088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLD_LOW 7089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_THRESHOLDS_HIGH_LOW 7090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 7091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAnalogWDThresholds(const ADC_TypeDef *ADCx, 7093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDy, uint32_t AWDThresholdsHighLow) 7094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->TR1, 7096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_ 7097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 7099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDThresholdsHighLow | ADC_TR1_LT1)) 7100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (((AWDThresholdsHighLow & ADC_AWD_TRX_BIT_HIGH_MASK) >> ADC_AWD_TRX_BIT_HIGH 7101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** & ~(AWDThresholdsHighLow & ADC_TR1_LT1))); 7102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC analog watchdog filtering configuration 7106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 7109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 7110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first 7111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog (AWD1) 7112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_SetAWDFilteringConfiguration 7113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 7115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 7116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param FilteringConfig This parameter can be one of the following values: 7117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 7118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES ARM GAS /tmp/cco84Mp4.s page 147 7119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 7120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 7121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 7122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 7123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 7124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 7125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetAWDFilteringConfiguration(ADC_TypeDef *ADCx, uint32_t AWDy, uint32_t 7128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 7130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(AWDy); 7131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->TR1, ADC_TR1_AWDFILT, FilteringConfig); 7132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC analog watchdog filtering configuration 7136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this feature is only available on first 7137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * analog watchdog (AWD1) 7138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll TR1 AWDFILT LL_ADC_GetAWDFilteringConfiguration 7139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param AWDy This parameter can be one of the following values: 7141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD1 7142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be: 7143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_NONE 7144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_2SAMPLES 7145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_3SAMPLES 7146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_4SAMPLES 7147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_5SAMPLES 7148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_6SAMPLES 7149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_7SAMPLES 7150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_AWD_FILTERING_8SAMPLES 7151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetAWDFilteringConfiguration(const ADC_TypeDef *ADCx, uint32_t AWDy 7153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Prevent unused argument(s) compilation warning */ 7155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (void)(AWDy); 7156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->TR1, ADC_TR1_AWDFILT)); 7157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 7161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_oversampling Configuration of ADC transversal scope: over 7164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling scope: ADC groups regular and-or injected 7169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 series). 7170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If both groups regular and injected are selected, 7171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 7172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 7173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the oversampling on ADC group regular is either 7174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 7175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (oversampler buffer reset). ARM GAS /tmp/cco84Mp4.s page 148 7176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 7179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 7180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_SetOverSamplingScope\n 7181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_SetOverSamplingScope\n 7182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_SetOverSamplingScope 7183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OvsScope This parameter can be one of the following values: 7185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 7186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 7187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED 7188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 7189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 7190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingScope(ADC_TypeDef *ADCx, uint32_t OvsScope) 7193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_ROVSE | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSM, OvsScope); 7195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 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 **** * @brief Get ADC oversampling scope: ADC groups regular and-or injected 7199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (availability of ADC group injected depends on STM32 series). 7200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If both groups regular and injected are selected, 7201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * specify behavior of ADC group injected interrupting 7202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * group regular: when ADC group injected is triggered, 7203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the oversampling on ADC group regular is either 7204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * temporary stopped and continued, or resumed from start 7205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (oversampler buffer reset). 7206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 ROVSE LL_ADC_GetOverSamplingScope\n 7207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 JOVSE LL_ADC_GetOverSamplingScope\n 7208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 ROVSM LL_ADC_GetOverSamplingScope 7209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 7211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_DISABLE 7212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_CONTINUED 7213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_REGULAR_RESUMED 7214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJECTED 7215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_GRP_INJ_REG_RESUMED 7216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingScope(const ADC_TypeDef *ADCx) 7218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7219: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)); 7220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling discontinuous mode (triggered mode) 7224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on the selected ADC group. 7225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 7226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 7227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are done from 1 trigger) 7228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 7229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * needs a trigger) 7230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going ARM GAS /tmp/cco84Mp4.s page 149 7233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on group regular. 7234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, oversampling discontinuous mode 7235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (triggered mode) can be used only when oversampling is 7236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * set on group regular only and in resumed mode. 7237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_SetOverSamplingDiscont 7238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param OverSamplingDiscont This parameter can be one of the following values: 7240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 7241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 7242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetOverSamplingDiscont(ADC_TypeDef *ADCx, uint32_t OverSamplingDiscont) 7245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, ADC_CFGR2_TROVS, OverSamplingDiscont); 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 **** /** 7250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling discontinuous mode (triggered mode) 7251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on the selected ADC group. 7252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note Number of oversampled conversions are done either in: 7253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - continuous mode (all conversions of oversampling ratio 7254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are done from 1 trigger) 7255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - discontinuous mode (each conversion of oversampling ratio 7256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * needs a trigger) 7257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 TROVS LL_ADC_GetOverSamplingDiscont 7258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 7260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_CONT 7261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_REG_DISCONT 7262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingDiscont(const ADC_TypeDef *ADCx) 7264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_TROVS)); 7266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC oversampling 7270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 7271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function set the 2 items of oversampling configuration: 7272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ratio 7273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - shift 7274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be disabled or enabled without conversion on going 7277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 7278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_ConfigOverSamplingRatioShift\n 7279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CFGR2 OVSR LL_ADC_ConfigOverSamplingRatioShift 7280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Ratio This parameter can be one of the following values: 7282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 7283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 7284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 7285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 7286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 7287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 7288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 7289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 ARM GAS /tmp/cco84Mp4.s page 150 7290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Shift This parameter can be one of the following values: 7291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 7292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 7293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 7294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 7295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 7296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 7297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 7298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 7299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 7300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ConfigOverSamplingRatioShift(ADC_TypeDef *ADCx, uint32_t Ratio, uint32_ 7303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_OVSS | ADC_CFGR2_OVSR), (Shift | Ratio)); 7305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling ratio 7309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 7310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSR LL_ADC_GetOverSamplingRatio 7311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Ratio This parameter can be one of the following values: 7313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_2 7314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_4 7315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_8 7316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_16 7317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_32 7318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_64 7319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_128 7320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_RATIO_256 7321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingRatio(const ADC_TypeDef *ADCx) 7323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSR)); 7325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC oversampling shift 7329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (impacting both ADC groups regular and injected) 7330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 OVSS LL_ADC_GetOverSamplingShift 7331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Shift This parameter can be one of the following values: 7333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_NONE 7334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_1 7335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_2 7336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_3 7337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_4 7338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_5 7339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_6 7340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_7 7341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_OVS_SHIFT_RIGHT_8 7342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetOverSamplingShift(const ADC_TypeDef *ADCx) 7344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->CFGR2, ADC_CFGR2_OVSS)); 7346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 151 7347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 7350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Configuration_ADC_Multimode Configuration of ADC hierarchical scope: multim 7353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 7357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode configuration to operate in independent mode 7359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 7360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 7361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * either master or slave depending on hardware. 7362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 7363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 7366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 7367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro 7368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 7369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_SetMultimode 7370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7371: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 7372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Multimode This parameter can be one of the following values: 7373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 7374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 7375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 7376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 7377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 7378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM 7379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 7380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 7381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultimode(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Multimode) 7384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DUAL, Multimode); 7386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode configuration to operate in independent mode 7390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or multimode (for devices with several ADC instances). 7391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If multimode configuration: the selected ADC instance is 7392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * either master or slave depending on hardware. 7393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to reference manual. 7394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DUAL LL_ADC_GetMultimode 7395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7396: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 7397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 7398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_INDEPENDENT 7399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIMULT 7400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INTERL 7401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_SIMULT 7402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_INJ_ALTERN 7403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM ARM GAS /tmp/cco84Mp4.s page 152 7404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT 7405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM 7406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultimode(const ADC_Common_TypeDef *ADCxy_COMMON) 7408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL)); 7410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode conversion data transfer: no transfer 7414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or transfer by DMA. 7415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 7416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 7417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DMA transfer settings. 7418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 7419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 7420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specifies the DMA requests mode: 7421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 7422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 7423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 7424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 7425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 7426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 7427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 7428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 7429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 7430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 7431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 7432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 7433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 7434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 7435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function 7436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 7437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 7438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 7439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * A macro is available to get the conversion data of 7440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 7441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 7442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled 7445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or enabled without conversion on going on group regular. 7446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR MDMA LL_ADC_SetMultiDMATransfer\n 7447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR DMACFG LL_ADC_SetMultiDMATransfer 7448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7449: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 7450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param MultiDMATransfer This parameter can be one of the following values: 7451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 7452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B 7453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B 7454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B 7455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B 7456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiDMATransfer(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t MultiDMA 7459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG, MultiDMATransfer); ARM GAS /tmp/cco84Mp4.s page 153 7461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode conversion data transfer: no transfer 7465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or transfer by DMA. 7466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC multimode transfer by DMA is not selected: 7467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * each ADC uses its own DMA channel, with its individual 7468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * DMA transfer settings. 7469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: 7470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * One DMA channel is used for both ADC (DMA of ADC master) 7471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Specifies the DMA requests mode: 7472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Limited mode (One shot mode): DMA transfer requests are stopped 7473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when number of DMA data transfers (number of 7474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions) is reached. 7475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode non-circular. 7476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - Unlimited mode: DMA transfer requests are unlimited, 7477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * whatever number of DMA data transfers (number of 7478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions). 7479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This ADC mode is intended to be used with DMA mode circular. 7480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If ADC DMA requests mode is set to unlimited and DMA is set to 7481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * mode non-circular: 7482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * when DMA transfers size will be reached, DMA will stop transfers of 7483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversions data ADC will raise an overrun error 7484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (overrun flag and interruption if enabled). 7485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note How to retrieve multimode conversion data: 7486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Whatever multimode transfer by DMA setting: using function 7487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref LL_ADC_REG_ReadMultiConversionData32(). 7488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * If ADC multimode transfer by DMA is selected: conversion data 7489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is a raw data with ADC master and slave concatenated. 7490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * A macro is available to get the conversion data of 7491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 7492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 7493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR MDMA LL_ADC_GetMultiDMATransfer\n 7494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CCR DMACFG LL_ADC_GetMultiDMATransfer 7495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7496: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 7497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 7498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_EACH_ADC 7499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES12_10B 7500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_LIMIT_RES8_6B 7501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES12_10B 7502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_REG_DMA_UNLMT_RES8_6B 7503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiDMATransfer(const ADC_Common_TypeDef *ADCxy_COMMON) 7505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_MDMA | ADC_CCR_DMACFG)); 7507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7508:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Set ADC multimode delay between 2 sampling phases. 7511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note The sampling delay range depends on ADC resolution: 7512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 12 bits can have maximum delay of 12 cycles. 7513:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 10 bits can have maximum delay of 10 cycles. 7514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 8 bits can have maximum delay of 8 cycles. 7515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - ADC resolution 6 bits can have maximum delay of 6 cycles. 7516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: ARM GAS /tmp/cco84Mp4.s page 154 7518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * All ADC instances of the ADC common group must be disabled. 7519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * This check can be done with function @ref LL_ADC_IsEnabled() for each 7520:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC instance or by using helper macro helper macro 7521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(). 7522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_SetMultiTwoSamplingDelay 7523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7524: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 7525:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param MultiTwoSamplingDelay This parameter can be one of the following values: 7526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE 7527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES 7528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES 7529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES 7530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES 7531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (1) 7532:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES (1) 7533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (2) 7534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (2) 7535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (2) 7536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (3) 7537:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (3) 7538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 7539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 12, 10 or 8 bits.\n 7540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 12 or 10 bits.\n 7541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 12 bits. 7542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7544:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_SetMultiTwoSamplingDelay(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t Mul 7545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_DELAY, MultiTwoSamplingDelay); 7547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7549:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode delay between 2 sampling phases. 7551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CCR DELAY LL_ADC_GetMultiTwoSamplingDelay 7552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 7553: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 7554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Returned value can be one of the following values: 7555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_1CYCLE 7556:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_2CYCLES 7557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_3CYCLES 7558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_4CYCLES 7559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_5CYCLES 7560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_6CYCLES (1) 7561:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_7CYCLES (1) 7562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_8CYCLES (2) 7563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_9CYCLES (2) 7564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_10CYCLES (2) 7565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_11CYCLES (3) 7566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_TWOSMP_DELAY_12CYCLES (3) 7567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * 7568:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (1) Parameter available only if ADC resolution is 12, 10 or 8 bits.\n 7569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (2) Parameter available only if ADC resolution is 12 or 10 bits.\n 7570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (3) Parameter available only if ADC resolution is 12 bits. 7571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_GetMultiTwoSamplingDelay(const ADC_Common_TypeDef *ADCxy_COMMON) 7573:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DELAY)); ARM GAS /tmp/cco84Mp4.s page 155 7575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 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 **** */ 7581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Instance Operation on ADC hierarchical scope: ADC instance 7582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 7583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7585:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Put ADC instance in deep power down state. 7587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down 7588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 7589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 7590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 7591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7592:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 7594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_EnableDeepPowerDown 7595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7597:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableDeepPowerDown(ADC_TypeDef *ADCx) 7599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7604:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_DEEPPWD); 7606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7609:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable ADC deep power down mode. 7610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note In case of ADC calibration necessary: When ADC is in deep-power-down 7611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * state, the internal analog calibration is lost. After exiting from 7612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * deep power down, calibration must be relaunched or calibration factor 7613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (preliminarily saved) must be set back into calibration register. 7614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7616:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 7617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown 7618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx) 7622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS)); 7627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7628:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance deep power down state. 7631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled ARM GAS /tmp/cco84Mp4.s page 156 7632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7633:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: deep power down is disabled, 1: deep power down is enabled. 7634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(const ADC_TypeDef *ADCx) 258 .loc 2 7635 26 is_stmt 1 view .LVU65 259 .LBB335: 7636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL); 260 .loc 2 7637 3 view .LVU66 261 .loc 2 7637 12 is_stmt 0 view .LVU67 262 0016 9A68 ldr r2, [r3, #8] 263 .loc 2 7637 74 view .LVU68 264 0018 12F0005F tst r2, #536870912 265 001c 05D0 beq .L11 266 .LVL19: 267 .loc 2 7637 74 view .LVU69 268 .LBE335: 269 .LBE334: 480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 270 .loc 1 480 5 is_stmt 1 view .LVU70 271 .LBB336: 272 .LBI336: 7621:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 273 .loc 2 7621 22 view .LVU71 274 .LBB337: 7626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 275 .loc 2 7626 3 view .LVU72 276 001e 9A68 ldr r2, [r3, #8] 277 0020 22F02042 bic r2, r2, #-1610612736 278 0024 22F03F02 bic r2, r2, #63 279 0028 9A60 str r2, [r3, #8] 280 .LVL20: 281 .L11: 7626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 282 .loc 2 7626 3 is_stmt 0 view .LVU73 283 .LBE337: 284 .LBE336: 487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 285 .loc 1 487 3 is_stmt 1 view .LVU74 487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 286 .loc 1 487 45 is_stmt 0 view .LVU75 287 002a 2268 ldr r2, [r4] 288 .LVL21: 289 .LBB338: 290 .LBI338: 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 **** /** 7641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC instance internal voltage regulator. 7642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, after ADC internal voltage regulator enable, 7643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a delay for ADC internal voltage regulator stabilization 7644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is required before performing a ADC calibration or ADC enable. 7645:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet, parameter tADCVREG_STUP. 7646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_INTERNAL_REGUL_STAB_US. 7647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. ARM GAS /tmp/cco84Mp4.s page 157 7650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator 7651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7652:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx) 7655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7657:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADVREGEN); 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 **** /** 7665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable ADC internal voltage regulator. 7666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 7669:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_DisableInternalRegulator 7670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableInternalRegulator(ADC_TypeDef *ADCx) 7674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CR, (ADC_CR_ADVREGEN | ADC_CR_BITS_PROPERTY_RS)); 7676:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance internal voltage regulator state. 7680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled 7681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: internal regulator is disabled, 1: internal regulator is enabled. 7683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(const ADC_TypeDef *ADCx) 291 .loc 2 7684 26 is_stmt 1 view .LVU76 292 .LBB339: 7685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL); 293 .loc 2 7686 3 view .LVU77 294 .loc 2 7686 12 is_stmt 0 view .LVU78 295 002c 9368 ldr r3, [r2, #8] 296 .loc 2 7686 76 view .LVU79 297 002e 13F0805F tst r3, #268435456 298 0032 1FD1 bne .L12 299 .LVL22: 300 .loc 2 7686 76 view .LVU80 301 .LBE339: 302 .LBE338: 490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 303 .loc 1 490 5 is_stmt 1 view .LVU81 304 .LBB340: 305 .LBI340: 7654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 306 .loc 2 7654 22 view .LVU82 307 .LBB341: 7659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, ARM GAS /tmp/cco84Mp4.s page 158 308 .loc 2 7659 3 view .LVU83 309 0034 9368 ldr r3, [r2, #8] 310 0036 23F01043 bic r3, r3, #-1879048192 311 003a 23F03F03 bic r3, r3, #63 312 003e 43F08053 orr r3, r3, #268435456 313 0042 9360 str r3, [r2, #8] 314 .LVL23: 7659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 315 .loc 2 7659 3 is_stmt 0 view .LVU84 316 .LBE341: 317 .LBE340: 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 318 .loc 1 495 5 is_stmt 1 view .LVU85 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 319 .loc 1 495 89 is_stmt 0 view .LVU86 320 0044 724B ldr r3, .L36 321 0046 1B68 ldr r3, [r3] 322 0048 9B09 lsrs r3, r3, #6 323 004a 724A ldr r2, .L36+4 324 004c A2FB0323 umull r2, r3, r2, r3 325 0050 9B09 lsrs r3, r3, #6 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 326 .loc 1 495 109 view .LVU87 327 0052 0133 adds r3, r3, #1 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 328 .loc 1 495 69 view .LVU88 329 0054 5B00 lsls r3, r3, #1 495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 330 .loc 1 495 21 view .LVU89 331 0056 0193 str r3, [sp, #4] 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 332 .loc 1 496 5 is_stmt 1 view .LVU90 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 333 .loc 1 496 11 is_stmt 0 view .LVU91 334 0058 09E0 b .L13 335 .LVL24: 336 .L32: 466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 337 .loc 1 466 5 is_stmt 1 view .LVU92 338 005a FFF7FEFF bl HAL_ADC_MspInit 339 .LVL25: 470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 340 .loc 1 470 5 view .LVU93 341 005e 0023 movs r3, #0 342 0060 2366 str r3, [r4, #96] 473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 343 .loc 1 473 5 view .LVU94 473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 344 .loc 1 473 16 is_stmt 0 view .LVU95 345 0062 84F85830 strb r3, [r4, #88] 346 0066 D5E7 b .L10 347 .L14: 498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 348 .loc 1 498 7 is_stmt 1 view .LVU96 498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 349 .loc 1 498 22 is_stmt 0 view .LVU97 350 0068 019B ldr r3, [sp, #4] ARM GAS /tmp/cco84Mp4.s page 159 351 006a 013B subs r3, r3, #1 352 006c 0193 str r3, [sp, #4] 353 .L13: 496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 354 .loc 1 496 28 is_stmt 1 view .LVU98 355 006e 019B ldr r3, [sp, #4] 356 0070 002B cmp r3, #0 357 0072 F9D1 bne .L14 358 .L12: 505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 359 .loc 1 505 3 view .LVU99 505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 360 .loc 1 505 45 is_stmt 0 view .LVU100 361 0074 2268 ldr r2, [r4] 362 .LVL26: 363 .LBB342: 364 .LBI342: 7684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 365 .loc 2 7684 26 is_stmt 1 view .LVU101 366 .LBB343: 367 .loc 2 7686 3 view .LVU102 368 .loc 2 7686 12 is_stmt 0 view .LVU103 369 0076 9368 ldr r3, [r2, #8] 370 .loc 2 7686 76 view .LVU104 371 0078 13F0805F tst r3, #268435456 372 007c 40F09280 bne .L30 373 .LVL27: 374 .loc 2 7686 76 view .LVU105 375 .LBE343: 376 .LBE342: 508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 377 .loc 1 508 5 is_stmt 1 view .LVU106 378 0080 E36D ldr r3, [r4, #92] 379 0082 43F01003 orr r3, r3, #16 380 0086 E365 str r3, [r4, #92] 511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 381 .loc 1 511 5 view .LVU107 382 0088 236E ldr r3, [r4, #96] 383 008a 43F00103 orr r3, r3, #1 384 008e 2366 str r3, [r4, #96] 513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 385 .loc 1 513 5 view .LVU108 386 .LVL28: 513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 387 .loc 1 513 20 is_stmt 0 view .LVU109 388 0090 0120 movs r0, #1 389 .LVL29: 390 .L15: 520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 391 .loc 1 520 3 is_stmt 1 view .LVU110 392 .LBB344: 393 .LBI344: 7687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7688:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable the selected ADC instance. 7691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, after ADC enable, a delay for ARM GAS /tmp/cco84Mp4.s page 160 7692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC internal analog stabilization is required before performing a 7693:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC conversion start. 7694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to device datasheet, parameter tSTAB. 7695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 7697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7700:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled and ADC internal voltage regulator enabled. 7701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_Enable 7702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx) 7706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7712:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADEN); 7713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable the selected ADC instance. 7717:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be not disabled. Must be enabled without conversion on going 7720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * on either groups regular or injected. 7721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_Disable 7722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7724:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx) 7726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7729:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADDIS); 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 the selected ADC instance enable state. 7737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 7738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 7739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 7740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADEN LL_ADC_IsEnabled 7741:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: ADC is disabled, 1: ADC is enabled. 7743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsEnabled(const ADC_TypeDef *ADCx) 7745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL); 7747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7748:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 161 7749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get the selected ADC instance disable state. 7751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing 7752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7753:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no ADC disable command on going. 7754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(const ADC_TypeDef *ADCx) 7756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL); 7758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7760:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC calibration in the mode single-ended 7762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or differential (for devices with differential mode available). 7763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, a minimum number of ADC clock cycles 7764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * are required between ADC end of calibration and ADC enable. 7765:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Refer to literal @ref LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES. 7766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with differential mode available: 7767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * Calibration of offset is specific to each of 7768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * single-ended and differential modes 7769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (calibration run must be performed for each of these 7770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * differential modes, if used afterwards and if the application 7771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * requires their calibration). 7772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be ADC disabled. 7775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_StartCalibration\n 7776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CR ADCALDIF LL_ADC_StartCalibration 7777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param SingleDiff This parameter can be one of the following values: 7779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_SINGLE_ENDED 7780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_DIFFERENTIAL_ENDED 7781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_StartCalibration(ADC_TypeDef *ADCx, uint32_t SingleDiff) 7784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADCALDIF | ADC_CR_BITS_PROPERTY_RS, 7790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADCAL | (SingleDiff & ADC_SINGLEDIFF_CALIB_START_MASK)); 7791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC calibration state. 7795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADCAL LL_ADC_IsCalibrationOnGoing 7796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: calibration complete, 1: calibration in progress. 7798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsCalibrationOnGoing(const ADC_TypeDef *ADCx) 7800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL); 7802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} ARM GAS /tmp/cco84Mp4.s page 162 7806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Regular Operation on ADC hierarchical scope: group regu 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 **** /** 7813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC group regular conversion. 7814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 7815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 7816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 7817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * starts immediately. 7818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 7819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 7820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * following the ADC start conversion command. 7821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 7824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 7825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 7826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_StartConversion 7827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx) 7831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADSTART); 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC group regular conversion. 7842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled with conversion on going on group regular, 7845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 7846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_StopConversion 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_REG_StopConversion(ADC_TypeDef *ADCx) 7851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 7853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 7854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 7855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 7856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 7857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_ADSTP); 7858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion state. 7862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing ARM GAS /tmp/cco84Mp4.s page 163 7863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group regular. 7865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(const ADC_TypeDef *ADCx) 394 .loc 2 7866 26 view .LVU111 395 .LBB345: 7867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL); 396 .loc 2 7868 3 view .LVU112 397 .loc 2 7868 12 is_stmt 0 view .LVU113 398 0092 9368 ldr r3, [r2, #8] 399 .loc 2 7868 74 view .LVU114 400 0094 13F00403 ands r3, r3, #4 401 0098 00D0 beq .L16 402 .loc 2 7868 74 discriminator 1 view .LVU115 403 009a 0123 movs r3, #1 404 .L16: 405 .LVL30: 406 .loc 2 7868 74 discriminator 1 view .LVU116 407 .LBE345: 408 .LBE344: 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_regular == 0UL) 409 .loc 1 522 3 is_stmt 1 view .LVU117 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_regular == 0UL) 410 .loc 1 522 13 is_stmt 0 view .LVU118 411 009c E16D ldr r1, [r4, #92] 522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_regular == 0UL) 412 .loc 1 522 6 view .LVU119 413 009e 11F0100F tst r1, #16 414 00a2 40F0AC80 bne .L17 523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 415 .loc 1 523 7 view .LVU120 416 00a6 002B cmp r3, #0 417 00a8 40F0A980 bne .L17 527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 418 .loc 1 527 5 is_stmt 1 view .LVU121 419 00ac E36D ldr r3, [r4, #92] 420 .LVL31: 527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY, 421 .loc 1 527 5 is_stmt 0 view .LVU122 422 00ae 23F48173 bic r3, r3, #258 423 00b2 43F00203 orr r3, r3, #2 424 00b6 E365 str r3, [r4, #92] 536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 425 .loc 1 536 5 is_stmt 1 view .LVU123 426 .LVL32: 427 .LBB346: 428 .LBI346: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 429 .loc 2 7744 26 view .LVU124 430 .LBB347: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 431 .loc 2 7746 3 view .LVU125 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 432 .loc 2 7746 12 is_stmt 0 view .LVU126 433 00b8 9368 ldr r3, [r2, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 164 434 .loc 2 7746 68 view .LVU127 435 00ba 13F0010F tst r3, #1 436 00be 13D1 bne .L18 437 .LVL33: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 438 .loc 2 7746 68 view .LVU128 439 .LBE347: 440 .LBE346: 538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 441 .loc 1 538 7 is_stmt 1 view .LVU129 442 .LBB348: 443 .LBI348: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 444 .loc 2 7744 26 view .LVU130 445 .LBB349: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 446 .loc 2 7746 3 view .LVU131 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 447 .loc 2 7746 12 is_stmt 0 view .LVU132 448 00c0 4FF0A043 mov r3, #1342177280 449 00c4 9B68 ldr r3, [r3, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 450 .loc 2 7746 68 view .LVU133 451 00c6 13F00103 ands r3, r3, #1 452 00ca 00D0 beq .L19 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 453 .loc 2 7746 68 discriminator 1 view .LVU134 454 00cc 0123 movs r3, #1 455 .L19: 456 .LVL34: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 457 .loc 2 7746 68 discriminator 1 view .LVU135 458 .LBE349: 459 .LBE348: 460 .LBB350: 461 .LBI350: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 462 .loc 2 7744 26 is_stmt 1 view .LVU136 463 .LBB351: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 464 .loc 2 7746 3 view .LVU137 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 465 .loc 2 7746 12 is_stmt 0 view .LVU138 466 00ce 524A ldr r2, .L36+8 467 00d0 9268 ldr r2, [r2, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 468 .loc 2 7746 68 view .LVU139 469 00d2 12F0010F tst r2, #1 470 00d6 07D1 bne .L18 471 .LVL35: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 472 .loc 2 7746 68 view .LVU140 473 .LBE351: 474 .LBE350: 538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 475 .loc 1 538 10 discriminator 2 view .LVU141 476 00d8 33B9 cbnz r3, .L18 ARM GAS /tmp/cco84Mp4.s page 165 557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 477 .loc 1 557 9 is_stmt 1 view .LVU142 478 00da 6368 ldr r3, [r4, #4] 479 .LVL36: 480 .LBB352: 481 .LBI352: 3679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 482 .loc 2 3679 22 view .LVU143 483 .LBB353: 3681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 484 .loc 2 3681 3 view .LVU144 485 00dc 4F49 ldr r1, .L36+12 486 00de 8A68 ldr r2, [r1, #8] 487 00e0 22F47C12 bic r2, r2, #4128768 488 00e4 1343 orrs r3, r3, r2 489 .LVL37: 3681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 490 .loc 2 3681 3 is_stmt 0 view .LVU145 491 00e6 8B60 str r3, [r1, #8] 492 .LVL38: 493 .L18: 3681:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 494 .loc 2 3681 3 view .LVU146 495 .LBE353: 496 .LBE352: 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 497 .loc 1 570 5 is_stmt 1 view .LVU147 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 498 .loc 1 570 18 is_stmt 0 view .LVU148 499 00e8 627F ldrb r2, [r4, #29] @ zero_extendqisi2 571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.DataAlign | 500 .loc 1 571 28 view .LVU149 501 00ea E36B ldr r3, [r4, #60] 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 502 .loc 1 570 89 view .LVU150 503 00ec 43EA4233 orr r3, r3, r2, lsl #13 572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Resolution | 504 .loc 1 572 28 view .LVU151 505 00f0 E268 ldr r2, [r4, #12] 571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.DataAlign | 506 .loc 1 571 89 view .LVU152 507 00f2 1343 orrs r3, r3, r2 573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode)); 508 .loc 1 573 28 view .LVU153 509 00f4 A268 ldr r2, [r4, #8] 572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Resolution | 510 .loc 1 572 89 view .LVU154 511 00f6 1343 orrs r3, r3, r2 574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 512 .loc 1 574 18 view .LVU155 513 00f8 94F82420 ldrb r2, [r4, #36] @ zero_extendqisi2 570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun | 514 .loc 1 570 15 view .LVU156 515 00fc 43EA0243 orr r3, r3, r2, lsl #16 516 .LVL39: 576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 517 .loc 1 576 5 is_stmt 1 view .LVU157 ARM GAS /tmp/cco84Mp4.s page 166 576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 518 .loc 1 576 8 is_stmt 0 view .LVU158 519 0100 012A cmp r2, #1 520 0102 51D0 beq .L33 521 .LVL40: 522 .L20: 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 523 .loc 1 586 5 is_stmt 1 view .LVU159 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 524 .loc 1 586 19 is_stmt 0 view .LVU160 525 0104 E26A ldr r2, [r4, #44] 586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 526 .loc 1 586 8 view .LVU161 527 0106 22B1 cbz r2, .L21 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 528 .loc 1 588 7 is_stmt 1 view .LVU162 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 529 .loc 1 588 49 is_stmt 0 view .LVU163 530 0108 02F47872 and r2, r2, #992 589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 531 .loc 1 589 32 view .LVU164 532 010c 216B ldr r1, [r4, #48] 589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ); 533 .loc 1 589 20 view .LVU165 534 010e 0A43 orrs r2, r2, r1 588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | hadc->Init.ExternalTrigConvEdge 535 .loc 1 588 16 view .LVU166 536 0110 1343 orrs r3, r3, r2 537 .LVL41: 538 .L21: 594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 539 .loc 1 594 5 is_stmt 1 view .LVU167 540 0112 2168 ldr r1, [r4] 541 0114 CD68 ldr r5, [r1, #12] 542 0116 424A ldr r2, .L36+16 543 0118 2A40 ands r2, r2, r5 544 011a 1A43 orrs r2, r2, r3 545 011c CA60 str r2, [r1, #12] 597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 546 .loc 1 597 5 view .LVU168 547 011e 2268 ldr r2, [r4] 548 0120 1369 ldr r3, [r2, #16] 549 .LVL42: 597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 550 .loc 1 597 5 is_stmt 0 view .LVU169 551 0122 23F04063 bic r3, r3, #201326592 552 0126 616B ldr r1, [r4, #52] 553 0128 0B43 orrs r3, r3, r1 554 012a 1361 str r3, [r2, #16] 606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 555 .loc 1 606 5 is_stmt 1 view .LVU170 606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 556 .loc 1 606 82 is_stmt 0 view .LVU171 557 012c 2268 ldr r2, [r4] 558 .LVL43: 559 .LBB354: 560 .LBI354: ARM GAS /tmp/cco84Mp4.s page 167 7869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular command of conversion stop state 7873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR ADSTP LL_ADC_REG_IsStopConversionOngoing 7874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group regular. 7876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_IsStopConversionOngoing(const ADC_TypeDef *ADCx) 7878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_ADSTP) == (ADC_CR_ADSTP)) ? 1UL : 0UL); 7880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC sampling phase for sampling time trigger mode 7884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is relevant only when 7885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED has been set 7886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using @ref LL_ADC_REG_SetSamplingMode 7887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_TRIG_SOFTWARE is used as trigger source 7888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 7891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 7892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 7893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 SWTRIG LL_ADC_REG_StartSamplingPhase 7894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StartSamplingPhase(ADC_TypeDef *ADCx) 7898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->CFGR2, ADC_CFGR2_SWTRIG); 7900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC sampling phase for sampling time trigger mode and start conversion 7904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note This function is relevant only when 7905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_SAMPLING_MODE_TRIGGER_CONTROLED has been set 7906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * using @ref LL_ADC_REG_SetSamplingMode 7907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_TRIG_SOFTWARE is used as trigger source 7908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - @ref LL_ADC_REG_StartSamplingPhase has been called to start 7909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * the sampling phase 7910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 7911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 7912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group regular, 7913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group regular, 7914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 7915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CFGR2 SWTRIG LL_ADC_REG_StopSamplingPhase 7916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 7918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_REG_StopSamplingPhase(ADC_TypeDef *ADCx) 7920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->CFGR2, ADC_CFGR2_SWTRIG); 7922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for ARM GAS /tmp/cco84Mp4.s page 168 7926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 7927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all oversampling increased data width (for devices 7928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with feature oversampling). 7929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData32 7930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 7932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32(const ADC_TypeDef *ADCx) 7934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 12 bits. 7941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData12 7945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 7947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12(const ADC_TypeDef *ADCx) 7949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 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 **** * @brief Get ADC group regular conversion data, range fit for 7955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 10 bits. 7956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData10 7960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 7962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10(const ADC_TypeDef *ADCx) 7964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 8 bits. 7971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData8 7975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 7976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 7977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8(const ADC_TypeDef *ADCx) 7979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 169 7983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 7984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group regular conversion data, range fit for 7985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 6 bits. 7986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 7987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 7988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_REG_ReadConversionData32. 7989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll DR RDATA LL_ADC_REG_ReadConversionData6 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 Value between Min_Data=0x00 and Max_Data=0x3F 7992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 7993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData6(const ADC_TypeDef *ADCx) 7994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 7995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(ADCx->DR, ADC_DR_RDATA)); 7996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 7997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 7998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 7999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC multimode conversion data of ADC master, ADC slave 8001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * or raw data with ADC master and slave concatenated. 8002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note If raw data with ADC master and slave concatenated is retrieved, 8003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * a macro is available to get the conversion data of 8004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC master or ADC slave: see helper macro 8005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @ref __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). 8006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (however this macro is mainly intended for multimode 8007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * transfer by DMA, because this function can do the same 8008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * by getting multimode conversion data of ADC master or ADC slave 8009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * separately). 8010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CDR RDATA_MST LL_ADC_REG_ReadMultiConversionData32\n 8011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * CDR RDATA_SLV LL_ADC_REG_ReadMultiConversionData32 8012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8013: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 8014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ConversionData This parameter can be one of the following values: 8015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER 8016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_SLAVE 8017:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_MULTI_MASTER_SLAVE 8018:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF 8019:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8020:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32(const ADC_Common_TypeDef *ADCxy_COMMO 8021:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t ConversionData) 8022:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8023:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(ADCxy_COMMON->CDR, 8024:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ConversionData) 8025:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** >> (POSITION_VAL(ConversionData) & 0x1FUL) 8026:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8027:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8028:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 8029:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8030:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8031:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 8032:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8033:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8034:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_Operation_ADC_Group_Injected Operation on ADC hierarchical scope: group inj 8035:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 8036:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8037:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8038:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8039:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Start ADC group injected conversion. ARM GAS /tmp/cco84Mp4.s page 170 8040:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, this function is relevant for both 8041:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * internal trigger (SW start) and external trigger: 8042:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to software start, ADC conversion 8043:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * starts immediately. 8044:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * - If ADC trigger has been set to external trigger, ADC conversion 8045:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * will start at next trigger event (on the selected trigger edge) 8046:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * following the ADC start conversion command. 8047:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 8048:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 8049:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled without conversion on going on group injected, 8050:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without conversion stop command on going on group injected, 8051:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 8052:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_StartConversion 8053:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8054:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8055:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8056:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StartConversion(ADC_TypeDef *ADCx) 8057:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8058:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 8059:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 8060:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 8061:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 8062:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 8063:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_JADSTART); 8064:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8065:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8066:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8067:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Stop ADC group injected conversion. 8068:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, setting of this feature is conditioned to 8069:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC state: 8070:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC must be enabled with conversion on going on group injected, 8071:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * without ADC disable command on going. 8072:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_StopConversion 8073:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8074:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8075:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_INJ_StopConversion(ADC_TypeDef *ADCx) 8077:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8078:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* Note: Write register with some additional bits forced to state reset */ 8079:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* instead of modifying only the selected bit for this function, */ 8080:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /* to not interfere with bits with HW property "rs". */ 8081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** MODIFY_REG(ADCx->CR, 8082:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 8083:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_JADSTP); 8084:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8085:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8086:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8087:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion state. 8088:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing 8089:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8090:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no conversion is on going on ADC group injected. 8091:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(const ADC_TypeDef *ADCx) 561 .loc 2 8092 26 is_stmt 1 view .LVU172 562 .LBB355: 8093:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL); ARM GAS /tmp/cco84Mp4.s page 171 563 .loc 2 8094 3 view .LVU173 564 .loc 2 8094 12 is_stmt 0 view .LVU174 565 012e 9368 ldr r3, [r2, #8] 566 .loc 2 8094 76 view .LVU175 567 0130 13F00803 ands r3, r3, #8 568 0134 00D0 beq .L22 569 .loc 2 8094 76 discriminator 1 view .LVU176 570 0136 0123 movs r3, #1 571 .L22: 572 .LVL44: 573 .loc 2 8094 76 discriminator 1 view .LVU177 574 .LBE355: 575 .LBE354: 607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 576 .loc 1 607 5 is_stmt 1 view .LVU178 608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 577 .loc 1 608 9 is_stmt 0 view .LVU179 578 0138 2BBB cbnz r3, .L23 611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 579 .loc 1 611 7 is_stmt 1 view .LVU180 612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests)); 580 .loc 1 612 20 is_stmt 0 view .LVU181 581 013a 237F ldrb r3, [r4, #28] @ zero_extendqisi2 582 .LVL45: 613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 583 .loc 1 613 20 view .LVU182 584 013c 94F83810 ldrb r1, [r4, #56] @ zero_extendqisi2 585 0140 4900 lsls r1, r1, #1 611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) | 586 .loc 1 611 16 view .LVU183 587 0142 41EA8331 orr r1, r1, r3, lsl #14 588 .LVL46: 615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 589 .loc 1 615 7 is_stmt 1 view .LVU184 590 0146 D368 ldr r3, [r2, #12] 591 0148 23F48043 bic r3, r3, #16384 592 014c 23F00203 bic r3, r3, #2 593 0150 0B43 orrs r3, r3, r1 594 0152 D360 str r3, [r2, #12] 617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 595 .loc 1 617 7 view .LVU185 617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 596 .loc 1 617 21 is_stmt 0 view .LVU186 597 0154 2369 ldr r3, [r4, #16] 617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 598 .loc 1 617 10 view .LVU187 599 0156 63B3 cbz r3, .L24 619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, hadc->Init.GainCompensation); 600 .loc 1 619 9 is_stmt 1 view .LVU188 601 0158 2268 ldr r2, [r4] 602 015a 1369 ldr r3, [r2, #16] 603 015c 43F48033 orr r3, r3, #65536 604 0160 1361 str r3, [r2, #16] 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 605 .loc 1 620 9 view .LVU189 606 0162 2268 ldr r2, [r4] 607 0164 D2F8C030 ldr r3, [r2, #192] ARM GAS /tmp/cco84Mp4.s page 172 608 0168 6FF30D03 bfc r3, #0, #14 609 016c 2169 ldr r1, [r4, #16] 610 .LVL47: 620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 611 .loc 1 620 9 is_stmt 0 view .LVU190 612 016e 0B43 orrs r3, r3, r1 613 0170 C2F8C030 str r3, [r2, #192] 614 .L25: 628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 615 .loc 1 628 7 is_stmt 1 view .LVU191 628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 616 .loc 1 628 21 is_stmt 0 view .LVU192 617 0174 94F84030 ldrb r3, [r4, #64] @ zero_extendqisi2 628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 618 .loc 1 628 10 view .LVU193 619 0178 012B cmp r3, #1 620 017a 27D0 beq .L34 655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 621 .loc 1 655 9 is_stmt 1 view .LVU194 622 017c 2268 ldr r2, [r4] 623 017e 1369 ldr r3, [r2, #16] 624 0180 23F00103 bic r3, r3, #1 625 0184 1361 str r3, [r2, #16] 626 .LVL48: 627 .L23: 669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 628 .loc 1 669 5 view .LVU195 669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 629 .loc 1 669 19 is_stmt 0 view .LVU196 630 0186 6369 ldr r3, [r4, #20] 669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 631 .loc 1 669 8 view .LVU197 632 0188 012B cmp r3, #1 633 018a 2FD0 beq .L35 676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 634 .loc 1 676 7 is_stmt 1 view .LVU198 635 018c 2268 ldr r2, [r4] 636 018e 136B ldr r3, [r2, #48] 637 0190 23F00F03 bic r3, r3, #15 638 0194 1363 str r3, [r2, #48] 639 .L28: 681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 640 .loc 1 681 5 view .LVU199 641 0196 E36D ldr r3, [r4, #92] 642 0198 23F00303 bic r3, r3, #3 643 019c 43F00103 orr r3, r3, #1 644 01a0 E365 str r3, [r4, #92] 645 01a2 31E0 b .L9 646 .LVL49: 647 .L30: 398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 648 .loc 1 398 21 is_stmt 0 view .LVU200 649 01a4 0020 movs r0, #0 650 01a6 74E7 b .L15 651 .LVL50: 652 .L33: 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/cco84Mp4.s page 173 653 .loc 1 578 7 is_stmt 1 view .LVU201 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 654 .loc 1 578 19 is_stmt 0 view .LVU202 655 01a8 A26A ldr r2, [r4, #40] 656 01aa 013A subs r2, r2, #1 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 657 .loc 1 578 16 view .LVU203 658 01ac 43EA4243 orr r3, r3, r2, lsl #17 659 .LVL51: 578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 660 .loc 1 578 16 view .LVU204 661 01b0 A8E7 b .L20 662 .LVL52: 663 .L24: 624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->GCOMP, ADC_GCOMP_GCOMPCOEFF, 0UL); 664 .loc 1 624 9 is_stmt 1 view .LVU205 665 01b2 2268 ldr r2, [r4] 666 01b4 1369 ldr r3, [r2, #16] 667 01b6 23F48033 bic r3, r3, #65536 668 01ba 1361 str r3, [r2, #16] 625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 669 .loc 1 625 9 view .LVU206 670 01bc 2268 ldr r2, [r4] 671 01be D2F8C030 ldr r3, [r2, #192] 672 01c2 6FF30D03 bfc r3, #0, #14 673 01c6 C2F8C030 str r3, [r2, #192] 674 01ca D3E7 b .L25 675 .LVL53: 676 .L34: 630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift)); 677 .loc 1 630 9 view .LVU207 631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode)); 678 .loc 1 631 9 view .LVU208 632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset)); 679 .loc 1 632 9 view .LVU209 633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 680 .loc 1 633 9 view .LVU210 640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | 681 .loc 1 640 9 view .LVU211 682 01cc 2168 ldr r1, [r4] 683 01ce 0B69 ldr r3, [r1, #16] 684 01d0 6FF38A03 bfc r3, #2, #9 685 01d4 626C ldr r2, [r4, #68] 686 01d6 A56C ldr r5, [r4, #72] 687 01d8 2A43 orrs r2, r2, r5 688 01da E56C ldr r5, [r4, #76] 689 01dc 2A43 orrs r2, r2, r5 690 01de 256D ldr r5, [r4, #80] 691 01e0 2A43 orrs r2, r2, r5 692 01e2 1343 orrs r3, r3, r2 693 01e4 43F00103 orr r3, r3, #1 694 01e8 0B61 str r3, [r1, #16] 695 01ea CCE7 b .L23 696 .LVL54: 697 .L35: 672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 698 .loc 1 672 7 view .LVU212 ARM GAS /tmp/cco84Mp4.s page 174 699 01ec 2168 ldr r1, [r4] 700 01ee 0B6B ldr r3, [r1, #48] 701 01f0 23F00F03 bic r3, r3, #15 702 01f4 226A ldr r2, [r4, #32] 703 01f6 013A subs r2, r2, #1 704 01f8 1343 orrs r3, r3, r2 705 01fa 0B63 str r3, [r1, #48] 706 01fc CBE7 b .L28 707 .LVL55: 708 .L17: 686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 709 .loc 1 686 5 view .LVU213 710 01fe E36D ldr r3, [r4, #92] 711 .LVL56: 686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 712 .loc 1 686 5 is_stmt 0 view .LVU214 713 0200 43F01003 orr r3, r3, #16 714 0204 E365 str r3, [r4, #92] 688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 715 .loc 1 688 5 is_stmt 1 view .LVU215 716 .LVL57: 688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 717 .loc 1 688 20 is_stmt 0 view .LVU216 718 0206 0120 movs r0, #1 719 .LVL58: 720 .L9: 693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 721 .loc 1 693 1 view .LVU217 722 0208 03B0 add sp, sp, #12 723 .LCFI7: 724 .cfi_remember_state 725 .cfi_def_cfa_offset 12 726 @ sp needed 727 020a 30BD pop {r4, r5, pc} 728 .LVL59: 729 .L29: 730 .LCFI8: 731 .cfi_restore_state 407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 732 .loc 1 407 12 view .LVU218 733 020c 0120 movs r0, #1 734 .LVL60: 407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 735 .loc 1 407 12 view .LVU219 736 020e FBE7 b .L9 737 .L37: 738 .align 2 739 .L36: 740 0210 00000000 .word SystemCoreClock 741 0214 632D3E05 .word 87960931 742 0218 00010050 .word 1342177536 743 021c 00030050 .word 1342178048 744 0220 0740F0FF .word -1032185 745 .cfi_endproc 746 .LFE329: 748 .section .text.HAL_ADC_MspDeInit,"ax",%progbits 749 .align 1 ARM GAS /tmp/cco84Mp4.s page 175 750 .weak HAL_ADC_MspDeInit 751 .syntax unified 752 .thumb 753 .thumb_func 755 HAL_ADC_MspDeInit: 756 .LVL61: 757 .LFB332: 921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DeInitialize the ADC MSP. 924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note All ADC instances use the same core clock at RCC level, disabling 926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the core clock reset all ADC instances). 927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc) 930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 758 .loc 1 930 1 is_stmt 1 view -0 759 .cfi_startproc 760 @ args = 0, pretend = 0, frame = 0 761 @ frame_needed = 0, uses_anonymous_args = 0 762 @ link register save eliminated. 931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 763 .loc 1 932 3 view .LVU221 933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_MspDeInit must be implemented in the user file. 936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 764 .loc 1 937 1 is_stmt 0 view .LVU222 765 0000 7047 bx lr 766 .cfi_endproc 767 .LFE332: 769 .section .text.HAL_ADC_PollForConversion,"ax",%progbits 770 .align 1 771 .global HAL_ADC_PollForConversion 772 .syntax unified 773 .thumb 774 .thumb_func 776 HAL_ADC_PollForConversion: 777 .LVL62: 778 .LFB335: 938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Register a User ADC Callback 942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To be used instead of the weak predefined callback 943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the configuration information for the specified ADC. 945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param CallbackID ID of the callback to be registered 946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 949: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 950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet ARM GAS /tmp/cco84Mp4.s page 176 952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 953: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 954: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 955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID MspInit callback ID 959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID MspDeInit callback ID 960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pCallback pointer to the Callback function 961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_RegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Callb 964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pADC_CallbackTypeDef pCallback) 965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pCallback == NULL) 969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback = pCallback; 982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback = pCallback; 986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = pCallback; 990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback = pCallback; 994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback = pCallback; 998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = pCallback; 1002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = pCallback; 1006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : ARM GAS /tmp/cco84Mp4.s page 177 1009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = pCallback; 1010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback = pCallback; 1014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = pCallback; 1039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = pCallback; 1043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return status; 1064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 178 1066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Unregister a ADC Callback 1068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC callback is redirected to the weak predefined callback 1069:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc Pointer to a ADC_HandleTypeDef structure that contains 1070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the configuration information for the specified ADC. 1071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param CallbackID ID of the callback to be unregistered 1072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 1073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_COMPLETE_CB_ID ADC conversion complete callback ID 1074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_CONVERSION_HALF_CB_ID ADC conversion DMA half-transfer call 1075: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 1076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_ERROR_CB_ID ADC error callback ID 1077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID ADC group injected conversion complet 1078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID ADC group injected context queue over 1079: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 1080: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 1081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_END_OF_SAMPLING_CB_ID ADC end of sampling callback ID 1082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID ADC Msp Init callback ID 1083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID ADC Msp DeInit callback ID 1084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPINIT_CB_ID MspInit callback ID 1085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref HAL_ADC_MSPDEINIT_CB_ID MspDeInit callback ID 1086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_UnRegisterCallback(ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef Cal 1089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef status = HAL_OK; 1091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_READY) != 0UL) 1093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_COMPLETE_CB_ID : 1097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback = HAL_ADC_ConvCpltCallback; 1098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_CONVERSION_HALF_CB_ID : 1101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback = HAL_ADC_ConvHalfCpltCallback; 1102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_1_CB_ID : 1105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback = HAL_ADC_LevelOutOfWindowCallback; 1106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_ERROR_CB_ID : 1109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback = HAL_ADC_ErrorCallback; 1110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_CONVERSION_COMPLETE_CB_ID : 1113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback = HAL_ADCEx_InjectedConvCpltCallback; 1114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_INJ_QUEUE_OVEFLOW_CB_ID : 1117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback = HAL_ADCEx_InjectedQueueOverflowCallback; 1118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_2_CB_ID : 1121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback = HAL_ADCEx_LevelOutOfWindow2Callback; 1122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; ARM GAS /tmp/cco84Mp4.s page 179 1123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_LEVEL_OUT_OF_WINDOW_3_CB_ID : 1125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback = HAL_ADCEx_LevelOutOfWindow3Callback; 1126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_END_OF_SAMPLING_CB_ID : 1129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback = HAL_ADCEx_EndOfSamplingCallback; 1130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit */ 1134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit */ 1138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if (HAL_ADC_STATE_RESET == hadc->State) 1150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (CallbackID) 1152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPINIT_CB_ID : 1154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspInitCallback = HAL_ADC_MspInit; /* Legacy weak MspInit 1155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case HAL_ADC_MSPDEINIT_CB_ID : 1158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->MspDeInitCallback = HAL_ADC_MspDeInit; /* Legacy weak MspDeInit 1159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default : 1162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update the error code */ 1173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCode |= HAL_ADC_ERROR_INVALID_CALLBACK; 1174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return error status */ 1176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** status = HAL_ERROR; 1177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return status; ARM GAS /tmp/cco84Mp4.s page 180 1180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 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 **** /** @defgroup ADC_Exported_Functions_Group2 ADC Input and Output operation functions 1189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC IO operation functions 1190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 1191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 1192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 1193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### IO operation functions ##### 1194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 1195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 1196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group. 1197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group. 1198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Poll for conversion complete on regular group. 1199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Poll for conversion event. 1200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Get result of regular channel conversion. 1201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group and enable interruptions. 1202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group and disable interruptions. 1203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Handle ADC interrupt request 1204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Start conversion of regular group and enable DMA transfer. 1205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Stop conversion of regular group and disable ADC DMA transfer. 1206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 1207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 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 **** * @brief Enable ADC, start conversion of regular group. 1212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function: None. 1213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if ADC is Slave, ADC is enabled but conversion is not started, 1215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if ADC is master, ADC is enabled and multimode conversion is started. 1216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef *hadc) 1220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ ARM GAS /tmp/cco84Mp4.s page 181 1237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 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 1247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code */ 1262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) 1264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 1271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 1284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 1287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabled only (conversion is not started), */ 1290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) ARM GAS /tmp/cco84Mp4.s page 182 1294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1301: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); 1302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 1310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 1312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_INJ_BUSY bit and in resetting HAL_ADC_STATE_INJ_EOC bit */ 1313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 1315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1316: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); 1317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** #else 1321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1323: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); 1324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 1339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** * @brief Stop ADC conversion of regular group (and injected channels in 1347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable ADC peripheral. 1348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 1349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion on injected group. If injected group is under use, it 1350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. ARM GAS /tmp/cco84Mp4.s page 183 1351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 1353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop(ADC_HandleTypeDef *hadc) 1355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 1365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 1366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 1368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 1371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 1372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 1374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 1379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 1380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Process unlocked */ 1384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** * @brief Wait for regular group conversion to be completed. 1392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note ADC conversion flags EOS (end of sequence) and EOC (end of 1393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion) are cleared by this function, with an exception: 1394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * if low power feature "LowPowerAutoWait" is enabled, flags are 1395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * not cleared to not interfere with this feature until data register 1396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * is read using function HAL_ADC_GetValue(). 1397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function cannot be used in a particular setup: ADC configured 1398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in DMA mode and polling for end of each conversion (ADC init 1399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SINGLE_CONV). 1400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * In this case, DMA resets the flag EOC and polling cannot be 1401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * performed on each conversion. Nevertheless, polling can still 1402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * be performed on the complete sequence (ADC init 1403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * parameter "EOCSelection" set to ADC_EOC_SEQ_CONV). 1404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ ARM GAS /tmp/cco84Mp4.s page 184 1408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForConversion(ADC_HandleTypeDef *hadc, uint32_t Timeout) 1409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 779 .loc 1 1409 1 is_stmt 1 view -0 780 .cfi_startproc 781 @ args = 0, pretend = 0, frame = 0 782 @ frame_needed = 0, uses_anonymous_args = 0 783 .loc 1 1409 1 is_stmt 0 view .LVU224 784 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 785 .LCFI9: 786 .cfi_def_cfa_offset 24 787 .cfi_offset 4, -24 788 .cfi_offset 5, -20 789 .cfi_offset 6, -16 790 .cfi_offset 7, -12 791 .cfi_offset 8, -8 792 .cfi_offset 14, -4 793 0004 0446 mov r4, r0 794 0006 0E46 mov r6, r1 1410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 795 .loc 1 1410 3 is_stmt 1 view .LVU225 1411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_Flag_End; 796 .loc 1 1411 3 view .LVU226 1412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 797 .loc 1 1412 3 view .LVU227 1413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 798 .loc 1 1414 3 view .LVU228 1415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 799 .loc 1 1415 3 view .LVU229 800 .LVL63: 801 .LBB356: 802 .LBI356: 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 803 .loc 2 7407 26 view .LVU230 804 .LBB357: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 805 .loc 2 7409 3 view .LVU231 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 806 .loc 2 7409 21 is_stmt 0 view .LVU232 807 0008 424B ldr r3, .L63 808 000a 9F68 ldr r7, [r3, #8] 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 809 .loc 2 7409 10 view .LVU233 810 000c 07F01F07 and r7, r7, #31 811 .LVL64: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 812 .loc 2 7409 10 view .LVU234 813 .LBE357: 814 .LBE356: 1416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 815 .loc 1 1419 3 is_stmt 1 view .LVU235 1420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If end of conversion selected to end of sequence conversions */ 1422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.EOCSelection == ADC_EOC_SEQ_CONV) ARM GAS /tmp/cco84Mp4.s page 185 816 .loc 1 1422 3 view .LVU236 817 .loc 1 1422 17 is_stmt 0 view .LVU237 818 0010 8569 ldr r5, [r0, #24] 819 .loc 1 1422 6 view .LVU238 820 0012 082D cmp r5, #8 821 0014 0DD0 beq .L40 1423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = ADC_FLAG_EOS; 1425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If end of conversion selected to end of unitary conversion */ 1427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else /* ADC_EOC_SINGLE_CONV */ 1428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification that ADC configuration is compliant with polling for */ 1430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* each conversion: */ 1431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case is ADC configured in DMA mode and ADC sequencer with */ 1432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* several ranks and polling for end of each conversion. */ 1433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* For code simplicity sake, this particular case is generalized to */ 1434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC configured in DMA mode and and polling for end of each conversion. */ 1435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 822 .loc 1 1436 5 is_stmt 1 view .LVU239 823 0016 092F cmp r7, #9 824 0018 30D8 bhi .L41 825 001a 40F22123 movw r3, #545 826 001e FB40 lsrs r3, r3, r7 827 0020 13F0010F tst r3, #1 828 0024 2AD0 beq .L41 1437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode in independent mode on ADC group regular */ 1442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) 829 .loc 1 1442 7 view .LVU240 830 .loc 1 1442 11 is_stmt 0 view .LVU241 831 0026 0368 ldr r3, [r0] 832 0028 DB68 ldr r3, [r3, #12] 833 .loc 1 1442 10 view .LVU242 834 002a 13F0010F tst r3, #1 835 002e 1FD1 bne .L58 1443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 836 .loc 1 1449 22 view .LVU243 837 0030 0425 movs r5, #4 838 .L40: 839 .LVL65: 1450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode in multimode on ADC group regular */ 1455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_REG_ ARM GAS /tmp/cco84Mp4.s page 186 1456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 1463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check ADC DMA mode */ 1467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN) != 0UL) 1468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 1470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 1471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_Flag_End = (ADC_FLAG_EOC); 1475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 1480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 840 .loc 1 1480 3 is_stmt 1 view .LVU244 841 .loc 1 1480 15 is_stmt 0 view .LVU245 842 0032 FFF7FEFF bl HAL_GetTick 843 .LVL66: 844 .loc 1 1480 15 view .LVU246 845 0036 8046 mov r8, r0 846 .LVL67: 1481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait until End of unitary conversion or sequence conversions flag is raised */ 1483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 847 .loc 1 1483 3 is_stmt 1 view .LVU247 848 .L44: 849 .loc 1 1483 47 view .LVU248 850 .loc 1 1483 15 is_stmt 0 view .LVU249 851 0038 2368 ldr r3, [r4] 852 .loc 1 1483 25 view .LVU250 853 003a 1A68 ldr r2, [r3] 854 .loc 1 1483 47 view .LVU251 855 003c 2A42 tst r2, r5 856 003e 2AD1 bne .L59 1484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 857 .loc 1 1486 5 is_stmt 1 view .LVU252 858 .loc 1 1486 8 is_stmt 0 view .LVU253 859 0040 B6F1FF3F cmp r6, #-1 860 0044 F8D0 beq .L44 1487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 861 .loc 1 1488 7 is_stmt 1 view .LVU254 862 .loc 1 1488 13 is_stmt 0 view .LVU255 863 0046 FFF7FEFF bl HAL_GetTick ARM GAS /tmp/cco84Mp4.s page 187 864 .LVL68: 865 .loc 1 1488 27 discriminator 1 view .LVU256 866 004a A0EB0800 sub r0, r0, r8 867 .loc 1 1488 10 discriminator 1 view .LVU257 868 004e B042 cmp r0, r6 869 0050 01D8 bhi .L45 870 .loc 1 1488 51 discriminator 1 view .LVU258 871 0052 002E cmp r6, #0 872 0054 F0D1 bne .L44 873 .L45: 1489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->ISR & tmp_Flag_End) == 0UL) 874 .loc 1 1491 9 is_stmt 1 view .LVU259 875 .loc 1 1491 18 is_stmt 0 view .LVU260 876 0056 2368 ldr r3, [r4] 877 .loc 1 1491 28 view .LVU261 878 0058 1B68 ldr r3, [r3] 879 .loc 1 1491 12 view .LVU262 880 005a 2B42 tst r3, r5 881 005c ECD1 bne .L44 1492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); 882 .loc 1 1494 11 is_stmt 1 view .LVU263 883 005e E36D ldr r3, [r4, #92] 884 0060 43F00403 orr r3, r3, #4 885 0064 E365 str r3, [r4, #92] 1495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 886 .loc 1 1497 11 view .LVU264 887 .loc 1 1497 11 view .LVU265 888 0066 0023 movs r3, #0 889 0068 84F85830 strb r3, [r4, #88] 890 .loc 1 1497 11 view .LVU266 1498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_TIMEOUT; 891 .loc 1 1499 11 view .LVU267 892 .loc 1 1499 18 is_stmt 0 view .LVU268 893 006c 0320 movs r0, #3 894 006e 4CE0 b .L42 895 .LVL69: 896 .L58: 1444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 897 .loc 1 1444 9 is_stmt 1 view .LVU269 898 0070 C36D ldr r3, [r0, #92] 899 0072 43F02003 orr r3, r3, #32 900 0076 C365 str r3, [r0, #92] 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 901 .loc 1 1445 9 view .LVU270 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 902 .loc 1 1445 16 is_stmt 0 view .LVU271 903 0078 0120 movs r0, #1 904 .LVL70: 1445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 905 .loc 1 1445 16 view .LVU272 ARM GAS /tmp/cco84Mp4.s page 188 906 007a 46E0 b .L42 907 .LVL71: 908 .L41: 1455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 909 .loc 1 1455 7 is_stmt 1 view .LVU273 910 .LBB358: 911 .LBI358: 7504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 912 .loc 2 7504 26 view .LVU274 913 .LBB359: 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 914 .loc 2 7506 3 view .LVU275 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 915 .loc 2 7506 21 is_stmt 0 view .LVU276 916 007c 254B ldr r3, .L63 917 007e 9B68 ldr r3, [r3, #8] 918 .LVL72: 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 919 .loc 2 7506 21 view .LVU277 920 .LBE359: 921 .LBE358: 1455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 922 .loc 1 1455 10 discriminator 1 view .LVU278 923 0080 13F4604F tst r3, #57344 924 0084 01D1 bne .L60 1462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 925 .loc 1 1462 22 view .LVU279 926 0086 0425 movs r5, #4 927 0088 D3E7 b .L40 928 .L60: 1457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 929 .loc 1 1457 9 is_stmt 1 view .LVU280 930 008a E36D ldr r3, [r4, #92] 931 008c 43F02003 orr r3, r3, #32 932 0090 E365 str r3, [r4, #92] 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 933 .loc 1 1458 9 view .LVU281 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 934 .loc 1 1458 16 is_stmt 0 view .LVU282 935 0092 0120 movs r0, #1 936 .LVL73: 1458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 937 .loc 1 1458 16 view .LVU283 938 0094 39E0 b .L42 939 .LVL74: 940 .L59: 1500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Update ADC state machine */ 1506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 941 .loc 1 1506 3 is_stmt 1 view .LVU284 942 0096 E26D ldr r2, [r4, #92] 943 0098 42F40072 orr r2, r2, #512 944 009c E265 str r2, [r4, #92] ARM GAS /tmp/cco84Mp4.s page 189 1507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 1509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going. */ 1510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 945 .loc 1 1510 3 view .LVU285 946 .LVL75: 947 .LBB360: 948 .LBI360: 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 949 .loc 2 4696 26 view .LVU286 950 .LBB361: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 951 .loc 2 4698 3 view .LVU287 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 952 .loc 2 4698 12 is_stmt 0 view .LVU288 953 009e DA68 ldr r2, [r3, #12] 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 954 .loc 2 4698 103 view .LVU289 955 00a0 12F4406F tst r2, #3072 956 00a4 11D1 bne .L47 957 .LVL76: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 958 .loc 2 4698 103 view .LVU290 959 .LBE361: 960 .LBE360: 1511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == DISABLE) 961 .loc 1 1511 21 view .LVU291 962 00a6 627F ldrb r2, [r4, #29] @ zero_extendqisi2 963 .loc 1 1511 7 view .LVU292 964 00a8 7AB9 cbnz r2, .L47 1512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check whether end of sequence is reached */ 1515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 965 .loc 1 1515 5 is_stmt 1 view .LVU293 966 .loc 1 1515 9 is_stmt 0 view .LVU294 967 00aa 1A68 ldr r2, [r3] 968 .loc 1 1515 8 view .LVU295 969 00ac 12F0080F tst r2, #8 970 00b0 0BD0 beq .L47 1516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 971 .loc 1 1518 7 is_stmt 1 view .LVU296 972 00b2 E26D ldr r2, [r4, #92] 973 00b4 22F48072 bic r2, r2, #256 974 00b8 E265 str r2, [r4, #92] 1519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 975 .loc 1 1520 7 view .LVU297 976 .loc 1 1520 16 is_stmt 0 view .LVU298 977 00ba E26D ldr r2, [r4, #92] 978 .loc 1 1520 10 view .LVU299 979 00bc 12F4805F tst r2, #4096 980 00c0 03D1 bne .L47 1521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); ARM GAS /tmp/cco84Mp4.s page 190 981 .loc 1 1522 9 is_stmt 1 view .LVU300 982 00c2 E26D ldr r2, [r4, #92] 983 00c4 42F00102 orr r2, r2, #1 984 00c8 E265 str r2, [r4, #92] 985 .L47: 1523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 1529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 1530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 986 .loc 1 1531 3 view .LVU301 987 .loc 1 1531 8 is_stmt 0 view .LVU302 988 00ca 134A ldr r2, .L63+4 989 00cc 9342 cmp r3, r2 990 00ce 14D0 beq .L61 991 .loc 1 1531 8 discriminator 1 view .LVU303 992 00d0 1A46 mov r2, r3 993 .L48: 994 .loc 1 1531 6 discriminator 4 view .LVU304 995 00d2 9342 cmp r3, r2 996 00d4 07D0 beq .L49 997 00d6 092F cmp r7, #9 998 00d8 12D8 bhi .L50 999 00da 40F22121 movw r1, #545 1000 00de F940 lsrs r1, r1, r7 1001 00e0 11F0010F tst r1, #1 1002 00e4 0CD0 beq .L50 1003 .L49: 1532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve handle ADC CFGR register */ 1538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 1004 .loc 1 1538 5 is_stmt 1 view .LVU305 1005 .loc 1 1538 14 is_stmt 0 view .LVU306 1006 00e6 DA68 ldr r2, [r3, #12] 1007 .LVL77: 1008 .L51: 1539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve Master ADC CFGR register */ 1543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve handle ADC CFGR register */ 1548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 1549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear polled flag */ ARM GAS /tmp/cco84Mp4.s page 191 1552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_Flag_End == ADC_FLAG_EOS) 1009 .loc 1 1552 3 is_stmt 1 view .LVU307 1010 .loc 1 1552 6 is_stmt 0 view .LVU308 1011 00e8 082D cmp r5, #8 1012 00ea 0BD0 beq .L62 1553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOS); 1555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear end of conversion EOC flag of regular group if low power feature */ 1559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* "LowPowerAutoWait " is disabled, to not interfere with this feature */ 1560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* until data register is read using function HAL_ADC_GetValue(). */ 1561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_AUTDLY) == 0UL) 1013 .loc 1 1561 5 is_stmt 1 view .LVU309 1014 .loc 1 1561 8 is_stmt 0 view .LVU310 1015 00ec 12F4804F tst r2, #16384 1016 00f0 0DD1 bne .L56 1562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 1017 .loc 1 1563 7 is_stmt 1 view .LVU311 1018 00f2 0C22 movs r2, #12 1019 .LVL78: 1020 .loc 1 1563 7 is_stmt 0 view .LVU312 1021 00f4 1A60 str r2, [r3] 1564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Return function status */ 1568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1022 .loc 1 1568 10 view .LVU313 1023 00f6 0020 movs r0, #0 1024 00f8 07E0 b .L42 1025 .LVL79: 1026 .L61: 1531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1027 .loc 1 1531 8 discriminator 2 view .LVU314 1028 00fa 4FF0A042 mov r2, #1342177280 1029 00fe E8E7 b .L48 1030 .L50: 1543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1031 .loc 1 1543 5 is_stmt 1 view .LVU315 1032 .LVL80: 1544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1033 .loc 1 1544 5 view .LVU316 1544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1034 .loc 1 1544 14 is_stmt 0 view .LVU317 1035 0100 D268 ldr r2, [r2, #12] 1036 .LVL81: 1544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1037 .loc 1 1544 14 view .LVU318 1038 0102 F1E7 b .L51 1039 .LVL82: 1040 .L62: 1554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1041 .loc 1 1554 5 is_stmt 1 view .LVU319 1042 0104 0822 movs r2, #8 ARM GAS /tmp/cco84Mp4.s page 192 1043 .LVL83: 1554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1044 .loc 1 1554 5 is_stmt 0 view .LVU320 1045 0106 1A60 str r2, [r3] 1046 .loc 1 1568 10 view .LVU321 1047 0108 0020 movs r0, #0 1048 .LVL84: 1049 .L42: 1569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1050 .loc 1 1569 1 view .LVU322 1051 010a BDE8F081 pop {r4, r5, r6, r7, r8, pc} 1052 .LVL85: 1053 .L56: 1568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1054 .loc 1 1568 10 view .LVU323 1055 010e 0020 movs r0, #0 1056 0110 FBE7 b .L42 1057 .L64: 1058 0112 00BF .align 2 1059 .L63: 1060 0114 00030050 .word 1342178048 1061 0118 00010050 .word 1342177536 1062 .cfi_endproc 1063 .LFE335: 1065 .section .text.HAL_ADC_PollForEvent,"ax",%progbits 1066 .align 1 1067 .global HAL_ADC_PollForEvent 1068 .syntax unified 1069 .thumb 1070 .thumb_func 1072 HAL_ADC_PollForEvent: 1073 .LVL86: 1074 .LFB336: 1570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Poll for ADC event. 1573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param EventType the ADC event type. 1575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 1576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_EOSMP_EVENT ADC End of Sampling event 1577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_AWD1_EVENT ADC Analog watchdog 1 event (main analog watchdog, presen 1578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * all STM32 series) 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 **** * all STM32 series) 1581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_AWD3_EVENT ADC Analog watchdog 3 event (additional analog watchdog, 1582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * all STM32 series) 1583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_OVR_EVENT ADC Overrun event 1584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_JQOVF_EVENT ADC Injected context queue overflow event 1585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Timeout Timeout value in millisecond. 1586: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. 1587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Indeed, the latter is reset only if hadc->Init.Overrun field is set 1588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to ADC_OVR_DATA_OVERWRITTEN. Otherwise, data register may be potentially overwritten 1589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * by a new converted data as soon as OVR is cleared. 1590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To reset OVR flag once the preserved data is retrieved, the user can resort 1591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to macro __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ ARM GAS /tmp/cco84Mp4.s page 193 1594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_PollForEvent(ADC_HandleTypeDef *hadc, uint32_t EventType, uint32_t Timeou 1595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1075 .loc 1 1595 1 is_stmt 1 view -0 1076 .cfi_startproc 1077 @ args = 0, pretend = 0, frame = 0 1078 @ frame_needed = 0, uses_anonymous_args = 0 1079 .loc 1 1595 1 is_stmt 0 view .LVU325 1080 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr} 1081 .LCFI10: 1082 .cfi_def_cfa_offset 24 1083 .cfi_offset 4, -24 1084 .cfi_offset 5, -20 1085 .cfi_offset 6, -16 1086 .cfi_offset 7, -12 1087 .cfi_offset 8, -8 1088 .cfi_offset 14, -4 1089 0004 0646 mov r6, r0 1090 0006 0D46 mov r5, r1 1091 0008 1746 mov r7, r2 1596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 1092 .loc 1 1596 3 is_stmt 1 view .LVU326 1597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1093 .loc 1 1599 3 view .LVU327 1600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EVENT_TYPE(EventType)); 1094 .loc 1 1600 3 view .LVU328 1601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 1603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 1095 .loc 1 1603 3 view .LVU329 1096 .loc 1 1603 15 is_stmt 0 view .LVU330 1097 000a FFF7FEFF bl HAL_GetTick 1098 .LVL87: 1099 .loc 1 1603 15 view .LVU331 1100 000e 8046 mov r8, r0 1101 .LVL88: 1604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check selected event flag */ 1606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 1102 .loc 1 1606 3 is_stmt 1 view .LVU332 1103 .L67: 1104 .loc 1 1606 46 view .LVU333 1105 .loc 1 1606 10 is_stmt 0 view .LVU334 1106 0010 3468 ldr r4, [r6] 1107 0012 2368 ldr r3, [r4] 1108 .loc 1 1606 46 view .LVU335 1109 0014 35EA0303 bics r3, r5, r3 1110 0018 18D0 beq .L80 1607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if timeout is disabled (set to infinite wait) */ 1609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Timeout != HAL_MAX_DELAY) 1111 .loc 1 1609 5 is_stmt 1 view .LVU336 1112 .loc 1 1609 8 is_stmt 0 view .LVU337 1113 001a B7F1FF3F cmp r7, #-1 1114 001e F7D0 beq .L67 1610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 194 1611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0UL)) 1115 .loc 1 1611 7 is_stmt 1 view .LVU338 1116 .loc 1 1611 13 is_stmt 0 view .LVU339 1117 0020 FFF7FEFF bl HAL_GetTick 1118 .LVL89: 1119 .loc 1 1611 27 discriminator 1 view .LVU340 1120 0024 A0EB0800 sub r0, r0, r8 1121 .loc 1 1611 10 discriminator 1 view .LVU341 1122 0028 B842 cmp r0, r7 1123 002a 01D8 bhi .L68 1124 .loc 1 1611 51 discriminator 1 view .LVU342 1125 002c 002F cmp r7, #0 1126 002e EFD1 bne .L67 1127 .L68: 1612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 1614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, EventType) == 0UL) 1128 .loc 1 1614 9 is_stmt 1 view .LVU343 1129 .loc 1 1614 13 is_stmt 0 view .LVU344 1130 0030 3368 ldr r3, [r6] 1131 0032 1B68 ldr r3, [r3] 1132 .loc 1 1614 12 view .LVU345 1133 0034 35EA0303 bics r3, r5, r3 1134 0038 EAD0 beq .L67 1615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to timeout */ 1617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_TIMEOUT); 1135 .loc 1 1617 11 is_stmt 1 view .LVU346 1136 003a F36D ldr r3, [r6, #92] 1137 003c 43F00403 orr r3, r3, #4 1138 0040 F365 str r3, [r6, #92] 1618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1139 .loc 1 1620 11 view .LVU347 1140 .loc 1 1620 11 view .LVU348 1141 0042 0023 movs r3, #0 1142 0044 86F85830 strb r3, [r6, #88] 1143 .loc 1 1620 11 view .LVU349 1621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_TIMEOUT; 1144 .loc 1 1622 11 view .LVU350 1145 .loc 1 1622 18 is_stmt 0 view .LVU351 1146 0048 0320 movs r0, #3 1147 004a 29E0 b .L69 1148 .L80: 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 **** } 1627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (EventType) 1149 .loc 1 1628 3 is_stmt 1 view .LVU352 1150 004c B5F5807F cmp r5, #256 1151 0050 28D0 beq .L71 1152 0052 12D9 bls .L81 1153 0054 B5F5007F cmp r5, #512 ARM GAS /tmp/cco84Mp4.s page 195 1154 0058 2DD0 beq .L76 1155 005a B5F5806F cmp r5, #1024 1156 005e 33D1 bne .L75 1629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* End Of Sampling event */ 1631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOSMP_EVENT: 1632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 1634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear the End Of Sampling flag */ 1636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 1637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog (level out of window) event */ 1641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: In case of several analog watchdog enabled, if needed to know */ 1642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* which one triggered and on which ADCx, test ADC state of analog watchdog */ 1643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* flags HAL_ADC_STATE_AWD1/2/3 using function "HAL_ADC_GetState()". */ 1644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* For example: */ 1645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " */ 1646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD2) != 0UL) " */ 1647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD3) != 0UL) " */ 1648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 1 flag */ 1650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD_EVENT: 1651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 1653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 1656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 2 flag */ 1660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD2_EVENT: 1661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 1663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 1666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check analog watchdog 3 flag */ 1670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_AWD3_EVENT: 1671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 1673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 1675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); 1676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected context queue overflow event */ 1680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_JQOVF_EVENT: 1681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); ARM GAS /tmp/cco84Mp4.s page 196 1157 .loc 1 1682 7 view .LVU353 1158 0060 F36D ldr r3, [r6, #92] 1159 0062 43F48043 orr r3, r3, #16384 1160 0066 F365 str r3, [r6, #92] 1683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 1685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 1161 .loc 1 1685 7 view .LVU354 1162 0068 336E ldr r3, [r6, #96] 1163 006a 43F00803 orr r3, r3, #8 1164 006e 3366 str r3, [r6, #96] 1686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC Injected context queue overflow flag */ 1688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 1165 .loc 1 1688 7 view .LVU355 1166 0070 4FF48063 mov r3, #1024 1167 0074 2360 str r3, [r4] 1689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1168 .loc 1 1690 7 view .LVU356 1691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Overrun event */ 1693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* Case ADC_OVR_EVENT */ 1694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If overrun is set to overwrite previous data, overrun event is not */ 1695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* considered as an error. */ 1696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 1697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun ") */ 1698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 1702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to overrun */ 1704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 1705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC Overrun flag only if Overrun is set to ADC_OVR_DATA_OVERWRITTEN 1709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** otherwise, data register is potentially overwritten by new converted data as soon 1710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** as OVR is cleared. */ 1711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 1712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1169 .loc 1 1717 10 is_stmt 0 view .LVU357 1170 0076 0020 movs r0, #0 1690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1171 .loc 1 1690 7 view .LVU358 1172 0078 12E0 b .L69 1173 .L81: 1628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1174 .loc 1 1628 3 view .LVU359 1175 007a 022D cmp r5, #2 1176 007c 09D0 beq .L73 ARM GAS /tmp/cco84Mp4.s page 197 1177 007e 802D cmp r5, #128 1178 0080 22D1 bne .L75 1652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1179 .loc 1 1652 7 is_stmt 1 view .LVU360 1180 0082 F36D ldr r3, [r6, #92] 1181 0084 43F48033 orr r3, r3, #65536 1182 0088 F365 str r3, [r6, #92] 1655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1183 .loc 1 1655 7 view .LVU361 1184 008a 8023 movs r3, #128 1185 008c 2360 str r3, [r4] 1657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1186 .loc 1 1657 7 view .LVU362 1187 .loc 1 1717 10 is_stmt 0 view .LVU363 1188 008e 0020 movs r0, #0 1657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1189 .loc 1 1657 7 view .LVU364 1190 0090 06E0 b .L69 1191 .L73: 1633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1192 .loc 1 1633 7 is_stmt 1 view .LVU365 1193 0092 F36D ldr r3, [r6, #92] 1194 0094 43F40063 orr r3, r3, #2048 1195 0098 F365 str r3, [r6, #92] 1636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1196 .loc 1 1636 7 view .LVU366 1197 009a 0223 movs r3, #2 1198 009c 2360 str r3, [r4] 1638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1199 .loc 1 1638 7 view .LVU367 1200 .loc 1 1717 10 is_stmt 0 view .LVU368 1201 009e 0020 movs r0, #0 1202 .L69: 1718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1203 .loc 1 1718 1 view .LVU369 1204 00a0 BDE8F081 pop {r4, r5, r6, r7, r8, pc} 1205 .LVL90: 1206 .L71: 1662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1207 .loc 1 1662 7 is_stmt 1 view .LVU370 1208 00a4 F36D ldr r3, [r6, #92] 1209 00a6 43F40033 orr r3, r3, #131072 1210 00aa F365 str r3, [r6, #92] 1665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1211 .loc 1 1665 7 view .LVU371 1212 00ac 4FF48073 mov r3, #256 1213 00b0 2360 str r3, [r4] 1667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1214 .loc 1 1667 7 view .LVU372 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1215 .loc 1 1717 10 is_stmt 0 view .LVU373 1216 00b2 0020 movs r0, #0 1667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1217 .loc 1 1667 7 view .LVU374 1218 00b4 F4E7 b .L69 1219 .L76: 1672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 198 1220 .loc 1 1672 7 is_stmt 1 view .LVU375 1221 00b6 F36D ldr r3, [r6, #92] 1222 00b8 43F48023 orr r3, r3, #262144 1223 00bc F365 str r3, [r6, #92] 1675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1224 .loc 1 1675 7 view .LVU376 1225 00be 4FF40073 mov r3, #512 1226 00c2 2360 str r3, [r4] 1677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1227 .loc 1 1677 7 view .LVU377 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1228 .loc 1 1717 10 is_stmt 0 view .LVU378 1229 00c4 0020 movs r0, #0 1677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1230 .loc 1 1677 7 view .LVU379 1231 00c6 EBE7 b .L69 1232 .L75: 1698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1233 .loc 1 1698 7 is_stmt 1 view .LVU380 1698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1234 .loc 1 1698 21 is_stmt 0 view .LVU381 1235 00c8 F36B ldr r3, [r6, #60] 1698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1236 .loc 1 1698 10 view .LVU382 1237 00ca 4BB9 cbnz r3, .L78 1701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1238 .loc 1 1701 9 is_stmt 1 view .LVU383 1239 00cc F36D ldr r3, [r6, #92] 1240 00ce 43F48063 orr r3, r3, #1024 1241 00d2 F365 str r3, [r6, #92] 1704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1242 .loc 1 1704 9 view .LVU384 1243 00d4 336E ldr r3, [r6, #96] 1244 00d6 43F00203 orr r3, r3, #2 1245 00da 3366 str r3, [r6, #96] 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1246 .loc 1 1717 10 is_stmt 0 view .LVU385 1247 00dc 0020 movs r0, #0 1248 00de DFE7 b .L69 1249 .L78: 1711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1250 .loc 1 1711 9 is_stmt 1 view .LVU386 1251 00e0 1023 movs r3, #16 1252 00e2 2360 str r3, [r4] 1717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1253 .loc 1 1717 10 is_stmt 0 view .LVU387 1254 00e4 0020 movs r0, #0 1255 00e6 DBE7 b .L69 1256 .cfi_endproc 1257 .LFE336: 1259 .section .text.HAL_ADC_GetValue,"ax",%progbits 1260 .align 1 1261 .global HAL_ADC_GetValue 1262 .syntax unified 1263 .thumb 1264 .thumb_func 1266 HAL_ADC_GetValue: ARM GAS /tmp/cco84Mp4.s page 199 1267 .LVL91: 1268 .LFB341: 1719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1721:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group with interruption. 1722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function according to initialization 1723:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * setting : EOC (end of conversion), EOS (end of sequence), 1724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * OVR overrun. 1725:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 1726:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 1727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_Start_IT() must be called for ADC Slave first, then for 1728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC Master. 1729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For ADC Slave, ADC is enabled only (conversion is not started). 1730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For ADC Master, ADC is enabled and multimode conversion is started. 1731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note To guarantee a proper reset of all interruptions once all the needed 1732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversions are obtained, HAL_ADC_Stop_IT() must be called to ensure 1733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * a correct stop of the IT-based conversions. 1734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note By default, HAL_ADC_Start_IT() does not enable the End Of Sampling 1735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * interruption. If required (e.g. in case of oversampling with trigger 1736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode), the user must: 1737: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 1738: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) 1739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * before calling HAL_ADC_Start_IT(). 1740:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 1742:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_IT(ADC_HandleTypeDef *hadc) 1744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 1748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1754:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 1755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 1756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 1761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 1762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 1764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 1768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 1769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1770: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 1771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 1772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) ARM GAS /tmp/cco84Mp4.s page 200 1774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 1775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 1776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code */ 1786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 1787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 1788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 1790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); 1791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 1795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 1796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC group regular conversion flag and overrun flag */ 1799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC operations) */ 1800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 1801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 1804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 1805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable all interruptions before enabling the desired ones */ 1808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); 1809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC end of conversion interrupt */ 1811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOS); 1815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_EOC); 1819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC overrun interrupt */ 1823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If hadc->Init.Overrun is set to ADC_OVR_DATA_PRESERVED, only then is 1824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_OVR enabled; otherwise data overwrite is considered as normal 1825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** behavior and no CPU time is lost for a non-processed interruption */ 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 1827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 1829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 201 1831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 1832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 1833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 1834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 1835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of multimode enabled (when multimode feature is available): */ 1836:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is slave and dual regular conversions are enabled, ADC is */ 1837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabled only (conversion is not started), */ 1838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - if ADC is master, ADC is enabled and conversion is started. */ 1839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 1841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 1843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 1844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enable 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1849: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); 1850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable as well injected interruptions in case 1852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedStart_IT() has not been called beforehand. This 1853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** allows to start regular and injected conversions when JAUTO is 1854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** set with a single call to HAL_ADC_Start_IT() */ 1855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is a multimode slave instance with multimode regular conversions enabled */ 1875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 1876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 1877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** are enabled nevertheless (for same reason as above) */ 1878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 1879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 1880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* First, update Slave State in setting HAL_ADC_STATE_INJ_BUSY bit 1882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** and in resetting HAL_ADC_STATE_INJ_EOC bit */ 1883: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); 1884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 1885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: ARM GAS /tmp/cco84Mp4.s page 202 1888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 1900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC instance is not a multimode slave instance with multimode regular conversions enabled 1901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_JAUTO) != 0UL) 1902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1903: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); 1904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable as well injected interruptions in case 1906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedStart_IT() has not been called beforehand. This 1907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** allows to start regular and injected conversions when JAUTO is 1908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** set with a single call to HAL_ADC_Start_IT() */ 1909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (hadc->Init.EOCSelection) 1910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_EOC_SEQ_CONV: 1912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC); 1913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 1914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 1916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 1917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOS); 1918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 1919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 1920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 1924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 1925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 1935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 1937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in ARM GAS /tmp/cco84Mp4.s page 203 1945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable interrution of 1946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * end-of-conversion, disable ADC peripheral. 1947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 1949:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 1950:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_IT(ADC_HandleTypeDef *hadc) 1951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 1953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1954:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 1955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 1959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential conversion on going, on ADC groups regular and injected */ 1961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 1962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 1964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of conversion interrupt for regular group */ 1967:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 1968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, (ADC_IT_EOC | ADC_IT_EOS | ADC_IT_OVR)); 1969:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 1971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 1972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 1974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 1975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 1977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 1978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 1979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 1980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 1984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 1985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 1987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 1988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 1991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable ADC, start conversion of regular group and transfer result through DMA. 1992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Interruptions enabled in this function: 1993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * overrun (if applicable), DMA half transfer, DMA transfer complete. 1994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Each of these interruptions has its dedicated callback function. 1995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): HAL_ADC_Start_DMA() 1996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * is designed for single-ADC mode only. For multimode, the dedicated 1997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADCEx_MultiModeStart_DMA() function must be used. 1998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 1999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pData Destination Buffer address. 2000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param Length Number of data to be transferred from ADC peripheral to memory 2001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. ARM GAS /tmp/cco84Mp4.s page 204 2002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) 2004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Perform ADC enable and conversion start if no conversion is on going */ 2014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Ensure that multimode regular conversions are not enabled. */ 2021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */ 2022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((ADC_IS_INDEPENDENT(hadc) != RESET) 2023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 2026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 2030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Enable(hadc); 2031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start conversion if ADC is effectively enabled */ 2033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Clear state bitfield related to regular group conversion results */ 2037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set state bitfield related to regular operation */ 2038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 2040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY); 2041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit 2044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if ADC instance is master or if multimode feature is not available 2045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** - if multimode setting is disabled (ADC instance slave in independent mode) */ 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE); 2051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if a conversion is on going on ADC group injected */ 2055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL) 2056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset ADC error code fields related to regular conversions only */ 2058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); ARM GAS /tmp/cco84Mp4.s page 205 2059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset all ADC error code fields */ 2063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CLEAR_ERRORCODE(hadc); 2064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA transfer complete callback */ 2067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt; 2068:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2069:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA half transfer complete callback */ 2070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt; 2071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the DMA error callback */ 2073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback = ADC_DMAError; 2074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2075:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Manage ADC and DMA start: ADC overrun interruption, DMA start, */ 2077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC start (in case of SW start): */ 2078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2079:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag and overrun flag */ 2080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (To ensure of no unknown state from potential previous ADC */ 2081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* operations) */ 2082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR)); 2083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Unlock before starting ADC conversions: in case of potential */ 2086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* interruption, to let the process to ADC IRQ Handler. */ 2087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* With DMA, overrun event is always considered as an error even if 2090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore, 2091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_OVR is enabled. */ 2092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR); 2093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable ADC DMA mode */ 2095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN); 2096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start the DMA channel */ 2098: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_ 2099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable conversion of regular group. */ 2101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If software start has been selected, conversion starts immediately. */ 2102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If external trigger has been selected, conversion will start at next */ 2103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* trigger event. */ 2104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start ADC group regular conversion */ 2105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StartConversion(hadc->Instance); 2106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else ARM GAS /tmp/cco84Mp4.s page 206 2116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 2118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_BUSY; 2126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion of regular group (and injected group in 2134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * case of auto_injection mode), disable ADC DMA transfer, disable 2135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC peripheral. 2136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: ADC peripheral disable is forcing stop of potential 2137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * conversion on ADC group injected. If ADC group injected is under use, it 2138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * should be preliminarily stopped using HAL_ADCEx_InjectedStop function. 2139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Case of multimode enabled (when multimode feature is available): 2140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_Stop_DMA() function is dedicated to single-ADC mode only. 2141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For multimode, the dedicated HAL_ADCEx_MultiModeStop_DMA() API must be used. 2142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef *hadc) 2146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 2148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 1. Stop potential ADC group regular conversion on going */ 2156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_ConversionStop(hadc, ADC_REGULAR_INJECTED_GROUP); 2157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC peripheral if conversions are effectively stopped */ 2159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC DMA (ADC DMA configuration of continuous requests is kept) */ 2162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR, ADC_CFGR_DMAEN); 2163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the DMA channel (in case of DMA in circular mode or stop */ 2165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* while DMA transfer is on going) */ 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY) 2167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_DMA_Abort(hadc->DMA_Handle); 2169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if DMA channel effectively disabled */ 2171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status != HAL_OK) 2172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 207 2173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 2175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC overrun interrupt */ 2179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR); 2180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* 2. Disable the ADC peripheral */ 2182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update "tmp_hal_status" only if DMA channel disabling passed, */ 2183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to keep in memory a potential failing status. */ 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = ADC_Disable(hadc); 2187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (void)ADC_Disable(hadc); 2191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if ADC is effectively disabled */ 2194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_hal_status == HAL_OK) 2195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_STATE_CLR_SET(hadc->State, 2198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 2199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY); 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 **** } 2203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 2205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Get ADC regular group conversion result. 2213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Reading register DR automatically clears ADC flag EOC 2214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC group regular end of unitary conversion). 2215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note This function does not clear ADC flag EOS 2216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC group regular end of sequence conversion). 2217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Occurrence of flag EOS rising: 2218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If sequencer is composed of 1 rank, flag EOS is equivalent 2219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * to flag EOC. 2220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If sequencer is composed of several ranks, during the scan 2221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * sequence flag EOC only is raised, at the end of the scan sequence 2222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * both flags EOC and EOS are raised. 2223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * To clear this flag, either use function: 2224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * in programming model IT: @ref HAL_ADC_IRQHandler(), in programming 2225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * model polling: @ref HAL_ADC_PollForConversion() 2226:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * or @ref __HAL_ADC_CLEAR_FLAG(&hadc, ADC_FLAG_EOS). 2227:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC group regular conversion data 2229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ ARM GAS /tmp/cco84Mp4.s page 208 2230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetValue(const ADC_HandleTypeDef *hadc) 2231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1269 .loc 1 2231 1 is_stmt 1 view -0 1270 .cfi_startproc 1271 @ args = 0, pretend = 0, frame = 0 1272 @ frame_needed = 0, uses_anonymous_args = 0 1273 @ link register save eliminated. 2232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1274 .loc 1 2233 3 view .LVU389 2234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: EOC flag is not cleared here by software because automatically */ 2236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* cleared by hardware when reading register DR. */ 2237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return ADC converted value */ 2239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->Instance->DR; 1275 .loc 1 2239 3 view .LVU390 1276 .loc 1 2239 14 is_stmt 0 view .LVU391 1277 0000 0368 ldr r3, [r0] 1278 .loc 1 2239 24 view .LVU392 1279 0002 186C ldr r0, [r3, #64] 1280 .LVL92: 2240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1281 .loc 1 2240 1 view .LVU393 1282 0004 7047 bx lr 1283 .cfi_endproc 1284 .LFE341: 1286 .section .text.HAL_ADC_StartSampling,"ax",%progbits 1287 .align 1 1288 .global HAL_ADC_StartSampling 1289 .syntax unified 1290 .thumb 1291 .thumb_func 1293 HAL_ADC_StartSampling: 1294 .LVL93: 1295 .LFB342: 2241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Start ADC conversion sampling phase of regular group 2244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: This function should only be called to start sampling when 2245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SAMPLING_MODE_TRIGGER_CONTROLED sampling 2246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode has been selected 2247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SOFTWARE_START has been selected as trigger source 2248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_StartSampling(ADC_HandleTypeDef *hadc) 2252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1296 .loc 1 2252 1 is_stmt 1 view -0 1297 .cfi_startproc 1298 @ args = 0, pretend = 0, frame = 0 1299 @ frame_needed = 0, uses_anonymous_args = 0 1300 @ link register save eliminated. 2253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1301 .loc 1 2254 3 view .LVU395 2255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 209 2256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start sampling */ 2257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR2, ADC_CFGR2_SWTRIG); 1302 .loc 1 2257 3 view .LVU396 1303 0000 0268 ldr r2, [r0] 1304 0002 1369 ldr r3, [r2, #16] 1305 0004 43F00073 orr r3, r3, #33554432 1306 0008 1361 str r3, [r2, #16] 2258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1307 .loc 1 2260 3 view .LVU397 2261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1308 .loc 1 2261 1 is_stmt 0 view .LVU398 1309 000a 0020 movs r0, #0 1310 .LVL94: 1311 .loc 1 2261 1 view .LVU399 1312 000c 7047 bx lr 1313 .cfi_endproc 1314 .LFE342: 1316 .section .text.HAL_ADC_StopSampling,"ax",%progbits 1317 .align 1 1318 .global HAL_ADC_StopSampling 1319 .syntax unified 1320 .thumb 1321 .thumb_func 1323 HAL_ADC_StopSampling: 1324 .LVL95: 1325 .LFB343: 2262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion sampling phase of regular group and start conversion 2265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note: This function should only be called to stop sampling when 2266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SAMPLING_MODE_TRIGGER_CONTROLED sampling 2267:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * mode has been selected 2268:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - @ref ADC_SOFTWARE_START has been selected as trigger source 2269:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - after sampling has been started using @ref HAL_ADC_StartSampling. 2270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 2272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_StopSampling(ADC_HandleTypeDef *hadc) 2274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1326 .loc 1 2274 1 is_stmt 1 view -0 1327 .cfi_startproc 1328 @ args = 0, pretend = 0, frame = 0 1329 @ frame_needed = 0, uses_anonymous_args = 0 1330 @ link register save eliminated. 2275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 1331 .loc 1 2276 3 view .LVU401 2277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Start sampling */ 2279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_SWTRIG); 1332 .loc 1 2279 3 view .LVU402 1333 0000 0268 ldr r2, [r0] 1334 0002 1369 ldr r3, [r2, #16] 1335 0004 23F00073 bic r3, r3, #33554432 1336 0008 1361 str r3, [r2, #16] ARM GAS /tmp/cco84Mp4.s page 210 2280:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 1337 .loc 1 2282 3 view .LVU403 2283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1338 .loc 1 2283 1 is_stmt 0 view .LVU404 1339 000a 0020 movs r0, #0 1340 .LVL96: 1341 .loc 1 2283 1 view .LVU405 1342 000c 7047 bx lr 1343 .cfi_endproc 1344 .LFE343: 1346 .section .text.HAL_ADC_ConvCpltCallback,"ax",%progbits 1347 .align 1 1348 .weak HAL_ADC_ConvCpltCallback 1349 .syntax unified 1350 .thumb 1351 .thumb_func 1353 HAL_ADC_ConvCpltCallback: 1354 .LVL97: 1355 .LFB345: 2284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Handle ADC interrupt request. 2287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void HAL_ADC_IRQHandler(ADC_HandleTypeDef *hadc) 2291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2292: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 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 2294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 2295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 2296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 2297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 2298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const ADC_TypeDef *tmpADC_Master; 2300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 2301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 2306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check End of Sampling flag for ADC group regular ========== */ 2308: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)) 2309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on end of sampling status if not in error state */ 2311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOSMP); 2315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* End Of Sampling callback */ 2318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->EndOfSamplingCallback(hadc); ARM GAS /tmp/cco84Mp4.s page 211 2320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_EndOfSamplingCallback(hadc); 2322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag */ 2325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOSMP); 2326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ====== Check ADC group regular end of unitary conversion sequence conversions ===== */ 2329: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)) || 2330: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))) 2331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 2337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 2340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 2341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to disable interruption. */ 2342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 2343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 2347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT) 2351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN) 2352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* check CONT bit directly in handle ADC CFGR register */ 2355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2357:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2358:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* else need to check Master ADC CONT bit */ 2360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Carry on if continuous mode is disabled */ 2368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) != ADC_CFGR_CONT) 2369:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2370:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_EOS)) 2372:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_EOC/ADC_IT_EOS only if bit */ 2374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADSTART==0 (no conversion on going) */ 2375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 212 2377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Overrun interrupt was enabled with EOC interrupt in */ 2379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_Start_IT(), but is not disabled here because can be used */ 2380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by overrun IRQ process below. */ 2381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC | ADC_IT_EOS); 2382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 2385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to error state */ 2394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 2398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** } 2402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Conversion complete callback */ 2404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Into callback function "HAL_ADC_ConvCpltCallback()", */ 2405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to determine if conversion has been triggered from EOC or EOS, */ 2406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* possibility to use: */ 2407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* " if ( __HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_EOS)) " */ 2408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 2410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 2412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear regular group conversion flag */ 2415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: in case of overrun set to ADC_OVR_DATA_PRESERVED, end of */ 2416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion flags clear induces the release of the preserved data.*/ 2417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, if the preserved data value is needed, it must be */ 2418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* read preliminarily into HAL_ADC_ConvCpltCallback(). */ 2419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS)); 2420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ====== Check ADC group injected end of unitary conversion sequence conversions ===== */ 2423: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)) || 2424: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))) 2425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 2427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL) 2428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_EOC); 2431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC configuration */ ARM GAS /tmp/cco84Mp4.s page 213 2434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_inj_is_trigger_source_sw_start = LL_ADC_INJ_IsTriggerSourceSWStart(hadc->Instance); 2435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 2436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 2437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in function of multimode state (for devices with multimode */ 2438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* available). */ 2439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance) 2441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 2442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_SIMULT) 2443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 2444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpADC_Master = __LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance); 2451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 2452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(hadc->Instance->CFGR); 2455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable interruption if no further conversion upcoming by injected */ 2458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* external trigger or by automatic injected conversion with regular */ 2459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* group having no further conversion upcoming (same conditions as */ 2460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* regular group interruption disabling above), */ 2461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* and if injected scan sequence is completed. */ 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_adc_inj_is_trigger_source_sw_start != 0UL) 2463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((READ_BIT(tmp_cfgr, ADC_CFGR_JAUTO) == 0UL) || 2465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 2466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 2467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If End of Sequence is reached, disable interrupts */ 2469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS)) 2470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case if injected contexts queue is enabled: */ 2472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* when the last context has been fully processed, JSQR is reset */ 2473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by the hardware. Even if no injected conversion is planned to come */ 2474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (queue empty, triggers are ignored), it can start again */ 2475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* immediately after setting a new context (JADSTART is still set). */ 2476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, state of HAL ADC injected group is kept to busy. */ 2477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmp_cfgr, ADC_CFGR_JQM) == 0UL) 2478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2479:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Allowed to modify bits ADC_IT_JEOC/ADC_IT_JEOS only if bit */ 2480:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* JADSTART==0 (no conversion on going) */ 2481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) == 0UL) 2482:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable ADC end of sequence conversion interrupt */ 2484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_DISABLE_IT(hadc, ADC_IT_JEOC | ADC_IT_JEOS); 2485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_INJ_BUSY); 2488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_REG_BUSY) == 0UL) 2490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 214 2491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 2492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 2498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 2500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 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 **** } 2506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected Conversion complete callback */ 2508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: HAL_ADCEx_InjectedConvCpltCallback can resort to 2509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOS)) or 2510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(&hadc, ADC_FLAG_JEOC)) to determine whether 2511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** interruption has been triggered by end of conversion or end of 2512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** sequence. */ 2513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedConvCpltCallback(hadc); 2515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedConvCpltCallback(hadc); 2517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear injected group conversion flag */ 2520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOC | ADC_FLAG_JEOS); 2521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Analog watchdog 1 flag ========== */ 2524: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)) 2525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD1); 2528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 1 callback */ 2530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindowCallback(hadc); 2532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_LevelOutOfWindowCallback(hadc); 2534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD1); 2538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check analog watchdog 2 flag ========== */ 2541: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)) 2542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD2); 2545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 2 callback */ 2547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) ARM GAS /tmp/cco84Mp4.s page 215 2548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow2Callback(hadc); 2549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow2Callback(hadc); 2551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD2); 2555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check analog watchdog 3 flag ========== */ 2558: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)) 2559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 2561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_AWD3); 2562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Level out of window 3 callback */ 2564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->LevelOutOfWindow3Callback(hadc); 2566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_LevelOutOfWindow3Callback(hadc); 2568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC analog watchdog flag */ 2571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_AWD3); 2572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Overrun flag ========== */ 2575: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)) 2576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If overrun is set to overwrite previous data (default setting), */ 2578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun event is not considered as an error. */ 2579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (cf ref manual "Managing conversions without using the DMA and without */ 2580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* overrun ") */ 2581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Exception for usage with DMA overrun event always considered as an */ 2582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* error. */ 2583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.Overrun == ADC_OVR_DATA_PRESERVED) 2584:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2585:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 2586:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check DMA configuration */ 2590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 2591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (tmp_multimode_config != LL_ADC_MULTI_INDEPENDENT) 2592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Multimode (when feature is available) is enabled, 2594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Common Control Register MDMA bits must be checked. */ 2595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_GetMultiDMATransfer(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) != LL_ADC_MULTI_RE 2596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 2598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 2602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Multimode not set or feature not available or ADC independent */ 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CFGR & ADC_CFGR_DMAEN) != 0UL) ARM GAS /tmp/cco84Mp4.s page 216 2605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** overrun_error = 1UL; 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 **** } 2610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (overrun_error == 1UL) 2612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to error state */ 2614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_OVR); 2615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to overrun */ 2617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_OVR); 2618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Error callback */ 2620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: In case of overrun, ADC conversion data is preserved until */ 2621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* flag OVR is reset. */ 2622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Therefore, old ADC conversion data can be retrieved in */ 2623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* function "HAL_ADC_ErrorCallback()". */ 2624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 2626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 2628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear ADC overrun flag */ 2632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_OVR); 2633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ========== Check Injected context queue overflow flag ========== */ 2636: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)) 2637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Change ADC state to overrun state */ 2639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_INJ_JQOVF); 2640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to Injected context queue overflow */ 2642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_JQOVF); 2643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear the Injected context queue overflow flag */ 2645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JQOVF); 2646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Injected context queue overflow callback */ 2648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 2649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectedQueueOverflowCallback(hadc); 2650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 2651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADCEx_InjectedQueueOverflowCallback(hadc); 2652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 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 **** 2657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Conversion complete callback in non-blocking mode. 2659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ ARM GAS /tmp/cco84Mp4.s page 217 2662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc) 2663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1356 .loc 1 2663 1 is_stmt 1 view -0 1357 .cfi_startproc 1358 @ args = 0, pretend = 0, frame = 0 1359 @ frame_needed = 0, uses_anonymous_args = 0 1360 @ link register save eliminated. 2664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 1361 .loc 1 2665 3 view .LVU407 2666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ConvCpltCallback must be implemented in the user file. 2669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1362 .loc 1 2670 1 is_stmt 0 view .LVU408 1363 0000 7047 bx lr 1364 .cfi_endproc 1365 .LFE345: 1367 .section .text.HAL_ADC_ConvHalfCpltCallback,"ax",%progbits 1368 .align 1 1369 .weak HAL_ADC_ConvHalfCpltCallback 1370 .syntax unified 1371 .thumb 1372 .thumb_func 1374 HAL_ADC_ConvHalfCpltCallback: 1375 .LVL98: 1376 .LFB346: 2671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Conversion DMA half-transfer callback in non-blocking mode. 2674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc) 2678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1377 .loc 1 2678 1 is_stmt 1 view -0 1378 .cfi_startproc 1379 @ args = 0, pretend = 0, frame = 0 1380 @ frame_needed = 0, uses_anonymous_args = 0 1381 @ link register save eliminated. 2679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 1382 .loc 1 2680 3 view .LVU410 2681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file. 2684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1383 .loc 1 2685 1 is_stmt 0 view .LVU411 1384 0000 7047 bx lr 1385 .cfi_endproc 1386 .LFE346: 1388 .section .text.ADC_DMAHalfConvCplt,"ax",%progbits 1389 .align 1 1390 .global ADC_DMAHalfConvCplt 1391 .syntax unified ARM GAS /tmp/cco84Mp4.s page 218 1392 .thumb 1393 .thumb_func 1395 ADC_DMAHalfConvCplt: 1396 .LVL99: 1397 .LFB357: 2686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Analog watchdog 1 callback in non-blocking mode. 2689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_LevelOutOfWindowCallback(ADC_HandleTypeDef *hadc) 2693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 2696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_LevelOutOfWindowCallback must be implemented in the user file. 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 **** 2702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC error callback in non-blocking mode 2704:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (ADC conversion with interruption or transfer by DMA). 2705:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note In case of error due to overrun when using ADC with DMA transfer 2706:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (HAL ADC handle parameter "ErrorCode" to state "HAL_ADC_ERROR_OVR"): 2707:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - Reinitialize the DMA using function "HAL_ADC_Stop_DMA()". 2708:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * - If needed, restart a new ADC conversion using function 2709:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "HAL_ADC_Start_DMA()" 2710:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * (this function is also clearing overrun flag) 2711:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2712:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 2713:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc) 2715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2716:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 2717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** UNUSED(hadc); 2718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2719:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* NOTE : This function should not be modified. When the callback is needed, 2720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** function HAL_ADC_ErrorCallback must be implemented in the user file. 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 **** */ 2727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2728:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group3 Peripheral Control functions 2729:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Peripheral Control functions 2730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 2731:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 2732:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 2733:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Peripheral Control functions ##### 2734:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 2735:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] This section provides functions allowing to: 2736:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Configure channels on regular group 2737:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Configure the analog watchdog ARM GAS /tmp/cco84Mp4.s page 219 2738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2739:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 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 **** 2743:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Configure a channel to be assigned to ADC group regular. 2745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note In case of usage of internal measurement channels: 2746:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Vbat/VrefInt/TempSensor. 2747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * These internal paths can be disabled using function 2748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * HAL_ADC_DeInit(). 2749:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 2750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes channel into ADC group regular, 2751:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * following calls to this function can be used to reconfigure 2752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * some parameters of structure "ADC_ChannelConfTypeDef" on the fly, 2753:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * without resetting the ADC. 2754:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state: 2755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Refer to comments of structure "ADC_ChannelConfTypeDef". 2756:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2757:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pConfig Structure of ADC channel assigned to ADC group regular. 2758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 2759:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2760:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, const ADC_ChannelConfTypeDef *pCon 2761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_config_internal_channel; 2765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 2766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2768:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 2770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 2771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(pConfig->Rank)); 2772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(pConfig->SamplingTime)); 2773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(pConfig->SingleDiff)); 2774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(pConfig->OffsetNumber)); 2775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), pConfig->Offset)); 2776:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2777: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 2778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ignored (considered as reset) */ 2779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(!((pConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENAB 2780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification of channel number */ 2782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED) 2783:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(hadc, pConfig->Channel)); 2785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2786:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_DIFF_CHANNEL(hadc, pConfig->Channel)); 2789:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2791:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 2793:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2794:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ ARM GAS /tmp/cco84Mp4.s page 220 2795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2796:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on regular group: */ 2797:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel number */ 2798:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel rank */ 2799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL) 2800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2801:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC group regular sequence: channel on the selected scan sequence rank */ 2802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_SetSequencerRanks(hadc->Instance, pConfig->Rank, pConfig->Channel); 2803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2804:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 2806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on regular group: */ 2807:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel sampling time */ 2808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Channel offset */ 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 2810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Manage specific case of sampling time 3.5 cycles replacing 2.5 cyles */ 2816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pConfig->SamplingTime == ADC_SAMPLETIME_3CYCLES_5) 2817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, pConfig->Channel, LL_ADC_SAMPLINGTIME_2CYCLES 2820:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC sampling time common configuration */ 2822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_3C5_REPL_2C5) 2823:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2824:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2825:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, pConfig->Channel, pConfig->SamplingTime); 2828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC sampling time common configuration */ 2830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetSamplingTimeCommonConfig(hadc->Instance, LL_ADC_SAMPLINGTIME_COMMON_DEFAULT); 2831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2832:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure the offset: offset enable/disable, channel, offset value */ 2834:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution. */ 2836: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 */ 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)pConfig->Offset); 2838:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pConfig->OffsetNumber != ADC_OFFSET_NONE) 2840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset number */ 2842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffset(hadc->Instance, pConfig->OffsetNumber, pConfig->Channel, tmpOffsetShifted) 2843:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_SIGN(pConfig->OffsetSign)); 2845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(pConfig->OffsetSaturation)); 2846:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset sign & saturation */ 2847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSign(hadc->Instance, pConfig->OffsetNumber, pConfig->OffsetSign); 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, 2849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_OFFSET_SATURATION_ENABLE : LL_ADC_OFFSET_SATURATION_DISAB 2851:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/cco84Mp4.s page 221 2852:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2853:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2854:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Scan each offset register to check if the selected channel is targeted. */ 2855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If this is the case, the corresponding offset number is disabled. */ 2856: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) 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_1, LL_ADC_OFFSET_DISABLE); 2860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2861: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) 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_2, LL_ADC_OFFSET_DISABLE); 2865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2866: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) 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2868:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_3, LL_ADC_OFFSET_DISABLE); 2870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2871: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) 2872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2873:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetState(hadc->Instance, LL_ADC_OFFSET_4, LL_ADC_OFFSET_DISABLE); 2875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2876:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2877:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 2880:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated only when ADC is disabled: */ 2881:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Single or differential mode */ 2882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 2883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2884:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set mode single-ended or differential input of the selected ADC channel */ 2885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSingleDiff(hadc->Instance, pConfig->Channel, pConfig->SingleDiff); 2886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2887:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of differential mode */ 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED) 2889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set sampling time of the selected ADC channel */ 2891: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 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetChannelSamplingTime(hadc->Instance, 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 2894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 2895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** + 1UL) & 0x1FUL)), 2896:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pConfig->SamplingTime); 2897:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2899:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2900:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Management of internal measurement channels: Vbat/VrefInt/TempSensor. */ 2902:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If internal channel selected, enable dedicated internal buffers and */ 2903:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* paths. */ 2904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: these internal measurement paths can be disabled using */ 2905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* HAL_ADC_DeInit(). */ 2906:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__LL_ADC_IS_CHANNEL_INTERNAL(pConfig->Channel)) 2908:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 222 2909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->I 2910:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2911:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If the requested internal measurement path has already been enabled, */ 2912:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* bypass the configuration processing. */ 2913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((pConfig->Channel == ADC_CHANNEL_TEMPSENSOR_ADC1) || (pConfig->Channel == ADC_CHANNEL_TE 2914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2915:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc)) 2917:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2919:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_chan 2920:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2921:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Delay for temperature sensor stabilization time */ 2922:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait loop initialization and execution */ 2923:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 2924:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 2925:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 2928:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index--; 2930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2931:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2932:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if ((pConfig->Channel == ADC_CHANNEL_VBAT) 2934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL)) 2935:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc)) 2937:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2939:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel); 2940:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else if ((pConfig->Channel == ADC_CHANNEL_VREFINT) 2943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2944:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (ADC_VREFINT_INSTANCE(hadc)) 2946:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), 2948:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel 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 **** else 2952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2953:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* nothing to do */ 2954:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2956:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2957:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If a conversion is on going on regular group, no update on regular */ 2959:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* channel could be done on neither of the channel configuration structure */ 2960:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* parameters. */ 2961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 2962:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2963:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 2964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); 2965:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 223 2966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_hal_status = HAL_ERROR; 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 **** /* Process unlocked */ 2970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 2971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2972:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 2973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 2974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2975:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2976:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 2977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Configure the analog watchdog. 2978:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Possibility to update parameters on the fly: 2979:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This function initializes the selected analog watchdog, successive 2980:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * calls to this function can be used to reconfigure some parameters 2981:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * of structure "ADC_AnalogWDGConfTypeDef" on the fly, without resetting 2982:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the ADC. 2983:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * The setting of these parameters is conditioned to ADC state. 2984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For parameters constraints, see comments of structure 2985:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * "ADC_AnalogWDGConfTypeDef". 2986:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note On this STM32 series, analog watchdog thresholds can be modified 2987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * while ADC conversion is on going. 2988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * In this case, some constraints must be taken into account: 2989:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * the programmed threshold values are effective from the next 2990:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * ADC EOC (end of unitary conversion). 2991:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * Considering that registers write delay may happen due to 2992:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * bus activity, this might cause an uncertainty on the 2993:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * effective timing of the new programmed threshold values. 2994:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 2995:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param pAnalogWDGConfig Structure of ADC analog watchdog configuration 2996:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status 2997:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 2998:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig(ADC_HandleTypeDef *hadc, const ADC_AnalogWDGConfTypeDef * 2999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_awd_high_threshold_shifted; 3002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_awd_low_threshold_shifted; 3003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3006:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(pAnalogWDGConfig->WatchdogNumber)); 3009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(pAnalogWDGConfig->WatchdogMode)); 3010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_FILTERING_MODE(pAnalogWDGConfig->FilteringConfig)); 3011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(pAnalogWDGConfig->ITMode)); 3012:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((pAnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REG) || 3014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pAnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 3015:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pAnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_REGINJEC)) 3016:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CHANNEL(hadc, pAnalogWDGConfig->Channel)); 3018:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3019:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3020:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verify thresholds range */ 3021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (hadc->Init.OversamplingMode == ENABLE) 3022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 224 3023:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of oversampling enabled: depending on ratio and shift configuration, 3024:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** analog watchdog thresholds can be higher than ADC resolution. 3025:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Verify if thresholds are within maximum thresholds range. */ 3026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_RESOLUTION_12B, pAnalogWDGConfig->HighThreshold)); 3027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_RESOLUTION_12B, pAnalogWDGConfig->LowThreshold)); 3028:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3029:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3031:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verify if thresholds are within the selected ADC resolution */ 3032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), pAnalogWDGConfig->HighThreshold)); 3033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), pAnalogWDGConfig->LowThreshold)); 3034:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3035:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3036:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process locked */ 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_LOCK(hadc); 3038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3039:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters update conditioned to ADC state: */ 3040:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Parameters that can be updated when ADC is disabled or enabled without */ 3041:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* conversion on going on ADC groups regular and injected: */ 3042:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Analog watchdog channels */ 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 3046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3048:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3049:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog configuration */ 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_1) 3051:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3052:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configuration of analog watchdog: */ 3053:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* - Set the analog watchdog enable mode: one or overall group of */ 3054:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* channels, on groups regular and-or injected. */ 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (pAnalogWDGConfig->WatchdogMode) 3056:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3057:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, 3059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 3060:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 3061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3062:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, 3065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 3066:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 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_SINGLE_REGINJEC: 3070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, 3071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 3072:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJE 3073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3074:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3075:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG) 3077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3078:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3079:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: ARM GAS /tmp/cco84Mp4.s page 225 3080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_INJ) 3081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3083:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_ALL_CHANNELS_REG_ 3085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3086:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, LL_ADC_AWD1, LL_ADC_AWD_DISABLE); 3089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3090:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3091:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set the filtering configuration */ 3093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** MODIFY_REG(hadc->Instance->TR1, 3094:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_TR1_AWDFILT, 3095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pAnalogWDGConfig->FilteringConfig); 3096:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3097:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD1 */ 3098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD1); 3099:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3100:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3101:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3102:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3103:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD1(hadc->Instance); 3105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3106:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->ITMode == ENABLE) 3108:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD1(hadc->Instance); 3110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3111:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3112:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD1(hadc->Instance); 3114:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3115:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3116:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of ADC_ANALOGWATCHDOG_2 or ADC_ANALOGWATCHDOG_3 */ 3117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3118:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (pAnalogWDGConfig->WatchdogMode) 3120:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3121:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REG: 3122:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_INJEC: 3123:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_SINGLE_REGINJEC: 3124:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update AWD by bitfield to keep the possibility to monitor */ 3125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* several channels by successive calls of this function. */ 3126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3127:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD2CR, 3129:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 3130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3131:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3132:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->AWD3CR, 3134:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 3135:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3136:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; ARM GAS /tmp/cco84Mp4.s page 226 3137:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3138:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REG: 3139:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_INJEC: 3140:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_ANALOGWATCHDOG_ALL_REGINJEC: 3141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, 3142:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pAnalogWDGConfig->WatchdogNumber, LL_ADC_AWD_ALL_CHANNELS 3143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3144:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3145:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: /* ADC_ANALOGWATCHDOG_NONE */ 3146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetAnalogWDMonitChannels(hadc->Instance, pAnalogWDGConfig->WatchdogNumber, LL_ADC_ 3147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3148:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3149:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_2) 3151:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3152:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD2 */ 3153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD2); 3154:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3155:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3157:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3158:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD2(hadc->Instance); 3160:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3161:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->ITMode == ENABLE) 3163:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD2(hadc->Instance); 3165:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3167:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD2(hadc->Instance); 3169:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3170:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (pAnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_3) */ 3172:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3173:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state, clear previous result related to AWD3 */ 3175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_AWD3); 3176:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3177:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear flag ADC analog watchdog */ 3178:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Flag cleared Clear the ADC Analog watchdog flag to be ready */ 3179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to use for HAL_ADC_IRQHandler() or HAL_ADC_PollForEvent() */ 3180:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (in case left enabled by previous ADC operations). */ 3181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ClearFlag_AWD3(hadc->Instance); 3182:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3183:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Configure ADC analog watchdog interrupt */ 3184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->ITMode == ENABLE) 3185:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_EnableIT_AWD3(hadc->Instance); 3187:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3188:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3189:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_DisableIT_AWD3(hadc->Instance); 3191:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3192:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3193:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/cco84Mp4.s page 227 3194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3195:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3196:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Analog watchdog thresholds configuration */ 3198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (pAnalogWDGConfig->WatchdogNumber == ADC_ANALOGWATCHDOG_1) 3199:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3200:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution: */ 3201:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 11, the LSB (right bits) */ 3202:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* are set to 0. */ 3203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_high_threshold_shifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Hig 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Low 3205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3206:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case of ADC_ANALOGWATCHDOG_2 and ADC_ANALOGWATCHDOG_3 */ 3207:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Shift the offset with respect to the selected ADC resolution: */ 3210:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Thresholds have to be left-aligned on bit 7, the LSB (right bits) */ 3211:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* are set to 0. */ 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_high_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Hi 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Lo 3214:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3215:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3216:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC analog watchdog thresholds value of both thresholds high and low */ 3217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_ConfigAnalogWDThresholds(hadc->Instance, pAnalogWDGConfig->WatchdogNumber, tmp_awd_high_th 3218:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted); 3219:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 3221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_UNLOCK(hadc); 3222:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return function status */ 3224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return tmp_hal_status; 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 **** 3228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3229:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3230:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3232:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Exported_Functions_Group4 Peripheral State functions 3233:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief ADC Peripheral State functions 3234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * 3235:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @verbatim 3236:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 3237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ##### Peripheral state and errors functions ##### 3238:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** =============================================================================== 3239:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** [..] 3240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** This subsection provides functions to get in run-time the status of the 3241:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** peripheral. 3242:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Check the ADC state 3243:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (+) Check the ADC error code 3244:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3245:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** @endverbatim 3246:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 3247:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3248:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3249:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3250:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Return the ADC handle state. ARM GAS /tmp/cco84Mp4.s page 228 3251:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note ADC state machine is managed by bitfields, ADC status must be 3252:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * compared with states bits. 3253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * For example: 3254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_REG_BUSY) != 0UL) " 3255:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " 3256:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC handle state (bitfield on 32 bits) 3258:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3259:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetState(const ADC_HandleTypeDef *hadc) 3260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3261:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3264:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return ADC handle state */ 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->State; 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 **** * @brief Return the ADC error code. 3270:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval ADC error code (bitfield on 32 bits) 3272:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3273:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t HAL_ADC_GetError(const ADC_HandleTypeDef *hadc) 3274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3275:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3277:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return hadc->ErrorCode; 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 **** /** 3282:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3283:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3284:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3285:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3286:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @} 3287:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3288:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3289:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** @defgroup ADC_Private_Functions ADC Private Functions 3290:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @{ 3291:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Stop ADC conversion. 3295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param ConversionGroup ADC group regular and/or injected. 3297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * This parameter can be one of the following values: 3298:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_REGULAR_GROUP ADC regular conversion type. 3299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_INJECTED_GROUP ADC injected conversion type. 3300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @arg @ref ADC_REGULAR_INJECTED_GROUP ADC regular and injected conversion type. 3301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3302:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3303:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_ConversionStop(ADC_HandleTypeDef *hadc, uint32_t ConversionGroup) 3304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 3307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; ARM GAS /tmp/cco84Mp4.s page 229 3308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 3309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3312:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 3313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance)); 3314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 3315:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification if ADC is not already stopped (on regular and injected */ 3317:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* groups) to bypass this function if not needed. */ 3318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance); 3319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 3321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 3322:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3323:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3324:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Particular case of continuous auto-injection mode combined with */ 3325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* auto-delay mode. */ 3326:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* In auto-injection mode, regular group stop ADC_CR_ADSTP is used (not */ 3327:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* injected group stop ADC_CR_JADSTP). */ 3328:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Procedure to be followed: Wait until JEOS=1, clear JEOS, set ADSTP=1 */ 3329:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* (see reference manual). */ 3330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (((hadc->Instance->CFGR & ADC_CFGR_JAUTO) != 0UL) 3331:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 3332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.LowPowerAutoWait == ENABLE) 3333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3334:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3335:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Use stop of regular group */ 3336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** conversion_group_reassigned = ADC_REGULAR_GROUP; 3337:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait until JEOS=1 (maximum Timeout: 4 injected conversions) */ 3339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_JEOS) == 0UL) 3340:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (Conversion_Timeout_CPU_cycles >= (ADC_CONVERSION_TIME_MAX_CPU_CYCLES * 4UL)) 3342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3345:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3346:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3350:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Conversion_Timeout_CPU_cycles ++; 3352:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3353:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3354:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Clear JEOS */ 3355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_JEOS); 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 **** /* Stop potential conversion on going on ADC group regular */ 3359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (conversion_group_reassigned != ADC_INJECTED_GROUP) 3360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to set ADSTP only when ADSTART=1 and ADDIS=0 */ 3362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) != 0UL) 3363:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) ARM GAS /tmp/cco84Mp4.s page 230 3365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3366:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop ADC group regular conversion */ 3367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_REG_StopConversion(hadc->Instance); 3368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** /* Stop potential conversion on going on ADC group injected */ 3373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (conversion_group_reassigned != ADC_REGULAR_GROUP) 3374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Software is allowed to set JADSTP only when JADSTART=1 and ADDIS=0 */ 3376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_INJ_IsConversionOngoing(hadc->Instance) != 0UL) 3377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsDisableOngoing(hadc->Instance) == 0UL) 3379:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3380:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Stop ADC group injected conversion */ 3381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_INJ_StopConversion(hadc->Instance); 3382:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3383:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3385:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Selection of start and stop bits with respect to the regular or injected group */ 3387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** switch (conversion_group_reassigned) 3388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3389:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_REGULAR_INJECTED_GROUP: 3390:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = (ADC_CR_ADSTART | ADC_CR_JADSTART); 3391:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3392:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** case ADC_INJECTED_GROUP: 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_JADSTART; 3394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3395:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Case ADC_REGULAR_GROUP only*/ 3396:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** default: 3397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_ADC_CR_ADSTART_JADSTART = ADC_CR_ADSTART; 3398:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3399:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3400:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3401:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait for conversion effectively stopped */ 3402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3403:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3405:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_STOP_CONVERSION_TIMEOUT) 3407:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3408:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & tmp_ADC_CR_ADSTART_JADSTART) != 0UL) 3410:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3413:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3414:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3416:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3418:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3420:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3421:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 231 3422:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3423:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3428:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3429:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Enable the selected ADC. 3430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC must be disabled 3431:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * and voltage regulator must be enabled (done into HAL_ADC_Init()). 3432:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3433:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc) 3436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 3439:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* ADC enable and wait for ADC ready (in case of ADC is disabled or */ 3441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* enabling phase not yet completed: flag ADC ready not yet set). */ 3442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */ 3443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* causes: ADC clock not running, ...). */ 3444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3445:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if conditions to enable the ADC are fulfilled */ 3447: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_ 3448:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 3449:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3452:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3453:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3455:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3457:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3458:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3459:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Enable the ADC peripheral */ 3460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3461:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) 3463:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** & LL_ADC_PATH_INTERNAL_TEMPSENSOR) != 0UL) 3464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Delay for temperature sensor buffer stabilization time */ 3466:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Value LL_ADC_DELAY_TEMPSENSOR_STAB_US used instead of */ 3467:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* LL_ADC_DELAY_TEMPSENSOR_BUFFER_STAB_US because needed */ 3468:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* in case of ADC enable after a system wake up */ 3469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* from low power mode. */ 3470:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3471:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait loop initialization and execution */ 3472:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Variable divided by 2 to compensate partially */ 3473:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CPU processing cycles, scaling in us split to not */ 3474:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* exceed 32 bits register capacity and handle low frequency. */ 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 3476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** wait_loop_index--; ARM GAS /tmp/cco84Mp4.s page 232 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 **** /* Wait for ADC effectively enabled */ 3483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3486:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* If ADEN bit is set less than 4 ADC clock cycles after the ADCAL bit 3488:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** has been cleared (after a calibration), ADEN bit is reset by the 3489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** calibration logic. 3490:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** The workaround is to continue setting ADEN until ADRDY is becomes 1. 3491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this 3492:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4 ADC clock cycle duration */ 3493:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: Test of ADC enabled required due to hardware constraint to */ 3494:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* not enable ADC if already enabled. */ 3495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_IsEnabled(hadc->Instance) == 0UL) 3496:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Enable(hadc->Instance); 3498:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3499:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT) 3501:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3502:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL) 3504:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3505:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3507:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3508:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3510:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3512:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3513:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3514:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3515:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3517:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3521:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3522:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief Disable the selected ADC. 3523:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @note Prerequisite condition to use this function: ADC conversions must be 3524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * stopped. 3525:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hadc ADC handle 3526:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval HAL status. 3527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3528:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc) 3529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 3531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 3532:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Verification if ADC is not already disabled: */ 3534:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */ 3535:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* disabled. */ ARM GAS /tmp/cco84Mp4.s page 233 3536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL) 3537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) 3538:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3539:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3540:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check if conditions to disable the ADC are fulfilled */ 3541: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) 3542:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3543:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Disable the ADC peripheral */ 3544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_Disable(hadc->Instance); 3545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 3546:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3547:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3548:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3549:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3551:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3552:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3556:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3557:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Wait for ADC effectively disabled */ 3559:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get tick count */ 3560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tickstart = HAL_GetTick(); 3561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3563:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) 3565:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3566:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* New check to avoid false timeout detection in case of preemption */ 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL) 3568:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3569:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update ADC state machine to error */ 3570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); 3571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3572:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to ADC peripheral internal error */ 3573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); 3574:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_ERROR; 3576:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3577:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3578:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3579:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3580:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3581:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Return HAL status */ 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** return HAL_OK; 3583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 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 **** * @brief DMA transfer complete callback. 3587:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3588:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3589:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3590:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma) 3591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3592:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ ARM GAS /tmp/cco84Mp4.s page 234 3593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 3594:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Update state machine on conversion status if not in error state */ 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL) 3597:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3598:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 3599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC); 3600:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3601:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Determine whether any further conversion upcoming on group regular */ 3602:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* by external trigger, continuous mode or scan sequence on going */ 3603:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* to disable interruption. */ 3604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Is it the end of the regular sequence ? */ 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL) 3606:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3607:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Are conversions software-triggered ? */ 3608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL) 3609:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3610:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Is CONT bit set ? */ 3611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL) 3612:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3613:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* CONT bit is not set, no more conversions expected */ 3614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3616:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3618:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3619:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3620:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3621:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3622:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3623:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3624:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DMA End of Transfer interrupt was triggered but conversions sequence 3625:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** is not over. If DMACFG is set to 0, conversions are stopped. */ 3626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMACFG) == 0UL) 3627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3628:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* DMACFG bit is not set, conversions are stopped. */ 3629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY); 3630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 3631:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_READY); 3633:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3634:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3635:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3637:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Conversion complete callback */ 3638:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvCpltCallback(hadc); 3640:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvCpltCallback(hadc); 3642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3643:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3644:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else /* DMA and-or internal error occurred */ 3645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL) 3647:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3648:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Call HAL ADC Error Callback function */ 3649:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) ARM GAS /tmp/cco84Mp4.s page 235 3650:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 3653:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3654:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** else 3656:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3657:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Call ADC DMA error callback */ 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->DMA_Handle->XferErrorCallback(hdma); 3659:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3660:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3662:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3663:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3664:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DMA half transfer complete callback. 3665:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3666:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3667:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3668:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma) 3669:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1398 .loc 1 3669 1 is_stmt 1 view -0 1399 .cfi_startproc 1400 @ args = 0, pretend = 0, frame = 0 1401 @ frame_needed = 0, uses_anonymous_args = 0 1402 .loc 1 3669 1 is_stmt 0 view .LVU413 1403 0000 08B5 push {r3, lr} 1404 .LCFI11: 1405 .cfi_def_cfa_offset 8 1406 .cfi_offset 3, -8 1407 .cfi_offset 14, -4 3670:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3671:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 1408 .loc 1 3671 3 is_stmt 1 view .LVU414 1409 .LVL100: 3672:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3673:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Half conversion callback */ 3674:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3675:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ConvHalfCpltCallback(hadc); 3676:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3677:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ConvHalfCpltCallback(hadc); 1410 .loc 1 3677 3 view .LVU415 1411 0002 806A ldr r0, [r0, #40] 1412 .LVL101: 1413 .loc 1 3677 3 is_stmt 0 view .LVU416 1414 0004 FFF7FEFF bl HAL_ADC_ConvHalfCpltCallback 1415 .LVL102: 3678:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 3679:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1416 .loc 1 3679 1 view .LVU417 1417 0008 08BD pop {r3, pc} 1418 .cfi_endproc 1419 .LFE357: 1421 .section .text.HAL_ADC_LevelOutOfWindowCallback,"ax",%progbits 1422 .align 1 1423 .weak HAL_ADC_LevelOutOfWindowCallback 1424 .syntax unified 1425 .thumb ARM GAS /tmp/cco84Mp4.s page 236 1426 .thumb_func 1428 HAL_ADC_LevelOutOfWindowCallback: 1429 .LVL103: 1430 .LFB347: 2693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1431 .loc 1 2693 1 is_stmt 1 view -0 1432 .cfi_startproc 1433 @ args = 0, pretend = 0, frame = 0 1434 @ frame_needed = 0, uses_anonymous_args = 0 1435 @ link register save eliminated. 2695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1436 .loc 1 2695 3 view .LVU419 2700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1437 .loc 1 2700 1 is_stmt 0 view .LVU420 1438 0000 7047 bx lr 1439 .cfi_endproc 1440 .LFE347: 1442 .section .text.HAL_ADC_ErrorCallback,"ax",%progbits 1443 .align 1 1444 .weak HAL_ADC_ErrorCallback 1445 .syntax unified 1446 .thumb 1447 .thumb_func 1449 HAL_ADC_ErrorCallback: 1450 .LVL104: 1451 .LFB348: 2715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Prevent unused argument(s) compilation warning */ 1452 .loc 1 2715 1 is_stmt 1 view -0 1453 .cfi_startproc 1454 @ args = 0, pretend = 0, frame = 0 1455 @ frame_needed = 0, uses_anonymous_args = 0 1456 @ link register save eliminated. 2717:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1457 .loc 1 2717 3 view .LVU422 2722:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1458 .loc 1 2722 1 is_stmt 0 view .LVU423 1459 0000 7047 bx lr 1460 .cfi_endproc 1461 .LFE348: 1463 .section .text.HAL_ADC_IRQHandler,"ax",%progbits 1464 .align 1 1465 .global HAL_ADC_IRQHandler 1466 .syntax unified 1467 .thumb 1468 .thumb_func 1470 HAL_ADC_IRQHandler: 1471 .LVL105: 1472 .LFB344: 2291: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 1473 .loc 1 2291 1 is_stmt 1 view -0 1474 .cfi_startproc 1475 @ args = 0, pretend = 0, frame = 0 1476 @ frame_needed = 0, uses_anonymous_args = 0 2291: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 1477 .loc 1 2291 1 is_stmt 0 view .LVU425 1478 0000 F8B5 push {r3, r4, r5, r6, r7, lr} 1479 .LCFI12: ARM GAS /tmp/cco84Mp4.s page 237 1480 .cfi_def_cfa_offset 24 1481 .cfi_offset 3, -24 1482 .cfi_offset 4, -20 1483 .cfi_offset 5, -16 1484 .cfi_offset 6, -12 1485 .cfi_offset 7, -8 1486 .cfi_offset 14, -4 1487 0002 0446 mov r4, r0 2292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_isr = hadc->Instance->ISR; 1488 .loc 1 2292 3 is_stmt 1 view .LVU426 1489 .LVL106: 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1490 .loc 1 2293 3 view .LVU427 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1491 .loc 1 2293 26 is_stmt 0 view .LVU428 1492 0004 0368 ldr r3, [r0] 2293:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ier = hadc->Instance->IER; 1493 .loc 1 2293 12 view .LVU429 1494 0006 1F68 ldr r7, [r3] 1495 .LVL107: 2294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 1496 .loc 1 2294 3 is_stmt 1 view .LVU430 2294:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_inj_is_trigger_source_sw_start; 1497 .loc 1 2294 12 is_stmt 0 view .LVU431 1498 0008 5D68 ldr r5, [r3, #4] 1499 .LVL108: 2295:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_reg_is_trigger_source_sw_start; 1500 .loc 1 2295 3 is_stmt 1 view .LVU432 2296:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_cfgr; 1501 .loc 1 2296 3 view .LVU433 2297:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 1502 .loc 1 2297 3 view .LVU434 2299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 1503 .loc 1 2299 3 view .LVU435 2300:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 1504 .loc 1 2300 3 view .LVU436 1505 .LBB362: 1506 .LBI362: 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1507 .loc 2 7407 26 view .LVU437 1508 .LBB363: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1509 .loc 2 7409 3 view .LVU438 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1510 .loc 2 7409 21 is_stmt 0 view .LVU439 1511 000a 9A4B ldr r3, .L138 1512 000c 9E68 ldr r6, [r3, #8] 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1513 .loc 2 7409 10 view .LVU440 1514 000e 06F01F06 and r6, r6, #31 1515 .LVL109: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1516 .loc 2 7409 10 view .LVU441 1517 .LBE363: 1518 .LBE362: 2304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection)); 1519 .loc 1 2304 3 is_stmt 1 view .LVU442 ARM GAS /tmp/cco84Mp4.s page 238 2305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1520 .loc 1 2305 3 view .LVU443 2308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1521 .loc 1 2308 3 view .LVU444 2308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1522 .loc 1 2308 6 is_stmt 0 view .LVU445 1523 0012 17F0020F tst r7, #2 1524 0016 10D0 beq .L92 2308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1525 .loc 1 2308 54 discriminator 1 view .LVU446 1526 0018 15F0020F tst r5, #2 1527 001c 0DD0 beq .L92 2311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1528 .loc 1 2311 5 is_stmt 1 view .LVU447 2311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1529 .loc 1 2311 14 is_stmt 0 view .LVU448 1530 001e C36D ldr r3, [r0, #92] 2311:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1531 .loc 1 2311 8 view .LVU449 1532 0020 13F0100F tst r3, #16 1533 0024 03D1 bne .L93 2314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1534 .loc 1 2314 7 is_stmt 1 view .LVU450 1535 0026 C36D ldr r3, [r0, #92] 1536 0028 43F40063 orr r3, r3, #2048 1537 002c C365 str r3, [r0, #92] 1538 .L93: 2321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1539 .loc 1 2321 5 view .LVU451 1540 002e 2046 mov r0, r4 1541 .LVL110: 2321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1542 .loc 1 2321 5 is_stmt 0 view .LVU452 1543 0030 FFF7FEFF bl HAL_ADCEx_EndOfSamplingCallback 1544 .LVL111: 2325:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1545 .loc 1 2325 5 is_stmt 1 view .LVU453 1546 0034 2368 ldr r3, [r4] 1547 0036 0222 movs r2, #2 1548 0038 1A60 str r2, [r3] 1549 .L92: 2329: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))) 1550 .loc 1 2329 3 view .LVU454 2329: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))) 1551 .loc 1 2329 6 is_stmt 0 view .LVU455 1552 003a 17F0040F tst r7, #4 1553 003e 02D0 beq .L94 2329: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))) 1554 .loc 1 2329 51 discriminator 1 view .LVU456 1555 0040 15F0040F tst r5, #4 1556 0044 05D1 bne .L95 1557 .L94: 2329: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))) 1558 .loc 1 2329 94 discriminator 3 view .LVU457 1559 0046 17F0080F tst r7, #8 1560 004a 4DD0 beq .L96 2330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 239 1561 .loc 1 2330 51 view .LVU458 1562 004c 15F0080F tst r5, #8 1563 0050 4AD0 beq .L96 1564 .L95: 2333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1565 .loc 1 2333 5 is_stmt 1 view .LVU459 2333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1566 .loc 1 2333 14 is_stmt 0 view .LVU460 1567 0052 E36D ldr r3, [r4, #92] 2333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1568 .loc 1 2333 8 view .LVU461 1569 0054 13F0100F tst r3, #16 1570 0058 03D1 bne .L97 2336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1571 .loc 1 2336 7 is_stmt 1 view .LVU462 1572 005a E36D ldr r3, [r4, #92] 1573 005c 43F40073 orr r3, r3, #512 1574 0060 E365 str r3, [r4, #92] 1575 .L97: 2342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1576 .loc 1 2342 5 view .LVU463 2342:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1577 .loc 1 2342 47 is_stmt 0 view .LVU464 1578 0062 2368 ldr r3, [r4] 1579 .LVL112: 1580 .LBB364: 1581 .LBI364: 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1582 .loc 2 4696 26 is_stmt 1 view .LVU465 1583 .LBB365: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1584 .loc 2 4698 3 view .LVU466 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1585 .loc 2 4698 12 is_stmt 0 view .LVU467 1586 0064 DA68 ldr r2, [r3, #12] 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1587 .loc 2 4698 103 view .LVU468 1588 0066 12F4406F tst r2, #3072 1589 006a 37D1 bne .L98 1590 .LVL113: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1591 .loc 2 4698 103 view .LVU469 1592 .LBE365: 1593 .LBE364: 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1594 .loc 1 2348 7 is_stmt 1 view .LVU470 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1595 .loc 1 2348 12 is_stmt 0 view .LVU471 1596 006c 824A ldr r2, .L138+4 1597 006e 9342 cmp r3, r2 1598 0070 27D0 beq .L132 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1599 .loc 1 2348 12 discriminator 1 view .LVU472 1600 0072 1A46 mov r2, r3 1601 .L99: 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1602 .loc 1 2348 10 discriminator 4 view .LVU473 ARM GAS /tmp/cco84Mp4.s page 240 1603 0074 9342 cmp r3, r2 1604 0076 07D0 beq .L100 1605 0078 092E cmp r6, #9 1606 007a 25D8 bhi .L101 1607 007c 40F22121 movw r1, #545 1608 0080 F140 lsrs r1, r1, r6 1609 0082 11F0010F tst r1, #1 1610 0086 1FD0 beq .L101 1611 .L100: 2355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1612 .loc 1 2355 9 is_stmt 1 view .LVU474 2355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1613 .loc 1 2355 18 is_stmt 0 view .LVU475 1614 0088 DA68 ldr r2, [r3, #12] 1615 .LVL114: 1616 .L102: 2368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1617 .loc 1 2368 7 is_stmt 1 view .LVU476 2368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1618 .loc 1 2368 10 is_stmt 0 view .LVU477 1619 008a 12F4005F tst r2, #8192 1620 008e 25D1 bne .L98 2371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1621 .loc 1 2371 9 is_stmt 1 view .LVU478 2371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1622 .loc 1 2371 13 is_stmt 0 view .LVU479 1623 0090 1A68 ldr r2, [r3] 1624 .LVL115: 2371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1625 .loc 1 2371 12 view .LVU480 1626 0092 12F0080F tst r2, #8 1627 0096 21D0 beq .L98 2375:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1628 .loc 1 2375 11 is_stmt 1 view .LVU481 1629 .LVL116: 1630 .LBB366: 1631 .LBI366: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1632 .loc 2 7866 26 view .LVU482 1633 .LBB367: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1634 .loc 2 7868 3 view .LVU483 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1635 .loc 2 7868 12 is_stmt 0 view .LVU484 1636 0098 9A68 ldr r2, [r3, #8] 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1637 .loc 2 7868 74 view .LVU485 1638 009a 12F0040F tst r2, #4 1639 009e 15D1 bne .L103 1640 .LVL117: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1641 .loc 2 7868 74 view .LVU486 1642 .LBE367: 1643 .LBE366: 2381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1644 .loc 1 2381 13 is_stmt 1 view .LVU487 1645 00a0 5A68 ldr r2, [r3, #4] ARM GAS /tmp/cco84Mp4.s page 241 1646 00a2 22F00C02 bic r2, r2, #12 1647 00a6 5A60 str r2, [r3, #4] 2384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1648 .loc 1 2384 13 view .LVU488 1649 00a8 E36D ldr r3, [r4, #92] 1650 00aa 23F48073 bic r3, r3, #256 1651 00ae E365 str r3, [r4, #92] 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1652 .loc 1 2386 13 view .LVU489 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1653 .loc 1 2386 22 is_stmt 0 view .LVU490 1654 00b0 E36D ldr r3, [r4, #92] 2386:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1655 .loc 1 2386 16 view .LVU491 1656 00b2 13F4805F tst r3, #4096 1657 00b6 11D1 bne .L98 2388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1658 .loc 1 2388 15 is_stmt 1 view .LVU492 1659 00b8 E36D ldr r3, [r4, #92] 1660 00ba 43F00103 orr r3, r3, #1 1661 00be E365 str r3, [r4, #92] 1662 00c0 0CE0 b .L98 1663 .LVL118: 1664 .L132: 2348:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1665 .loc 1 2348 12 is_stmt 0 discriminator 2 view .LVU493 1666 00c2 4FF0A042 mov r2, #1342177280 1667 00c6 D5E7 b .L99 1668 .L101: 2360:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1669 .loc 1 2360 9 is_stmt 1 view .LVU494 1670 .LVL119: 2361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1671 .loc 1 2361 9 view .LVU495 2361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1672 .loc 1 2361 18 is_stmt 0 view .LVU496 1673 00c8 D268 ldr r2, [r2, #12] 1674 .LVL120: 2361:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1675 .loc 1 2361 18 view .LVU497 1676 00ca DEE7 b .L102 1677 .LVL121: 1678 .L103: 2394:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1679 .loc 1 2394 13 is_stmt 1 view .LVU498 1680 00cc E36D ldr r3, [r4, #92] 1681 00ce 43F01003 orr r3, r3, #16 1682 00d2 E365 str r3, [r4, #92] 2397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1683 .loc 1 2397 13 view .LVU499 1684 00d4 236E ldr r3, [r4, #96] 1685 00d6 43F00103 orr r3, r3, #1 1686 00da 2366 str r3, [r4, #96] 1687 .LVL122: 1688 .L98: 2411:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1689 .loc 1 2411 5 view .LVU500 ARM GAS /tmp/cco84Mp4.s page 242 1690 00dc 2046 mov r0, r4 1691 00de FFF7FEFF bl HAL_ADC_ConvCpltCallback 1692 .LVL123: 2419:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1693 .loc 1 2419 5 view .LVU501 1694 00e2 2368 ldr r3, [r4] 1695 00e4 0C22 movs r2, #12 1696 00e6 1A60 str r2, [r3] 1697 .L96: 2423: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))) 1698 .loc 1 2423 3 view .LVU502 2423: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))) 1699 .loc 1 2423 6 is_stmt 0 view .LVU503 1700 00e8 17F0200F tst r7, #32 1701 00ec 02D0 beq .L105 2423: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))) 1702 .loc 1 2423 53 discriminator 1 view .LVU504 1703 00ee 15F0200F tst r5, #32 1704 00f2 05D1 bne .L106 1705 .L105: 2423: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))) 1706 .loc 1 2423 98 discriminator 3 view .LVU505 1707 00f4 17F0400F tst r7, #64 1708 00f8 5CD0 beq .L107 2424:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1709 .loc 1 2424 53 view .LVU506 1710 00fa 15F0400F tst r5, #64 1711 00fe 59D0 beq .L107 1712 .L106: 2427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1713 .loc 1 2427 5 is_stmt 1 view .LVU507 2427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1714 .loc 1 2427 14 is_stmt 0 view .LVU508 1715 0100 E36D ldr r3, [r4, #92] 2427:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1716 .loc 1 2427 8 view .LVU509 1717 0102 13F0100F tst r3, #16 1718 0106 03D1 bne .L108 2430:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1719 .loc 1 2430 7 is_stmt 1 view .LVU510 1720 0108 E36D ldr r3, [r4, #92] 1721 010a 43F40053 orr r3, r3, #8192 1722 010e E365 str r3, [r4, #92] 1723 .L108: 2434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1724 .loc 1 2434 5 view .LVU511 2434:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_reg_is_trigger_source_sw_start = LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance); 1725 .loc 1 2434 84 is_stmt 0 view .LVU512 1726 0110 2368 ldr r3, [r4] 1727 .LVL124: 1728 .LBB368: 1729 .LBI368: 5494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1730 .loc 2 5494 26 is_stmt 1 view .LVU513 1731 .LBB369: 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1732 .loc 2 5496 3 view .LVU514 ARM GAS /tmp/cco84Mp4.s page 243 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1733 .loc 2 5496 12 is_stmt 0 view .LVU515 1734 0112 DA6C ldr r2, [r3, #76] 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1735 .loc 2 5496 105 view .LVU516 1736 0114 12F4C07F tst r2, #384 1737 0118 12D1 bne .L128 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1738 .loc 2 5496 105 discriminator 1 view .LVU517 1739 011a 0121 movs r1, #1 1740 .L109: 1741 .LVL125: 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1742 .loc 2 5496 105 discriminator 1 view .LVU518 1743 .LBE369: 1744 .LBE368: 2435:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Get relevant register CFGR in ADC instance of ADC master or slave */ 1745 .loc 1 2435 5 is_stmt 1 view .LVU519 1746 .LBB371: 1747 .LBI371: 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1748 .loc 2 4696 26 view .LVU520 1749 .LBB372: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1750 .loc 2 4698 3 view .LVU521 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1751 .loc 2 4698 12 is_stmt 0 view .LVU522 1752 011c DA68 ldr r2, [r3, #12] 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1753 .loc 2 4698 103 view .LVU523 1754 011e 12F4406F tst r2, #3072 1755 0122 0FD1 bne .L129 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1756 .loc 2 4698 103 discriminator 1 view .LVU524 1757 0124 0120 movs r0, #1 1758 .L110: 1759 .LVL126: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1760 .loc 2 4698 103 discriminator 1 view .LVU525 1761 .LBE372: 1762 .LBE371: 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1763 .loc 1 2440 5 is_stmt 1 view .LVU526 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1764 .loc 1 2440 10 is_stmt 0 view .LVU527 1765 0126 544A ldr r2, .L138+4 1766 0128 9342 cmp r3, r2 1767 012a 0DD0 beq .L133 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1768 .loc 1 2440 10 discriminator 1 view .LVU528 1769 012c 1A46 mov r2, r3 1770 .L111: 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1771 .loc 1 2440 8 discriminator 4 view .LVU529 1772 012e 9342 cmp r3, r2 1773 0130 0DD0 beq .L112 2441:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_SIMULT) ARM GAS /tmp/cco84Mp4.s page 244 1774 .loc 1 2441 9 view .LVU530 1775 0132 66B1 cbz r6, .L112 2442:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_DUAL_REG_INTERL) 1776 .loc 1 2442 9 view .LVU531 1777 0134 062E cmp r6, #6 1778 0136 0AD0 beq .L112 2443:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 1779 .loc 1 2443 9 view .LVU532 1780 0138 072E cmp r6, #7 1781 013a 08D0 beq .L112 2450:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_cfgr = READ_REG(tmpADC_Master->CFGR); 1782 .loc 1 2450 7 is_stmt 1 view .LVU533 1783 .LVL127: 2451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1784 .loc 1 2451 7 view .LVU534 2451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1785 .loc 1 2451 16 is_stmt 0 view .LVU535 1786 013c D268 ldr r2, [r2, #12] 1787 .LVL128: 2451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1788 .loc 1 2451 16 view .LVU536 1789 013e 07E0 b .L114 1790 .LVL129: 1791 .L128: 1792 .LBB374: 1793 .LBB370: 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1794 .loc 2 5496 105 discriminator 2 view .LVU537 1795 0140 0021 movs r1, #0 1796 0142 EBE7 b .L109 1797 .LVL130: 1798 .L129: 5496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1799 .loc 2 5496 105 discriminator 2 view .LVU538 1800 .LBE370: 1801 .LBE374: 1802 .LBB375: 1803 .LBB373: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1804 .loc 2 4698 103 discriminator 2 view .LVU539 1805 0144 0020 movs r0, #0 1806 0146 EEE7 b .L110 1807 .LVL131: 1808 .L133: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1809 .loc 2 4698 103 discriminator 2 view .LVU540 1810 .LBE373: 1811 .LBE375: 2440:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 1812 .loc 1 2440 10 discriminator 2 view .LVU541 1813 0148 4FF0A042 mov r2, #1342177280 1814 014c EFE7 b .L111 1815 .L112: 2446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1816 .loc 1 2446 7 is_stmt 1 view .LVU542 2446:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1817 .loc 1 2446 16 is_stmt 0 view .LVU543 ARM GAS /tmp/cco84Mp4.s page 245 1818 014e DA68 ldr r2, [r3, #12] 1819 .LVL132: 1820 .L114: 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1821 .loc 1 2462 5 is_stmt 1 view .LVU544 2462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1822 .loc 1 2462 8 is_stmt 0 view .LVU545 1823 0150 51B3 cbz r1, .L115 2464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1824 .loc 1 2464 7 is_stmt 1 view .LVU546 2464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1825 .loc 1 2464 10 is_stmt 0 view .LVU547 1826 0152 12F0007F tst r2, #33554432 1827 0156 03D0 beq .L116 2464:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ((tmp_adc_reg_is_trigger_source_sw_start != 0UL) && 1828 .loc 1 2464 55 discriminator 1 view .LVU548 1829 0158 30B3 cbz r0, .L115 2465:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (READ_BIT(tmp_cfgr, ADC_CFGR_CONT) == 0UL))) 1830 .loc 1 2465 60 view .LVU549 1831 015a 12F4005F tst r2, #8192 1832 015e 23D1 bne .L115 1833 .L116: 2469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1834 .loc 1 2469 9 is_stmt 1 view .LVU550 2469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1835 .loc 1 2469 13 is_stmt 0 view .LVU551 1836 0160 1968 ldr r1, [r3] 1837 .LVL133: 2469:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1838 .loc 1 2469 12 view .LVU552 1839 0162 11F0400F tst r1, #64 1840 0166 1FD0 beq .L115 2477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1841 .loc 1 2477 11 is_stmt 1 view .LVU553 2477:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1842 .loc 1 2477 14 is_stmt 0 view .LVU554 1843 0168 12F4001F tst r2, #2097152 1844 016c 1CD1 bne .L115 2481:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1845 .loc 1 2481 13 is_stmt 1 view .LVU555 1846 .LVL134: 1847 .LBB376: 1848 .LBI376: 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1849 .loc 2 8092 26 view .LVU556 1850 .LBB377: 1851 .loc 2 8094 3 view .LVU557 1852 .loc 2 8094 12 is_stmt 0 view .LVU558 1853 016e 9A68 ldr r2, [r3, #8] 1854 .LVL135: 1855 .loc 2 8094 76 view .LVU559 1856 0170 12F0080F tst r2, #8 1857 0174 10D1 bne .L117 1858 .LVL136: 1859 .loc 2 8094 76 view .LVU560 1860 .LBE377: 1861 .LBE376: ARM GAS /tmp/cco84Mp4.s page 246 2484:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1862 .loc 1 2484 15 is_stmt 1 view .LVU561 1863 0176 5A68 ldr r2, [r3, #4] 1864 0178 22F06002 bic r2, r2, #96 1865 017c 5A60 str r2, [r3, #4] 2487:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1866 .loc 1 2487 15 view .LVU562 1867 017e E36D ldr r3, [r4, #92] 1868 0180 23F48053 bic r3, r3, #4096 1869 0184 E365 str r3, [r4, #92] 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1870 .loc 1 2489 15 view .LVU563 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1871 .loc 1 2489 24 is_stmt 0 view .LVU564 1872 0186 E36D ldr r3, [r4, #92] 2489:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1873 .loc 1 2489 18 view .LVU565 1874 0188 13F4807F tst r3, #256 1875 018c 0CD1 bne .L115 2491:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1876 .loc 1 2491 17 is_stmt 1 view .LVU566 1877 018e E36D ldr r3, [r4, #92] 1878 0190 43F00103 orr r3, r3, #1 1879 0194 E365 str r3, [r4, #92] 1880 0196 07E0 b .L115 1881 .LVL137: 1882 .L117: 2497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1883 .loc 1 2497 15 view .LVU567 1884 0198 E36D ldr r3, [r4, #92] 1885 019a 43F01003 orr r3, r3, #16 1886 019e E365 str r3, [r4, #92] 2500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1887 .loc 1 2500 15 view .LVU568 1888 01a0 236E ldr r3, [r4, #96] 1889 01a2 43F00103 orr r3, r3, #1 1890 01a6 2366 str r3, [r4, #96] 1891 .L115: 2516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1892 .loc 1 2516 5 view .LVU569 1893 01a8 2046 mov r0, r4 1894 .LVL138: 2516:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1895 .loc 1 2516 5 is_stmt 0 view .LVU570 1896 01aa FFF7FEFF bl HAL_ADCEx_InjectedConvCpltCallback 1897 .LVL139: 2520:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1898 .loc 1 2520 5 is_stmt 1 view .LVU571 1899 01ae 2368 ldr r3, [r4] 1900 01b0 6022 movs r2, #96 1901 01b2 1A60 str r2, [r3] 1902 .LVL140: 1903 .L107: 2524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1904 .loc 1 2524 3 view .LVU572 2524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1905 .loc 1 2524 6 is_stmt 0 view .LVU573 ARM GAS /tmp/cco84Mp4.s page 247 1906 01b4 17F0800F tst r7, #128 1907 01b8 02D0 beq .L119 2524:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1908 .loc 1 2524 52 discriminator 1 view .LVU574 1909 01ba 15F0800F tst r5, #128 1910 01be 2FD1 bne .L134 1911 .L119: 2541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1912 .loc 1 2541 3 is_stmt 1 view .LVU575 2541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1913 .loc 1 2541 6 is_stmt 0 view .LVU576 1914 01c0 17F4807F tst r7, #256 1915 01c4 02D0 beq .L120 2541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1916 .loc 1 2541 52 discriminator 1 view .LVU577 1917 01c6 15F4807F tst r5, #256 1918 01ca 34D1 bne .L135 1919 .L120: 2558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1920 .loc 1 2558 3 is_stmt 1 view .LVU578 2558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1921 .loc 1 2558 6 is_stmt 0 view .LVU579 1922 01cc 17F4007F tst r7, #512 1923 01d0 02D0 beq .L121 2558:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1924 .loc 1 2558 52 discriminator 1 view .LVU580 1925 01d2 15F4007F tst r5, #512 1926 01d6 3AD1 bne .L136 1927 .L121: 2575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1928 .loc 1 2575 3 is_stmt 1 view .LVU581 2575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1929 .loc 1 2575 6 is_stmt 0 view .LVU582 1930 01d8 17F0100F tst r7, #16 1931 01dc 19D0 beq .L122 2575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1932 .loc 1 2575 50 discriminator 1 view .LVU583 1933 01de 15F0100F tst r5, #16 1934 01e2 16D0 beq .L122 2583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1935 .loc 1 2583 5 is_stmt 1 view .LVU584 2583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1936 .loc 1 2583 19 is_stmt 0 view .LVU585 1937 01e4 E36B ldr r3, [r4, #60] 2583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1938 .loc 1 2583 8 view .LVU586 1939 01e6 33B1 cbz r3, .L123 2591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1940 .loc 1 2591 7 is_stmt 1 view .LVU587 2591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1941 .loc 1 2591 10 is_stmt 0 view .LVU588 1942 01e8 002E cmp r6, #0 1943 01ea 3CD0 beq .L124 2595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1944 .loc 1 2595 9 is_stmt 1 view .LVU589 1945 .LVL141: 1946 .LBB378: ARM GAS /tmp/cco84Mp4.s page 248 1947 .LBI378: 7504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 1948 .loc 2 7504 26 view .LVU590 1949 .LBB379: 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1950 .loc 2 7506 3 view .LVU591 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1951 .loc 2 7506 21 is_stmt 0 view .LVU592 1952 01ec 214B ldr r3, .L138 1953 01ee 9B68 ldr r3, [r3, #8] 1954 .LVL142: 7506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 1955 .loc 2 7506 21 view .LVU593 1956 .LBE379: 1957 .LBE378: 2595:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1958 .loc 1 2595 12 discriminator 1 view .LVU594 1959 01f0 13F4604F tst r3, #57344 1960 01f4 0AD0 beq .L125 1961 .L123: 1962 .LVL143: 2614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1963 .loc 1 2614 7 is_stmt 1 view .LVU595 1964 01f6 E36D ldr r3, [r4, #92] 1965 01f8 43F48063 orr r3, r3, #1024 1966 01fc E365 str r3, [r4, #92] 2617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1967 .loc 1 2617 7 view .LVU596 1968 01fe 236E ldr r3, [r4, #96] 1969 0200 43F00203 orr r3, r3, #2 1970 0204 2366 str r3, [r4, #96] 2627:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1971 .loc 1 2627 7 view .LVU597 1972 0206 2046 mov r0, r4 1973 0208 FFF7FEFF bl HAL_ADC_ErrorCallback 1974 .LVL144: 1975 .L125: 2632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 1976 .loc 1 2632 5 view .LVU598 1977 020c 2368 ldr r3, [r4] 1978 020e 1022 movs r2, #16 1979 0210 1A60 str r2, [r3] 1980 .L122: 2636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1981 .loc 1 2636 3 view .LVU599 2636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1982 .loc 1 2636 6 is_stmt 0 view .LVU600 1983 0212 17F4806F tst r7, #1024 1984 0216 02D0 beq .L91 2636:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 1985 .loc 1 2636 54 discriminator 1 view .LVU601 1986 0218 15F4806F tst r5, #1024 1987 021c 2ED1 bne .L137 1988 .L91: 2655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1989 .loc 1 2655 1 view .LVU602 1990 021e F8BD pop {r3, r4, r5, r6, r7, pc} ARM GAS /tmp/cco84Mp4.s page 249 1991 .LVL145: 1992 .L134: 2527:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 1993 .loc 1 2527 5 is_stmt 1 view .LVU603 1994 0220 E36D ldr r3, [r4, #92] 1995 0222 43F48033 orr r3, r3, #65536 1996 0226 E365 str r3, [r4, #92] 2533:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 1997 .loc 1 2533 5 view .LVU604 1998 0228 2046 mov r0, r4 1999 022a FFF7FEFF bl HAL_ADC_LevelOutOfWindowCallback 2000 .LVL146: 2537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2001 .loc 1 2537 5 view .LVU605 2002 022e 2368 ldr r3, [r4] 2003 0230 8022 movs r2, #128 2004 0232 1A60 str r2, [r3] 2005 0234 C4E7 b .L119 2006 .L135: 2544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2007 .loc 1 2544 5 view .LVU606 2008 0236 E36D ldr r3, [r4, #92] 2009 0238 43F40033 orr r3, r3, #131072 2010 023c E365 str r3, [r4, #92] 2550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2011 .loc 1 2550 5 view .LVU607 2012 023e 2046 mov r0, r4 2013 0240 FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow2Callback 2014 .LVL147: 2554:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2015 .loc 1 2554 5 view .LVU608 2016 0244 2368 ldr r3, [r4] 2017 0246 4FF48072 mov r2, #256 2018 024a 1A60 str r2, [r3] 2019 024c BEE7 b .L120 2020 .L136: 2561:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2021 .loc 1 2561 5 view .LVU609 2022 024e E36D ldr r3, [r4, #92] 2023 0250 43F48023 orr r3, r3, #262144 2024 0254 E365 str r3, [r4, #92] 2567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2025 .loc 1 2567 5 view .LVU610 2026 0256 2046 mov r0, r4 2027 0258 FFF7FEFF bl HAL_ADCEx_LevelOutOfWindow3Callback 2028 .LVL148: 2571:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2029 .loc 1 2571 5 view .LVU611 2030 025c 2368 ldr r3, [r4] 2031 025e 4FF40072 mov r2, #512 2032 0262 1A60 str r2, [r3] 2033 0264 B8E7 b .L121 2034 .L124: 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2035 .loc 1 2604 9 view .LVU612 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2036 .loc 1 2604 18 is_stmt 0 view .LVU613 ARM GAS /tmp/cco84Mp4.s page 250 2037 0266 2368 ldr r3, [r4] 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2038 .loc 1 2604 28 view .LVU614 2039 0268 DB68 ldr r3, [r3, #12] 2604:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2040 .loc 1 2604 12 view .LVU615 2041 026a 13F0010F tst r3, #1 2042 026e CDD0 beq .L125 2043 0270 C1E7 b .L123 2044 .L139: 2045 0272 00BF .align 2 2046 .L138: 2047 0274 00030050 .word 1342178048 2048 0278 00010050 .word 1342177536 2049 .LVL149: 2050 .L137: 2639:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2051 .loc 1 2639 5 is_stmt 1 view .LVU616 2052 027c E36D ldr r3, [r4, #92] 2053 027e 43F48043 orr r3, r3, #16384 2054 0282 E365 str r3, [r4, #92] 2642:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2055 .loc 1 2642 5 view .LVU617 2056 0284 236E ldr r3, [r4, #96] 2057 0286 43F00803 orr r3, r3, #8 2058 028a 2366 str r3, [r4, #96] 2645:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2059 .loc 1 2645 5 view .LVU618 2060 028c 2368 ldr r3, [r4] 2061 028e 4FF48062 mov r2, #1024 2062 0292 1A60 str r2, [r3] 2651:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2063 .loc 1 2651 5 view .LVU619 2064 0294 2046 mov r0, r4 2065 0296 FFF7FEFF bl HAL_ADCEx_InjectedQueueOverflowCallback 2066 .LVL150: 2655:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2067 .loc 1 2655 1 is_stmt 0 view .LVU620 2068 029a C0E7 b .L91 2069 .cfi_endproc 2070 .LFE344: 2072 .section .text.ADC_DMAConvCplt,"ax",%progbits 2073 .align 1 2074 .global ADC_DMAConvCplt 2075 .syntax unified 2076 .thumb 2077 .thumb_func 2079 ADC_DMAConvCplt: 2080 .LVL151: 2081 .LFB356: 3591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 2082 .loc 1 3591 1 is_stmt 1 view -0 2083 .cfi_startproc 2084 @ args = 0, pretend = 0, frame = 0 2085 @ frame_needed = 0, uses_anonymous_args = 0 3591:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 2086 .loc 1 3591 1 is_stmt 0 view .LVU622 ARM GAS /tmp/cco84Mp4.s page 251 2087 0000 08B5 push {r3, lr} 2088 .LCFI13: 2089 .cfi_def_cfa_offset 8 2090 .cfi_offset 3, -8 2091 .cfi_offset 14, -4 2092 0002 0346 mov r3, r0 3593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2093 .loc 1 3593 3 is_stmt 1 view .LVU623 3593:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2094 .loc 1 3593 22 is_stmt 0 view .LVU624 2095 0004 806A ldr r0, [r0, #40] 2096 .LVL152: 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2097 .loc 1 3596 3 is_stmt 1 view .LVU625 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2098 .loc 1 3596 12 is_stmt 0 view .LVU626 2099 0006 C26D ldr r2, [r0, #92] 3596:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2100 .loc 1 3596 6 view .LVU627 2101 0008 12F0500F tst r2, #80 2102 000c 30D1 bne .L141 3599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2103 .loc 1 3599 5 is_stmt 1 view .LVU628 2104 000e C36D ldr r3, [r0, #92] 2105 .LVL153: 3599:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2106 .loc 1 3599 5 is_stmt 0 view .LVU629 2107 0010 43F40073 orr r3, r3, #512 2108 0014 C365 str r3, [r0, #92] 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2109 .loc 1 3605 5 is_stmt 1 view .LVU630 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2110 .loc 1 3605 14 is_stmt 0 view .LVU631 2111 0016 0368 ldr r3, [r0] 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2112 .loc 1 3605 24 view .LVU632 2113 0018 1A68 ldr r2, [r3] 3605:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2114 .loc 1 3605 8 view .LVU633 2115 001a 12F0080F tst r2, #8 2116 001e 14D0 beq .L142 3608:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2117 .loc 1 3608 7 is_stmt 1 view .LVU634 2118 .LVL154: 2119 .LBB380: 2120 .LBI380: 4696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2121 .loc 2 4696 26 view .LVU635 2122 .LBB381: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2123 .loc 2 4698 3 view .LVU636 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2124 .loc 2 4698 12 is_stmt 0 view .LVU637 2125 0020 DA68 ldr r2, [r3, #12] 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2126 .loc 2 4698 103 view .LVU638 2127 0022 12F4406F tst r2, #3072 ARM GAS /tmp/cco84Mp4.s page 252 2128 0026 20D1 bne .L143 2129 .LVL155: 4698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2130 .loc 2 4698 103 view .LVU639 2131 .LBE381: 2132 .LBE380: 3611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2133 .loc 1 3611 9 is_stmt 1 view .LVU640 3611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2134 .loc 1 3611 13 is_stmt 0 view .LVU641 2135 0028 DB68 ldr r3, [r3, #12] 3611:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2136 .loc 1 3611 12 view .LVU642 2137 002a 13F4005F tst r3, #8192 2138 002e 1CD1 bne .L143 3614:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2139 .loc 1 3614 11 is_stmt 1 view .LVU643 2140 0030 C36D ldr r3, [r0, #92] 2141 0032 23F48073 bic r3, r3, #256 2142 0036 C365 str r3, [r0, #92] 3615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2143 .loc 1 3615 11 view .LVU644 3615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2144 .loc 1 3615 20 is_stmt 0 view .LVU645 2145 0038 C36D ldr r3, [r0, #92] 3615:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2146 .loc 1 3615 14 view .LVU646 2147 003a 13F4805F tst r3, #4096 2148 003e 14D1 bne .L143 3617:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2149 .loc 1 3617 13 is_stmt 1 view .LVU647 2150 0040 C36D ldr r3, [r0, #92] 2151 0042 43F00103 orr r3, r3, #1 2152 0046 C365 str r3, [r0, #92] 2153 0048 0FE0 b .L143 2154 .L142: 3626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2155 .loc 1 3626 7 view .LVU648 3626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2156 .loc 1 3626 11 is_stmt 0 view .LVU649 2157 004a DB68 ldr r3, [r3, #12] 3626:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2158 .loc 1 3626 10 view .LVU650 2159 004c 13F0020F tst r3, #2 2160 0050 0BD1 bne .L143 3629:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL) 2161 .loc 1 3629 9 is_stmt 1 view .LVU651 2162 0052 C36D ldr r3, [r0, #92] 2163 0054 23F48073 bic r3, r3, #256 2164 0058 C365 str r3, [r0, #92] 3630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2165 .loc 1 3630 9 view .LVU652 3630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2166 .loc 1 3630 18 is_stmt 0 view .LVU653 2167 005a C36D ldr r3, [r0, #92] 3630:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2168 .loc 1 3630 12 view .LVU654 ARM GAS /tmp/cco84Mp4.s page 253 2169 005c 13F4805F tst r3, #4096 2170 0060 03D1 bne .L143 3632:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2171 .loc 1 3632 11 is_stmt 1 view .LVU655 2172 0062 C36D ldr r3, [r0, #92] 2173 0064 43F00103 orr r3, r3, #1 2174 0068 C365 str r3, [r0, #92] 2175 .L143: 3641:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2176 .loc 1 3641 5 view .LVU656 2177 006a FFF7FEFF bl HAL_ADC_ConvCpltCallback 2178 .LVL156: 2179 .L140: 3661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2180 .loc 1 3661 1 is_stmt 0 view .LVU657 2181 006e 08BD pop {r3, pc} 2182 .LVL157: 2183 .L141: 3646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2184 .loc 1 3646 5 is_stmt 1 view .LVU658 3646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2185 .loc 1 3646 14 is_stmt 0 view .LVU659 2186 0070 C26D ldr r2, [r0, #92] 3646:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2187 .loc 1 3646 8 view .LVU660 2188 0072 12F0100F tst r2, #16 2189 0076 04D1 bne .L147 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2190 .loc 1 3658 7 is_stmt 1 view .LVU661 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2191 .loc 1 3658 11 is_stmt 0 view .LVU662 2192 0078 426D ldr r2, [r0, #84] 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2193 .loc 1 3658 23 view .LVU663 2194 007a 526B ldr r2, [r2, #52] 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2195 .loc 1 3658 7 view .LVU664 2196 007c 1846 mov r0, r3 2197 .LVL158: 3658:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2198 .loc 1 3658 7 view .LVU665 2199 007e 9047 blx r2 2200 .LVL159: 3661:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2201 .loc 1 3661 1 view .LVU666 2202 0080 F5E7 b .L140 2203 .LVL160: 2204 .L147: 3652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2205 .loc 1 3652 7 is_stmt 1 view .LVU667 2206 0082 FFF7FEFF bl HAL_ADC_ErrorCallback 2207 .LVL161: 3652:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 2208 .loc 1 3652 7 is_stmt 0 view .LVU668 2209 0086 F2E7 b .L140 2210 .cfi_endproc 2211 .LFE356: ARM GAS /tmp/cco84Mp4.s page 254 2213 .section .text.ADC_DMAError,"ax",%progbits 2214 .align 1 2215 .global ADC_DMAError 2216 .syntax unified 2217 .thumb 2218 .thumb_func 2220 ADC_DMAError: 2221 .LVL162: 2222 .LFB358: 3680:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3681:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /** 3682:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @brief DMA error callback. 3683:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @param hdma pointer to DMA handle. 3684:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** * @retval None 3685:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** */ 3686:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** void ADC_DMAError(DMA_HandleTypeDef *hdma) 3687:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2223 .loc 1 3687 1 is_stmt 1 view -0 2224 .cfi_startproc 2225 @ args = 0, pretend = 0, frame = 0 2226 @ frame_needed = 0, uses_anonymous_args = 0 2227 .loc 1 3687 1 is_stmt 0 view .LVU670 2228 0000 08B5 push {r3, lr} 2229 .LCFI14: 2230 .cfi_def_cfa_offset 8 2231 .cfi_offset 3, -8 2232 .cfi_offset 14, -4 3688:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Retrieve ADC handle corresponding to current DMA handle */ 3689:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; 2233 .loc 1 3689 3 is_stmt 1 view .LVU671 2234 .loc 1 3689 22 is_stmt 0 view .LVU672 2235 0002 806A ldr r0, [r0, #40] 2236 .LVL163: 3690:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3691:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC state */ 3692:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA); 2237 .loc 1 3692 3 is_stmt 1 view .LVU673 2238 0004 C36D ldr r3, [r0, #92] 2239 0006 43F04003 orr r3, r3, #64 2240 000a C365 str r3, [r0, #92] 3693:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3694:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC error code to DMA error */ 3695:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA); 2241 .loc 1 3695 3 view .LVU674 2242 000c 036E ldr r3, [r0, #96] 2243 000e 43F00403 orr r3, r3, #4 2244 0012 0366 str r3, [r0, #96] 3696:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3697:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Error callback */ 3698:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1) 3699:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->ErrorCallback(hadc); 3700:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #else 3701:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_ErrorCallback(hadc); 2245 .loc 1 3701 3 view .LVU675 2246 0014 FFF7FEFF bl HAL_ADC_ErrorCallback 2247 .LVL164: 3702:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ ARM GAS /tmp/cco84Mp4.s page 255 3703:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2248 .loc 1 3703 1 is_stmt 0 view .LVU676 2249 0018 08BD pop {r3, pc} 2250 .cfi_endproc 2251 .LFE358: 2253 .section .text.HAL_ADC_ConfigChannel,"ax",%progbits 2254 .align 1 2255 .global HAL_ADC_ConfigChannel 2256 .syntax unified 2257 .thumb 2258 .thumb_func 2260 HAL_ADC_ConfigChannel: 2261 .LVL165: 2262 .LFB349: 2761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2263 .loc 1 2761 1 is_stmt 1 view -0 2264 .cfi_startproc 2265 @ args = 0, pretend = 0, frame = 8 2266 @ frame_needed = 0, uses_anonymous_args = 0 2761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 2267 .loc 1 2761 1 is_stmt 0 view .LVU678 2268 0000 F0B5 push {r4, r5, r6, r7, lr} 2269 .LCFI15: 2270 .cfi_def_cfa_offset 20 2271 .cfi_offset 4, -20 2272 .cfi_offset 5, -16 2273 .cfi_offset 6, -12 2274 .cfi_offset 7, -8 2275 .cfi_offset 14, -4 2276 0002 83B0 sub sp, sp, #12 2277 .LCFI16: 2278 .cfi_def_cfa_offset 32 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2279 .loc 1 2762 3 is_stmt 1 view .LVU679 2280 .LVL166: 2763:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_config_internal_channel; 2281 .loc 1 2763 3 view .LVU680 2764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; 2282 .loc 1 2764 3 view .LVU681 2765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2283 .loc 1 2765 3 view .LVU682 2765:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 2284 .loc 1 2765 17 is_stmt 0 view .LVU683 2285 0004 0023 movs r3, #0 2286 0006 0193 str r3, [sp, #4] 2766:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 2287 .loc 1 2766 3 is_stmt 1 view .LVU684 2767:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2288 .loc 1 2767 3 view .LVU685 2770:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_REGULAR_RANK(pConfig->Rank)); 2289 .loc 1 2770 3 view .LVU686 2771:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SAMPLE_TIME(pConfig->SamplingTime)); 2290 .loc 1 2771 3 view .LVU687 2772:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_SINGLE_DIFFERENTIAL(pConfig->SingleDiff)); 2291 .loc 1 2772 3 view .LVU688 2773:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_OFFSET_NUMBER(pConfig->OffsetNumber)); 2292 .loc 1 2773 3 view .LVU689 ARM GAS /tmp/cco84Mp4.s page 256 2774:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), pConfig->Offset)); 2293 .loc 1 2774 3 view .LVU690 2775:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2294 .loc 1 2775 3 view .LVU691 2779:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2295 .loc 1 2779 3 view .LVU692 2782:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2296 .loc 1 2782 3 view .LVU693 2784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2297 .loc 1 2784 5 view .LVU694 2788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2298 .loc 1 2788 5 view .LVU695 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2299 .loc 1 2792 3 view .LVU696 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2300 .loc 1 2792 3 view .LVU697 2301 0008 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 2302 000c 012B cmp r3, #1 2303 000e 00F01C82 beq .L205 2304 0012 0446 mov r4, r0 2305 0014 0D46 mov r5, r1 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2306 .loc 1 2792 3 discriminator 2 view .LVU698 2307 0016 0123 movs r3, #1 2308 0018 80F85830 strb r3, [r0, #88] 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2309 .loc 1 2792 3 view .LVU699 2799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2310 .loc 1 2799 3 view .LVU700 2799:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2311 .loc 1 2799 42 is_stmt 0 view .LVU701 2312 001c 0068 ldr r0, [r0] 2313 .LVL167: 2314 .LBB382: 2315 .LBI382: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2316 .loc 2 7866 26 is_stmt 1 view .LVU702 2317 .LBB383: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2318 .loc 2 7868 3 view .LVU703 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2319 .loc 2 7868 12 is_stmt 0 view .LVU704 2320 001e 8368 ldr r3, [r0, #8] 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2321 .loc 2 7868 74 view .LVU705 2322 0020 13F0040F tst r3, #4 2323 0024 09D0 beq .L152 2324 .LVL168: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2325 .loc 2 7868 74 view .LVU706 2326 .LBE383: 2327 .LBE382: 2964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2328 .loc 1 2964 5 is_stmt 1 view .LVU707 2329 0026 E36D ldr r3, [r4, #92] 2330 0028 43F02003 orr r3, r3, #32 2331 002c E365 str r3, [r4, #92] ARM GAS /tmp/cco84Mp4.s page 257 2966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2332 .loc 1 2966 5 view .LVU708 2333 .LVL169: 2966:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2334 .loc 1 2966 20 is_stmt 0 view .LVU709 2335 002e 0120 movs r0, #1 2336 .LVL170: 2337 .L153: 2970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2338 .loc 1 2970 3 is_stmt 1 view .LVU710 2970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2339 .loc 1 2970 3 view .LVU711 2340 0030 0023 movs r3, #0 2341 0032 84F85830 strb r3, [r4, #88] 2970:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2342 .loc 1 2970 3 view .LVU712 2973:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2343 .loc 1 2973 3 view .LVU713 2344 .LVL171: 2345 .L151: 2974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2346 .loc 1 2974 1 is_stmt 0 view .LVU714 2347 0036 03B0 add sp, sp, #12 2348 .LCFI17: 2349 .cfi_remember_state 2350 .cfi_def_cfa_offset 20 2351 @ sp needed 2352 0038 F0BD pop {r4, r5, r6, r7, pc} 2353 .LVL172: 2354 .L152: 2355 .LCFI18: 2356 .cfi_restore_state 2802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2357 .loc 1 2802 5 is_stmt 1 view .LVU715 2358 003a 0A68 ldr r2, [r1] 2359 003c 4968 ldr r1, [r1, #4] 2360 .LVL173: 2802:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2361 .loc 1 2802 5 is_stmt 0 view .LVU716 2362 003e FFF7FEFF bl LL_ADC_REG_SetSequencerRanks 2363 .LVL174: 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2364 .loc 1 2809 5 is_stmt 1 view .LVU717 2809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 2365 .loc 1 2809 81 is_stmt 0 view .LVU718 2366 0042 2068 ldr r0, [r4] 2367 .LVL175: 2368 .LBB384: 2369 .LBI384: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2370 .loc 2 7866 26 is_stmt 1 view .LVU719 2371 .LBB385: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2372 .loc 2 7868 3 view .LVU720 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2373 .loc 2 7868 12 is_stmt 0 view .LVU721 2374 0044 8368 ldr r3, [r0, #8] ARM GAS /tmp/cco84Mp4.s page 258 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2375 .loc 2 7868 74 view .LVU722 2376 0046 13F00403 ands r3, r3, #4 2377 004a 00D0 beq .L154 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2378 .loc 2 7868 74 discriminator 1 view .LVU723 2379 004c 0123 movs r3, #1 2380 .L154: 2381 .LVL176: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2382 .loc 2 7868 74 discriminator 1 view .LVU724 2383 .LBE385: 2384 .LBE384: 2810:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 2385 .loc 1 2810 5 is_stmt 1 view .LVU725 2386 .LBB386: 2387 .LBI386: 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2388 .loc 2 8092 26 view .LVU726 2389 .LBB387: 2390 .loc 2 8094 3 view .LVU727 2391 .loc 2 8094 12 is_stmt 0 view .LVU728 2392 004e 8668 ldr r6, [r0, #8] 2393 .loc 2 8094 76 view .LVU729 2394 0050 16F00806 ands r6, r6, #8 2395 0054 00D0 beq .L155 2396 .loc 2 8094 76 discriminator 1 view .LVU730 2397 0056 0126 movs r6, #1 2398 .L155: 2399 .LVL177: 2400 .loc 2 8094 76 discriminator 1 view .LVU731 2401 .LBE387: 2402 .LBE386: 2811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2403 .loc 1 2811 5 is_stmt 1 view .LVU732 2811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 2404 .loc 1 2811 8 is_stmt 0 view .LVU733 2405 0058 002B cmp r3, #0 2406 005a 3ED1 bne .L156 2812:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 2407 .loc 1 2812 9 view .LVU734 2408 005c 002E cmp r6, #0 2409 005e 3CD1 bne .L156 2816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2410 .loc 1 2816 7 is_stmt 1 view .LVU735 2816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2411 .loc 1 2816 18 is_stmt 0 view .LVU736 2412 0060 AA68 ldr r2, [r5, #8] 2816:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2413 .loc 1 2816 10 view .LVU737 2414 0062 B2F1004F cmp r2, #-2147483648 2415 0066 6FD0 beq .L224 2827:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2416 .loc 1 2827 9 is_stmt 1 view .LVU738 2417 0068 2968 ldr r1, [r5] 2418 006a FFF7FEFF bl LL_ADC_SetChannelSamplingTime 2419 .LVL178: ARM GAS /tmp/cco84Mp4.s page 259 2830:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2420 .loc 1 2830 9 view .LVU739 2421 006e 2268 ldr r2, [r4] 2422 .LVL179: 2423 .LBB388: 2424 .LBI388: 4507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2425 .loc 2 4507 22 view .LVU740 2426 .LBB389: 4509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2427 .loc 2 4509 3 view .LVU741 2428 0070 5369 ldr r3, [r2, #20] 2429 0072 23F00043 bic r3, r3, #-2147483648 2430 0076 5361 str r3, [r2, #20] 2431 .LVL180: 2432 .L158: 4509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2433 .loc 2 4509 3 is_stmt 0 view .LVU742 2434 .LBE389: 2435 .LBE388: 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2436 .loc 1 2837 7 is_stmt 1 view .LVU743 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2437 .loc 1 2837 26 is_stmt 0 view .LVU744 2438 0078 6969 ldr r1, [r5, #20] 2439 007a 2268 ldr r2, [r4] 2440 007c D368 ldr r3, [r2, #12] 2441 007e C3F3C103 ubfx r3, r3, #3, #2 2442 0082 5B00 lsls r3, r3, #1 2837:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2443 .loc 1 2837 24 view .LVU745 2444 0084 9940 lsls r1, r1, r3 2445 .LVL181: 2839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2446 .loc 1 2839 7 is_stmt 1 view .LVU746 2839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2447 .loc 1 2839 18 is_stmt 0 view .LVU747 2448 0086 2869 ldr r0, [r5, #16] 2839:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2449 .loc 1 2839 10 view .LVU748 2450 0088 0428 cmp r0, #4 2451 008a 6AD0 beq .L159 2842:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2452 .loc 1 2842 9 is_stmt 1 view .LVU749 2453 .LVL182: 2454 .LBB390: 2455 .LBI390: 4163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2456 .loc 2 4163 22 view .LVU750 2457 .LBB391: 4165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2458 .loc 2 4165 3 view .LVU751 4165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2459 .loc 2 4165 25 is_stmt 0 view .LVU752 2460 008c 6032 adds r2, r2, #96 2461 .LVL183: 4167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, ARM GAS /tmp/cco84Mp4.s page 260 2462 .loc 2 4167 3 is_stmt 1 view .LVU753 2463 008e 52F82070 ldr r7, [r2, r0, lsl #2] 2464 0092 AB4B ldr r3, .L234 2465 0094 3B40 ands r3, r3, r7 2466 0096 2F68 ldr r7, [r5] 2467 0098 07F0F84C and ip, r7, #2080374784 2468 009c 41EA0C01 orr r1, r1, ip 2469 .LVL184: 4167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2470 .loc 2 4167 3 is_stmt 0 view .LVU754 2471 00a0 0B43 orrs r3, r3, r1 2472 00a2 43F00043 orr r3, r3, #-2147483648 2473 00a6 42F82030 str r3, [r2, r0, lsl #2] 2474 .LVL185: 4167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN | ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1, 2475 .loc 2 4167 3 view .LVU755 2476 .LBE391: 2477 .LBE390: 2844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(pConfig->OffsetSaturation)); 2478 .loc 1 2844 9 is_stmt 1 view .LVU756 2845:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Set ADC selected offset sign & saturation */ 2479 .loc 1 2845 9 view .LVU757 2847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, 2480 .loc 1 2847 9 view .LVU758 2481 00aa 2368 ldr r3, [r4] 2847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, 2482 .loc 1 2847 53 is_stmt 0 view .LVU759 2483 00ac 2869 ldr r0, [r5, #16] 2847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_SetOffsetSaturation(hadc->Instance, pConfig->OffsetNumber, 2484 .loc 1 2847 76 view .LVU760 2485 00ae AA69 ldr r2, [r5, #24] 2486 .LVL186: 2487 .LBB392: 2488 .LBI392: 4363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2489 .loc 2 4363 22 is_stmt 1 view .LVU761 2490 .LBB393: 4365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2491 .loc 2 4365 3 view .LVU762 4365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2492 .loc 2 4365 25 is_stmt 0 view .LVU763 2493 00b0 6033 adds r3, r3, #96 2494 .LVL187: 4367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2495 .loc 2 4367 3 is_stmt 1 view .LVU764 2496 00b2 53F82010 ldr r1, [r3, r0, lsl #2] 2497 00b6 21F08071 bic r1, r1, #16777216 2498 00ba 0A43 orrs r2, r2, r1 2499 .LVL188: 4367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2500 .loc 2 4367 3 is_stmt 0 view .LVU765 2501 00bc 43F82020 str r2, [r3, r0, lsl #2] 2502 .LVL189: 4367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSETPOS, 2503 .loc 2 4367 3 view .LVU766 2504 .LBE393: 2505 .LBE392: ARM GAS /tmp/cco84Mp4.s page 261 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2506 .loc 1 2848 9 is_stmt 1 view .LVU767 2507 00c0 2368 ldr r3, [r4] 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2508 .loc 1 2848 59 is_stmt 0 view .LVU768 2509 00c2 2969 ldr r1, [r5, #16] 2849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_OFFSET_SATURATION_ENABLE : LL_ADC_OFFSET_SATURATION_DISAB 2510 .loc 1 2849 44 view .LVU769 2511 00c4 2A7F ldrb r2, [r5, #28] @ zero_extendqisi2 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2512 .loc 1 2848 9 view .LVU770 2513 00c6 012A cmp r2, #1 2514 00c8 48D0 beq .L225 2515 .LVL190: 2516 .L160: 2517 .LBB394: 2518 .LBI394: 4418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2519 .loc 2 4418 22 is_stmt 1 view .LVU771 2520 .LBB395: 4420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2521 .loc 2 4420 3 view .LVU772 4420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2522 .loc 2 4420 25 is_stmt 0 view .LVU773 2523 00ca 6033 adds r3, r3, #96 2524 .LVL191: 4422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 2525 .loc 2 4422 3 is_stmt 1 view .LVU774 2526 00cc 53F82120 ldr r2, [r3, r1, lsl #2] 2527 00d0 22F00072 bic r2, r2, #33554432 2528 00d4 3243 orrs r2, r2, r6 2529 00d6 43F82120 str r2, [r3, r1, lsl #2] 2530 .LVL192: 2531 .L156: 4422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_SATEN, 2532 .loc 2 4422 3 is_stmt 0 view .LVU775 2533 .LBE395: 2534 .LBE394: 2882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2535 .loc 1 2882 5 is_stmt 1 view .LVU776 2882:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2536 .loc 1 2882 30 is_stmt 0 view .LVU777 2537 00da 2268 ldr r2, [r4] 2538 .LVL193: 2539 .LBB396: 2540 .LBI396: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2541 .loc 2 7744 26 is_stmt 1 view .LVU778 2542 .LBB397: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2543 .loc 2 7746 3 view .LVU779 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2544 .loc 2 7746 12 is_stmt 0 view .LVU780 2545 00dc 9368 ldr r3, [r2, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2546 .loc 2 7746 68 view .LVU781 2547 00de 13F0010F tst r3, #1 ARM GAS /tmp/cco84Mp4.s page 262 2548 00e2 16D1 bne .L176 2549 .LVL194: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2550 .loc 2 7746 68 view .LVU782 2551 .LBE397: 2552 .LBE396: 2885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2553 .loc 1 2885 7 is_stmt 1 view .LVU783 2885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2554 .loc 1 2885 58 is_stmt 0 view .LVU784 2555 00e4 2B68 ldr r3, [r5] 2885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2556 .loc 1 2885 76 view .LVU785 2557 00e6 E868 ldr r0, [r5, #12] 2558 .LVL195: 2559 .LBB398: 2560 .LBI398: 6490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2561 .loc 2 6490 22 is_stmt 1 view .LVU786 2562 .LBB399: 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 2563 .loc 2 6495 3 view .LVU787 2564 00e8 D2F8B010 ldr r1, [r2, #176] 2565 00ec C3F31206 ubfx r6, r3, #0, #19 2566 00f0 21EA0601 bic r1, r1, r6 2567 00f4 00F01806 and r6, r0, #24 2568 00f8 9248 ldr r0, .L234+4 2569 .LVL196: 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 2570 .loc 2 6495 3 is_stmt 0 view .LVU788 2571 00fa F040 lsrs r0, r0, r6 2572 00fc 0340 ands r3, r3, r0 2573 .LVL197: 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 2574 .loc 2 6495 3 view .LVU789 2575 00fe C3F31203 ubfx r3, r3, #0, #19 2576 0102 0B43 orrs r3, r3, r1 2577 0104 C2F8B030 str r3, [r2, #176] 2578 .LVL198: 6495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** Channel & ADC_SINGLEDIFF_CHANNEL_MASK, 2579 .loc 2 6495 3 view .LVU790 2580 .LBE399: 2581 .LBE398: 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2582 .loc 1 2888 7 is_stmt 1 view .LVU791 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2583 .loc 1 2888 18 is_stmt 0 view .LVU792 2584 0108 EA68 ldr r2, [r5, #12] 2888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2585 .loc 1 2888 10 view .LVU793 2586 010a 8F4B ldr r3, .L234+8 2587 010c 9A42 cmp r2, r3 2588 010e 00F08F80 beq .L226 2589 .L176: 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2590 .loc 1 2907 5 is_stmt 1 view .LVU794 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 263 2591 .loc 1 2907 9 is_stmt 0 view .LVU795 2592 0112 2B68 ldr r3, [r5] 2907:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2593 .loc 1 2907 8 view .LVU796 2594 0114 8D4A ldr r2, .L234+12 2595 0116 1342 tst r3, r2 2596 0118 00F08F81 beq .L217 2909:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2597 .loc 1 2909 7 is_stmt 1 view .LVU797 2598 .LVL199: 2599 .LBB400: 2600 .LBI400: 3826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2601 .loc 2 3826 26 view .LVU798 2602 .LBB401: 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2603 .loc 2 3828 3 view .LVU799 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2604 .loc 2 3828 21 is_stmt 0 view .LVU800 2605 011c 8C4A ldr r2, .L234+16 2606 011e 9268 ldr r2, [r2, #8] 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2607 .loc 2 3828 10 view .LVU801 2608 0120 02F0E071 and r1, r2, #29360128 2609 .LVL200: 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2610 .loc 2 3828 10 view .LVU802 2611 .LBE401: 2612 .LBE400: 2913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2613 .loc 1 2913 7 is_stmt 1 view .LVU803 2913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2614 .loc 1 2913 10 is_stmt 0 view .LVU804 2615 0124 8B48 ldr r0, .L234+20 2616 0126 8342 cmp r3, r0 2617 0128 00F03E81 beq .L200 2913:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL)) 2618 .loc 1 2913 62 discriminator 1 view .LVU805 2619 012c 8A48 ldr r0, .L234+24 2620 012e 8342 cmp r3, r0 2621 0130 00F03A81 beq .L200 2622 .L201: 2933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL)) 2623 .loc 1 2933 12 is_stmt 1 view .LVU806 2933:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL)) 2624 .loc 1 2933 15 is_stmt 0 view .LVU807 2625 0134 8948 ldr r0, .L234+28 2626 0136 8342 cmp r3, r0 2627 0138 00F05C81 beq .L227 2628 .L204: 2942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2629 .loc 1 2942 12 is_stmt 1 view .LVU808 2942:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL)) 2630 .loc 1 2942 15 is_stmt 0 view .LVU809 2631 013c 8848 ldr r0, .L234+32 2632 013e 8342 cmp r3, r0 2633 0140 00F06A81 beq .L228 ARM GAS /tmp/cco84Mp4.s page 264 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 2634 .loc 1 2762 21 view .LVU810 2635 0144 0020 movs r0, #0 2636 0146 73E7 b .L153 2637 .LVL201: 2638 .L224: 2819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 2639 .loc 1 2819 9 is_stmt 1 view .LVU811 2640 0148 0022 movs r2, #0 2641 014a 2968 ldr r1, [r5] 2642 014c FFF7FEFF bl LL_ADC_SetChannelSamplingTime 2643 .LVL202: 2822:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2644 .loc 1 2822 9 view .LVU812 2645 0150 2268 ldr r2, [r4] 2646 .LVL203: 2647 .LBB402: 2648 .LBI402: 4507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2649 .loc 2 4507 22 view .LVU813 2650 .LBB403: 4509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2651 .loc 2 4509 3 view .LVU814 2652 0152 5369 ldr r3, [r2, #20] 2653 0154 43F00043 orr r3, r3, #-2147483648 2654 0158 5361 str r3, [r2, #20] 2655 .LVL204: 4510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2656 .loc 2 4510 1 is_stmt 0 view .LVU815 2657 015a 8DE7 b .L158 2658 .LVL205: 2659 .L225: 4510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2660 .loc 2 4510 1 view .LVU816 2661 .LBE403: 2662 .LBE402: 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2663 .loc 1 2848 9 discriminator 1 view .LVU817 2664 015c 4FF00076 mov r6, #33554432 2665 .LVL206: 2848:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pConfig->OffsetSaturation == ENABLE) ? 2666 .loc 1 2848 9 discriminator 1 view .LVU818 2667 0160 B3E7 b .L160 2668 .LVL207: 2669 .L159: 2856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2670 .loc 1 2856 9 is_stmt 1 view .LVU819 2671 .LBB404: 2672 .LBI404: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2673 .loc 2 4249 26 view .LVU820 2674 .LBB405: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2675 .loc 2 4251 3 view .LVU821 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2676 .loc 2 4253 3 view .LVU822 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 265 2677 .loc 2 4253 10 is_stmt 0 view .LVU823 2678 0162 136E ldr r3, [r2, #96] 2679 .LVL208: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2680 .loc 2 4253 10 view .LVU824 2681 .LBE405: 2682 .LBE404: 2683 .LBB406: 2684 .LBI406: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2685 .loc 2 4249 26 is_stmt 1 view .LVU825 2686 .LBB407: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2687 .loc 2 4251 3 view .LVU826 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2688 .loc 2 4253 3 view .LVU827 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2689 .loc 2 4253 10 is_stmt 0 view .LVU828 2690 0164 116E ldr r1, [r2, #96] 2691 .LVL209: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2692 .loc 2 4253 10 view .LVU829 2693 .LBE407: 2694 .LBE406: 2856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2695 .loc 1 2856 13 discriminator 1 view .LVU830 2696 0166 C1F38461 ubfx r1, r1, #26, #5 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2697 .loc 1 2857 16 view .LVU831 2698 016a 2B68 ldr r3, [r5] 2699 016c C3F31200 ubfx r0, r3, #0, #19 2700 0170 78BB cbnz r0, .L161 2857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2701 .loc 1 2857 16 discriminator 1 view .LVU832 2702 0172 C3F38463 ubfx r3, r3, #26, #5 2703 .L162: 2856:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2704 .loc 1 2856 12 view .LVU833 2705 0176 9942 cmp r1, r3 2706 0178 33D0 beq .L229 2707 .L164: 2861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2708 .loc 1 2861 9 is_stmt 1 view .LVU834 2861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2709 .loc 1 2861 13 is_stmt 0 view .LVU835 2710 017a 2168 ldr r1, [r4] 2711 .LVL210: 2712 .LBB408: 2713 .LBI408: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2714 .loc 2 4249 26 is_stmt 1 view .LVU836 2715 .LBB409: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2716 .loc 2 4251 3 view .LVU837 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2717 .loc 2 4253 3 view .LVU838 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 266 2718 .loc 2 4253 10 is_stmt 0 view .LVU839 2719 017c 4B6E ldr r3, [r1, #100] 2720 .LVL211: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2721 .loc 2 4253 10 view .LVU840 2722 .LBE409: 2723 .LBE408: 2724 .LBB410: 2725 .LBI410: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2726 .loc 2 4249 26 is_stmt 1 view .LVU841 2727 .LBB411: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2728 .loc 2 4251 3 view .LVU842 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2729 .loc 2 4253 3 view .LVU843 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2730 .loc 2 4253 10 is_stmt 0 view .LVU844 2731 017e 4A6E ldr r2, [r1, #100] 2732 .LVL212: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2733 .loc 2 4253 10 view .LVU845 2734 .LBE411: 2735 .LBE410: 2861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2736 .loc 1 2861 13 discriminator 1 view .LVU846 2737 0180 C2F38462 ubfx r2, r2, #26, #5 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2738 .loc 1 2862 16 view .LVU847 2739 0184 2B68 ldr r3, [r5] 2740 0186 C3F31200 ubfx r0, r3, #0, #19 2741 018a 78BB cbnz r0, .L165 2862:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2742 .loc 1 2862 16 discriminator 1 view .LVU848 2743 018c C3F38463 ubfx r3, r3, #26, #5 2744 .L166: 2861:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2745 .loc 1 2861 12 view .LVU849 2746 0190 9A42 cmp r2, r3 2747 0192 33D0 beq .L230 2748 .L168: 2866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2749 .loc 1 2866 9 is_stmt 1 view .LVU850 2866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2750 .loc 1 2866 13 is_stmt 0 view .LVU851 2751 0194 2168 ldr r1, [r4] 2752 .LVL213: 2753 .LBB412: 2754 .LBI412: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2755 .loc 2 4249 26 is_stmt 1 view .LVU852 2756 .LBB413: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2757 .loc 2 4251 3 view .LVU853 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2758 .loc 2 4253 3 view .LVU854 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 267 2759 .loc 2 4253 10 is_stmt 0 view .LVU855 2760 0196 8B6E ldr r3, [r1, #104] 2761 .LVL214: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2762 .loc 2 4253 10 view .LVU856 2763 .LBE413: 2764 .LBE412: 2765 .LBB414: 2766 .LBI414: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2767 .loc 2 4249 26 is_stmt 1 view .LVU857 2768 .LBB415: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2769 .loc 2 4251 3 view .LVU858 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2770 .loc 2 4253 3 view .LVU859 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2771 .loc 2 4253 10 is_stmt 0 view .LVU860 2772 0198 8A6E ldr r2, [r1, #104] 2773 .LVL215: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2774 .loc 2 4253 10 view .LVU861 2775 .LBE415: 2776 .LBE414: 2866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2777 .loc 1 2866 13 discriminator 1 view .LVU862 2778 019a C2F38462 ubfx r2, r2, #26, #5 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2779 .loc 1 2867 16 view .LVU863 2780 019e 2B68 ldr r3, [r5] 2781 01a0 C3F31200 ubfx r0, r3, #0, #19 2782 01a4 78BB cbnz r0, .L169 2867:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2783 .loc 1 2867 16 discriminator 1 view .LVU864 2784 01a6 C3F38463 ubfx r3, r3, #26, #5 2785 .L170: 2866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2786 .loc 1 2866 12 view .LVU865 2787 01aa 9A42 cmp r2, r3 2788 01ac 33D0 beq .L231 2789 .L172: 2871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2790 .loc 1 2871 9 is_stmt 1 view .LVU866 2871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2791 .loc 1 2871 13 is_stmt 0 view .LVU867 2792 01ae 2168 ldr r1, [r4] 2793 .LVL216: 2794 .LBB416: 2795 .LBI416: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2796 .loc 2 4249 26 is_stmt 1 view .LVU868 2797 .LBB417: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2798 .loc 2 4251 3 view .LVU869 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2799 .loc 2 4253 3 view .LVU870 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 268 2800 .loc 2 4253 10 is_stmt 0 view .LVU871 2801 01b0 CB6E ldr r3, [r1, #108] 2802 .LVL217: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2803 .loc 2 4253 10 view .LVU872 2804 .LBE417: 2805 .LBE416: 2806 .LBB418: 2807 .LBI418: 4249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2808 .loc 2 4249 26 is_stmt 1 view .LVU873 2809 .LBB419: 4251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2810 .loc 2 4251 3 view .LVU874 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2811 .loc 2 4253 3 view .LVU875 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2812 .loc 2 4253 10 is_stmt 0 view .LVU876 2813 01b2 CA6E ldr r2, [r1, #108] 2814 .LVL218: 4253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 2815 .loc 2 4253 10 view .LVU877 2816 .LBE419: 2817 .LBE418: 2871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2818 .loc 1 2871 13 discriminator 1 view .LVU878 2819 01b4 C2F38462 ubfx r2, r2, #26, #5 2872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2820 .loc 1 2872 16 view .LVU879 2821 01b8 2B68 ldr r3, [r5] 2822 01ba C3F31200 ubfx r0, r3, #0, #19 2823 01be 78BB cbnz r0, .L173 2872:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 2824 .loc 1 2872 16 discriminator 1 view .LVU880 2825 01c0 C3F38463 ubfx r3, r3, #26, #5 2826 .L174: 2871:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** == __LL_ADC_CHANNEL_TO_DECIMAL_NB(pConfig->Channel)) 2827 .loc 1 2871 12 view .LVU881 2828 01c4 9A42 cmp r2, r3 2829 01c6 88D1 bne .L156 2874:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2830 .loc 1 2874 11 is_stmt 1 view .LVU882 2831 .LVL219: 2832 .LBB420: 2833 .LBI420: 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2834 .loc 2 4308 22 view .LVU883 2835 .LBB421: 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2836 .loc 2 4310 3 view .LVU884 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2837 .loc 2 4312 3 view .LVU885 2838 01c8 CB6E ldr r3, [r1, #108] 2839 01ca 23F00043 bic r3, r3, #-2147483648 2840 01ce CB66 str r3, [r1, #108] 2841 .LVL220: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 269 2842 .loc 2 4315 1 is_stmt 0 view .LVU886 2843 01d0 83E7 b .L156 2844 .L161: 2845 .LVL221: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2846 .loc 2 4315 1 view .LVU887 2847 .LBE421: 2848 .LBE420: 2849 .LBB422: 2850 .LBI422: 2851 .file 3 "Drivers/CMSIS/Include/cmsis_gcc.h" 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//** 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.2.0 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 08. May 2019 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/ 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /* 8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2019 Arm Limited. All rights reserved. 9:Drivers/CMSIS/Include/cmsis_gcc.h **** * 10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0 11:Drivers/CMSIS/Include/cmsis_gcc.h **** * 12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may 13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License. 14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at 15:Drivers/CMSIS/Include/cmsis_gcc.h **** * 16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0 17:Drivers/CMSIS/Include/cmsis_gcc.h **** * 18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software 19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and 22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License. 23:Drivers/CMSIS/Include/cmsis_gcc.h **** */ 24:Drivers/CMSIS/Include/cmsis_gcc.h **** 25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H 26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H 27:Drivers/CMSIS/Include/cmsis_gcc.h **** 28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */ 29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push 30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion" 31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion" 32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter" 33:Drivers/CMSIS/Include/cmsis_gcc.h **** 34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */ 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0) 37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 38:Drivers/CMSIS/Include/cmsis_gcc.h **** 39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */ 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline 45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif 46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE ARM GAS /tmp/cco84Mp4.s page 270 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 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 ARM GAS /tmp/cco84Mp4.s page 271 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. 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 **** } ARM GAS /tmp/cco84Mp4.s page 272 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 ########################### */ 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 **** */ ARM GAS /tmp/cco84Mp4.s page 273 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 **** 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; ARM GAS /tmp/cco84Mp4.s page 274 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 **** */ 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; ARM GAS /tmp/cco84Mp4.s page 275 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) 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); ARM GAS /tmp/cco84Mp4.s page 276 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 **** } 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 ARM GAS /tmp/cco84Mp4.s page 277 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 **** } 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 ARM GAS /tmp/cco84Mp4.s page 278 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 **** */ 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 **** { ARM GAS /tmp/cco84Mp4.s page 279 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 **** { 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 ARM GAS /tmp/cco84Mp4.s page 280 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 **** 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 **** /** ARM GAS /tmp/cco84Mp4.s page 281 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 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 ARM GAS /tmp/cco84Mp4.s page 282 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; 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. ARM GAS /tmp/cco84Mp4.s page 283 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 **** */ 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 **** ARM GAS /tmp/cco84Mp4.s page 284 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"); 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. ARM GAS /tmp/cco84Mp4.s page 285 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 **** 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 **** } ARM GAS /tmp/cco84Mp4.s page 286 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 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) ARM GAS /tmp/cco84Mp4.s page 287 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 **** 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) 2852 .loc 3 1048 31 is_stmt 1 view .LVU888 2853 .LBB423: 1049:Drivers/CMSIS/Include/cmsis_gcc.h **** { 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result; 2854 .loc 3 1050 3 view .LVU889 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) ); 2855 .loc 3 1055 4 view .LVU890 2856 .syntax unified 2857 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2858 01d2 93FAA3F3 rbit r3, r3 2859 @ 0 "" 2 2860 .LVL222: 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; ARM GAS /tmp/cco84Mp4.s page 288 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; 2861 .loc 3 1068 3 view .LVU891 2862 .loc 3 1068 3 is_stmt 0 view .LVU892 2863 .thumb 2864 .syntax unified 2865 .LBE423: 2866 .LBE422: 2867 .LBB424: 2868 .LBI424: 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) 2869 .loc 3 1078 30 is_stmt 1 view .LVU893 2870 .LBB425: 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) 2871 .loc 3 1089 3 view .LVU894 2872 .loc 3 1089 6 is_stmt 0 view .LVU895 2873 01d6 13B1 cbz r3, .L206 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); 2874 .loc 3 1093 3 is_stmt 1 view .LVU896 2875 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU897 2876 01d8 B3FA83F3 clz r3, r3 2877 .LVL223: 2878 .loc 3 1093 10 view .LVU898 2879 01dc CBE7 b .L162 2880 .LVL224: 2881 .L206: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2882 .loc 3 1091 12 view .LVU899 2883 01de 2023 movs r3, #32 2884 .LVL225: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2885 .loc 3 1091 12 view .LVU900 ARM GAS /tmp/cco84Mp4.s page 289 2886 01e0 C9E7 b .L162 2887 .L229: 2888 .LBE425: 2889 .LBE424: 2859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2890 .loc 1 2859 11 is_stmt 1 view .LVU901 2891 .LVL226: 2892 .LBB426: 2893 .LBI426: 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2894 .loc 2 4308 22 view .LVU902 2895 .LBB427: 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2896 .loc 2 4310 3 view .LVU903 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2897 .loc 2 4312 3 view .LVU904 2898 01e2 136E ldr r3, [r2, #96] 2899 01e4 23F00043 bic r3, r3, #-2147483648 2900 01e8 1366 str r3, [r2, #96] 2901 .LVL227: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2902 .loc 2 4315 1 is_stmt 0 view .LVU905 2903 01ea C6E7 b .L164 2904 .L165: 2905 .LVL228: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2906 .loc 2 4315 1 view .LVU906 2907 .LBE427: 2908 .LBE426: 2909 .LBB428: 2910 .LBI428: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2911 .loc 3 1048 31 is_stmt 1 view .LVU907 2912 .LBB429: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 2913 .loc 3 1050 3 view .LVU908 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 2914 .loc 3 1055 4 view .LVU909 2915 .syntax unified 2916 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2917 01ec 93FAA3F3 rbit r3, r3 2918 @ 0 "" 2 2919 .LVL229: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2920 .loc 3 1068 3 view .LVU910 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2921 .loc 3 1068 3 is_stmt 0 view .LVU911 2922 .thumb 2923 .syntax unified 2924 .LBE429: 2925 .LBE428: 2926 .LBB430: 2927 .LBI430: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2928 .loc 3 1078 30 is_stmt 1 view .LVU912 2929 .LBB431: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { ARM GAS /tmp/cco84Mp4.s page 290 2930 .loc 3 1089 3 view .LVU913 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2931 .loc 3 1089 6 is_stmt 0 view .LVU914 2932 01f0 13B1 cbz r3, .L207 2933 .loc 3 1093 3 is_stmt 1 view .LVU915 2934 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU916 2935 01f2 B3FA83F3 clz r3, r3 2936 .LVL230: 2937 .loc 3 1093 10 view .LVU917 2938 01f6 CBE7 b .L166 2939 .LVL231: 2940 .L207: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2941 .loc 3 1091 12 view .LVU918 2942 01f8 2023 movs r3, #32 2943 .LVL232: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2944 .loc 3 1091 12 view .LVU919 2945 01fa C9E7 b .L166 2946 .L230: 2947 .LBE431: 2948 .LBE430: 2864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 2949 .loc 1 2864 11 is_stmt 1 view .LVU920 2950 .LVL233: 2951 .LBB432: 2952 .LBI432: 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 2953 .loc 2 4308 22 view .LVU921 2954 .LBB433: 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2955 .loc 2 4310 3 view .LVU922 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 2956 .loc 2 4312 3 view .LVU923 2957 01fc 4B6E ldr r3, [r1, #100] 2958 01fe 23F00043 bic r3, r3, #-2147483648 2959 0202 4B66 str r3, [r1, #100] 2960 .LVL234: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2961 .loc 2 4315 1 is_stmt 0 view .LVU924 2962 0204 C6E7 b .L168 2963 .L169: 2964 .LVL235: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 2965 .loc 2 4315 1 view .LVU925 2966 .LBE433: 2967 .LBE432: 2968 .LBB434: 2969 .LBI434: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2970 .loc 3 1048 31 is_stmt 1 view .LVU926 2971 .LBB435: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 2972 .loc 3 1050 3 view .LVU927 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 2973 .loc 3 1055 4 view .LVU928 2974 .syntax unified ARM GAS /tmp/cco84Mp4.s page 291 2975 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 2976 0206 93FAA3F3 rbit r3, r3 2977 @ 0 "" 2 2978 .LVL236: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2979 .loc 3 1068 3 view .LVU929 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 2980 .loc 3 1068 3 is_stmt 0 view .LVU930 2981 .thumb 2982 .syntax unified 2983 .LBE435: 2984 .LBE434: 2985 .LBB436: 2986 .LBI436: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2987 .loc 3 1078 30 is_stmt 1 view .LVU931 2988 .LBB437: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2989 .loc 3 1089 3 view .LVU932 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 2990 .loc 3 1089 6 is_stmt 0 view .LVU933 2991 020a 13B1 cbz r3, .L208 2992 .loc 3 1093 3 is_stmt 1 view .LVU934 2993 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU935 2994 020c B3FA83F3 clz r3, r3 2995 .LVL237: 2996 .loc 3 1093 10 view .LVU936 2997 0210 CBE7 b .L170 2998 .LVL238: 2999 .L208: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3000 .loc 3 1091 12 view .LVU937 3001 0212 2023 movs r3, #32 3002 .LVL239: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3003 .loc 3 1091 12 view .LVU938 3004 0214 C9E7 b .L170 3005 .L231: 3006 .LBE437: 3007 .LBE436: 2869:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3008 .loc 1 2869 11 is_stmt 1 view .LVU939 3009 .LVL240: 3010 .LBB438: 3011 .LBI438: 4308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3012 .loc 2 4308 22 view .LVU940 3013 .LBB439: 4310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3014 .loc 2 4310 3 view .LVU941 4312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_OFR1_OFFSET1_EN, 3015 .loc 2 4312 3 view .LVU942 3016 0216 8B6E ldr r3, [r1, #104] 3017 0218 23F00043 bic r3, r3, #-2147483648 3018 021c 8B66 str r3, [r1, #104] 3019 .LVL241: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 292 3020 .loc 2 4315 1 is_stmt 0 view .LVU943 3021 021e C6E7 b .L172 3022 .L173: 3023 .LVL242: 4315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3024 .loc 2 4315 1 view .LVU944 3025 .LBE439: 3026 .LBE438: 3027 .LBB440: 3028 .LBI440: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3029 .loc 3 1048 31 is_stmt 1 view .LVU945 3030 .LBB441: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3031 .loc 3 1050 3 view .LVU946 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3032 .loc 3 1055 4 view .LVU947 3033 .syntax unified 3034 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3035 0220 93FAA3F3 rbit r3, r3 3036 @ 0 "" 2 3037 .LVL243: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3038 .loc 3 1068 3 view .LVU948 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3039 .loc 3 1068 3 is_stmt 0 view .LVU949 3040 .thumb 3041 .syntax unified 3042 .LBE441: 3043 .LBE440: 3044 .LBB442: 3045 .LBI442: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3046 .loc 3 1078 30 is_stmt 1 view .LVU950 3047 .LBB443: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3048 .loc 3 1089 3 view .LVU951 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3049 .loc 3 1089 6 is_stmt 0 view .LVU952 3050 0224 13B1 cbz r3, .L209 3051 .loc 3 1093 3 is_stmt 1 view .LVU953 3052 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU954 3053 0226 B3FA83F3 clz r3, r3 3054 .LVL244: 3055 .loc 3 1093 10 view .LVU955 3056 022a CBE7 b .L174 3057 .LVL245: 3058 .L209: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3059 .loc 3 1091 12 view .LVU956 3060 022c 2023 movs r3, #32 3061 .LVL246: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3062 .loc 3 1091 12 view .LVU957 3063 022e C9E7 b .L174 3064 .LVL247: 3065 .L226: ARM GAS /tmp/cco84Mp4.s page 293 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3066 .loc 3 1091 12 view .LVU958 3067 .LBE443: 3068 .LBE442: 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 3069 .loc 1 2892 9 is_stmt 1 view .LVU959 3070 0230 2068 ldr r0, [r4] 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3071 .loc 1 2893 50 is_stmt 0 view .LVU960 3072 0232 2B68 ldr r3, [r5] 3073 0234 C3F31206 ubfx r6, r3, #0, #19 3074 0238 26BB cbnz r6, .L177 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3075 .loc 1 2893 50 discriminator 1 view .LVU961 3076 023a 9A0E lsrs r2, r3, #26 3077 023c 0132 adds r2, r2, #1 3078 023e 02F01F02 and r2, r2, #31 3079 0242 092A cmp r2, #9 3080 0244 8CBF ite hi 3081 0246 0022 movhi r2, #0 3082 0248 0122 movls r2, #1 3083 .L178: 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 3084 .loc 1 2892 9 view .LVU962 3085 024a 002A cmp r2, #0 3086 024c 52D0 beq .L180 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3087 .loc 1 2893 50 view .LVU963 3088 024e 46BB cbnz r6, .L181 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3089 .loc 1 2893 50 discriminator 3 view .LVU964 3090 0250 990E lsrs r1, r3, #26 3091 0252 0131 adds r1, r1, #1 3092 0254 8906 lsls r1, r1, #26 3093 0256 01F0F841 and r1, r1, #2080374784 3094 .L182: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3095 .loc 1 2893 50 discriminator 6 view .LVU965 3096 025a 76BB cbnz r6, .L184 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3097 .loc 1 2893 50 discriminator 7 view .LVU966 3098 025c 9F0E lsrs r7, r3, #26 3099 025e 0137 adds r7, r7, #1 3100 0260 07F01F07 and r7, r7, #31 3101 0264 0122 movs r2, #1 3102 0266 BA40 lsls r2, r2, r7 3103 .L185: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3104 .loc 1 2893 50 discriminator 10 view .LVU967 3105 0268 1143 orrs r1, r1, r2 3106 026a AEBB cbnz r6, .L187 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3107 .loc 1 2893 50 discriminator 11 view .LVU968 3108 026c 9B0E lsrs r3, r3, #26 3109 026e 0133 adds r3, r3, #1 3110 0270 03F01F03 and r3, r3, #31 3111 0274 03EB4303 add r3, r3, r3, lsl #1 ARM GAS /tmp/cco84Mp4.s page 294 3112 0278 1B05 lsls r3, r3, #20 3113 .L188: 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 3114 .loc 1 2892 9 view .LVU969 3115 027a 1943 orrs r1, r1, r3 3116 .L190: 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 3117 .loc 1 2892 9 discriminator 1 view .LVU970 3118 027c AA68 ldr r2, [r5, #8] 3119 027e FFF7FEFF bl LL_ADC_SetChannelSamplingTime 3120 .LVL248: 3121 0282 46E7 b .L176 3122 .L177: 3123 .LVL249: 3124 .LBB444: 3125 .LBI444: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3126 .loc 3 1048 31 is_stmt 1 view .LVU971 3127 .LBB445: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3128 .loc 3 1050 3 view .LVU972 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3129 .loc 3 1055 4 view .LVU973 3130 .syntax unified 3131 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3132 0284 93FAA3F2 rbit r2, r3 3133 @ 0 "" 2 3134 .LVL250: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3135 .loc 3 1068 3 view .LVU974 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3136 .loc 3 1068 3 is_stmt 0 view .LVU975 3137 .thumb 3138 .syntax unified 3139 .LBE445: 3140 .LBE444: 3141 .LBB446: 3142 .LBI446: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3143 .loc 3 1078 30 is_stmt 1 view .LVU976 3144 .LBB447: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3145 .loc 3 1089 3 view .LVU977 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3146 .loc 3 1089 6 is_stmt 0 view .LVU978 3147 0288 4AB1 cbz r2, .L210 3148 .loc 3 1093 3 is_stmt 1 view .LVU979 3149 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU980 3150 028a B2FA82F2 clz r2, r2 3151 .LVL251: 3152 .L179: 3153 .loc 3 1093 10 discriminator 1 view .LVU981 3154 .LBE447: 3155 .LBE446: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3156 .loc 1 2893 50 discriminator 2 view .LVU982 3157 028e 0132 adds r2, r2, #1 ARM GAS /tmp/cco84Mp4.s page 295 3158 0290 02F01F02 and r2, r2, #31 3159 0294 092A cmp r2, #9 3160 0296 8CBF ite hi 3161 0298 0022 movhi r2, #0 3162 029a 0122 movls r2, #1 3163 029c D5E7 b .L178 3164 .LVL252: 3165 .L210: 3166 .LBB449: 3167 .LBB448: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3168 .loc 3 1091 12 view .LVU983 3169 029e 2022 movs r2, #32 3170 .LVL253: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3171 .loc 3 1091 12 view .LVU984 3172 02a0 F5E7 b .L179 3173 .LVL254: 3174 .L181: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3175 .loc 3 1091 12 view .LVU985 3176 .LBE448: 3177 .LBE449: 3178 .LBB450: 3179 .LBI450: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3180 .loc 3 1048 31 is_stmt 1 view .LVU986 3181 .LBB451: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3182 .loc 3 1050 3 view .LVU987 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3183 .loc 3 1055 4 view .LVU988 3184 .syntax unified 3185 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3186 02a2 93FAA3F1 rbit r1, r3 3187 @ 0 "" 2 3188 .LVL255: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3189 .loc 3 1068 3 view .LVU989 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3190 .loc 3 1068 3 is_stmt 0 view .LVU990 3191 .thumb 3192 .syntax unified 3193 .LBE451: 3194 .LBE450: 3195 .LBB452: 3196 .LBI452: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3197 .loc 3 1078 30 is_stmt 1 view .LVU991 3198 .LBB453: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3199 .loc 3 1089 3 view .LVU992 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3200 .loc 3 1089 6 is_stmt 0 view .LVU993 3201 02a6 31B1 cbz r1, .L211 3202 .loc 3 1093 3 is_stmt 1 view .LVU994 3203 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU995 ARM GAS /tmp/cco84Mp4.s page 296 3204 02a8 B1FA81F1 clz r1, r1 3205 .LVL256: 3206 .L183: 3207 .loc 3 1093 10 discriminator 1 view .LVU996 3208 .LBE453: 3209 .LBE452: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3210 .loc 1 2893 50 discriminator 2 view .LVU997 3211 02ac 0131 adds r1, r1, #1 3212 02ae 8906 lsls r1, r1, #26 3213 02b0 01F0F841 and r1, r1, #2080374784 3214 02b4 D1E7 b .L182 3215 .LVL257: 3216 .L211: 3217 .LBB455: 3218 .LBB454: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3219 .loc 3 1091 12 view .LVU998 3220 02b6 2021 movs r1, #32 3221 .LVL258: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3222 .loc 3 1091 12 view .LVU999 3223 02b8 F8E7 b .L183 3224 .LVL259: 3225 .L184: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3226 .loc 3 1091 12 view .LVU1000 3227 .LBE454: 3228 .LBE455: 3229 .LBB456: 3230 .LBI456: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3231 .loc 3 1048 31 is_stmt 1 view .LVU1001 3232 .LBB457: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3233 .loc 3 1050 3 view .LVU1002 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3234 .loc 3 1055 4 view .LVU1003 3235 .syntax unified 3236 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3237 02ba 93FAA3F2 rbit r2, r3 3238 @ 0 "" 2 3239 .LVL260: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3240 .loc 3 1068 3 view .LVU1004 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3241 .loc 3 1068 3 is_stmt 0 view .LVU1005 3242 .thumb 3243 .syntax unified 3244 .LBE457: 3245 .LBE456: 3246 .LBB458: 3247 .LBI458: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3248 .loc 3 1078 30 is_stmt 1 view .LVU1006 3249 .LBB459: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { ARM GAS /tmp/cco84Mp4.s page 297 3250 .loc 3 1089 3 view .LVU1007 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3251 .loc 3 1089 6 is_stmt 0 view .LVU1008 3252 02be 4AB1 cbz r2, .L212 3253 .loc 3 1093 3 is_stmt 1 view .LVU1009 3254 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1010 3255 02c0 B2FA82F2 clz r2, r2 3256 .LVL261: 3257 .L186: 3258 .loc 3 1093 10 discriminator 1 view .LVU1011 3259 .LBE459: 3260 .LBE458: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3261 .loc 1 2893 50 discriminator 2 view .LVU1012 3262 02c4 0132 adds r2, r2, #1 3263 02c6 02F01F02 and r2, r2, #31 3264 02ca 4FF0010C mov ip, #1 3265 02ce 0CFA02F2 lsl r2, ip, r2 3266 02d2 C9E7 b .L185 3267 .LVL262: 3268 .L212: 3269 .LBB461: 3270 .LBB460: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3271 .loc 3 1091 12 view .LVU1013 3272 02d4 2022 movs r2, #32 3273 .LVL263: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3274 .loc 3 1091 12 view .LVU1014 3275 02d6 F5E7 b .L186 3276 .LVL264: 3277 .L187: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3278 .loc 3 1091 12 view .LVU1015 3279 .LBE460: 3280 .LBE461: 3281 .LBB462: 3282 .LBI462: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3283 .loc 3 1048 31 is_stmt 1 view .LVU1016 3284 .LBB463: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3285 .loc 3 1050 3 view .LVU1017 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3286 .loc 3 1055 4 view .LVU1018 3287 .syntax unified 3288 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3289 02d8 93FAA3F3 rbit r3, r3 3290 @ 0 "" 2 3291 .LVL265: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3292 .loc 3 1068 3 view .LVU1019 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3293 .loc 3 1068 3 is_stmt 0 view .LVU1020 3294 .thumb 3295 .syntax unified 3296 .LBE463: ARM GAS /tmp/cco84Mp4.s page 298 3297 .LBE462: 3298 .LBB464: 3299 .LBI464: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3300 .loc 3 1078 30 is_stmt 1 view .LVU1021 3301 .LBB465: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3302 .loc 3 1089 3 view .LVU1022 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3303 .loc 3 1089 6 is_stmt 0 view .LVU1023 3304 02dc 43B1 cbz r3, .L213 3305 .loc 3 1093 3 is_stmt 1 view .LVU1024 3306 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1025 3307 02de B3FA83F3 clz r3, r3 3308 .LVL266: 3309 .L189: 3310 .loc 3 1093 10 discriminator 1 view .LVU1026 3311 .LBE465: 3312 .LBE464: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3313 .loc 1 2893 50 discriminator 2 view .LVU1027 3314 02e2 0133 adds r3, r3, #1 3315 02e4 03F01F03 and r3, r3, #31 3316 02e8 03EB4303 add r3, r3, r3, lsl #1 3317 02ec 1B05 lsls r3, r3, #20 3318 02ee C4E7 b .L188 3319 .LVL267: 3320 .L213: 3321 .LBB467: 3322 .LBB466: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3323 .loc 3 1091 12 view .LVU1028 3324 02f0 2023 movs r3, #32 3325 .LVL268: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3326 .loc 3 1091 12 view .LVU1029 3327 02f2 F6E7 b .L189 3328 .LVL269: 3329 .L180: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3330 .loc 3 1091 12 view .LVU1030 3331 .LBE466: 3332 .LBE467: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3333 .loc 1 2893 50 view .LVU1031 3334 02f4 CEB9 cbnz r6, .L191 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3335 .loc 1 2893 50 discriminator 13 view .LVU1032 3336 02f6 990E lsrs r1, r3, #26 3337 02f8 0131 adds r1, r1, #1 3338 02fa 8906 lsls r1, r1, #26 3339 02fc 01F0F841 and r1, r1, #2080374784 3340 .L192: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3341 .loc 1 2893 50 discriminator 16 view .LVU1033 3342 0300 96BB cbnz r6, .L194 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi ARM GAS /tmp/cco84Mp4.s page 299 3343 .loc 1 2893 50 discriminator 17 view .LVU1034 3344 0302 9F0E lsrs r7, r3, #26 3345 0304 0137 adds r7, r7, #1 3346 0306 07F01F07 and r7, r7, #31 3347 030a 0122 movs r2, #1 3348 030c BA40 lsls r2, r2, r7 3349 .L195: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3350 .loc 1 2893 50 discriminator 20 view .LVU1035 3351 030e 1143 orrs r1, r1, r2 3352 0310 CEBB cbnz r6, .L197 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3353 .loc 1 2893 50 discriminator 21 view .LVU1036 3354 0312 9B0E lsrs r3, r3, #26 3355 0314 0133 adds r3, r3, #1 3356 0316 03F01F03 and r3, r3, #31 3357 031a 03EB4303 add r3, r3, r3, lsl #1 3358 031e 1E3B subs r3, r3, #30 3359 0320 1B05 lsls r3, r3, #20 3360 0322 43F00073 orr r3, r3, #33554432 3361 .L198: 2892:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL( 3362 .loc 1 2892 9 discriminator 2 view .LVU1037 3363 0326 1943 orrs r1, r1, r3 3364 0328 A8E7 b .L190 3365 .L191: 3366 .LVL270: 3367 .LBB468: 3368 .LBI468: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3369 .loc 3 1048 31 is_stmt 1 view .LVU1038 3370 .LBB469: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3371 .loc 3 1050 3 view .LVU1039 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3372 .loc 3 1055 4 view .LVU1040 3373 .syntax unified 3374 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3375 032a 93FAA3F1 rbit r1, r3 3376 @ 0 "" 2 3377 .LVL271: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3378 .loc 3 1068 3 view .LVU1041 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3379 .loc 3 1068 3 is_stmt 0 view .LVU1042 3380 .thumb 3381 .syntax unified 3382 .LBE469: 3383 .LBE468: 3384 .LBB470: 3385 .LBI470: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3386 .loc 3 1078 30 is_stmt 1 view .LVU1043 3387 .LBB471: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3388 .loc 3 1089 3 view .LVU1044 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { ARM GAS /tmp/cco84Mp4.s page 300 3389 .loc 3 1089 6 is_stmt 0 view .LVU1045 3390 032e C9B1 cbz r1, .L214 3391 .loc 3 1093 3 is_stmt 1 view .LVU1046 3392 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1047 3393 0330 B1FA81F1 clz r1, r1 3394 .LVL272: 3395 .L193: 3396 .loc 3 1093 10 discriminator 1 view .LVU1048 3397 .LBE471: 3398 .LBE470: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3399 .loc 1 2893 50 discriminator 2 view .LVU1049 3400 0334 0131 adds r1, r1, #1 3401 0336 8906 lsls r1, r1, #26 3402 0338 01F0F841 and r1, r1, #2080374784 3403 033c E0E7 b .L192 3404 .L235: 3405 033e 00BF .align 2 3406 .L234: 3407 0340 00F0FF03 .word 67104768 3408 0344 FFFF0700 .word 524287 3409 0348 00007F40 .word 1082064896 3410 034c 00000880 .word -2146959360 3411 0350 00030050 .word 1342178048 3412 0354 000021C3 .word -1021247488 3413 0358 1000C090 .word -1866465264 3414 035c 000052C7 .word -950927360 3415 0360 000084CB .word -880541696 3416 .LVL273: 3417 .L214: 3418 .LBB473: 3419 .LBB472: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3420 .loc 3 1091 12 view .LVU1050 3421 0364 2021 movs r1, #32 3422 .LVL274: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3423 .loc 3 1091 12 view .LVU1051 3424 0366 E5E7 b .L193 3425 .LVL275: 3426 .L194: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3427 .loc 3 1091 12 view .LVU1052 3428 .LBE472: 3429 .LBE473: 3430 .LBB474: 3431 .LBI474: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3432 .loc 3 1048 31 is_stmt 1 view .LVU1053 3433 .LBB475: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3434 .loc 3 1050 3 view .LVU1054 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3435 .loc 3 1055 4 view .LVU1055 3436 .syntax unified 3437 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3438 0368 93FAA3F2 rbit r2, r3 ARM GAS /tmp/cco84Mp4.s page 301 3439 @ 0 "" 2 3440 .LVL276: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3441 .loc 3 1068 3 view .LVU1056 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3442 .loc 3 1068 3 is_stmt 0 view .LVU1057 3443 .thumb 3444 .syntax unified 3445 .LBE475: 3446 .LBE474: 3447 .LBB476: 3448 .LBI476: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3449 .loc 3 1078 30 is_stmt 1 view .LVU1058 3450 .LBB477: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3451 .loc 3 1089 3 view .LVU1059 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3452 .loc 3 1089 6 is_stmt 0 view .LVU1060 3453 036c 4AB1 cbz r2, .L215 3454 .loc 3 1093 3 is_stmt 1 view .LVU1061 3455 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1062 3456 036e B2FA82F2 clz r2, r2 3457 .LVL277: 3458 .L196: 3459 .loc 3 1093 10 discriminator 1 view .LVU1063 3460 .LBE477: 3461 .LBE476: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3462 .loc 1 2893 50 discriminator 2 view .LVU1064 3463 0372 0132 adds r2, r2, #1 3464 0374 02F01F02 and r2, r2, #31 3465 0378 4FF0010C mov ip, #1 3466 037c 0CFA02F2 lsl r2, ip, r2 3467 0380 C5E7 b .L195 3468 .LVL278: 3469 .L215: 3470 .LBB479: 3471 .LBB478: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3472 .loc 3 1091 12 view .LVU1065 3473 0382 2022 movs r2, #32 3474 .LVL279: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3475 .loc 3 1091 12 view .LVU1066 3476 0384 F5E7 b .L196 3477 .LVL280: 3478 .L197: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3479 .loc 3 1091 12 view .LVU1067 3480 .LBE478: 3481 .LBE479: 3482 .LBB480: 3483 .LBI480: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3484 .loc 3 1048 31 is_stmt 1 view .LVU1068 3485 .LBB481: ARM GAS /tmp/cco84Mp4.s page 302 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 3486 .loc 3 1050 3 view .LVU1069 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 3487 .loc 3 1055 4 view .LVU1070 3488 .syntax unified 3489 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 3490 0386 93FAA3F3 rbit r3, r3 3491 @ 0 "" 2 3492 .LVL281: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3493 .loc 3 1068 3 view .LVU1071 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3494 .loc 3 1068 3 is_stmt 0 view .LVU1072 3495 .thumb 3496 .syntax unified 3497 .LBE481: 3498 .LBE480: 3499 .LBB482: 3500 .LBI482: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3501 .loc 3 1078 30 is_stmt 1 view .LVU1073 3502 .LBB483: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3503 .loc 3 1089 3 view .LVU1074 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 3504 .loc 3 1089 6 is_stmt 0 view .LVU1075 3505 038a 5BB1 cbz r3, .L216 3506 .loc 3 1093 3 is_stmt 1 view .LVU1076 3507 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1077 3508 038c B3FA83F3 clz r3, r3 3509 .LVL282: 3510 .L199: 3511 .loc 3 1093 10 discriminator 1 view .LVU1078 3512 .LBE483: 3513 .LBE482: 2893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)pConfi 3514 .loc 1 2893 50 discriminator 2 view .LVU1079 3515 0390 0133 adds r3, r3, #1 3516 0392 03F01F03 and r3, r3, #31 3517 0396 03EB4303 add r3, r3, r3, lsl #1 3518 039a 1E3B subs r3, r3, #30 3519 039c 1B05 lsls r3, r3, #20 3520 039e 43F00073 orr r3, r3, #33554432 3521 03a2 C0E7 b .L198 3522 .LVL283: 3523 .L216: 3524 .LBB485: 3525 .LBB484: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3526 .loc 3 1091 12 view .LVU1080 3527 03a4 2023 movs r3, #32 3528 .LVL284: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3529 .loc 3 1091 12 view .LVU1081 3530 03a6 F3E7 b .L199 3531 .LVL285: 3532 .L200: ARM GAS /tmp/cco84Mp4.s page 303 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 3533 .loc 3 1091 12 view .LVU1082 3534 .LBE484: 3535 .LBE485: 2914:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3536 .loc 1 2914 11 view .LVU1083 3537 03a8 12F4000F tst r2, #8388608 3538 03ac 7FF4C2AE bne .L201 2916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3539 .loc 1 2916 9 is_stmt 1 view .LVU1084 2916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3540 .loc 1 2916 13 is_stmt 0 view .LVU1085 3541 03b0 2368 ldr r3, [r4] 2916:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3542 .loc 1 2916 12 view .LVU1086 3543 03b2 B3F1A04F cmp r3, #1342177280 3544 03b6 01D0 beq .L232 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3545 .loc 1 2762 21 view .LVU1087 3546 03b8 0020 movs r0, #0 3547 03ba 39E6 b .L153 3548 .L232: 2918:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_chan 3549 .loc 1 2918 11 is_stmt 1 view .LVU1088 3550 03bc 41F40001 orr r1, r1, #8388608 3551 .LVL286: 3552 .LBB486: 3553 .LBI486: 3744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3554 .loc 2 3744 22 view .LVU1089 3555 .LBB487: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3556 .loc 2 3746 3 view .LVU1090 3557 03c0 234A ldr r2, .L236 3558 .LVL287: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3559 .loc 2 3746 3 is_stmt 0 view .LVU1091 3560 03c2 9368 ldr r3, [r2, #8] 3561 03c4 23F0E073 bic r3, r3, #29360128 3562 03c8 1943 orrs r1, r1, r3 3563 .LVL288: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3564 .loc 2 3746 3 view .LVU1092 3565 03ca 9160 str r1, [r2, #8] 3566 .LVL289: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3567 .loc 2 3746 3 view .LVU1093 3568 .LBE487: 3569 .LBE486: 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3570 .loc 1 2926 11 is_stmt 1 view .LVU1094 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3571 .loc 1 2926 91 is_stmt 0 view .LVU1095 3572 03cc 214B ldr r3, .L236+4 3573 03ce 1B68 ldr r3, [r3] 3574 03d0 9B09 lsrs r3, r3, #6 3575 03d2 214A ldr r2, .L236+8 ARM GAS /tmp/cco84Mp4.s page 304 3576 03d4 A2FB0323 umull r2, r3, r2, r3 3577 03d8 9B09 lsrs r3, r3, #6 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3578 .loc 1 2926 71 view .LVU1096 3579 03da 0133 adds r3, r3, #1 3580 03dc 03EB4303 add r3, r3, r3, lsl #1 3581 03e0 9B00 lsls r3, r3, #2 2926:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 3582 .loc 1 2926 27 view .LVU1097 3583 03e2 0193 str r3, [sp, #4] 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3584 .loc 1 2927 11 is_stmt 1 view .LVU1098 3585 .L202: 2927:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3586 .loc 1 2927 34 view .LVU1099 3587 03e4 019B ldr r3, [sp, #4] 3588 03e6 1BB1 cbz r3, .L233 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3589 .loc 1 2929 13 view .LVU1100 2929:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3590 .loc 1 2929 28 is_stmt 0 view .LVU1101 3591 03e8 019B ldr r3, [sp, #4] 3592 03ea 013B subs r3, r3, #1 3593 03ec 0193 str r3, [sp, #4] 3594 03ee F9E7 b .L202 3595 .L233: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3596 .loc 1 2762 21 view .LVU1102 3597 03f0 0020 movs r0, #0 3598 03f2 1DE6 b .L153 3599 .LVL290: 3600 .L227: 2934:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3601 .loc 1 2934 16 view .LVU1103 3602 03f4 12F0807F tst r2, #16777216 3603 03f8 7FF4A0AE bne .L204 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3604 .loc 1 2936 9 is_stmt 1 view .LVU1104 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3605 .loc 1 2936 13 is_stmt 0 view .LVU1105 3606 03fc 2268 ldr r2, [r4] 2936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3607 .loc 1 2936 12 view .LVU1106 3608 03fe 174B ldr r3, .L236+12 3609 0400 9A42 cmp r2, r3 3610 0402 1CD0 beq .L219 2938:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel); 3611 .loc 1 2938 11 is_stmt 1 view .LVU1107 3612 0404 41F08071 orr r1, r1, #16777216 3613 .LVL291: 3614 .LBB488: 3615 .LBI488: 3744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3616 .loc 2 3744 22 view .LVU1108 3617 .LBB489: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3618 .loc 2 3746 3 view .LVU1109 ARM GAS /tmp/cco84Mp4.s page 305 3619 0408 114A ldr r2, .L236 3620 040a 9368 ldr r3, [r2, #8] 3621 040c 23F0E073 bic r3, r3, #29360128 3622 0410 1943 orrs r1, r1, r3 3623 .LVL292: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3624 .loc 2 3746 3 is_stmt 0 view .LVU1110 3625 0412 9160 str r1, [r2, #8] 3626 .LVL293: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3627 .loc 2 3746 3 view .LVU1111 3628 .LBE489: 3629 .LBE488: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3630 .loc 1 2762 21 view .LVU1112 3631 0414 0020 movs r0, #0 3632 .LBB491: 3633 .LBB490: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3634 .loc 2 3747 1 view .LVU1113 3635 0416 0BE6 b .L153 3636 .LVL294: 3637 .L228: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3638 .loc 2 3747 1 view .LVU1114 3639 .LBE490: 3640 .LBE491: 2943:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3641 .loc 1 2943 16 view .LVU1115 3642 0418 12F4800F tst r2, #4194304 3643 041c 11D1 bne .L221 2945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3644 .loc 1 2945 9 is_stmt 1 view .LVU1116 2945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3645 .loc 1 2945 13 is_stmt 0 view .LVU1117 3646 041e 2268 ldr r2, [r4] 2945:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3647 .loc 1 2945 12 view .LVU1118 3648 0420 0E4B ldr r3, .L236+12 3649 0422 9A42 cmp r2, r3 3650 0424 0FD0 beq .L222 2947:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel 3651 .loc 1 2947 11 is_stmt 1 view .LVU1119 3652 0426 41F48003 orr r3, r1, #4194304 3653 .LVL295: 3654 .LBB492: 3655 .LBI492: 3744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3656 .loc 2 3744 22 view .LVU1120 3657 .LBB493: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3658 .loc 2 3746 3 view .LVU1121 3659 042a 0949 ldr r1, .L236 3660 .LVL296: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3661 .loc 2 3746 3 is_stmt 0 view .LVU1122 3662 042c 8A68 ldr r2, [r1, #8] ARM GAS /tmp/cco84Mp4.s page 306 3663 042e 22F0E072 bic r2, r2, #29360128 3664 0432 1343 orrs r3, r3, r2 3665 .LVL297: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3666 .loc 2 3746 3 view .LVU1123 3667 0434 8B60 str r3, [r1, #8] 3668 .LVL298: 3746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3669 .loc 2 3746 3 view .LVU1124 3670 .LBE493: 3671 .LBE492: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3672 .loc 1 2762 21 view .LVU1125 3673 0436 0020 movs r0, #0 3674 .LBB495: 3675 .LBB494: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3676 .loc 2 3747 1 view .LVU1126 3677 0438 FAE5 b .L153 3678 .LVL299: 3679 .L217: 3747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 3680 .loc 2 3747 1 view .LVU1127 3681 .LBE494: 3682 .LBE495: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3683 .loc 1 2762 21 view .LVU1128 3684 043a 0020 movs r0, #0 3685 043c F8E5 b .L153 3686 .LVL300: 3687 .L219: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3688 .loc 1 2762 21 view .LVU1129 3689 043e 0020 movs r0, #0 3690 0440 F6E5 b .L153 3691 .L221: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3692 .loc 1 2762 21 view .LVU1130 3693 0442 0020 movs r0, #0 3694 0444 F4E5 b .L153 3695 .L222: 2762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmpOffsetShifted; 3696 .loc 1 2762 21 view .LVU1131 3697 0446 0020 movs r0, #0 3698 0448 F2E5 b .L153 3699 .LVL301: 3700 .L205: 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3701 .loc 1 2792 3 discriminator 1 view .LVU1132 3702 044a 0220 movs r0, #2 3703 .LVL302: 2792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3704 .loc 1 2792 3 discriminator 1 view .LVU1133 3705 044c F3E5 b .L151 3706 .L237: 3707 044e 00BF .align 2 3708 .L236: ARM GAS /tmp/cco84Mp4.s page 307 3709 0450 00030050 .word 1342178048 3710 0454 00000000 .word SystemCoreClock 3711 0458 632D3E05 .word 87960931 3712 045c 00010050 .word 1342177536 3713 .cfi_endproc 3714 .LFE349: 3716 .section .text.HAL_ADC_AnalogWDGConfig,"ax",%progbits 3717 .align 1 3718 .global HAL_ADC_AnalogWDGConfig 3719 .syntax unified 3720 .thumb 3721 .thumb_func 3723 HAL_ADC_AnalogWDGConfig: 3724 .LVL303: 3725 .LFB350: 2999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3726 .loc 1 2999 1 is_stmt 1 view -0 3727 .cfi_startproc 3728 @ args = 0, pretend = 0, frame = 0 3729 @ frame_needed = 0, uses_anonymous_args = 0 2999:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status = HAL_OK; 3730 .loc 1 2999 1 is_stmt 0 view .LVU1135 3731 0000 38B5 push {r3, r4, r5, lr} 3732 .LCFI19: 3733 .cfi_def_cfa_offset 16 3734 .cfi_offset 3, -16 3735 .cfi_offset 4, -12 3736 .cfi_offset 5, -8 3737 .cfi_offset 14, -4 3000:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_awd_high_threshold_shifted; 3738 .loc 1 3000 3 is_stmt 1 view .LVU1136 3739 .LVL304: 3001:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_awd_low_threshold_shifted; 3740 .loc 1 3001 3 view .LVU1137 3002:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 3741 .loc 1 3002 3 view .LVU1138 3003:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 3742 .loc 1 3003 3 view .LVU1139 3004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3743 .loc 1 3004 3 view .LVU1140 3007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_NUMBER(pAnalogWDGConfig->WatchdogNumber)); 3744 .loc 1 3007 3 view .LVU1141 3008:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_MODE(pAnalogWDGConfig->WatchdogMode)); 3745 .loc 1 3008 3 view .LVU1142 3009:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_ANALOG_WATCHDOG_FILTERING_MODE(pAnalogWDGConfig->FilteringConfig)); 3746 .loc 1 3009 3 view .LVU1143 3010:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_FUNCTIONAL_STATE(pAnalogWDGConfig->ITMode)); 3747 .loc 1 3010 3 view .LVU1144 3011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3748 .loc 1 3011 3 view .LVU1145 3013:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (pAnalogWDGConfig->WatchdogMode == ADC_ANALOGWATCHDOG_SINGLE_INJEC) || 3749 .loc 1 3013 3 view .LVU1146 3017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3750 .loc 1 3017 5 view .LVU1147 3021:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3751 .loc 1 3021 3 view .LVU1148 3026:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_RESOLUTION_12B, pAnalogWDGConfig->LowThreshold)); ARM GAS /tmp/cco84Mp4.s page 308 3752 .loc 1 3026 5 view .LVU1149 3027:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3753 .loc 1 3027 5 view .LVU1150 3032:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_RANGE(ADC_GET_RESOLUTION(hadc), pAnalogWDGConfig->LowThreshold)); 3754 .loc 1 3032 5 view .LVU1151 3033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3755 .loc 1 3033 5 view .LVU1152 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3756 .loc 1 3037 3 view .LVU1153 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3757 .loc 1 3037 3 view .LVU1154 3758 0002 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 3759 0006 012B cmp r3, #1 3760 0008 00F06781 beq .L274 3761 000c 0446 mov r4, r0 3762 000e 0D46 mov r5, r1 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3763 .loc 1 3037 3 discriminator 2 view .LVU1155 3764 0010 0123 movs r3, #1 3765 0012 80F85830 strb r3, [r0, #88] 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3766 .loc 1 3037 3 view .LVU1156 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3767 .loc 1 3043 3 view .LVU1157 3043:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 3768 .loc 1 3043 79 is_stmt 0 view .LVU1158 3769 0016 0068 ldr r0, [r0] 3770 .LVL305: 3771 .LBB496: 3772 .LBI496: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3773 .loc 2 7866 26 is_stmt 1 view .LVU1159 3774 .LBB497: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3775 .loc 2 7868 3 view .LVU1160 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3776 .loc 2 7868 12 is_stmt 0 view .LVU1161 3777 0018 8368 ldr r3, [r0, #8] 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3778 .loc 2 7868 74 view .LVU1162 3779 001a 13F00403 ands r3, r3, #4 3780 001e 00D0 beq .L240 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3781 .loc 2 7868 74 discriminator 1 view .LVU1163 3782 0020 0123 movs r3, #1 3783 .L240: 3784 .LVL306: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 3785 .loc 2 7868 74 discriminator 1 view .LVU1164 3786 .LBE497: 3787 .LBE496: 3044:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular == 0UL) 3788 .loc 1 3044 3 is_stmt 1 view .LVU1165 3789 .LBB498: 3790 .LBI498: 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3791 .loc 2 8092 26 view .LVU1166 ARM GAS /tmp/cco84Mp4.s page 309 3792 .LBB499: 3793 .loc 2 8094 3 view .LVU1167 3794 .loc 2 8094 12 is_stmt 0 view .LVU1168 3795 0022 8268 ldr r2, [r0, #8] 3796 .loc 2 8094 76 view .LVU1169 3797 0024 12F00802 ands r2, r2, #8 3798 0028 00D0 beq .L241 3799 .loc 2 8094 76 discriminator 1 view .LVU1170 3800 002a 0122 movs r2, #1 3801 .L241: 3802 .LVL307: 3803 .loc 2 8094 76 discriminator 1 view .LVU1171 3804 .LBE499: 3805 .LBE498: 3045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3806 .loc 1 3045 3 is_stmt 1 view .LVU1172 3045:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_conversion_on_going_injected == 0UL) 3807 .loc 1 3045 6 is_stmt 0 view .LVU1173 3808 002c 7BBB cbnz r3, .L242 3046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 3809 .loc 1 3046 7 view .LVU1174 3810 002e 72BB cbnz r2, .L242 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3811 .loc 1 3050 5 is_stmt 1 view .LVU1175 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3812 .loc 1 3050 25 is_stmt 0 view .LVU1176 3813 0030 2968 ldr r1, [r5] 3814 .LVL308: 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3815 .loc 1 3050 8 view .LVU1177 3816 0032 AB4B ldr r3, .L285 3817 .LVL309: 3050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3818 .loc 1 3050 8 view .LVU1178 3819 0034 9942 cmp r1, r3 3820 0036 62D0 beq .L278 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3821 .loc 1 3119 7 is_stmt 1 view .LVU1179 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3822 .loc 1 3119 31 is_stmt 0 view .LVU1180 3823 0038 6B68 ldr r3, [r5, #4] 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3824 .loc 1 3119 7 view .LVU1181 3825 003a B3F1A07F cmp r3, #20971520 3826 003e 00F0E280 beq .L254 3827 0042 00F2D580 bhi .L255 3828 0046 B3F5400F cmp r3, #12582912 3829 004a 00F0DC80 beq .L254 3830 004e B3F1807F cmp r3, #16777216 3831 0052 03D0 beq .L256 3832 0054 B3F5000F cmp r3, #8388608 3833 0058 40F0D180 bne .L257 3834 .L256: 3141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pAnalogWDGConfig->WatchdogNumber, LL_ADC_AWD_ALL_CHANNELS 3835 .loc 1 3141 11 is_stmt 1 view .LVU1182 3836 005c A14A ldr r2, .L285+4 3837 .LVL310: ARM GAS /tmp/cco84Mp4.s page 310 3141:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** pAnalogWDGConfig->WatchdogNumber, LL_ADC_AWD_ALL_CHANNELS 3838 .loc 1 3141 11 is_stmt 0 view .LVU1183 3839 005e FFF7FEFF bl LL_ADC_SetAnalogWDMonitChannels 3840 .LVL311: 3143:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3841 .loc 1 3143 11 is_stmt 1 view .LVU1184 3842 .L262: 3150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3843 .loc 1 3150 7 view .LVU1185 3150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3844 .loc 1 3150 27 is_stmt 0 view .LVU1186 3845 0062 2A68 ldr r2, [r5] 3150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3846 .loc 1 3150 10 view .LVU1187 3847 0064 A04B ldr r3, .L285+8 3848 0066 9A42 cmp r2, r3 3849 0068 00F00481 beq .L279 3175:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3850 .loc 1 3175 9 is_stmt 1 view .LVU1188 3851 006c E36D ldr r3, [r4, #92] 3852 006e 23F48023 bic r3, r3, #262144 3853 0072 E365 str r3, [r4, #92] 3181:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3854 .loc 1 3181 9 view .LVU1189 3855 0074 2368 ldr r3, [r4] 3856 .LVL312: 3857 .LBB500: 3858 .LBI500: 8095:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8096:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8097:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8098:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected command of conversion stop state 8099:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CR JADSTP LL_ADC_INJ_IsStopConversionOngoing 8100:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8101:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval 0: no command of conversion stop is on going on ADC group injected. 8102:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8103:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_IsStopConversionOngoing(const ADC_TypeDef *ADCx) 8104:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8105:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->CR, ADC_CR_JADSTP) == (ADC_CR_JADSTP)) ? 1UL : 0UL); 8106:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8107:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8108:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8109:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 8110:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all ADC configurations: all ADC resolutions and 8111:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * all oversampling increased data width (for devices 8112:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * with feature oversampling). 8113:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32\n 8114:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData32\n 8115:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData32\n 8116:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData32 8117:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8118:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 8119:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 8120:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 8121:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 8122:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 8123:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF ARM GAS /tmp/cco84Mp4.s page 311 8124:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8125:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32(const ADC_TypeDef *ADCx, uint32_t Rank) 8126:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8127:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, 8128:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK) >> ADC_JDR 8129:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8130:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint32_t)(READ_BIT(*preg, 8131:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 8132:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8133:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8134:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8135:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8136:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 8137:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 12 bits. 8138:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 8139:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 8140:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 8141:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData12\n 8142:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData12\n 8143:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData12\n 8144:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData12 8145:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8146:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 8147:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 8148:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 8149:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 8150:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 8151:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0xFFF 8152:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8153:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12(const ADC_TypeDef *ADCx, uint32_t Rank) 8154:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8155:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, 8156:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK) >> ADC_JDR 8157:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8158:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 8159:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 8160:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8161:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8162:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8163:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8164:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 8165:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 10 bits. 8166:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 8167:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 8168:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 8169:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData10\n 8170:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData10\n 8171:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData10\n 8172:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData10 8173:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8174:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 8175:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 8176:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 8177:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 8178:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 8179:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x000 and Max_Data=0x3FF 8180:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/cco84Mp4.s page 312 8181:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10(const ADC_TypeDef *ADCx, uint32_t Rank) 8182:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8183:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, 8184:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK) >> ADC_JDR 8185:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8186:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint16_t)(READ_BIT(*preg, 8187:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 8188:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8189:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8190:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8191:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8192:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 8193:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 8 bits. 8194:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 8195:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 8196:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 8197:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData8\n 8198:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData8\n 8199:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData8\n 8200:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData8 8201:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8202:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 8203:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 8204:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 8205:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 8206:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 8207:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0xFF 8208:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8209:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8(const ADC_TypeDef *ADCx, uint32_t Rank) 8210:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8211:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, 8212:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK) >> ADC_JDR 8213:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8214:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(*preg, 8215:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 8216:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8217:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8218:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8219:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8220:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get ADC group injected conversion data, range fit for 8221:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * ADC resolution 6 bits. 8222:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note For devices with feature oversampling: Oversampling 8223:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * can increase data width, function for extended range 8224:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * may be needed: @ref LL_ADC_INJ_ReadConversionData32. 8225:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData6\n 8226:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR2 JDATA LL_ADC_INJ_ReadConversionData6\n 8227:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR3 JDATA LL_ADC_INJ_ReadConversionData6\n 8228:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * JDR4 JDATA LL_ADC_INJ_ReadConversionData6 8229:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8230:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param Rank This parameter can be one of the following values: 8231:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_1 8232:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_2 8233:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_3 8234:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @arg @ref LL_ADC_INJ_RANK_4 8235:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval Value between Min_Data=0x00 and Max_Data=0x3F 8236:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8237:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData6(const ADC_TypeDef *ADCx, uint32_t Rank) ARM GAS /tmp/cco84Mp4.s page 313 8238:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8239:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** const __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->JDR1, 8240:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((Rank & ADC_INJ_JDRX_REGOFFSET_MASK) >> ADC_JDR 8241:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8242:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return (uint8_t)(READ_BIT(*preg, 8243:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_JDR1_JDATA) 8244:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ); 8245:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8246:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8247:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8248:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 8249:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8250:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8251:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_FLAG_Management ADC flag management 8252:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 8253:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8254:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8255:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8256:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC ready. 8257:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 8258:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 8259:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 8260:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_IsActiveFlag_ADRDY 8261:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8262:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8263:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8264:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_ADRDY(const ADC_TypeDef *ADCx) 8265:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8266:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_ADRDY) == (LL_ADC_FLAG_ADRDY)) ? 1UL : 0UL); 8267:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8268:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8269:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8270:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of unitary conversion. 8271:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_IsActiveFlag_EOC 8272:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8273:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8274:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8275:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOC(const ADC_TypeDef *ADCx) 8276:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8277:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, ADC_ISR_EOC) == (ADC_ISR_EOC)) ? 1UL : 0UL); 8278:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8279:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8280:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8281:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of sequence conversions. 8282:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_IsActiveFlag_EOS 8283:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8284:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8285:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8286:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOS(const ADC_TypeDef *ADCx) 8287:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8288:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOS) == (LL_ADC_FLAG_EOS)) ? 1UL : 0UL); 8289:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8290:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8291:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8292:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular overrun. 8293:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_IsActiveFlag_OVR 8294:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/cco84Mp4.s page 314 8295:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8296:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8297:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_OVR(const ADC_TypeDef *ADCx) 8298:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8299:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_OVR) == (LL_ADC_FLAG_OVR)) ? 1UL : 0UL); 8300:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8301:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8302:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8303:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group regular end of sampling phase. 8304:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_IsActiveFlag_EOSMP 8305:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8306:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8307:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8308:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_EOSMP(const ADC_TypeDef *ADCx) 8309:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8310:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_EOSMP) == (LL_ADC_FLAG_EOSMP)) ? 1UL : 0UL); 8311:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8312:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8313:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8314:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected end of unitary conversion. 8315:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_IsActiveFlag_JEOC 8316:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8317:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8318:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8319:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOC(const ADC_TypeDef *ADCx) 8320:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8321:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOC) == (LL_ADC_FLAG_JEOC)) ? 1UL : 0UL); 8322:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8323:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8324:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8325:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected end of sequence conversions. 8326:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_IsActiveFlag_JEOS 8327:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8328:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8329:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8330:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JEOS(const ADC_TypeDef *ADCx) 8331:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8332:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JEOS) == (LL_ADC_FLAG_JEOS)) ? 1UL : 0UL); 8333:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8334:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8335:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8336:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC group injected contexts queue overflow. 8337:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_IsActiveFlag_JQOVF 8338:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8339:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8340:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8341:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_JQOVF(const ADC_TypeDef *ADCx) 8342:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8343:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_JQOVF) == (LL_ADC_FLAG_JQOVF)) ? 1UL : 0UL); 8344:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8345:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8346:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8347:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 1 flag 8348:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_IsActiveFlag_AWD1 8349:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8350:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8351:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/cco84Mp4.s page 315 8352:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD1(const ADC_TypeDef *ADCx) 8353:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8354:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD1) == (LL_ADC_FLAG_AWD1)) ? 1UL : 0UL); 8355:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8356:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8357:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8358:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 2. 8359:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_IsActiveFlag_AWD2 8360:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8361:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8362:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8363:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD2(const ADC_TypeDef *ADCx) 8364:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8365:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD2) == (LL_ADC_FLAG_AWD2)) ? 1UL : 0UL); 8366:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8367:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8368:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8369:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag ADC analog watchdog 3. 8370:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_IsActiveFlag_AWD3 8371:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8372:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8373:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8374:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_AWD3(const ADC_TypeDef *ADCx) 8375:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8376:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** return ((READ_BIT(ADCx->ISR, LL_ADC_FLAG_AWD3) == (LL_ADC_FLAG_AWD3)) ? 1UL : 0UL); 8377:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8378:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8379:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8380:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC ready. 8381:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @note On this STM32 series, flag LL_ADC_FLAG_ADRDY is raised when the ADC 8382:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * is enabled and when conversion clock is active. 8383:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * (not only core clock: this ADC has a dual clock domain) 8384:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR ADRDY LL_ADC_ClearFlag_ADRDY 8385:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8386:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8387:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8388:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_ADRDY(ADC_TypeDef *ADCx) 8389:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8390:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_ADRDY); 8391:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8392:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8393:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8394:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of unitary conversion. 8395:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOC LL_ADC_ClearFlag_EOC 8396:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8397:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8398:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8399:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOC(ADC_TypeDef *ADCx) 8400:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8401:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOC); 8402:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8403:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8404:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8405:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sequence conversions. 8406:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOS LL_ADC_ClearFlag_EOS 8407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8408:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None ARM GAS /tmp/cco84Mp4.s page 316 8409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8410:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOS(ADC_TypeDef *ADCx) 8411:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8412:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOS); 8413:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8414:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8415:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8416:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular overrun. 8417:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR OVR LL_ADC_ClearFlag_OVR 8418:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8419:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8420:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8421:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_OVR(ADC_TypeDef *ADCx) 8422:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8423:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_OVR); 8424:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8425:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8426:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8427:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group regular end of sampling phase. 8428:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR EOSMP LL_ADC_ClearFlag_EOSMP 8429:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8430:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8431:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8432:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_EOSMP(ADC_TypeDef *ADCx) 8433:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8434:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_EOSMP); 8435:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8436:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8437:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8438:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected end of unitary conversion. 8439:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOC LL_ADC_ClearFlag_JEOC 8440:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8441:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8442:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8443:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOC(ADC_TypeDef *ADCx) 8444:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8445:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOC); 8446:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8447:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8448:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8449:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected end of sequence conversions. 8450:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JEOS LL_ADC_ClearFlag_JEOS 8451:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8452:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8453:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8454:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JEOS(ADC_TypeDef *ADCx) 8455:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8456:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JEOS); 8457:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8458:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8459:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8460:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC group injected contexts queue overflow. 8461:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR JQOVF LL_ADC_ClearFlag_JQOVF 8462:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8463:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8464:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8465:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_JQOVF(ADC_TypeDef *ADCx) ARM GAS /tmp/cco84Mp4.s page 317 8466:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8467:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_JQOVF); 8468:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8469:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8470:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8471:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 1. 8472:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD1 LL_ADC_ClearFlag_AWD1 8473:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8474:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8475:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx) 8477:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD1); 8479:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8480:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8481:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8482:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 2. 8483:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD2 LL_ADC_ClearFlag_AWD2 8484:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8485:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8486:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD2(ADC_TypeDef *ADCx) 8488:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD2); 8490:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8491:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8492:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8493:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Clear flag ADC analog watchdog 3. 8494:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll ISR AWD3 LL_ADC_ClearFlag_AWD3 8495:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8496:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8497:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8498:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_ClearFlag_AWD3(ADC_TypeDef *ADCx) 3859 .loc 2 8498 22 view .LVU1190 3860 .LBB501: 8499:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8500:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** WRITE_REG(ADCx->ISR, LL_ADC_FLAG_AWD3); 3861 .loc 2 8500 3 view .LVU1191 3862 0076 4FF40072 mov r2, #512 3863 007a 1A60 str r2, [r3] 3864 .LVL313: 3865 .loc 2 8500 3 is_stmt 0 view .LVU1192 3866 .LBE501: 3867 .LBE500: 3184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3868 .loc 1 3184 9 is_stmt 1 view .LVU1193 3184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3869 .loc 1 3184 29 is_stmt 0 view .LVU1194 3870 007c 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3871 .loc 1 3184 12 view .LVU1195 3872 007e 012B cmp r3, #1 3873 0080 00F00F81 beq .L280 3190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3874 .loc 1 3190 11 is_stmt 1 view .LVU1196 3875 0084 2268 ldr r2, [r4] 3876 .LVL314: ARM GAS /tmp/cco84Mp4.s page 318 3877 .LBB502: 3878 .LBI502: 8501:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8502:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8503:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #if defined(ADC_MULTIMODE_SUPPORT) 8504:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8505:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC master. 8506:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR ADRDY_MST LL_ADC_IsActiveFlag_MST_ADRDY 8507:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8508: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 8509:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8510:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8511:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_ADRDY(const ADC_Common_TypeDef *ADCxy_COMMON) 8512:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8513: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 8514:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8515:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8516:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8517:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC ready of the ADC slave. 8518:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR ADRDY_SLV LL_ADC_IsActiveFlag_SLV_ADRDY 8519:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8520: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 8521:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8522:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8523:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_ADRDY(const ADC_Common_TypeDef *ADCxy_COMMON) 8524:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8525: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 8526:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8527:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8528:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8529:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC master. 8530:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOC_MST LL_ADC_IsActiveFlag_MST_EOC 8531:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8532: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 8533:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8534:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8535:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOC(const ADC_Common_TypeDef *ADCxy_COMMON) 8536:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8537: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); 8538:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8539:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8540:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8541:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of unitary conversion of the ADC slave. 8542:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOC_SLV LL_ADC_IsActiveFlag_SLV_EOC 8543:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8544: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 8545:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8546:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8547:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOC(const ADC_Common_TypeDef *ADCxy_COMMON) 8548:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8549: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); 8550:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8551:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8552:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8553:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC master. 8554:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOS_MST LL_ADC_IsActiveFlag_MST_EOS 8555:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance ARM GAS /tmp/cco84Mp4.s page 319 8556: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 8557:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8558:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8559:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOS(const ADC_Common_TypeDef *ADCxy_COMMON) 8560:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8561: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); 8562:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8563:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8564:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8565:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sequence conversions of the ADC slave. 8566:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOS_SLV LL_ADC_IsActiveFlag_SLV_EOS 8567:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8568: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 8569:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8570:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8571:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOS(const ADC_Common_TypeDef *ADCxy_COMMON) 8572:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8573: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); 8574:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8575:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8576:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8577:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC master. 8578:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR OVR_MST LL_ADC_IsActiveFlag_MST_OVR 8579:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8580: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 8581:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8582:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8583:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_OVR(const ADC_Common_TypeDef *ADCxy_COMMON) 8584:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8585: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); 8586:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8587:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8588:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8589:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular overrun of the ADC slave. 8590:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR OVR_SLV LL_ADC_IsActiveFlag_SLV_OVR 8591:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8592: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 8593:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8594:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8595:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_OVR(const ADC_Common_TypeDef *ADCxy_COMMON) 8596:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8597: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); 8598:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8599:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8600:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8601:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC master. 8602:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOSMP_MST LL_ADC_IsActiveFlag_MST_EOSMP 8603:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8604: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 8605:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8606:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8607:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOSMP(const ADC_Common_TypeDef *ADCxy_COMMON) 8608:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8609: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 8610:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8611:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8612:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** ARM GAS /tmp/cco84Mp4.s page 320 8613:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group regular end of sampling of the ADC slave. 8614:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR EOSMP_SLV LL_ADC_IsActiveFlag_SLV_EOSMP 8615:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8616: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 8617:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8618:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8619:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_EOSMP(const ADC_Common_TypeDef *ADCxy_COMMON) 8620:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8621: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 8622:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8623:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8624:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8625:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC master. 8626:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOC_MST LL_ADC_IsActiveFlag_MST_JEOC 8627:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8628: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 8629:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8630:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8631:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOC(const ADC_Common_TypeDef *ADCxy_COMMON) 8632:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8633: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 8634:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8635:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8636:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8637:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of unitary conversion of the ADC slave. 8638:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOC_SLV LL_ADC_IsActiveFlag_SLV_JEOC 8639:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8640: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 8641:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8642:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8643:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOC(const ADC_Common_TypeDef *ADCxy_COMMON) 8644:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8645: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 8646:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8647:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8648:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8649:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC master. 8650:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOS_MST LL_ADC_IsActiveFlag_MST_JEOS 8651:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8652: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 8653:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8654:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8655:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JEOS(const ADC_Common_TypeDef *ADCxy_COMMON) 8656:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8657: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 8658:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8659:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8660:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8661:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected end of sequence conversions of the ADC slave. 8662:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JEOS_SLV LL_ADC_IsActiveFlag_SLV_JEOS 8663:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8664: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 8665:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8666:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8667:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JEOS(const ADC_Common_TypeDef *ADCxy_COMMON) 8668:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8669: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 ARM GAS /tmp/cco84Mp4.s page 321 8670:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8671:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8672:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8673:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC master. 8674:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JQOVF_MST LL_ADC_IsActiveFlag_MST_JQOVF 8675:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8676: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 8677:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8678:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8679:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_JQOVF(const ADC_Common_TypeDef *ADCxy_COMMON) 8680:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8681: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 8682:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8683:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8684:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8685:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC group injected context queue overflow of the ADC slave. 8686:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR JQOVF_SLV LL_ADC_IsActiveFlag_SLV_JQOVF 8687:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8688: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 8689:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8690:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8691:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_JQOVF(const ADC_Common_TypeDef *ADCxy_COMMON) 8692:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8693: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 8694:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8695:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8696:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8697:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 1 of the ADC master. 8698:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD1_MST LL_ADC_IsActiveFlag_MST_AWD1 8699:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8700: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 8701:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8702:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8703:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD1(const ADC_Common_TypeDef *ADCxy_COMMON) 8704:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8705: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 8706:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8707:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8708:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8709:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode analog watchdog 1 of the ADC slave. 8710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD1_SLV LL_ADC_IsActiveFlag_SLV_AWD1 8711:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8712: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 8713:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8715:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD1(const ADC_Common_TypeDef *ADCxy_COMMON) 8716:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8717: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 8718:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8719:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8721:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC master. 8722:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD2_MST LL_ADC_IsActiveFlag_MST_AWD2 8723:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8724: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 8725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8726:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ ARM GAS /tmp/cco84Mp4.s page 322 8727:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD2(const ADC_Common_TypeDef *ADCxy_COMMON) 8728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8729: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 8730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8731:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8732:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8733:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 2 of the ADC slave. 8734:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD2_SLV LL_ADC_IsActiveFlag_SLV_AWD2 8735:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8736: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 8737:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8738:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8739:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD2(const ADC_Common_TypeDef *ADCxy_COMMON) 8740:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8741: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 8742:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8743:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8745:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC master. 8746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD3_MST LL_ADC_IsActiveFlag_MST_AWD3 8747:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8748: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 8749:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8750:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8751:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_AWD3(const ADC_Common_TypeDef *ADCxy_COMMON) 8752:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8753: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 8754:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8756:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Get flag multimode ADC analog watchdog 3 of the ADC slave. 8758:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll CSR AWD3_SLV LL_ADC_IsActiveFlag_SLV_AWD3 8759:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCxy_COMMON ADC common instance 8760: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 8761:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval State of bit (1 or 0). 8762:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8763:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_SLV_AWD3(const ADC_Common_TypeDef *ADCxy_COMMON) 8764:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8765: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 8766:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8767:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** #endif /* ADC_MULTIMODE_SUPPORT */ 8768:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8769:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8770:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @} 8771:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8772:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8773:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** @defgroup ADC_LL_EF_IT_Management ADC IT management 8774:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @{ 8775:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8776:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8777:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8778:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC ready. 8779:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_EnableIT_ADRDY 8780:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8781:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8782:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8783:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_ADRDY(ADC_TypeDef *ADCx) ARM GAS /tmp/cco84Mp4.s page 323 8784:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8785:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 8786:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8787:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8788:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8789:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of unitary conversion. 8790:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_EnableIT_EOC 8791:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8792:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8793:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8794:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOC(ADC_TypeDef *ADCx) 8795:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8796:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOC); 8797:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8798:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8799:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8800:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sequence conversions. 8801:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_EnableIT_EOS 8802:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8803:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8804:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8805:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOS(ADC_TypeDef *ADCx) 8806:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8807:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOS); 8808:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8809:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8810:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8811:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable ADC group regular interruption overrun. 8812:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_EnableIT_OVR 8813:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8814:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8815:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8816:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_OVR(ADC_TypeDef *ADCx) 8817:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8818:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_OVR); 8819:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8820:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8821:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8822:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group regular end of sampling. 8823:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_EnableIT_EOSMP 8824:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8825:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8827:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_EOSMP(ADC_TypeDef *ADCx) 8828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8829:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 8830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8831:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8832:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8833:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of unitary conversion. 8834:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_EnableIT_JEOC 8835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8836:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8837:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOC(ADC_TypeDef *ADCx) 8839:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8840:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOC); ARM GAS /tmp/cco84Mp4.s page 324 8841:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8842:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8843:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8844:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected end of sequence conversions. 8845:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_EnableIT_JEOS 8846:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8847:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8848:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8849:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JEOS(ADC_TypeDef *ADCx) 8850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8851:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JEOS); 8852:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8853:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8854:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC group injected context queue overflow. 8856:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_EnableIT_JQOVF 8857:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8858:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8859:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8860:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_JQOVF(ADC_TypeDef *ADCx) 8861:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8862:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 8863:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8864:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8865:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 1. 8867:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_EnableIT_AWD1 8868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8869:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8870:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD1(ADC_TypeDef *ADCx) 8872:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD1); 8874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8875:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8876:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8877:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 2. 8878:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_EnableIT_AWD2 8879:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8880:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8881:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD2(ADC_TypeDef *ADCx) 8883:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD2); 8885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8886:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8887:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8888:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Enable interruption ADC analog watchdog 3. 8889:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_EnableIT_AWD3 8890:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8891:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8892:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_EnableIT_AWD3(ADC_TypeDef *ADCx) 8894:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** SET_BIT(ADCx->IER, LL_ADC_IT_AWD3); 8896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8897:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ARM GAS /tmp/cco84Mp4.s page 325 8898:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8899:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC ready. 8900:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER ADRDYIE LL_ADC_DisableIT_ADRDY 8901:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8902:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8903:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8904:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_ADRDY(ADC_TypeDef *ADCx) 8905:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8906:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_ADRDY); 8907:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8908:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8909:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8910:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. 8911:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOCIE LL_ADC_DisableIT_EOC 8912:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8913:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8914:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8915:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOC(ADC_TypeDef *ADCx) 8916:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8917:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOC); 8918:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8919:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8920:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8921:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sequence conversions. 8922:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSIE LL_ADC_DisableIT_EOS 8923:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8924:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8925:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8926:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOS(ADC_TypeDef *ADCx) 8927:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8928:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOS); 8929:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8930:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8931:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8932:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular overrun. 8933:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER OVRIE LL_ADC_DisableIT_OVR 8934:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8935:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8936:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8937:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_OVR(ADC_TypeDef *ADCx) 8938:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8939:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_OVR); 8940:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8941:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8942:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8943:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of sampling. 8944:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER EOSMPIE LL_ADC_DisableIT_EOSMP 8945:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8946:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8947:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8948:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_EOSMP(ADC_TypeDef *ADCx) 8949:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8950:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_EOSMP); 8951:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8952:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8953:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8954:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group regular end of unitary conversion. ARM GAS /tmp/cco84Mp4.s page 326 8955:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOCIE LL_ADC_DisableIT_JEOC 8956:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8957:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8958:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8959:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOC(ADC_TypeDef *ADCx) 8960:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8961:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOC); 8962:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8963:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8964:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8965:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group injected end of sequence conversions. 8966:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JEOSIE LL_ADC_DisableIT_JEOS 8967:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8969:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8970:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JEOS(ADC_TypeDef *ADCx) 8971:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8972:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JEOS); 8973:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8974:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8975:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC group injected context queue overflow. 8977:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER JQOVFIE LL_ADC_DisableIT_JQOVF 8978:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8980:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8981:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_JQOVF(ADC_TypeDef *ADCx) 8982:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8983:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_JQOVF); 8984:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8985:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8986:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8987:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 1. 8988:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD1IE LL_ADC_DisableIT_AWD1 8989:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 8990:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 8991:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 8992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD1(ADC_TypeDef *ADCx) 8993:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 8994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD1); 8995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 8996:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 8997:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 8998:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 2. 8999:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD2IE LL_ADC_DisableIT_AWD2 9000:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance 9001:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 9002:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 9003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD2(ADC_TypeDef *ADCx) 9004:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 9005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD2); 9006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 9007:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 9008:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** /** 9009:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @brief Disable interruption ADC analog watchdog 3. 9010:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @rmtoll IER AWD3IE LL_ADC_DisableIT_AWD3 9011:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @param ADCx ADC instance ARM GAS /tmp/cco84Mp4.s page 327 9012:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** * @retval None 9013:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** */ 9014:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** __STATIC_INLINE void LL_ADC_DisableIT_AWD3(ADC_TypeDef *ADCx) 3879 .loc 2 9014 22 view .LVU1197 3880 .LBB503: 9015:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 9016:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** CLEAR_BIT(ADCx->IER, LL_ADC_IT_AWD3); 3881 .loc 2 9016 3 view .LVU1198 3882 0086 5368 ldr r3, [r2, #4] 3883 0088 23F40073 bic r3, r3, #512 3884 008c 5360 str r3, [r2, #4] 3885 .LVL315: 3886 .L242: 3887 .loc 2 9016 3 is_stmt 0 view .LVU1199 3888 .LBE503: 3889 .LBE502: 3198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3890 .loc 1 3198 3 is_stmt 1 view .LVU1200 3198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3891 .loc 1 3198 23 is_stmt 0 view .LVU1201 3892 008e 2B68 ldr r3, [r5] 3198:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3893 .loc 1 3198 6 view .LVU1202 3894 0090 934A ldr r2, .L285 3895 0092 9342 cmp r3, r2 3896 0094 00F00B81 beq .L281 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Lo 3897 .loc 1 3212 5 is_stmt 1 view .LVU1203 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Lo 3898 .loc 1 3212 38 is_stmt 0 view .LVU1204 3899 0098 2068 ldr r0, [r4] 3900 009a C268 ldr r2, [r0, #12] 3901 009c 02F01802 and r2, r2, #24 3902 00a0 182A cmp r2, #24 3903 00a2 00F01381 beq .L271 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Lo 3904 .loc 1 3212 38 discriminator 1 view .LVU1205 3905 00a6 2969 ldr r1, [r5, #16] 3906 00a8 C268 ldr r2, [r0, #12] 3907 00aa C2F3C102 ubfx r2, r2, #3, #2 3908 00ae C2F10202 rsb r2, r2, #2 3909 00b2 5200 lsls r2, r2, #1 3910 00b4 02F01E02 and r2, r2, #30 3911 00b8 21FA02FC lsr ip, r1, r2 3912 .L272: 3913 .LVL316: 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3914 .loc 1 3213 5 is_stmt 1 view .LVU1206 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3915 .loc 1 3213 38 is_stmt 0 view .LVU1207 3916 00bc C268 ldr r2, [r0, #12] 3917 00be 02F01802 and r2, r2, #24 3918 00c2 182A cmp r2, #24 3919 00c4 00F00681 beq .L273 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3920 .loc 1 3213 38 discriminator 1 view .LVU1208 3921 00c8 6969 ldr r1, [r5, #20] ARM GAS /tmp/cco84Mp4.s page 328 3922 00ca C268 ldr r2, [r0, #12] 3923 00cc C2F3C102 ubfx r2, r2, #3, #2 3924 00d0 C2F10202 rsb r2, r2, #2 3925 00d4 5200 lsls r2, r2, #1 3926 00d6 02F01E02 and r2, r2, #30 3927 00da D140 lsrs r1, r1, r2 3928 .L270: 3929 .LVL317: 3217:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted); 3930 .loc 1 3217 3 is_stmt 1 view .LVU1209 3931 00dc 2068 ldr r0, [r4] 3932 .LVL318: 3933 .LBB504: 3934 .LBI504: 6968:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** uint32_t AWDThresholdLowValue) 3935 .loc 2 6968 22 view .LVU1210 3936 .LBB505: 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 3937 .loc 2 6976 3 view .LVU1211 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 3938 .loc 2 6976 25 is_stmt 0 view .LVU1212 3939 00de 2030 adds r0, r0, #32 3940 .LVL319: 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 3941 .loc 2 6976 25 view .LVU1213 3942 00e0 1B0D lsrs r3, r3, #20 3943 .LVL320: 6976:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_TRX_REGOFFSET_MASK) >> ADC_AWD_TRX_RE 3944 .loc 2 6976 25 view .LVU1214 3945 00e2 9B00 lsls r3, r3, #2 3946 00e4 03F00C03 and r3, r3, #12 3947 .LVL321: 6979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 3948 .loc 2 6979 3 is_stmt 1 view .LVU1215 3949 00e8 C258 ldr r2, [r0, r3] 3950 00ea 02F0F022 and r2, r2, #-268374016 3951 00ee 41EA0C41 orr r1, r1, ip, lsl #16 3952 .LVL322: 6979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 3953 .loc 2 6979 3 is_stmt 0 view .LVU1216 3954 00f2 0A43 orrs r2, r2, r1 3955 00f4 C250 str r2, [r0, r3] 3956 .LVL323: 6979:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_TR1_HT1 | ADC_TR1_LT1, 3957 .loc 2 6979 3 view .LVU1217 3958 .LBE505: 3959 .LBE504: 3221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3960 .loc 1 3221 3 is_stmt 1 view .LVU1218 3221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3961 .loc 1 3221 3 view .LVU1219 3962 00f6 0020 movs r0, #0 3963 00f8 84F85800 strb r0, [r4, #88] 3221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3964 .loc 1 3221 3 view .LVU1220 3224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 3965 .loc 1 3224 3 view .LVU1221 ARM GAS /tmp/cco84Mp4.s page 329 3966 .LVL324: 3967 .L239: 3225:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 3968 .loc 1 3225 1 is_stmt 0 view .LVU1222 3969 00fc 38BD pop {r3, r4, r5, pc} 3970 .LVL325: 3971 .L278: 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3972 .loc 1 3055 7 is_stmt 1 view .LVU1223 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3973 .loc 1 3055 31 is_stmt 0 view .LVU1224 3974 00fe 6B68 ldr r3, [r5, #4] 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 3975 .loc 1 3055 7 view .LVU1225 3976 0100 B3F1A07F cmp r3, #20971520 3977 0104 48D0 beq .L244 3978 0106 11D8 bhi .L245 3979 0108 B3F5400F cmp r3, #12582912 3980 010c 21D0 beq .L246 3981 010e B3F1807F cmp r3, #16777216 3982 0112 4ED0 beq .L247 3983 0114 B3F5000F cmp r3, #8388608 3984 0118 5DD1 bne .L249 3076:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 3985 .loc 1 3076 11 is_stmt 1 view .LVU1226 3986 .LVL326: 3987 .LBB506: 3988 .LBI506: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 3989 .loc 2 6714 22 view .LVU1227 3990 .LBB507: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 3991 .loc 2 6720 3 view .LVU1228 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3992 .loc 2 6725 3 view .LVU1229 3993 011a C368 ldr r3, [r0, #12] 3994 011c 23F0FB43 bic r3, r3, #2105540608 3995 0120 23F48003 bic r3, r3, #4194304 3996 0124 43F40003 orr r3, r3, #8388608 3997 0128 C360 str r3, [r0, #12] 3998 .LVL327: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 3999 .loc 2 6725 3 is_stmt 0 view .LVU1230 4000 .LBE507: 4001 .LBE506: 3077:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4002 .loc 1 3077 11 is_stmt 1 view .LVU1231 4003 .LBB509: 4004 .LBB508: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4005 .loc 2 6728 1 is_stmt 0 view .LVU1232 4006 012a 1EE0 b .L252 4007 .L245: 4008 .LBE508: 4009 .LBE509: 3055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4010 .loc 1 3055 7 view .LVU1233 ARM GAS /tmp/cco84Mp4.s page 330 4011 012c B3F1C07F cmp r3, #25165824 4012 0130 48D0 beq .L250 4013 0132 B3F1E07F cmp r3, #29360128 4014 0136 4ED1 bne .L249 3070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 4015 .loc 1 3070 11 is_stmt 1 view .LVU1234 3071:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR_INJE 4016 .loc 1 3071 43 is_stmt 0 view .LVU1235 4017 0138 AA68 ldr r2, [r5, #8] 4018 .LVL328: 4019 .LBB510: 4020 .LBI510: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4021 .loc 2 6714 22 is_stmt 1 view .LVU1236 4022 .LBB511: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4023 .loc 2 6720 3 view .LVU1237 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4024 .loc 2 6725 3 view .LVU1238 4025 013a C368 ldr r3, [r0, #12] 4026 013c 23F0FB43 bic r3, r3, #2105540608 4027 0140 23F48003 bic r3, r3, #4194304 4028 0144 02F0F842 and r2, r2, #2080374784 4029 .LVL329: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4030 .loc 2 6725 3 is_stmt 0 view .LVU1239 4031 0148 42F0E072 orr r2, r2, #29360128 4032 014c 1343 orrs r3, r3, r2 4033 014e C360 str r3, [r0, #12] 4034 .LVL330: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4035 .loc 2 6725 3 view .LVU1240 4036 .LBE511: 4037 .LBE510: 3073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4038 .loc 1 3073 11 is_stmt 1 view .LVU1241 4039 .LBB513: 4040 .LBB512: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4041 .loc 2 6728 1 is_stmt 0 view .LVU1242 4042 0150 0BE0 b .L252 4043 .LVL331: 4044 .L246: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4045 .loc 2 6728 1 view .LVU1243 4046 .LBE512: 4047 .LBE513: 3058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 4048 .loc 1 3058 11 is_stmt 1 view .LVU1244 3059:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_REGULAR)); 4049 .loc 1 3059 43 is_stmt 0 view .LVU1245 4050 0152 AA68 ldr r2, [r5, #8] 4051 .LVL332: 4052 .LBB514: 4053 .LBI514: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4054 .loc 2 6714 22 is_stmt 1 view .LVU1246 ARM GAS /tmp/cco84Mp4.s page 331 4055 .LBB515: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4056 .loc 2 6720 3 view .LVU1247 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4057 .loc 2 6725 3 view .LVU1248 4058 0154 C368 ldr r3, [r0, #12] 4059 0156 23F0FB43 bic r3, r3, #2105540608 4060 015a 23F48003 bic r3, r3, #4194304 4061 015e 02F0F842 and r2, r2, #2080374784 4062 .LVL333: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4063 .loc 2 6725 3 is_stmt 0 view .LVU1249 4064 0162 42F44002 orr r2, r2, #12582912 4065 0166 1343 orrs r3, r3, r2 4066 0168 C360 str r3, [r0, #12] 4067 .LVL334: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4068 .loc 2 6725 3 view .LVU1250 4069 .LBE515: 4070 .LBE514: 3061:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4071 .loc 1 3061 11 is_stmt 1 view .LVU1251 4072 .L252: 3093:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_TR1_AWDFILT, 4073 .loc 1 3093 7 view .LVU1252 4074 016a 2268 ldr r2, [r4] 4075 016c 136A ldr r3, [r2, #32] 4076 016e 23F4E043 bic r3, r3, #28672 4077 0172 A969 ldr r1, [r5, #24] 4078 0174 0B43 orrs r3, r3, r1 4079 0176 1362 str r3, [r2, #32] 3098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4080 .loc 1 3098 7 view .LVU1253 4081 0178 E36D ldr r3, [r4, #92] 4082 017a 23F48033 bic r3, r3, #65536 4083 017e E365 str r3, [r4, #92] 3104:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4084 .loc 1 3104 7 view .LVU1254 4085 0180 2368 ldr r3, [r4] 4086 .LVL335: 4087 .LBB516: 4088 .LBI516: 8476:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4089 .loc 2 8476 22 view .LVU1255 4090 .LBB517: 8478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4091 .loc 2 8478 3 view .LVU1256 4092 0182 8022 movs r2, #128 4093 0184 1A60 str r2, [r3] 4094 .LVL336: 8478:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4095 .loc 2 8478 3 is_stmt 0 view .LVU1257 4096 .LBE517: 4097 .LBE516: 3107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4098 .loc 1 3107 7 is_stmt 1 view .LVU1258 3107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 332 4099 .loc 1 3107 27 is_stmt 0 view .LVU1259 4100 0186 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3107:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4101 .loc 1 3107 10 view .LVU1260 4102 0188 012B cmp r3, #1 4103 018a 2BD0 beq .L282 3113:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4104 .loc 1 3113 9 is_stmt 1 view .LVU1261 4105 018c 2268 ldr r2, [r4] 4106 .LVL337: 4107 .LBB518: 4108 .LBI518: 8992:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4109 .loc 2 8992 22 view .LVU1262 4110 .LBB519: 8994:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4111 .loc 2 8994 3 view .LVU1263 4112 018e 5368 ldr r3, [r2, #4] 4113 0190 23F08003 bic r3, r3, #128 4114 0194 5360 str r3, [r2, #4] 4115 .LVL338: 8995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4116 .loc 2 8995 1 is_stmt 0 view .LVU1264 4117 0196 7AE7 b .L242 4118 .LVL339: 4119 .L244: 8995:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4120 .loc 2 8995 1 view .LVU1265 4121 .LBE519: 4122 .LBE518: 3064:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __LL_ADC_ANALOGWD_CHANNEL_GROUP(pAnalogWDGConfig->Channel 4123 .loc 1 3064 11 is_stmt 1 view .LVU1266 3065:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** LL_ADC_GROUP_INJECTED)); 4124 .loc 1 3065 43 is_stmt 0 view .LVU1267 4125 0198 AA68 ldr r2, [r5, #8] 4126 .LVL340: 4127 .LBB520: 4128 .LBI520: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4129 .loc 2 6714 22 is_stmt 1 view .LVU1268 4130 .LBB521: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4131 .loc 2 6720 3 view .LVU1269 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4132 .loc 2 6725 3 view .LVU1270 4133 019a C368 ldr r3, [r0, #12] 4134 019c 23F0FB43 bic r3, r3, #2105540608 4135 01a0 23F48003 bic r3, r3, #4194304 4136 01a4 02F0F842 and r2, r2, #2080374784 4137 .LVL341: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4138 .loc 2 6725 3 is_stmt 0 view .LVU1271 4139 01a8 42F0A072 orr r2, r2, #20971520 4140 01ac 1343 orrs r3, r3, r2 4141 01ae C360 str r3, [r0, #12] 4142 .LVL342: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), ARM GAS /tmp/cco84Mp4.s page 333 4143 .loc 2 6725 3 view .LVU1272 4144 .LBE521: 4145 .LBE520: 3067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4146 .loc 1 3067 11 is_stmt 1 view .LVU1273 4147 .LBB523: 4148 .LBB522: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4149 .loc 2 6728 1 is_stmt 0 view .LVU1274 4150 01b0 DBE7 b .L252 4151 .LVL343: 4152 .L247: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4153 .loc 2 6728 1 view .LVU1275 4154 .LBE522: 4155 .LBE523: 3080:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4156 .loc 1 3080 11 is_stmt 1 view .LVU1276 4157 .LBB524: 4158 .LBI524: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4159 .loc 2 6714 22 view .LVU1277 4160 .LBB525: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4161 .loc 2 6720 3 view .LVU1278 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4162 .loc 2 6725 3 view .LVU1279 4163 01b2 C368 ldr r3, [r0, #12] 4164 01b4 23F0FB43 bic r3, r3, #2105540608 4165 01b8 23F48003 bic r3, r3, #4194304 4166 01bc 43F08073 orr r3, r3, #16777216 4167 01c0 C360 str r3, [r0, #12] 4168 .LVL344: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4169 .loc 2 6725 3 is_stmt 0 view .LVU1280 4170 .LBE525: 4171 .LBE524: 3081:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4172 .loc 1 3081 11 is_stmt 1 view .LVU1281 4173 .LBB527: 4174 .LBB526: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4175 .loc 2 6728 1 is_stmt 0 view .LVU1282 4176 01c2 D2E7 b .L252 4177 .L250: 4178 .LBE526: 4179 .LBE527: 3084:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4180 .loc 1 3084 11 is_stmt 1 view .LVU1283 4181 .LVL345: 4182 .LBB528: 4183 .LBI528: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4184 .loc 2 6714 22 view .LVU1284 4185 .LBB529: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4186 .loc 2 6720 3 view .LVU1285 ARM GAS /tmp/cco84Mp4.s page 334 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4187 .loc 2 6725 3 view .LVU1286 4188 01c4 C368 ldr r3, [r0, #12] 4189 01c6 23F0FB43 bic r3, r3, #2105540608 4190 01ca 23F48003 bic r3, r3, #4194304 4191 01ce 43F0C073 orr r3, r3, #25165824 4192 01d2 C360 str r3, [r0, #12] 4193 .LVL346: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4194 .loc 2 6725 3 is_stmt 0 view .LVU1287 4195 .LBE529: 4196 .LBE528: 3085:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4197 .loc 1 3085 11 is_stmt 1 view .LVU1288 4198 .LBB531: 4199 .LBB530: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4200 .loc 2 6728 1 is_stmt 0 view .LVU1289 4201 01d4 C9E7 b .L252 4202 .L249: 4203 .LBE530: 4204 .LBE531: 3088:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4205 .loc 1 3088 11 is_stmt 1 view .LVU1290 4206 .LVL347: 4207 .LBB532: 4208 .LBI532: 6714:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4209 .loc 2 6714 22 view .LVU1291 4210 .LBB533: 6720:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ((AWDy & ADC_AWD_CRX_REGOFFSET_MASK) >> ADC_AWD_CRX_RE 4211 .loc 2 6720 3 view .LVU1292 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4212 .loc 2 6725 3 view .LVU1293 4213 01d6 C368 ldr r3, [r0, #12] 4214 01d8 23F0FB43 bic r3, r3, #2105540608 4215 01dc 23F48003 bic r3, r3, #4194304 4216 01e0 C360 str r3, [r0, #12] 4217 .LVL348: 6725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** (AWDy & ADC_AWD_CR_ALL_CHANNEL_MASK), 4218 .loc 2 6725 3 is_stmt 0 view .LVU1294 4219 .LBE533: 4220 .LBE532: 3089:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4221 .loc 1 3089 11 is_stmt 1 view .LVU1295 4222 .LBB535: 4223 .LBB534: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4224 .loc 2 6728 1 is_stmt 0 view .LVU1296 4225 01e2 C2E7 b .L252 4226 .LVL349: 4227 .L282: 6728:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4228 .loc 2 6728 1 view .LVU1297 4229 .LBE534: 4230 .LBE535: 3109:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/cco84Mp4.s page 335 4231 .loc 1 3109 9 is_stmt 1 view .LVU1298 4232 01e4 2268 ldr r2, [r4] 4233 .LVL350: 4234 .LBB536: 4235 .LBI536: 8871:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4236 .loc 2 8871 22 view .LVU1299 4237 .LBB537: 8873:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4238 .loc 2 8873 3 view .LVU1300 4239 01e6 5368 ldr r3, [r2, #4] 4240 01e8 43F08003 orr r3, r3, #128 4241 01ec 5360 str r3, [r2, #4] 4242 .LVL351: 8874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4243 .loc 2 8874 1 is_stmt 0 view .LVU1301 4244 01ee 4EE7 b .L242 4245 .LVL352: 4246 .L255: 8874:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4247 .loc 2 8874 1 view .LVU1302 4248 .LBE537: 4249 .LBE536: 3119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4250 .loc 1 3119 7 view .LVU1303 4251 01f0 B3F1C07F cmp r3, #25165824 4252 01f4 3FF432AF beq .L256 4253 01f8 B3F1E07F cmp r3, #29360128 4254 01fc 03D0 beq .L254 4255 .L257: 3146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4256 .loc 1 3146 11 is_stmt 1 view .LVU1304 4257 01fe 0022 movs r2, #0 4258 .LVL353: 3146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4259 .loc 1 3146 11 is_stmt 0 view .LVU1305 4260 0200 FFF7FEFF bl LL_ADC_SetAnalogWDMonitChannels 4261 .LVL354: 3147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4262 .loc 1 3147 11 is_stmt 1 view .LVU1306 4263 0204 2DE7 b .L262 4264 .LVL355: 4265 .L254: 3126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4266 .loc 1 3126 11 view .LVU1307 3126:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4267 .loc 1 3126 14 is_stmt 0 view .LVU1308 4268 0206 384B ldr r3, .L285+8 4269 0208 9942 cmp r1, r3 4270 020a 0DD0 beq .L283 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4271 .loc 1 3133 13 is_stmt 1 view .LVU1309 4272 020c AB68 ldr r3, [r5, #8] 4273 020e C3F31202 ubfx r2, r3, #0, #19 4274 .LVL356: 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4275 .loc 1 3133 13 is_stmt 0 view .LVU1310 ARM GAS /tmp/cco84Mp4.s page 336 4276 0212 1ABB cbnz r2, .L263 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4277 .loc 1 3133 13 discriminator 1 view .LVU1311 4278 0214 C3F38463 ubfx r3, r3, #26, #5 4279 0218 0122 movs r2, #1 4280 021a 9A40 lsls r2, r2, r3 4281 .L264: 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4282 .loc 1 3133 13 discriminator 4 view .LVU1312 4283 021c D0F8A430 ldr r3, [r0, #164] 4284 0220 1343 orrs r3, r3, r2 4285 0222 C0F8A430 str r3, [r0, #164] 4286 0226 1CE7 b .L262 4287 .LVL357: 4288 .L283: 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4289 .loc 1 3128 13 is_stmt 1 view .LVU1313 4290 0228 AB68 ldr r3, [r5, #8] 4291 022a C3F31202 ubfx r2, r3, #0, #19 4292 .LVL358: 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4293 .loc 1 3128 13 is_stmt 0 view .LVU1314 4294 022e 4AB9 cbnz r2, .L259 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4295 .loc 1 3128 13 discriminator 1 view .LVU1315 4296 0230 C3F38463 ubfx r3, r3, #26, #5 4297 0234 0122 movs r2, #1 4298 0236 9A40 lsls r2, r2, r3 4299 .L260: 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4300 .loc 1 3128 13 discriminator 4 view .LVU1316 4301 0238 D0F8A030 ldr r3, [r0, #160] 4302 023c 1343 orrs r3, r3, r2 4303 023e C0F8A030 str r3, [r0, #160] 4304 0242 0EE7 b .L262 4305 .L259: 4306 .LVL359: 4307 .LBB538: 4308 .LBI538: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4309 .loc 3 1048 31 is_stmt 1 view .LVU1317 4310 .LBB539: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 4311 .loc 3 1050 3 view .LVU1318 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 4312 .loc 3 1055 4 view .LVU1319 4313 .syntax unified 4314 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 4315 0244 93FAA3F3 rbit r3, r3 4316 @ 0 "" 2 4317 .LVL360: 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4318 .loc 3 1068 3 view .LVU1320 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4319 .loc 3 1068 3 is_stmt 0 view .LVU1321 4320 .thumb 4321 .syntax unified ARM GAS /tmp/cco84Mp4.s page 337 4322 .LBE539: 4323 .LBE538: 4324 .LBB540: 4325 .LBI540: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4326 .loc 3 1078 30 is_stmt 1 view .LVU1322 4327 .LBB541: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4328 .loc 3 1089 3 view .LVU1323 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4329 .loc 3 1089 6 is_stmt 0 view .LVU1324 4330 0248 33B1 cbz r3, .L275 4331 .loc 3 1093 3 is_stmt 1 view .LVU1325 4332 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1326 4333 024a B3FA83F3 clz r3, r3 4334 .LVL361: 4335 .L261: 4336 .loc 3 1093 10 discriminator 1 view .LVU1327 4337 .LBE541: 4338 .LBE540: 3128:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4339 .loc 1 3128 13 discriminator 2 view .LVU1328 4340 024e 03F01F03 and r3, r3, #31 4341 0252 0122 movs r2, #1 4342 0254 9A40 lsls r2, r2, r3 4343 0256 EFE7 b .L260 4344 .LVL362: 4345 .L275: 4346 .LBB543: 4347 .LBB542: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4348 .loc 3 1091 12 view .LVU1329 4349 0258 2023 movs r3, #32 4350 .LVL363: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4351 .loc 3 1091 12 view .LVU1330 4352 025a F8E7 b .L261 4353 .LVL364: 4354 .L263: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4355 .loc 3 1091 12 view .LVU1331 4356 .LBE542: 4357 .LBE543: 4358 .LBB544: 4359 .LBI544: 1048:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4360 .loc 3 1048 31 is_stmt 1 view .LVU1332 4361 .LBB545: 1050:Drivers/CMSIS/Include/cmsis_gcc.h **** 4362 .loc 3 1050 3 view .LVU1333 1055:Drivers/CMSIS/Include/cmsis_gcc.h **** #else 4363 .loc 3 1055 4 view .LVU1334 4364 .syntax unified 4365 @ 1055 "Drivers/CMSIS/Include/cmsis_gcc.h" 1 4366 025c 93FAA3F3 rbit r3, r3 4367 @ 0 "" 2 4368 .LVL365: ARM GAS /tmp/cco84Mp4.s page 338 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4369 .loc 3 1068 3 view .LVU1335 1068:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4370 .loc 3 1068 3 is_stmt 0 view .LVU1336 4371 .thumb 4372 .syntax unified 4373 .LBE545: 4374 .LBE544: 4375 .LBB546: 4376 .LBI546: 1078:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4377 .loc 3 1078 30 is_stmt 1 view .LVU1337 4378 .LBB547: 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4379 .loc 3 1089 3 view .LVU1338 1089:Drivers/CMSIS/Include/cmsis_gcc.h **** { 4380 .loc 3 1089 6 is_stmt 0 view .LVU1339 4381 0260 33B1 cbz r3, .L276 4382 .loc 3 1093 3 is_stmt 1 view .LVU1340 4383 .loc 3 1093 10 is_stmt 0 discriminator 1 view .LVU1341 4384 0262 B3FA83F3 clz r3, r3 4385 .LVL366: 4386 .L265: 4387 .loc 3 1093 10 discriminator 1 view .LVU1342 4388 .LBE547: 4389 .LBE546: 3133:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB(pAnalogWDGConfig->Channel) & 0x1FUL))); 4390 .loc 1 3133 13 discriminator 2 view .LVU1343 4391 0266 03F01F03 and r3, r3, #31 4392 026a 0122 movs r2, #1 4393 026c 9A40 lsls r2, r2, r3 4394 026e D5E7 b .L264 4395 .LVL367: 4396 .L276: 4397 .LBB549: 4398 .LBB548: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4399 .loc 3 1091 12 view .LVU1344 4400 0270 2023 movs r3, #32 4401 .LVL368: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4402 .loc 3 1091 12 view .LVU1345 4403 0272 F8E7 b .L265 4404 .LVL369: 4405 .L279: 1091:Drivers/CMSIS/Include/cmsis_gcc.h **** } 4406 .loc 3 1091 12 view .LVU1346 4407 .LBE548: 4408 .LBE549: 3153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4409 .loc 1 3153 9 is_stmt 1 view .LVU1347 4410 0274 E36D ldr r3, [r4, #92] 4411 0276 23F40033 bic r3, r3, #131072 4412 027a E365 str r3, [r4, #92] 3159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4413 .loc 1 3159 9 view .LVU1348 4414 027c 2368 ldr r3, [r4] ARM GAS /tmp/cco84Mp4.s page 339 4415 .LVL370: 4416 .LBB550: 4417 .LBI550: 8487:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4418 .loc 2 8487 22 view .LVU1349 4419 .LBB551: 8489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4420 .loc 2 8489 3 view .LVU1350 4421 027e 4FF48072 mov r2, #256 4422 0282 1A60 str r2, [r3] 4423 .LVL371: 8489:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4424 .loc 2 8489 3 is_stmt 0 view .LVU1351 4425 .LBE551: 4426 .LBE550: 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4427 .loc 1 3162 9 is_stmt 1 view .LVU1352 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4428 .loc 1 3162 29 is_stmt 0 view .LVU1353 4429 0284 2B7B ldrb r3, [r5, #12] @ zero_extendqisi2 3162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4430 .loc 1 3162 12 view .LVU1354 4431 0286 012B cmp r3, #1 4432 0288 05D0 beq .L284 3168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4433 .loc 1 3168 11 is_stmt 1 view .LVU1355 4434 028a 2268 ldr r2, [r4] 4435 .LVL372: 4436 .LBB552: 4437 .LBI552: 9003:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4438 .loc 2 9003 22 view .LVU1356 4439 .LBB553: 9005:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4440 .loc 2 9005 3 view .LVU1357 4441 028c 5368 ldr r3, [r2, #4] 4442 028e 23F48073 bic r3, r3, #256 4443 0292 5360 str r3, [r2, #4] 4444 .LVL373: 9006:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4445 .loc 2 9006 1 is_stmt 0 view .LVU1358 4446 0294 FBE6 b .L242 4447 .L284: 4448 .LBE553: 4449 .LBE552: 3164:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4450 .loc 1 3164 11 is_stmt 1 view .LVU1359 4451 0296 2268 ldr r2, [r4] 4452 .LVL374: 4453 .LBB554: 4454 .LBI554: 8882:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4455 .loc 2 8882 22 view .LVU1360 4456 .LBB555: 8884:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4457 .loc 2 8884 3 view .LVU1361 4458 0298 5368 ldr r3, [r2, #4] ARM GAS /tmp/cco84Mp4.s page 340 4459 029a 43F48073 orr r3, r3, #256 4460 029e 5360 str r3, [r2, #4] 4461 .LVL375: 8885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4462 .loc 2 8885 1 is_stmt 0 view .LVU1362 4463 02a0 F5E6 b .L242 4464 .L280: 8885:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4465 .loc 2 8885 1 view .LVU1363 4466 .LBE555: 4467 .LBE554: 3186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4468 .loc 1 3186 11 is_stmt 1 view .LVU1364 4469 02a2 2268 ldr r2, [r4] 4470 .LVL376: 4471 .LBB556: 4472 .LBI556: 8893:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4473 .loc 2 8893 22 view .LVU1365 4474 .LBB557: 8895:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4475 .loc 2 8895 3 view .LVU1366 4476 02a4 5368 ldr r3, [r2, #4] 4477 02a6 43F40073 orr r3, r3, #512 4478 02aa 5360 str r3, [r2, #4] 4479 .LVL377: 8896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4480 .loc 2 8896 1 is_stmt 0 view .LVU1367 4481 02ac EFE6 b .L242 4482 .L281: 8896:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 4483 .loc 2 8896 1 view .LVU1368 4484 .LBE557: 4485 .LBE556: 3203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Low 4486 .loc 1 3203 5 is_stmt 1 view .LVU1369 3203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Low 4487 .loc 1 3203 38 is_stmt 0 view .LVU1370 4488 02ae 2969 ldr r1, [r5, #16] 4489 02b0 2068 ldr r0, [r4] 4490 02b2 C268 ldr r2, [r0, #12] 4491 02b4 C2F3C102 ubfx r2, r2, #3, #2 4492 02b8 5200 lsls r2, r2, #1 3203:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Low 4493 .loc 1 3203 36 view .LVU1371 4494 02ba 01FA02FC lsl ip, r1, r2 4495 .LVL378: 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4496 .loc 1 3204 5 is_stmt 1 view .LVU1372 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4497 .loc 1 3204 38 is_stmt 0 view .LVU1373 4498 02be 6969 ldr r1, [r5, #20] 4499 02c0 C268 ldr r2, [r0, #12] 4500 02c2 C2F3C102 ubfx r2, r2, #3, #2 4501 02c6 5200 lsls r2, r2, #1 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4502 .loc 1 3204 36 view .LVU1374 ARM GAS /tmp/cco84Mp4.s page 341 4503 02c8 9140 lsls r1, r1, r2 4504 .LVL379: 3204:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4505 .loc 1 3204 36 view .LVU1375 4506 02ca 07E7 b .L270 4507 .LVL380: 4508 .L271: 3212:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_awd_low_threshold_shifted = ADC_AWD23THRESHOLD_SHIFT_RESOLUTION(hadc, pAnalogWDGConfig->Lo 4509 .loc 1 3212 38 discriminator 2 view .LVU1376 4510 02cc 2A69 ldr r2, [r5, #16] 4511 02ce 4FEA820C lsl ip, r2, #2 4512 02d2 F3E6 b .L272 4513 .LVL381: 4514 .L273: 3213:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4515 .loc 1 3213 38 discriminator 2 view .LVU1377 4516 02d4 6969 ldr r1, [r5, #20] 4517 02d6 8900 lsls r1, r1, #2 4518 02d8 00E7 b .L270 4519 .LVL382: 4520 .L274: 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4521 .loc 1 3037 3 discriminator 1 view .LVU1378 4522 02da 0220 movs r0, #2 4523 .LVL383: 3037:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4524 .loc 1 3037 3 discriminator 1 view .LVU1379 4525 02dc 0EE7 b .L239 4526 .L286: 4527 02de 00BF .align 2 4528 .L285: 4529 02e0 0000C07D .word 2109734912 4530 02e4 FFFF8701 .word 25690111 4531 02e8 FFFF1700 .word 1572863 4532 .cfi_endproc 4533 .LFE350: 4535 .section .text.HAL_ADC_GetState,"ax",%progbits 4536 .align 1 4537 .global HAL_ADC_GetState 4538 .syntax unified 4539 .thumb 4540 .thumb_func 4542 HAL_ADC_GetState: 4543 .LVL384: 4544 .LFB351: 3260:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 4545 .loc 1 3260 1 is_stmt 1 view -0 4546 .cfi_startproc 4547 @ args = 0, pretend = 0, frame = 0 4548 @ frame_needed = 0, uses_anonymous_args = 0 4549 @ link register save eliminated. 3262:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4550 .loc 1 3262 3 view .LVU1381 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4551 .loc 1 3265 3 view .LVU1382 3265:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4552 .loc 1 3265 14 is_stmt 0 view .LVU1383 ARM GAS /tmp/cco84Mp4.s page 342 4553 0000 C06D ldr r0, [r0, #92] 4554 .LVL385: 3266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4555 .loc 1 3266 1 view .LVU1384 4556 0002 7047 bx lr 4557 .cfi_endproc 4558 .LFE351: 4560 .section .text.HAL_ADC_GetError,"ax",%progbits 4561 .align 1 4562 .global HAL_ADC_GetError 4563 .syntax unified 4564 .thumb 4565 .thumb_func 4567 HAL_ADC_GetError: 4568 .LVL386: 4569 .LFB352: 3274:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Check the parameters */ 4570 .loc 1 3274 1 is_stmt 1 view -0 4571 .cfi_startproc 4572 @ args = 0, pretend = 0, frame = 0 4573 @ frame_needed = 0, uses_anonymous_args = 0 4574 @ link register save eliminated. 3276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4575 .loc 1 3276 3 view .LVU1386 3278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4576 .loc 1 3278 3 view .LVU1387 3278:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4577 .loc 1 3278 14 is_stmt 0 view .LVU1388 4578 0000 006E ldr r0, [r0, #96] 4579 .LVL387: 3279:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4580 .loc 1 3279 1 view .LVU1389 4581 0002 7047 bx lr 4582 .cfi_endproc 4583 .LFE352: 4585 .section .text.ADC_ConversionStop,"ax",%progbits 4586 .align 1 4587 .global ADC_ConversionStop 4588 .syntax unified 4589 .thumb 4590 .thumb_func 4592 ADC_ConversionStop: 4593 .LVL388: 4594 .LFB353: 3304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4595 .loc 1 3304 1 is_stmt 1 view -0 4596 .cfi_startproc 4597 @ args = 0, pretend = 0, frame = 0 4598 @ frame_needed = 0, uses_anonymous_args = 0 3304:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4599 .loc 1 3304 1 is_stmt 0 view .LVU1391 4600 0000 70B5 push {r4, r5, r6, lr} 4601 .LCFI20: 4602 .cfi_def_cfa_offset 16 4603 .cfi_offset 4, -16 4604 .cfi_offset 5, -12 4605 .cfi_offset 6, -8 ARM GAS /tmp/cco84Mp4.s page 343 4606 .cfi_offset 14, -4 4607 0002 0446 mov r4, r0 3305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t Conversion_Timeout_CPU_cycles = 0UL; 4608 .loc 1 3305 3 is_stmt 1 view .LVU1392 3306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 4609 .loc 1 3306 3 view .LVU1393 4610 .LVL389: 3307:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_ADC_CR_ADSTART_JADSTART; 4611 .loc 1 3307 3 view .LVU1394 3308:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_regular; 4612 .loc 1 3308 3 view .LVU1395 3309:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_adc_is_conversion_on_going_injected; 4613 .loc 1 3309 3 view .LVU1396 3310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4614 .loc 1 3310 3 view .LVU1397 3313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** assert_param(IS_ADC_CONVERSION_GROUP(ConversionGroup)); 4615 .loc 1 3313 3 view .LVU1398 3314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4616 .loc 1 3314 3 view .LVU1399 3318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 4617 .loc 1 3318 3 view .LVU1400 3318:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance); 4618 .loc 1 3318 79 is_stmt 0 view .LVU1401 4619 0004 0368 ldr r3, [r0] 4620 .LVL390: 4621 .LBB558: 4622 .LBI558: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4623 .loc 2 7866 26 is_stmt 1 view .LVU1402 4624 .LBB559: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4625 .loc 2 7868 3 view .LVU1403 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4626 .loc 2 7868 12 is_stmt 0 view .LVU1404 4627 0006 9A68 ldr r2, [r3, #8] 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4628 .loc 2 7868 74 view .LVU1405 4629 0008 12F00402 ands r2, r2, #4 4630 000c 00D0 beq .L290 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4631 .loc 2 7868 74 discriminator 1 view .LVU1406 4632 000e 0122 movs r2, #1 4633 .L290: 4634 .LVL391: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4635 .loc 2 7868 74 discriminator 1 view .LVU1407 4636 .LBE559: 4637 .LBE558: 3319:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if ((tmp_adc_is_conversion_on_going_regular != 0UL) 4638 .loc 1 3319 3 is_stmt 1 view .LVU1408 4639 .LBB560: 4640 .LBI560: 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4641 .loc 2 8092 26 view .LVU1409 4642 .LBB561: 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4643 .loc 2 8094 3 view .LVU1410 ARM GAS /tmp/cco84Mp4.s page 344 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4644 .loc 2 8094 12 is_stmt 0 view .LVU1411 4645 0010 9868 ldr r0, [r3, #8] 4646 .LVL392: 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4647 .loc 2 8094 76 view .LVU1412 4648 0012 10F00800 ands r0, r0, #8 4649 0016 00D0 beq .L291 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4650 .loc 2 8094 76 discriminator 1 view .LVU1413 4651 0018 0120 movs r0, #1 4652 .L291: 4653 .LVL393: 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4654 .loc 2 8094 76 discriminator 1 view .LVU1414 4655 .LBE561: 4656 .LBE560: 3320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 4657 .loc 1 3320 3 is_stmt 1 view .LVU1415 3320:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_adc_is_conversion_on_going_injected != 0UL) 4658 .loc 1 3320 6 is_stmt 0 view .LVU1416 4659 001a 0AB9 cbnz r2, .L292 3321:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4660 .loc 1 3321 7 view .LVU1417 4661 001c 0028 cmp r0, #0 4662 001e 6DD0 beq .L305 4663 .L292: 3330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4664 .loc 1 3330 5 is_stmt 1 view .LVU1418 3330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4665 .loc 1 3330 25 is_stmt 0 view .LVU1419 4666 0020 DA68 ldr r2, [r3, #12] 4667 .LVL394: 3330:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (hadc->Init.ContinuousConvMode == ENABLE) 4668 .loc 1 3330 8 view .LVU1420 4669 0022 12F0007F tst r2, #33554432 4670 0026 04D0 beq .L294 3332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4671 .loc 1 3332 9 view .LVU1421 4672 0028 A08B ldrh r0, [r4, #28] 4673 .LVL395: 3332:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 4674 .loc 1 3332 9 view .LVU1422 4675 002a 40F20112 movw r2, #257 4676 002e 9042 cmp r0, r2 4677 0030 4ED0 beq .L311 4678 .L294: 3359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4679 .loc 1 3359 5 is_stmt 1 view .LVU1423 3359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4680 .loc 1 3359 8 is_stmt 0 view .LVU1424 4681 0032 0229 cmp r1, #2 4682 0034 12D0 beq .L299 4683 .LVL396: 4684 .L298: 3362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4685 .loc 1 3362 7 is_stmt 1 view .LVU1425 ARM GAS /tmp/cco84Mp4.s page 345 3362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4686 .loc 1 3362 46 is_stmt 0 view .LVU1426 4687 0036 2368 ldr r3, [r4] 4688 .LVL397: 4689 .LBB562: 4690 .LBI562: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4691 .loc 2 7866 26 is_stmt 1 view .LVU1427 4692 .LBB563: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4693 .loc 2 7868 3 view .LVU1428 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4694 .loc 2 7868 12 is_stmt 0 view .LVU1429 4695 0038 9A68 ldr r2, [r3, #8] 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4696 .loc 2 7868 74 view .LVU1430 4697 003a 12F0040F tst r2, #4 4698 003e 0BD0 beq .L300 4699 .LVL398: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4700 .loc 2 7868 74 view .LVU1431 4701 .LBE563: 4702 .LBE562: 3364:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4703 .loc 1 3364 9 is_stmt 1 view .LVU1432 4704 .LBB564: 4705 .LBI564: 7755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4706 .loc 2 7755 26 view .LVU1433 4707 .LBB565: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4708 .loc 2 7757 3 view .LVU1434 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4709 .loc 2 7757 12 is_stmt 0 view .LVU1435 4710 0040 9A68 ldr r2, [r3, #8] 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4711 .loc 2 7757 70 view .LVU1436 4712 0042 12F0020F tst r2, #2 4713 0046 07D1 bne .L300 4714 .LVL399: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4715 .loc 2 7757 70 view .LVU1437 4716 .LBE565: 4717 .LBE564: 3367:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4718 .loc 1 3367 11 is_stmt 1 view .LVU1438 4719 .LBB566: 4720 .LBI566: 7850:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4721 .loc 2 7850 22 view .LVU1439 4722 .LBB567: 7855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4723 .loc 2 7855 3 view .LVU1440 4724 0048 9A68 ldr r2, [r3, #8] 4725 004a 22F00042 bic r2, r2, #-2147483648 4726 004e 22F03F02 bic r2, r2, #63 4727 0052 42F01002 orr r2, r2, #16 ARM GAS /tmp/cco84Mp4.s page 346 4728 0056 9A60 str r2, [r3, #8] 4729 .LVL400: 4730 .L300: 7855:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4731 .loc 2 7855 3 is_stmt 0 view .LVU1441 4732 .LBE567: 4733 .LBE566: 3373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4734 .loc 1 3373 5 is_stmt 1 view .LVU1442 3373:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4735 .loc 1 3373 8 is_stmt 0 view .LVU1443 4736 0058 0129 cmp r1, #1 4737 005a 47D0 beq .L307 4738 .L299: 3376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4739 .loc 1 3376 7 is_stmt 1 view .LVU1444 3376:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4740 .loc 1 3376 46 is_stmt 0 view .LVU1445 4741 005c 2368 ldr r3, [r4] 4742 .LVL401: 4743 .LBB568: 4744 .LBI568: 8092:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4745 .loc 2 8092 26 is_stmt 1 view .LVU1446 4746 .LBB569: 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4747 .loc 2 8094 3 view .LVU1447 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4748 .loc 2 8094 12 is_stmt 0 view .LVU1448 4749 005e 9A68 ldr r2, [r3, #8] 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4750 .loc 2 8094 76 view .LVU1449 4751 0060 12F0080F tst r2, #8 4752 0064 0BD0 beq .L302 4753 .LVL402: 8094:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4754 .loc 2 8094 76 view .LVU1450 4755 .LBE569: 4756 .LBE568: 3378:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4757 .loc 1 3378 9 is_stmt 1 view .LVU1451 4758 .LBB570: 4759 .LBI570: 7755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4760 .loc 2 7755 26 view .LVU1452 4761 .LBB571: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4762 .loc 2 7757 3 view .LVU1453 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4763 .loc 2 7757 12 is_stmt 0 view .LVU1454 4764 0066 9A68 ldr r2, [r3, #8] 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4765 .loc 2 7757 70 view .LVU1455 4766 0068 12F0020F tst r2, #2 4767 006c 07D1 bne .L302 4768 .LVL403: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 347 4769 .loc 2 7757 70 view .LVU1456 4770 .LBE571: 4771 .LBE570: 3381:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4772 .loc 1 3381 11 is_stmt 1 view .LVU1457 4773 .LBB572: 4774 .LBI572: 8076:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4775 .loc 2 8076 22 view .LVU1458 4776 .LBB573: 8081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4777 .loc 2 8081 3 view .LVU1459 4778 006e 9A68 ldr r2, [r3, #8] 4779 0070 22F00042 bic r2, r2, #-2147483648 4780 0074 22F03F02 bic r2, r2, #63 4781 0078 42F02002 orr r2, r2, #32 4782 007c 9A60 str r2, [r3, #8] 4783 .LVL404: 4784 .L302: 8081:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4785 .loc 2 8081 3 is_stmt 0 view .LVU1460 4786 .LBE573: 4787 .LBE572: 3387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4788 .loc 1 3387 5 is_stmt 1 view .LVU1461 4789 007e 0229 cmp r1, #2 4790 0080 36D0 beq .L308 4791 0082 0329 cmp r1, #3 4792 0084 36D1 bne .L309 4793 0086 0C25 movs r5, #12 4794 .L301: 4795 .LVL405: 3402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4796 .loc 1 3402 5 view .LVU1462 3402:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4797 .loc 1 3402 17 is_stmt 0 view .LVU1463 4798 0088 FFF7FEFF bl HAL_GetTick 4799 .LVL406: 4800 008c 0646 mov r6, r0 4801 .LVL407: 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4802 .loc 1 3404 5 is_stmt 1 view .LVU1464 4803 .L303: 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4804 .loc 1 3404 63 view .LVU1465 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4805 .loc 1 3404 17 is_stmt 0 view .LVU1466 4806 008e 2368 ldr r3, [r4] 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4807 .loc 1 3404 27 view .LVU1467 4808 0090 9B68 ldr r3, [r3, #8] 3404:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4809 .loc 1 3404 63 view .LVU1468 4810 0092 2B42 tst r3, r5 4811 0094 30D0 beq .L312 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4812 .loc 1 3406 7 is_stmt 1 view .LVU1469 ARM GAS /tmp/cco84Mp4.s page 348 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4813 .loc 1 3406 12 is_stmt 0 view .LVU1470 4814 0096 FFF7FEFF bl HAL_GetTick 4815 .LVL408: 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4816 .loc 1 3406 26 discriminator 1 view .LVU1471 4817 009a 801B subs r0, r0, r6 3406:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4818 .loc 1 3406 10 discriminator 1 view .LVU1472 4819 009c 0528 cmp r0, #5 4820 009e F6D9 bls .L303 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4821 .loc 1 3409 9 is_stmt 1 view .LVU1473 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4822 .loc 1 3409 18 is_stmt 0 view .LVU1474 4823 00a0 2368 ldr r3, [r4] 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4824 .loc 1 3409 28 view .LVU1475 4825 00a2 9B68 ldr r3, [r3, #8] 3409:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4826 .loc 1 3409 12 view .LVU1476 4827 00a4 2B42 tst r3, r5 4828 00a6 F2D0 beq .L303 3412:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4829 .loc 1 3412 11 is_stmt 1 view .LVU1477 4830 00a8 E36D ldr r3, [r4, #92] 4831 00aa 43F01003 orr r3, r3, #16 4832 00ae E365 str r3, [r4, #92] 3415:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4833 .loc 1 3415 11 view .LVU1478 4834 00b0 236E ldr r3, [r4, #96] 4835 00b2 43F00103 orr r3, r3, #1 4836 00b6 2366 str r3, [r4, #96] 3417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4837 .loc 1 3417 11 view .LVU1479 3417:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4838 .loc 1 3417 18 is_stmt 0 view .LVU1480 4839 00b8 0120 movs r0, #1 4840 00ba 1EE0 b .L293 4841 .LVL409: 4842 .L314: 3344:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4843 .loc 1 3344 11 is_stmt 1 view .LVU1481 4844 00bc E36D ldr r3, [r4, #92] 4845 00be 43F01003 orr r3, r3, #16 4846 00c2 E365 str r3, [r4, #92] 3347:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4847 .loc 1 3347 11 view .LVU1482 4848 00c4 236E ldr r3, [r4, #96] 4849 00c6 43F00103 orr r3, r3, #1 4850 00ca 2366 str r3, [r4, #96] 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4851 .loc 1 3349 11 view .LVU1483 3349:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4852 .loc 1 3349 18 is_stmt 0 view .LVU1484 4853 00cc 0120 movs r0, #1 4854 00ce 14E0 b .L293 ARM GAS /tmp/cco84Mp4.s page 349 4855 .LVL410: 4856 .L311: 3306:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t conversion_group_reassigned = ConversionGroup; 4857 .loc 1 3306 12 view .LVU1485 4858 00d0 0022 movs r2, #0 4859 .LVL411: 4860 .L295: 3339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4861 .loc 1 3339 54 is_stmt 1 view .LVU1486 3339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4862 .loc 1 3339 14 is_stmt 0 view .LVU1487 4863 00d2 1968 ldr r1, [r3] 3339:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4864 .loc 1 3339 54 view .LVU1488 4865 00d4 11F0400F tst r1, #64 4866 00d8 04D1 bne .L313 3341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4867 .loc 1 3341 9 is_stmt 1 view .LVU1489 3341:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4868 .loc 1 3341 12 is_stmt 0 view .LVU1490 4869 00da 0949 ldr r1, .L315 4870 00dc 8A42 cmp r2, r1 4871 00de EDD8 bhi .L314 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4872 .loc 1 3351 9 is_stmt 1 view .LVU1491 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4873 .loc 1 3351 39 is_stmt 0 view .LVU1492 4874 00e0 0132 adds r2, r2, #1 4875 .LVL412: 3351:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4876 .loc 1 3351 39 view .LVU1493 4877 00e2 F6E7 b .L295 4878 .L313: 3355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4879 .loc 1 3355 7 is_stmt 1 view .LVU1494 4880 00e4 4022 movs r2, #64 4881 .LVL413: 3355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4882 .loc 1 3355 7 is_stmt 0 view .LVU1495 4883 00e6 1A60 str r2, [r3] 4884 .LVL414: 3359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4885 .loc 1 3359 5 is_stmt 1 view .LVU1496 3336:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4886 .loc 1 3336 35 is_stmt 0 view .LVU1497 4887 00e8 0121 movs r1, #1 4888 00ea A4E7 b .L298 4889 .LVL415: 4890 .L307: 3397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4891 .loc 1 3397 37 view .LVU1498 4892 00ec 0425 movs r5, #4 4893 00ee CBE7 b .L301 4894 .L308: 3393:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4895 .loc 1 3393 37 view .LVU1499 4896 00f0 0825 movs r5, #8 ARM GAS /tmp/cco84Mp4.s page 350 4897 00f2 C9E7 b .L301 4898 .L309: 3397:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 4899 .loc 1 3397 37 view .LVU1500 4900 00f4 0425 movs r5, #4 4901 00f6 C7E7 b .L301 4902 .LVL416: 4903 .L312: 3425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4904 .loc 1 3425 10 view .LVU1501 4905 00f8 0020 movs r0, #0 4906 .LVL417: 4907 .L293: 3426:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4908 .loc 1 3426 1 view .LVU1502 4909 00fa 70BD pop {r4, r5, r6, pc} 4910 .LVL418: 4911 .L305: 3425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4912 .loc 1 3425 10 view .LVU1503 4913 00fc 0020 movs r0, #0 4914 .LVL419: 3425:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 4915 .loc 1 3425 10 view .LVU1504 4916 00fe FCE7 b .L293 4917 .L316: 4918 .align 2 4919 .L315: 4920 0100 FFFF3FA3 .word -1556086785 4921 .cfi_endproc 4922 .LFE353: 4924 .section .text.ADC_Enable,"ax",%progbits 4925 .align 1 4926 .global ADC_Enable 4927 .syntax unified 4928 .thumb 4929 .thumb_func 4931 ADC_Enable: 4932 .LVL420: 4933 .LFB354: 3436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4934 .loc 1 3436 1 is_stmt 1 view -0 4935 .cfi_startproc 4936 @ args = 0, pretend = 0, frame = 8 4937 @ frame_needed = 0, uses_anonymous_args = 0 3436:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 4938 .loc 1 3436 1 is_stmt 0 view .LVU1506 4939 0000 30B5 push {r4, r5, lr} 4940 .LCFI21: 4941 .cfi_def_cfa_offset 12 4942 .cfi_offset 4, -12 4943 .cfi_offset 5, -8 4944 .cfi_offset 14, -4 4945 0002 83B0 sub sp, sp, #12 4946 .LCFI22: 4947 .cfi_def_cfa_offset 24 3437:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __IO uint32_t wait_loop_index = 0UL; ARM GAS /tmp/cco84Mp4.s page 351 4948 .loc 1 3437 3 is_stmt 1 view .LVU1507 3438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4949 .loc 1 3438 3 view .LVU1508 3438:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4950 .loc 1 3438 17 is_stmt 0 view .LVU1509 4951 0004 0023 movs r3, #0 4952 0006 0193 str r3, [sp, #4] 3444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4953 .loc 1 3444 3 is_stmt 1 view .LVU1510 3444:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 4954 .loc 1 3444 28 is_stmt 0 view .LVU1511 4955 0008 0368 ldr r3, [r0] 4956 .LVL421: 4957 .LBB574: 4958 .LBI574: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4959 .loc 2 7744 26 is_stmt 1 view .LVU1512 4960 .LBB575: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4961 .loc 2 7746 3 view .LVU1513 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4962 .loc 2 7746 12 is_stmt 0 view .LVU1514 4963 000a 9A68 ldr r2, [r3, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4964 .loc 2 7746 68 view .LVU1515 4965 000c 12F0010F tst r2, #1 4966 0010 58D1 bne .L326 4967 0012 0446 mov r4, r0 4968 .LVL422: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 4969 .loc 2 7746 68 view .LVU1516 4970 .LBE575: 4971 .LBE574: 3447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4972 .loc 1 3447 5 is_stmt 1 view .LVU1517 3447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4973 .loc 1 3447 24 is_stmt 0 view .LVU1518 4974 0014 9968 ldr r1, [r3, #8] 3447:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL) 4975 .loc 1 3447 8 view .LVU1519 4976 0016 2D4A ldr r2, .L330 4977 0018 1142 tst r1, r2 4978 001a 19D1 bne .L328 3460:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 4979 .loc 1 3460 5 is_stmt 1 view .LVU1520 4980 .LVL423: 4981 .LBB576: 4982 .LBI576: 7705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4983 .loc 2 7705 22 view .LVU1521 4984 .LBB577: 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4985 .loc 2 7710 3 view .LVU1522 4986 001c 9A68 ldr r2, [r3, #8] 4987 001e 22F00042 bic r2, r2, #-2147483648 4988 0022 22F03F02 bic r2, r2, #63 4989 0026 42F00102 orr r2, r2, #1 ARM GAS /tmp/cco84Mp4.s page 352 4990 002a 9A60 str r2, [r3, #8] 4991 .LVL424: 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 4992 .loc 2 7710 3 is_stmt 0 view .LVU1523 4993 .LBE577: 4994 .LBE576: 3462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** & LL_ADC_PATH_INTERNAL_TEMPSENSOR) != 0UL) 4995 .loc 1 3462 5 is_stmt 1 view .LVU1524 4996 .LBB578: 4997 .LBI578: 3826:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 4998 .loc 2 3826 26 view .LVU1525 4999 .LBB579: 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5000 .loc 2 3828 3 view .LVU1526 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5001 .loc 2 3828 21 is_stmt 0 view .LVU1527 5002 002c 284B ldr r3, .L330+4 5003 002e 9B68 ldr r3, [r3, #8] 5004 .LVL425: 3828:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5005 .loc 2 3828 21 view .LVU1528 5006 .LBE579: 5007 .LBE578: 3462:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** & LL_ADC_PATH_INTERNAL_TEMPSENSOR) != 0UL) 5008 .loc 1 3462 8 view .LVU1529 5009 0030 13F4000F tst r3, #8388608 5010 0034 1CD0 beq .L320 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 5011 .loc 1 3475 7 is_stmt 1 view .LVU1530 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 5012 .loc 1 3475 87 is_stmt 0 view .LVU1531 5013 0036 274B ldr r3, .L330+8 5014 0038 1B68 ldr r3, [r3] 5015 003a 9B09 lsrs r3, r3, #6 5016 003c 264A ldr r2, .L330+12 5017 003e A2FB0323 umull r2, r3, r2, r3 5018 0042 9B09 lsrs r3, r3, #6 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 5019 .loc 1 3475 67 view .LVU1532 5020 0044 0133 adds r3, r3, #1 5021 0046 03EB4303 add r3, r3, r3, lsl #1 5022 004a 9B00 lsls r3, r3, #2 3475:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** while (wait_loop_index != 0UL) 5023 .loc 1 3475 23 view .LVU1533 5024 004c 0193 str r3, [sp, #4] 3476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5025 .loc 1 3476 7 is_stmt 1 view .LVU1534 3476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5026 .loc 1 3476 13 is_stmt 0 view .LVU1535 5027 004e 0CE0 b .L321 5028 .L328: 3451:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5029 .loc 1 3451 7 is_stmt 1 view .LVU1536 5030 0050 C36D ldr r3, [r0, #92] 5031 0052 43F01003 orr r3, r3, #16 5032 0056 C365 str r3, [r0, #92] ARM GAS /tmp/cco84Mp4.s page 353 3454:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5033 .loc 1 3454 7 view .LVU1537 5034 0058 036E ldr r3, [r0, #96] 5035 005a 43F00103 orr r3, r3, #1 5036 005e 0366 str r3, [r0, #96] 3456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5037 .loc 1 3456 7 view .LVU1538 3456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5038 .loc 1 3456 14 is_stmt 0 view .LVU1539 5039 0060 0120 movs r0, #1 5040 .LVL426: 3456:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5041 .loc 1 3456 14 view .LVU1540 5042 0062 30E0 b .L318 5043 .LVL427: 5044 .L322: 3478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5045 .loc 1 3478 9 is_stmt 1 view .LVU1541 3478:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5046 .loc 1 3478 24 is_stmt 0 view .LVU1542 5047 0064 019B ldr r3, [sp, #4] 5048 0066 013B subs r3, r3, #1 5049 0068 0193 str r3, [sp, #4] 5050 .L321: 3476:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5051 .loc 1 3476 30 is_stmt 1 view .LVU1543 5052 006a 019B ldr r3, [sp, #4] 5053 006c 002B cmp r3, #0 5054 006e F9D1 bne .L322 5055 .L320: 3483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5056 .loc 1 3483 5 view .LVU1544 3483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5057 .loc 1 3483 17 is_stmt 0 view .LVU1545 5058 0070 FFF7FEFF bl HAL_GetTick 5059 .LVL428: 3483:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5060 .loc 1 3483 17 view .LVU1546 5061 0074 0546 mov r5, r0 5062 .LVL429: 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5063 .loc 1 3485 5 is_stmt 1 view .LVU1547 5064 .L323: 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5065 .loc 1 3485 51 view .LVU1548 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5066 .loc 1 3485 12 is_stmt 0 view .LVU1549 5067 0076 2368 ldr r3, [r4] 5068 0078 1A68 ldr r2, [r3] 3485:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5069 .loc 1 3485 51 view .LVU1550 5070 007a 12F0010F tst r2, #1 5071 007e 1FD1 bne .L329 3495:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5072 .loc 1 3495 7 is_stmt 1 view .LVU1551 5073 .LVL430: 5074 .LBB580: ARM GAS /tmp/cco84Mp4.s page 354 5075 .LBI580: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5076 .loc 2 7744 26 view .LVU1552 5077 .LBB581: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5078 .loc 2 7746 3 view .LVU1553 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5079 .loc 2 7746 12 is_stmt 0 view .LVU1554 5080 0080 9A68 ldr r2, [r3, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5081 .loc 2 7746 68 view .LVU1555 5082 0082 12F0010F tst r2, #1 5083 0086 07D1 bne .L324 5084 .LVL431: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5085 .loc 2 7746 68 view .LVU1556 5086 .LBE581: 5087 .LBE580: 3497:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5088 .loc 1 3497 9 is_stmt 1 view .LVU1557 5089 .LBB582: 5090 .LBI582: 7705:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5091 .loc 2 7705 22 view .LVU1558 5092 .LBB583: 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5093 .loc 2 7710 3 view .LVU1559 5094 0088 9A68 ldr r2, [r3, #8] 5095 008a 22F00042 bic r2, r2, #-2147483648 5096 008e 22F03F02 bic r2, r2, #63 5097 0092 42F00102 orr r2, r2, #1 5098 0096 9A60 str r2, [r3, #8] 5099 .LVL432: 5100 .L324: 7710:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5101 .loc 2 7710 3 is_stmt 0 view .LVU1560 5102 .LBE583: 5103 .LBE582: 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5104 .loc 1 3500 7 is_stmt 1 view .LVU1561 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5105 .loc 1 3500 12 is_stmt 0 view .LVU1562 5106 0098 FFF7FEFF bl HAL_GetTick 5107 .LVL433: 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5108 .loc 1 3500 26 discriminator 1 view .LVU1563 5109 009c 431B subs r3, r0, r5 3500:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5110 .loc 1 3500 10 discriminator 1 view .LVU1564 5111 009e 022B cmp r3, #2 5112 00a0 E9D9 bls .L323 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5113 .loc 1 3503 9 is_stmt 1 view .LVU1565 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5114 .loc 1 3503 13 is_stmt 0 view .LVU1566 5115 00a2 2368 ldr r3, [r4] 5116 00a4 1B68 ldr r3, [r3] ARM GAS /tmp/cco84Mp4.s page 355 3503:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5117 .loc 1 3503 12 view .LVU1567 5118 00a6 13F0010F tst r3, #1 5119 00aa E4D1 bne .L323 3506:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5120 .loc 1 3506 11 is_stmt 1 view .LVU1568 5121 00ac E36D ldr r3, [r4, #92] 5122 00ae 43F01003 orr r3, r3, #16 5123 00b2 E365 str r3, [r4, #92] 3509:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5124 .loc 1 3509 11 view .LVU1569 5125 00b4 236E ldr r3, [r4, #96] 5126 00b6 43F00103 orr r3, r3, #1 5127 00ba 2366 str r3, [r4, #96] 3511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5128 .loc 1 3511 11 view .LVU1570 3511:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5129 .loc 1 3511 18 is_stmt 0 view .LVU1571 5130 00bc 0120 movs r0, #1 5131 00be 02E0 b .L318 5132 .L329: 3518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5133 .loc 1 3518 10 view .LVU1572 5134 00c0 0020 movs r0, #0 5135 00c2 00E0 b .L318 5136 .LVL434: 5137 .L326: 3518:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5138 .loc 1 3518 10 view .LVU1573 5139 00c4 0020 movs r0, #0 5140 .LVL435: 5141 .L318: 3519:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5142 .loc 1 3519 1 view .LVU1574 5143 00c6 03B0 add sp, sp, #12 5144 .LCFI23: 5145 .cfi_def_cfa_offset 12 5146 @ sp needed 5147 00c8 30BD pop {r4, r5, pc} 5148 .L331: 5149 00ca 00BF .align 2 5150 .L330: 5151 00cc 3F000080 .word -2147483585 5152 00d0 00030050 .word 1342178048 5153 00d4 00000000 .word SystemCoreClock 5154 00d8 632D3E05 .word 87960931 5155 .cfi_endproc 5156 .LFE354: 5158 .section .text.HAL_ADC_Start,"ax",%progbits 5159 .align 1 5160 .global HAL_ADC_Start 5161 .syntax unified 5162 .thumb 5163 .thumb_func 5165 HAL_ADC_Start: 5166 .LVL436: 5167 .LFB333: ARM GAS /tmp/cco84Mp4.s page 356 1220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5168 .loc 1 1220 1 is_stmt 1 view -0 5169 .cfi_startproc 5170 @ args = 0, pretend = 0, frame = 0 5171 @ frame_needed = 0, uses_anonymous_args = 0 1220:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5172 .loc 1 1220 1 is_stmt 0 view .LVU1576 5173 0000 38B5 push {r3, r4, r5, lr} 5174 .LCFI24: 5175 .cfi_def_cfa_offset 16 5176 .cfi_offset 3, -16 5177 .cfi_offset 4, -12 5178 .cfi_offset 5, -8 5179 .cfi_offset 14, -4 1221:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 5180 .loc 1 1221 3 is_stmt 1 view .LVU1577 1223:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 5181 .loc 1 1223 3 view .LVU1578 1224:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 5182 .loc 1 1224 3 view .LVU1579 5183 .LVL437: 5184 .LBB584: 5185 .LBI584: 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5186 .loc 2 7407 26 view .LVU1580 5187 .LBB585: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5188 .loc 2 7409 3 view .LVU1581 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5189 .loc 2 7409 21 is_stmt 0 view .LVU1582 5190 0002 3C4B ldr r3, .L351 5191 0004 9D68 ldr r5, [r3, #8] 5192 .LVL438: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5193 .loc 2 7409 21 view .LVU1583 5194 .LBE585: 5195 .LBE584: 1228:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5196 .loc 1 1228 3 is_stmt 1 view .LVU1584 1231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5197 .loc 1 1231 3 view .LVU1585 1231:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5198 .loc 1 1231 42 is_stmt 0 view .LVU1586 5199 0006 0368 ldr r3, [r0] 5200 .LVL439: 5201 .LBB586: 5202 .LBI586: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5203 .loc 2 7866 26 is_stmt 1 view .LVU1587 5204 .LBB587: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5205 .loc 2 7868 3 view .LVU1588 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5206 .loc 2 7868 12 is_stmt 0 view .LVU1589 5207 0008 9B68 ldr r3, [r3, #8] 5208 .LVL440: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } ARM GAS /tmp/cco84Mp4.s page 357 5209 .loc 2 7868 74 view .LVU1590 5210 000a 13F0040F tst r3, #4 5211 000e 6CD1 bne .L344 5212 0010 0446 mov r4, r0 5213 0012 05F01F05 and r5, r5, #31 5214 .LVL441: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5215 .loc 2 7868 74 view .LVU1591 5216 .LBE587: 5217 .LBE586: 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5218 .loc 1 1234 5 is_stmt 1 view .LVU1592 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5219 .loc 1 1234 5 view .LVU1593 5220 0016 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 5221 001a 012B cmp r3, #1 5222 001c 67D0 beq .L345 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5223 .loc 1 1234 5 discriminator 2 view .LVU1594 5224 001e 0123 movs r3, #1 5225 0020 80F85830 strb r3, [r0, #88] 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5226 .loc 1 1234 5 view .LVU1595 1237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5227 .loc 1 1237 5 view .LVU1596 1237:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5228 .loc 1 1237 22 is_stmt 0 view .LVU1597 5229 0024 FFF7FEFF bl ADC_Enable 5230 .LVL442: 1240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5231 .loc 1 1240 5 is_stmt 1 view .LVU1598 1240:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5232 .loc 1 1240 8 is_stmt 0 view .LVU1599 5233 0028 0028 cmp r0, #0 5234 002a 5AD1 bne .L334 1245: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 5235 .loc 1 1245 7 is_stmt 1 view .LVU1600 5236 002c E36D ldr r3, [r4, #92] 5237 002e 23F47063 bic r3, r3, #3840 5238 0032 23F00103 bic r3, r3, #1 5239 0036 43F48073 orr r3, r3, #256 5240 003a E365 str r3, [r4, #92] 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5241 .loc 1 1253 7 view .LVU1601 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5242 .loc 1 1253 12 is_stmt 0 view .LVU1602 5243 003c 2368 ldr r3, [r4] 5244 003e 2E4A ldr r2, .L351+4 5245 0040 9342 cmp r3, r2 5246 0042 36D0 beq .L349 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5247 .loc 1 1253 12 discriminator 1 view .LVU1603 5248 0044 1A46 mov r2, r3 5249 .L335: 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5250 .loc 1 1253 10 discriminator 4 view .LVU1604 5251 0046 9342 cmp r3, r2 ARM GAS /tmp/cco84Mp4.s page 358 5252 0048 00D0 beq .L336 1254:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5253 .loc 1 1254 11 view .LVU1605 5254 004a 1DB9 cbnz r5, .L337 5255 .L336: 1257:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5256 .loc 1 1257 9 is_stmt 1 view .LVU1606 5257 004c E26D ldr r2, [r4, #92] 5258 004e 22F48012 bic r2, r2, #1048576 5259 0052 E265 str r2, [r4, #92] 5260 .L337: 1263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5261 .loc 1 1263 7 view .LVU1607 1263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5262 .loc 1 1263 11 is_stmt 0 view .LVU1608 5263 0054 E26D ldr r2, [r4, #92] 1263:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5264 .loc 1 1263 10 view .LVU1609 5265 0056 12F4805F tst r2, #4096 5266 005a 2DD0 beq .L338 1266:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5267 .loc 1 1266 9 is_stmt 1 view .LVU1610 5268 005c 226E ldr r2, [r4, #96] 5269 005e 22F00602 bic r2, r2, #6 5270 0062 2266 str r2, [r4, #96] 5271 .L339: 1276:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5272 .loc 1 1276 7 view .LVU1611 5273 0064 1C22 movs r2, #28 5274 0066 1A60 str r2, [r3] 1281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5275 .loc 1 1281 7 view .LVU1612 1281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5276 .loc 1 1281 7 view .LVU1613 5277 0068 0023 movs r3, #0 5278 006a 84F85830 strb r3, [r4, #88] 1281:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5279 .loc 1 1281 7 view .LVU1614 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5280 .loc 1 1292 7 view .LVU1615 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5281 .loc 1 1292 12 is_stmt 0 view .LVU1616 5282 006e 2368 ldr r3, [r4] 5283 0070 214A ldr r2, .L351+4 5284 0072 9342 cmp r3, r2 5285 0074 23D0 beq .L350 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5286 .loc 1 1292 12 discriminator 1 view .LVU1617 5287 0076 1A46 mov r2, r3 5288 .L340: 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5289 .loc 1 1292 10 discriminator 4 view .LVU1618 5290 0078 9342 cmp r3, r2 5291 007a 07D0 beq .L341 5292 007c 092D cmp r5, #9 5293 007e 21D8 bhi .L342 5294 0080 40F22121 movw r1, #545 ARM GAS /tmp/cco84Mp4.s page 359 5295 0084 E940 lsrs r1, r1, r5 5296 0086 11F0010F tst r1, #1 5297 008a 1BD0 beq .L342 5298 .L341: 1299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5299 .loc 1 1299 9 is_stmt 1 view .LVU1619 1299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5300 .loc 1 1299 13 is_stmt 0 view .LVU1620 5301 008c DA68 ldr r2, [r3, #12] 1299:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5302 .loc 1 1299 12 view .LVU1621 5303 008e 12F0007F tst r2, #33554432 5304 0092 05D0 beq .L343 1301:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5305 .loc 1 1301 11 is_stmt 1 view .LVU1622 5306 0094 E26D ldr r2, [r4, #92] 5307 0096 22F44052 bic r2, r2, #12288 5308 009a 42F48052 orr r2, r2, #4096 5309 009e E265 str r2, [r4, #92] 5310 .L343: 1305:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5311 .loc 1 1305 9 view .LVU1623 5312 .LVL443: 5313 .LBB588: 5314 .LBI588: 7830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5315 .loc 2 7830 22 view .LVU1624 5316 .LBB589: 7835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5317 .loc 2 7835 3 view .LVU1625 5318 00a0 9A68 ldr r2, [r3, #8] 5319 00a2 22F00042 bic r2, r2, #-2147483648 5320 00a6 22F03F02 bic r2, r2, #63 5321 00aa 42F00402 orr r2, r2, #4 5322 00ae 9A60 str r2, [r3, #8] 5323 .LVL444: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5324 .loc 2 7838 1 is_stmt 0 view .LVU1626 5325 00b0 1CE0 b .L333 5326 .L349: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5327 .loc 2 7838 1 view .LVU1627 5328 .LBE589: 5329 .LBE588: 1253:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5330 .loc 1 1253 12 discriminator 2 view .LVU1628 5331 00b2 4FF0A042 mov r2, #1342177280 5332 00b6 C6E7 b .L335 5333 .L338: 1271:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5334 .loc 1 1271 9 is_stmt 1 view .LVU1629 5335 00b8 0022 movs r2, #0 5336 00ba 2266 str r2, [r4, #96] 5337 00bc D2E7 b .L339 5338 .L350: 1292:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5339 .loc 1 1292 12 is_stmt 0 discriminator 2 view .LVU1630 ARM GAS /tmp/cco84Mp4.s page 360 5340 00be 4FF0A042 mov r2, #1342177280 5341 00c2 D9E7 b .L340 5342 .L342: 1310:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, update Slave State in setting 5343 .loc 1 1310 9 is_stmt 1 view .LVU1631 5344 00c4 E36D ldr r3, [r4, #92] 5345 00c6 43F48013 orr r3, r3, #1048576 5346 00ca E365 str r3, [r4, #92] 1313:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 5347 .loc 1 1313 9 view .LVU1632 5348 .LVL445: 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5349 .loc 1 1314 9 view .LVU1633 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5350 .loc 1 1314 13 is_stmt 0 view .LVU1634 5351 00cc D368 ldr r3, [r2, #12] 1314:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5352 .loc 1 1314 12 view .LVU1635 5353 00ce 13F0007F tst r3, #33554432 5354 00d2 0BD0 beq .L333 1316:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5355 .loc 1 1316 11 is_stmt 1 view .LVU1636 5356 00d4 E36D ldr r3, [r4, #92] 5357 00d6 23F44053 bic r3, r3, #12288 5358 00da 43F48053 orr r3, r3, #4096 5359 00de E365 str r3, [r4, #92] 5360 00e0 04E0 b .L333 5361 .LVL446: 5362 .L334: 1333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5363 .loc 1 1333 7 view .LVU1637 1333:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5364 .loc 1 1333 7 view .LVU1638 5365 00e2 0023 movs r3, #0 5366 00e4 84F85830 strb r3, [r4, #88] 5367 00e8 00E0 b .L333 5368 .LVL447: 5369 .L344: 1338:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5370 .loc 1 1338 20 is_stmt 0 view .LVU1639 5371 00ea 0220 movs r0, #2 5372 .LVL448: 5373 .L333: 1343:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5374 .loc 1 1343 1 view .LVU1640 5375 00ec 38BD pop {r3, r4, r5, pc} 5376 .LVL449: 5377 .L345: 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5378 .loc 1 1234 5 discriminator 1 view .LVU1641 5379 00ee 0220 movs r0, #2 5380 .LVL450: 1234:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5381 .loc 1 1234 5 discriminator 1 view .LVU1642 5382 00f0 FCE7 b .L333 5383 .L352: 5384 00f2 00BF .align 2 ARM GAS /tmp/cco84Mp4.s page 361 5385 .L351: 5386 00f4 00030050 .word 1342178048 5387 00f8 00010050 .word 1342177536 5388 .cfi_endproc 5389 .LFE333: 5391 .section .text.HAL_ADC_Start_IT,"ax",%progbits 5392 .align 1 5393 .global HAL_ADC_Start_IT 5394 .syntax unified 5395 .thumb 5396 .thumb_func 5398 HAL_ADC_Start_IT: 5399 .LVL451: 5400 .LFB337: 1744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5401 .loc 1 1744 1 is_stmt 1 view -0 5402 .cfi_startproc 5403 @ args = 0, pretend = 0, frame = 0 5404 @ frame_needed = 0, uses_anonymous_args = 0 1744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5405 .loc 1 1744 1 is_stmt 0 view .LVU1644 5406 0000 38B5 push {r3, r4, r5, lr} 5407 .LCFI25: 5408 .cfi_def_cfa_offset 16 5409 .cfi_offset 3, -16 5410 .cfi_offset 4, -12 5411 .cfi_offset 5, -8 5412 .cfi_offset 14, -4 1745:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) 5413 .loc 1 1745 3 is_stmt 1 view .LVU1645 1747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance)); 5414 .loc 1 1747 3 view .LVU1646 1748:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 5415 .loc 1 1748 3 view .LVU1647 5416 .LVL452: 5417 .LBB590: 5418 .LBI590: 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5419 .loc 2 7407 26 view .LVU1648 5420 .LBB591: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5421 .loc 2 7409 3 view .LVU1649 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5422 .loc 2 7409 21 is_stmt 0 view .LVU1650 5423 0002 614B ldr r3, .L380 5424 0004 9D68 ldr r5, [r3, #8] 5425 .LVL453: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5426 .loc 2 7409 21 view .LVU1651 5427 .LBE591: 5428 .LBE590: 1752:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5429 .loc 1 1752 3 is_stmt 1 view .LVU1652 1755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5430 .loc 1 1755 3 view .LVU1653 1755:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5431 .loc 1 1755 42 is_stmt 0 view .LVU1654 ARM GAS /tmp/cco84Mp4.s page 362 5432 0006 0368 ldr r3, [r0] 5433 .LVL454: 5434 .LBB592: 5435 .LBI592: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5436 .loc 2 7866 26 is_stmt 1 view .LVU1655 5437 .LBB593: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5438 .loc 2 7868 3 view .LVU1656 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5439 .loc 2 7868 12 is_stmt 0 view .LVU1657 5440 0008 9B68 ldr r3, [r3, #8] 5441 .LVL455: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5442 .loc 2 7868 74 view .LVU1658 5443 000a 13F0040F tst r3, #4 5444 000e 40F0B680 bne .L370 5445 0012 0446 mov r4, r0 5446 0014 05F01F05 and r5, r5, #31 5447 .LVL456: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5448 .loc 2 7868 74 view .LVU1659 5449 .LBE593: 5450 .LBE592: 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5451 .loc 1 1758 5 is_stmt 1 view .LVU1660 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5452 .loc 1 1758 5 view .LVU1661 5453 0018 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 5454 001c 012B cmp r3, #1 5455 001e 00F0B080 beq .L371 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5456 .loc 1 1758 5 discriminator 2 view .LVU1662 5457 0022 0123 movs r3, #1 5458 0024 80F85830 strb r3, [r0, #88] 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5459 .loc 1 1758 5 view .LVU1663 1761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5460 .loc 1 1761 5 view .LVU1664 1761:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5461 .loc 1 1761 22 is_stmt 0 view .LVU1665 5462 0028 FFF7FEFF bl ADC_Enable 5463 .LVL457: 1764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5464 .loc 1 1764 5 is_stmt 1 view .LVU1666 1764:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5465 .loc 1 1764 8 is_stmt 0 view .LVU1667 5466 002c 0028 cmp r0, #0 5467 002e 40F0A280 bne .L355 1769: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 5468 .loc 1 1769 7 is_stmt 1 view .LVU1668 5469 0032 E36D ldr r3, [r4, #92] 5470 0034 23F47063 bic r3, r3, #3840 5471 0038 23F00103 bic r3, r3, #1 5472 003c 43F48073 orr r3, r3, #256 5473 0040 E365 str r3, [r4, #92] 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) ARM GAS /tmp/cco84Mp4.s page 363 5474 .loc 1 1777 7 view .LVU1669 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5475 .loc 1 1777 12 is_stmt 0 view .LVU1670 5476 0042 2368 ldr r3, [r4] 5477 0044 514A ldr r2, .L380+4 5478 0046 9342 cmp r3, r2 5479 0048 57D0 beq .L375 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5480 .loc 1 1777 12 discriminator 1 view .LVU1671 5481 004a 1A46 mov r2, r3 5482 .L356: 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5483 .loc 1 1777 10 discriminator 4 view .LVU1672 5484 004c 9342 cmp r3, r2 5485 004e 00D0 beq .L357 1778:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5486 .loc 1 1778 11 view .LVU1673 5487 0050 1DB9 cbnz r5, .L358 5488 .L357: 1781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5489 .loc 1 1781 9 is_stmt 1 view .LVU1674 5490 0052 E26D ldr r2, [r4, #92] 5491 0054 22F48012 bic r2, r2, #1048576 5492 0058 E265 str r2, [r4, #92] 5493 .L358: 1787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5494 .loc 1 1787 7 view .LVU1675 1787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5495 .loc 1 1787 16 is_stmt 0 view .LVU1676 5496 005a E26D ldr r2, [r4, #92] 1787:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5497 .loc 1 1787 10 view .LVU1677 5498 005c 12F4805F tst r2, #4096 5499 0060 4ED0 beq .L359 1790:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5500 .loc 1 1790 9 is_stmt 1 view .LVU1678 5501 0062 226E ldr r2, [r4, #96] 5502 0064 22F00602 bic r2, r2, #6 5503 0068 2266 str r2, [r4, #96] 5504 .L360: 1800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5505 .loc 1 1800 7 view .LVU1679 5506 006a 1C22 movs r2, #28 5507 006c 1A60 str r2, [r3] 1805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5508 .loc 1 1805 7 view .LVU1680 1805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5509 .loc 1 1805 7 view .LVU1681 5510 006e 0023 movs r3, #0 5511 0070 84F85830 strb r3, [r4, #88] 1805:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5512 .loc 1 1805 7 view .LVU1682 1808:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5513 .loc 1 1808 7 view .LVU1683 5514 0074 2268 ldr r2, [r4] 5515 0076 5368 ldr r3, [r2, #4] 5516 0078 23F01C03 bic r3, r3, #28 ARM GAS /tmp/cco84Mp4.s page 364 5517 007c 5360 str r3, [r2, #4] 1811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5518 .loc 1 1811 7 view .LVU1684 1811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5519 .loc 1 1811 25 is_stmt 0 view .LVU1685 5520 007e A369 ldr r3, [r4, #24] 1811:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5521 .loc 1 1811 7 view .LVU1686 5522 0080 082B cmp r3, #8 5523 0082 40D0 beq .L376 1818:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5524 .loc 1 1818 11 is_stmt 1 view .LVU1687 5525 0084 2268 ldr r2, [r4] 5526 0086 5368 ldr r3, [r2, #4] 5527 0088 43F00403 orr r3, r3, #4 5528 008c 5360 str r3, [r2, #4] 1819:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5529 .loc 1 1819 11 view .LVU1688 5530 .L362: 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5531 .loc 1 1826 7 view .LVU1689 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5532 .loc 1 1826 21 is_stmt 0 view .LVU1690 5533 008e E36B ldr r3, [r4, #60] 1826:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5534 .loc 1 1826 10 view .LVU1691 5535 0090 23B9 cbnz r3, .L363 1828:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5536 .loc 1 1828 9 is_stmt 1 view .LVU1692 5537 0092 2268 ldr r2, [r4] 5538 0094 5368 ldr r3, [r2, #4] 5539 0096 43F01003 orr r3, r3, #16 5540 009a 5360 str r3, [r2, #4] 5541 .L363: 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5542 .loc 1 1840 7 view .LVU1693 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5543 .loc 1 1840 12 is_stmt 0 view .LVU1694 5544 009c 2368 ldr r3, [r4] 5545 009e 3B4A ldr r2, .L380+4 5546 00a0 9342 cmp r3, r2 5547 00a2 36D0 beq .L377 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5548 .loc 1 1840 12 discriminator 1 view .LVU1695 5549 00a4 1A46 mov r2, r3 5550 .L364: 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5551 .loc 1 1840 10 discriminator 4 view .LVU1696 5552 00a6 9342 cmp r3, r2 5553 00a8 07D0 beq .L365 5554 00aa 092D cmp r5, #9 5555 00ac 3ED8 bhi .L366 5556 00ae 40F22121 movw r1, #545 5557 00b2 E940 lsrs r1, r1, r5 5558 00b4 11F0010F tst r1, #1 5559 00b8 38D0 beq .L366 5560 .L365: ARM GAS /tmp/cco84Mp4.s page 365 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5561 .loc 1 1847 9 is_stmt 1 view .LVU1697 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5562 .loc 1 1847 13 is_stmt 0 view .LVU1698 5563 00ba DA68 ldr r2, [r3, #12] 1847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5564 .loc 1 1847 12 view .LVU1699 5565 00bc 12F0007F tst r2, #33554432 5566 00c0 11D0 beq .L367 1849:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5567 .loc 1 1849 11 is_stmt 1 view .LVU1700 5568 00c2 E26D ldr r2, [r4, #92] 5569 00c4 22F44052 bic r2, r2, #12288 5570 00c8 42F48052 orr r2, r2, #4096 5571 00cc E265 str r2, [r4, #92] 1855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5572 .loc 1 1855 11 view .LVU1701 1855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5573 .loc 1 1855 29 is_stmt 0 view .LVU1702 5574 00ce A269 ldr r2, [r4, #24] 1855:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5575 .loc 1 1855 11 view .LVU1703 5576 00d0 082A cmp r2, #8 5577 00d2 21D0 beq .L378 1863:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 5578 .loc 1 1863 15 is_stmt 1 view .LVU1704 5579 00d4 5A68 ldr r2, [r3, #4] 5580 00d6 22F04002 bic r2, r2, #64 5581 00da 5A60 str r2, [r3, #4] 1864:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5582 .loc 1 1864 15 view .LVU1705 5583 00dc 2268 ldr r2, [r4] 5584 00de 5368 ldr r3, [r2, #4] 5585 00e0 43F02003 orr r3, r3, #32 5586 00e4 5360 str r3, [r2, #4] 1865:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5587 .loc 1 1865 15 view .LVU1706 5588 .L367: 1870:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5589 .loc 1 1870 9 view .LVU1707 5590 00e6 2268 ldr r2, [r4] 5591 .LVL458: 5592 .LBB594: 5593 .LBI594: 7830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5594 .loc 2 7830 22 view .LVU1708 5595 .LBB595: 7835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5596 .loc 2 7835 3 view .LVU1709 5597 00e8 9368 ldr r3, [r2, #8] 5598 00ea 23F00043 bic r3, r3, #-2147483648 5599 00ee 23F03F03 bic r3, r3, #63 5600 00f2 43F00403 orr r3, r3, #4 5601 00f6 9360 str r3, [r2, #8] 5602 .LVL459: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5603 .loc 2 7838 1 is_stmt 0 view .LVU1710 ARM GAS /tmp/cco84Mp4.s page 366 5604 00f8 42E0 b .L354 5605 .L375: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5606 .loc 2 7838 1 view .LVU1711 5607 .LBE595: 5608 .LBE594: 1777:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5609 .loc 1 1777 12 discriminator 2 view .LVU1712 5610 00fa 4FF0A042 mov r2, #1342177280 5611 00fe A5E7 b .L356 5612 .L359: 1795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5613 .loc 1 1795 9 is_stmt 1 view .LVU1713 5614 0100 0022 movs r2, #0 5615 0102 2266 str r2, [r4, #96] 5616 0104 B1E7 b .L360 5617 .L376: 1814:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5618 .loc 1 1814 11 view .LVU1714 5619 0106 2268 ldr r2, [r4] 5620 0108 5368 ldr r3, [r2, #4] 5621 010a 43F00803 orr r3, r3, #8 5622 010e 5360 str r3, [r2, #4] 1815:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5623 .loc 1 1815 11 view .LVU1715 5624 0110 BDE7 b .L362 5625 .L377: 1840:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5626 .loc 1 1840 12 is_stmt 0 discriminator 2 view .LVU1716 5627 0112 4FF0A042 mov r2, #1342177280 5628 0116 C6E7 b .L364 5629 .L378: 1858:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 5630 .loc 1 1858 15 is_stmt 1 view .LVU1717 5631 0118 5A68 ldr r2, [r3, #4] 5632 011a 22F02002 bic r2, r2, #32 5633 011e 5A60 str r2, [r3, #4] 1859:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5634 .loc 1 1859 15 view .LVU1718 5635 0120 2268 ldr r2, [r4] 5636 0122 5368 ldr r3, [r2, #4] 5637 0124 43F04003 orr r3, r3, #64 5638 0128 5360 str r3, [r2, #4] 1860:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5639 .loc 1 1860 15 view .LVU1719 5640 012a DCE7 b .L367 5641 .L366: 1875:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* if Master ADC JAUTO bit is set, Slave injected interruptions 5642 .loc 1 1875 9 view .LVU1720 5643 012c E16D ldr r1, [r4, #92] 5644 012e 41F48011 orr r1, r1, #1048576 5645 0132 E165 str r1, [r4, #92] 1878:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** if (READ_BIT(tmpADC_Master->CFGR, ADC_CFGR_JAUTO) != 0UL) 5646 .loc 1 1878 9 view .LVU1721 5647 .LVL460: 1879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5648 .loc 1 1879 9 view .LVU1722 ARM GAS /tmp/cco84Mp4.s page 367 1879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5649 .loc 1 1879 13 is_stmt 0 view .LVU1723 5650 0134 D268 ldr r2, [r2, #12] 5651 .LVL461: 1879:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5652 .loc 1 1879 12 view .LVU1724 5653 0136 12F0007F tst r2, #33554432 5654 013a 21D0 beq .L354 1883:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Next, set Slave injected interruptions */ 5655 .loc 1 1883 11 is_stmt 1 view .LVU1725 5656 013c E26D ldr r2, [r4, #92] 5657 013e 22F44052 bic r2, r2, #12288 5658 0142 42F48052 orr r2, r2, #4096 5659 0146 E265 str r2, [r4, #92] 1885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5660 .loc 1 1885 11 view .LVU1726 1885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5661 .loc 1 1885 29 is_stmt 0 view .LVU1727 5662 0148 A269 ldr r2, [r4, #24] 1885:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5663 .loc 1 1885 11 view .LVU1728 5664 014a 082A cmp r2, #8 5665 014c 09D0 beq .L379 1893:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOC); 5666 .loc 1 1893 15 is_stmt 1 view .LVU1729 5667 014e 5A68 ldr r2, [r3, #4] 5668 0150 22F04002 bic r2, r2, #64 5669 0154 5A60 str r2, [r3, #4] 1894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5670 .loc 1 1894 15 view .LVU1730 5671 0156 2268 ldr r2, [r4] 5672 0158 5368 ldr r3, [r2, #4] 5673 015a 43F02003 orr r3, r3, #32 5674 015e 5360 str r3, [r2, #4] 1895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5675 .loc 1 1895 15 view .LVU1731 5676 0160 0EE0 b .L354 5677 .L379: 1888:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_ENABLE_IT(hadc, ADC_IT_JEOS); 5678 .loc 1 1888 15 view .LVU1732 5679 0162 5A68 ldr r2, [r3, #4] 5680 0164 22F02002 bic r2, r2, #32 5681 0168 5A60 str r2, [r3, #4] 1889:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** break; 5682 .loc 1 1889 15 view .LVU1733 5683 016a 2268 ldr r2, [r4] 5684 016c 5368 ldr r3, [r2, #4] 5685 016e 43F04003 orr r3, r3, #64 5686 0172 5360 str r3, [r2, #4] 1890:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* case ADC_EOC_SINGLE_CONV */ 5687 .loc 1 1890 15 view .LVU1734 5688 0174 04E0 b .L354 5689 .LVL462: 5690 .L355: 1930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5691 .loc 1 1930 7 view .LVU1735 1930:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } ARM GAS /tmp/cco84Mp4.s page 368 5692 .loc 1 1930 7 view .LVU1736 5693 0176 0023 movs r3, #0 5694 0178 84F85830 strb r3, [r4, #88] 5695 017c 00E0 b .L354 5696 .LVL463: 5697 .L370: 1936:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5698 .loc 1 1936 20 is_stmt 0 view .LVU1737 5699 017e 0220 movs r0, #2 5700 .LVL464: 5701 .L354: 1941:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5702 .loc 1 1941 1 view .LVU1738 5703 0180 38BD pop {r3, r4, r5, pc} 5704 .LVL465: 5705 .L371: 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5706 .loc 1 1758 5 discriminator 1 view .LVU1739 5707 0182 0220 movs r0, #2 5708 .LVL466: 1758:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5709 .loc 1 1758 5 discriminator 1 view .LVU1740 5710 0184 FCE7 b .L354 5711 .L381: 5712 0186 00BF .align 2 5713 .L380: 5714 0188 00030050 .word 1342178048 5715 018c 00010050 .word 1342177536 5716 .cfi_endproc 5717 .LFE337: 5719 .section .text.HAL_ADC_Start_DMA,"ax",%progbits 5720 .align 1 5721 .global HAL_ADC_Start_DMA 5722 .syntax unified 5723 .thumb 5724 .thumb_func 5726 HAL_ADC_Start_DMA: 5727 .LVL467: 5728 .LFB339: 2004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5729 .loc 1 2004 1 is_stmt 1 view -0 5730 .cfi_startproc 5731 @ args = 0, pretend = 0, frame = 0 5732 @ frame_needed = 0, uses_anonymous_args = 0 2004:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 5733 .loc 1 2004 1 is_stmt 0 view .LVU1742 5734 0000 F8B5 push {r3, r4, r5, r6, r7, lr} 5735 .LCFI26: 5736 .cfi_def_cfa_offset 24 5737 .cfi_offset 3, -24 5738 .cfi_offset 4, -20 5739 .cfi_offset 5, -16 5740 .cfi_offset 6, -12 5741 .cfi_offset 7, -8 5742 .cfi_offset 14, -4 5743 0002 0446 mov r4, r0 2005:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #if defined(ADC_MULTIMODE_SUPPORT) ARM GAS /tmp/cco84Mp4.s page 369 5744 .loc 1 2005 3 is_stmt 1 view .LVU1743 2007:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* ADC_MULTIMODE_SUPPORT */ 5745 .loc 1 2007 3 view .LVU1744 5746 .LVL468: 5747 .LBB596: 5748 .LBI596: 7407:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5749 .loc 2 7407 26 view .LVU1745 5750 .LBB597: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5751 .loc 2 7409 3 view .LVU1746 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5752 .loc 2 7409 21 is_stmt 0 view .LVU1747 5753 0004 3B4B ldr r3, .L397 5754 0006 9D68 ldr r5, [r3, #8] 5755 .LVL469: 7409:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5756 .loc 2 7409 21 view .LVU1748 5757 .LBE597: 5758 .LBE596: 2011:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5759 .loc 1 2011 3 is_stmt 1 view .LVU1749 2014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5760 .loc 1 2014 3 view .LVU1750 2014:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5761 .loc 1 2014 42 is_stmt 0 view .LVU1751 5762 0008 0068 ldr r0, [r0] 5763 .LVL470: 5764 .LBB598: 5765 .LBI598: 7866:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5766 .loc 2 7866 26 is_stmt 1 view .LVU1752 5767 .LBB599: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5768 .loc 2 7868 3 view .LVU1753 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5769 .loc 2 7868 12 is_stmt 0 view .LVU1754 5770 000a 8068 ldr r0, [r0, #8] 5771 .LVL471: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5772 .loc 2 7868 74 view .LVU1755 5773 000c 10F0040F tst r0, #4 5774 0010 6CD1 bne .L391 5775 0012 0E46 mov r6, r1 5776 0014 1746 mov r7, r2 5777 0016 05F01F05 and r5, r5, #31 5778 .LVL472: 7868:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5779 .loc 2 7868 74 view .LVU1756 5780 .LBE599: 5781 .LBE598: 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5782 .loc 1 2017 5 is_stmt 1 view .LVU1757 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5783 .loc 1 2017 5 view .LVU1758 5784 001a 94F85830 ldrb r3, [r4, #88] @ zero_extendqisi2 5785 001e 012B cmp r3, #1 ARM GAS /tmp/cco84Mp4.s page 370 5786 0020 66D0 beq .L392 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5787 .loc 1 2017 5 discriminator 2 view .LVU1759 5788 0022 0123 movs r3, #1 5789 0024 84F85830 strb r3, [r4, #88] 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5790 .loc 1 2017 5 view .LVU1760 2022:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5791 .loc 1 2022 5 view .LVU1761 5792 0028 092D cmp r5, #9 5793 002a 05D8 bhi .L384 5794 002c 40F22123 movw r3, #545 5795 0030 EB40 lsrs r3, r3, r5 5796 0032 13F0010F tst r3, #1 5797 0036 04D1 bne .L395 5798 .L384: 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 5799 .loc 1 2117 7 view .LVU1762 5800 .LVL473: 2119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5801 .loc 1 2119 7 view .LVU1763 2119:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5802 .loc 1 2119 7 view .LVU1764 5803 0038 0023 movs r3, #0 5804 003a 84F85830 strb r3, [r4, #88] 2117:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Process unlocked */ 5805 .loc 1 2117 22 is_stmt 0 view .LVU1765 5806 003e 0120 movs r0, #1 5807 0040 55E0 b .L383 5808 .LVL474: 5809 .L395: 2030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5810 .loc 1 2030 7 is_stmt 1 view .LVU1766 2030:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5811 .loc 1 2030 24 is_stmt 0 view .LVU1767 5812 0042 2046 mov r0, r4 5813 0044 FFF7FEFF bl ADC_Enable 5814 .LVL475: 2033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5815 .loc 1 2033 7 is_stmt 1 view .LVU1768 2033:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5816 .loc 1 2033 10 is_stmt 0 view .LVU1769 5817 0048 0028 cmp r0, #0 5818 004a 4BD1 bne .L385 2038:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL 5819 .loc 1 2038 9 is_stmt 1 view .LVU1770 5820 004c E36D ldr r3, [r4, #92] 5821 004e 23F47063 bic r3, r3, #3840 5822 0052 23F00103 bic r3, r3, #1 5823 0056 43F48073 orr r3, r3, #256 5824 005a E365 str r3, [r4, #92] 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5825 .loc 1 2046 9 view .LVU1771 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5826 .loc 1 2046 14 is_stmt 0 view .LVU1772 5827 005c 2368 ldr r3, [r4] 5828 005e 264A ldr r2, .L397+4 ARM GAS /tmp/cco84Mp4.s page 371 5829 0060 9342 cmp r3, r2 5830 0062 39D0 beq .L396 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5831 .loc 1 2046 14 discriminator 1 view .LVU1773 5832 0064 1A46 mov r2, r3 5833 .L386: 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5834 .loc 1 2046 12 discriminator 4 view .LVU1774 5835 0066 9342 cmp r3, r2 5836 0068 00D0 beq .L387 2047:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 5837 .loc 1 2047 13 view .LVU1775 5838 006a 1DB9 cbnz r5, .L388 5839 .L387: 2050:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5840 .loc 1 2050 11 is_stmt 1 view .LVU1776 5841 006c E36D ldr r3, [r4, #92] 5842 006e 23F48013 bic r3, r3, #1048576 5843 0072 E365 str r3, [r4, #92] 5844 .L388: 2055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5845 .loc 1 2055 9 view .LVU1777 2055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5846 .loc 1 2055 18 is_stmt 0 view .LVU1778 5847 0074 E36D ldr r3, [r4, #92] 2055:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 5848 .loc 1 2055 12 view .LVU1779 5849 0076 13F4805F tst r3, #4096 5850 007a 30D0 beq .L389 2058:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5851 .loc 1 2058 11 is_stmt 1 view .LVU1780 5852 007c 236E ldr r3, [r4, #96] 5853 007e 23F00603 bic r3, r3, #6 5854 0082 2366 str r3, [r4, #96] 5855 .L390: 2067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5856 .loc 1 2067 9 view .LVU1781 2067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5857 .loc 1 2067 13 is_stmt 0 view .LVU1782 5858 0084 636D ldr r3, [r4, #84] 2067:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5859 .loc 1 2067 44 view .LVU1783 5860 0086 1D4A ldr r2, .L397+8 5861 0088 DA62 str r2, [r3, #44] 2070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5862 .loc 1 2070 9 is_stmt 1 view .LVU1784 2070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5863 .loc 1 2070 13 is_stmt 0 view .LVU1785 5864 008a 636D ldr r3, [r4, #84] 2070:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5865 .loc 1 2070 48 view .LVU1786 5866 008c 1C4A ldr r2, .L397+12 5867 008e 1A63 str r2, [r3, #48] 2073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5868 .loc 1 2073 9 is_stmt 1 view .LVU1787 2073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5869 .loc 1 2073 13 is_stmt 0 view .LVU1788 ARM GAS /tmp/cco84Mp4.s page 372 5870 0090 636D ldr r3, [r4, #84] 2073:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5871 .loc 1 2073 45 view .LVU1789 5872 0092 1C4A ldr r2, .L397+16 5873 0094 5A63 str r2, [r3, #52] 2082:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5874 .loc 1 2082 9 is_stmt 1 view .LVU1790 5875 0096 2368 ldr r3, [r4] 5876 0098 1C22 movs r2, #28 5877 009a 1A60 str r2, [r3] 2087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5878 .loc 1 2087 9 view .LVU1791 2087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5879 .loc 1 2087 9 view .LVU1792 5880 009c 0023 movs r3, #0 5881 009e 84F85830 strb r3, [r4, #88] 2087:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5882 .loc 1 2087 9 view .LVU1793 2092:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5883 .loc 1 2092 9 view .LVU1794 5884 00a2 2268 ldr r2, [r4] 5885 00a4 5368 ldr r3, [r2, #4] 5886 00a6 43F01003 orr r3, r3, #16 5887 00aa 5360 str r3, [r2, #4] 2095:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5888 .loc 1 2095 9 view .LVU1795 5889 00ac 2268 ldr r2, [r4] 5890 00ae D368 ldr r3, [r2, #12] 5891 00b0 43F00103 orr r3, r3, #1 5892 00b4 D360 str r3, [r2, #12] 2098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5893 .loc 1 2098 9 view .LVU1796 2098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5894 .loc 1 2098 76 is_stmt 0 view .LVU1797 5895 00b6 2168 ldr r1, [r4] 2098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5896 .loc 1 2098 26 view .LVU1798 5897 00b8 3B46 mov r3, r7 5898 00ba 3246 mov r2, r6 5899 00bc 4031 adds r1, r1, #64 5900 00be 606D ldr r0, [r4, #84] 5901 .LVL476: 2098:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5902 .loc 1 2098 26 view .LVU1799 5903 00c0 FFF7FEFF bl HAL_DMA_Start_IT 5904 .LVL477: 2105:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5905 .loc 1 2105 9 is_stmt 1 view .LVU1800 5906 00c4 2268 ldr r2, [r4] 5907 .LVL478: 5908 .LBB600: 5909 .LBI600: 7830:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5910 .loc 2 7830 22 view .LVU1801 5911 .LBB601: 7835:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 5912 .loc 2 7835 3 view .LVU1802 ARM GAS /tmp/cco84Mp4.s page 373 5913 00c6 9368 ldr r3, [r2, #8] 5914 00c8 23F00043 bic r3, r3, #-2147483648 5915 00cc 23F03F03 bic r3, r3, #63 5916 00d0 43F00403 orr r3, r3, #4 5917 00d4 9360 str r3, [r2, #8] 5918 .LVL479: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5919 .loc 2 7838 1 is_stmt 0 view .LVU1803 5920 00d6 0AE0 b .L383 5921 .L396: 7838:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** 5922 .loc 2 7838 1 view .LVU1804 5923 .LBE601: 5924 .LBE600: 2046:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT) 5925 .loc 1 2046 14 discriminator 2 view .LVU1805 5926 00d8 4FF0A042 mov r2, #1342177280 5927 00dc C3E7 b .L386 5928 .L389: 2063:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5929 .loc 1 2063 11 is_stmt 1 view .LVU1806 5930 00de 0023 movs r3, #0 5931 00e0 2366 str r3, [r4, #96] 5932 00e2 CFE7 b .L390 5933 .L385: 2110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5934 .loc 1 2110 9 view .LVU1807 2110:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5935 .loc 1 2110 9 view .LVU1808 5936 00e4 0023 movs r3, #0 5937 00e6 84F85830 strb r3, [r4, #88] 5938 00ea 00E0 b .L383 5939 .LVL480: 5940 .L391: 2125:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 5941 .loc 1 2125 20 is_stmt 0 view .LVU1809 5942 00ec 0220 movs r0, #2 5943 .LVL481: 5944 .L383: 2130:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5945 .loc 1 2130 1 view .LVU1810 5946 00ee F8BD pop {r3, r4, r5, r6, r7, pc} 5947 .LVL482: 5948 .L392: 2017:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5949 .loc 1 2017 5 discriminator 1 view .LVU1811 5950 00f0 0220 movs r0, #2 5951 00f2 FCE7 b .L383 5952 .L398: 5953 .align 2 5954 .L397: 5955 00f4 00030050 .word 1342178048 5956 00f8 00010050 .word 1342177536 5957 00fc 00000000 .word ADC_DMAConvCplt 5958 0100 00000000 .word ADC_DMAHalfConvCplt 5959 0104 00000000 .word ADC_DMAError 5960 .cfi_endproc ARM GAS /tmp/cco84Mp4.s page 374 5961 .LFE339: 5963 .section .text.ADC_Disable,"ax",%progbits 5964 .align 1 5965 .global ADC_Disable 5966 .syntax unified 5967 .thumb 5968 .thumb_func 5970 ADC_Disable: 5971 .LVL483: 5972 .LFB355: 3529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 5973 .loc 1 3529 1 is_stmt 1 view -0 5974 .cfi_startproc 5975 @ args = 0, pretend = 0, frame = 0 5976 @ frame_needed = 0, uses_anonymous_args = 0 3529:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** uint32_t tickstart; 5977 .loc 1 3529 1 is_stmt 0 view .LVU1813 5978 0000 38B5 push {r3, r4, r5, lr} 5979 .LCFI27: 5980 .cfi_def_cfa_offset 16 5981 .cfi_offset 3, -16 5982 .cfi_offset 4, -12 5983 .cfi_offset 5, -8 5984 .cfi_offset 14, -4 5985 0002 0446 mov r4, r0 3530:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance); 5986 .loc 1 3530 3 is_stmt 1 view .LVU1814 3531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5987 .loc 1 3531 3 view .LVU1815 3531:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 5988 .loc 1 3531 76 is_stmt 0 view .LVU1816 5989 0004 0268 ldr r2, [r0] 5990 .LVL484: 5991 .LBB602: 5992 .LBI602: 7755:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 5993 .loc 2 7755 26 is_stmt 1 view .LVU1817 5994 .LBB603: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5995 .loc 2 7757 3 view .LVU1818 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5996 .loc 2 7757 12 is_stmt 0 view .LVU1819 5997 0006 9368 ldr r3, [r2, #8] 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 5998 .loc 2 7757 70 view .LVU1820 5999 0008 13F00203 ands r3, r3, #2 6000 000c 00D0 beq .L400 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6001 .loc 2 7757 70 discriminator 1 view .LVU1821 6002 000e 0123 movs r3, #1 6003 .L400: 6004 .LVL485: 7757:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6005 .loc 2 7757 70 discriminator 1 view .LVU1822 6006 .LBE603: 6007 .LBE602: 3536:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** && (tmp_adc_is_disable_on_going == 0UL) ARM GAS /tmp/cco84Mp4.s page 375 6008 .loc 1 3536 3 is_stmt 1 view .LVU1823 6009 .LBB604: 6010 .LBI604: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6011 .loc 2 7744 26 view .LVU1824 6012 .LBB605: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6013 .loc 2 7746 3 view .LVU1825 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6014 .loc 2 7746 12 is_stmt 0 view .LVU1826 6015 0010 9168 ldr r1, [r2, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6016 .loc 2 7746 68 view .LVU1827 6017 0012 11F0010F tst r1, #1 6018 0016 39D0 beq .L405 6019 .LVL486: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6020 .loc 2 7746 68 view .LVU1828 6021 .LBE605: 6022 .LBE604: 3537:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ) 6023 .loc 1 3537 7 view .LVU1829 6024 0018 002B cmp r3, #0 6025 001a 39D1 bne .L406 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6026 .loc 1 3541 5 is_stmt 1 view .LVU1830 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6027 .loc 1 3541 24 is_stmt 0 view .LVU1831 6028 001c 9368 ldr r3, [r2, #8] 6029 .LVL487: 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6030 .loc 1 3541 29 view .LVU1832 6031 001e 03F00D03 and r3, r3, #13 3541:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6032 .loc 1 3541 8 view .LVU1833 6033 0022 012B cmp r3, #1 6034 0024 09D0 beq .L408 3550:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6035 .loc 1 3550 7 is_stmt 1 view .LVU1834 6036 0026 E36D ldr r3, [r4, #92] 6037 0028 43F01003 orr r3, r3, #16 6038 002c E365 str r3, [r4, #92] 3553:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6039 .loc 1 3553 7 view .LVU1835 6040 002e 236E ldr r3, [r4, #96] 6041 0030 43F00103 orr r3, r3, #1 6042 0034 2366 str r3, [r4, #96] 3555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6043 .loc 1 3555 7 view .LVU1836 3555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6044 .loc 1 3555 14 is_stmt 0 view .LVU1837 6045 0036 0120 movs r0, #1 6046 .LVL488: 3555:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6047 .loc 1 3555 14 view .LVU1838 6048 0038 29E0 b .L401 6049 .LVL489: ARM GAS /tmp/cco84Mp4.s page 376 6050 .L408: 3544:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY)); 6051 .loc 1 3544 7 is_stmt 1 view .LVU1839 6052 .LBB606: 6053 .LBI606: 7725:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6054 .loc 2 7725 22 view .LVU1840 6055 .LBB607: 7730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6056 .loc 2 7730 3 view .LVU1841 6057 003a 9368 ldr r3, [r2, #8] 6058 003c 23F00043 bic r3, r3, #-2147483648 6059 0040 23F03F03 bic r3, r3, #63 6060 0044 43F00203 orr r3, r3, #2 6061 0048 9360 str r3, [r2, #8] 6062 .LVL490: 7730:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** ADC_CR_BITS_PROPERTY_RS, 6063 .loc 2 7730 3 is_stmt 0 view .LVU1842 6064 .LBE607: 6065 .LBE606: 3545:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6066 .loc 1 3545 7 is_stmt 1 view .LVU1843 6067 004a 2368 ldr r3, [r4] 6068 004c 0322 movs r2, #3 6069 004e 1A60 str r2, [r3] 3560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6070 .loc 1 3560 5 view .LVU1844 3560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6071 .loc 1 3560 17 is_stmt 0 view .LVU1845 6072 0050 FFF7FEFF bl HAL_GetTick 6073 .LVL491: 3560:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6074 .loc 1 3560 17 view .LVU1846 6075 0054 0546 mov r5, r0 6076 .LVL492: 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6077 .loc 1 3562 5 is_stmt 1 view .LVU1847 6078 .L403: 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6079 .loc 1 3562 47 view .LVU1848 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6080 .loc 1 3562 17 is_stmt 0 view .LVU1849 6081 0056 2368 ldr r3, [r4] 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6082 .loc 1 3562 27 view .LVU1850 6083 0058 9B68 ldr r3, [r3, #8] 3562:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6084 .loc 1 3562 47 view .LVU1851 6085 005a 13F0010F tst r3, #1 6086 005e 13D0 beq .L409 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6087 .loc 1 3564 7 is_stmt 1 view .LVU1852 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6088 .loc 1 3564 12 is_stmt 0 view .LVU1853 6089 0060 FFF7FEFF bl HAL_GetTick 6090 .LVL493: 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 377 6091 .loc 1 3564 26 discriminator 1 view .LVU1854 6092 0064 401B subs r0, r0, r5 3564:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6093 .loc 1 3564 10 discriminator 1 view .LVU1855 6094 0066 0228 cmp r0, #2 6095 0068 F5D9 bls .L403 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6096 .loc 1 3567 9 is_stmt 1 view .LVU1856 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6097 .loc 1 3567 18 is_stmt 0 view .LVU1857 6098 006a 2368 ldr r3, [r4] 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6099 .loc 1 3567 28 view .LVU1858 6100 006c 9B68 ldr r3, [r3, #8] 3567:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6101 .loc 1 3567 12 view .LVU1859 6102 006e 13F0010F tst r3, #1 6103 0072 F0D0 beq .L403 3570:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6104 .loc 1 3570 11 is_stmt 1 view .LVU1860 6105 0074 E36D ldr r3, [r4, #92] 6106 0076 43F01003 orr r3, r3, #16 6107 007a E365 str r3, [r4, #92] 3573:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6108 .loc 1 3573 11 view .LVU1861 6109 007c 236E ldr r3, [r4, #96] 6110 007e 43F00103 orr r3, r3, #1 6111 0082 2366 str r3, [r4, #96] 3575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6112 .loc 1 3575 11 view .LVU1862 3575:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6113 .loc 1 3575 18 is_stmt 0 view .LVU1863 6114 0084 0120 movs r0, #1 6115 0086 02E0 b .L401 6116 .L409: 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6117 .loc 1 3582 10 view .LVU1864 6118 0088 0020 movs r0, #0 6119 008a 00E0 b .L401 6120 .LVL494: 6121 .L405: 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6122 .loc 1 3582 10 view .LVU1865 6123 008c 0020 movs r0, #0 6124 .LVL495: 6125 .L401: 3583:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6126 .loc 1 3583 1 view .LVU1866 6127 008e 38BD pop {r3, r4, r5, pc} 6128 .LVL496: 6129 .L406: 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6130 .loc 1 3582 10 view .LVU1867 6131 0090 0020 movs r0, #0 6132 .LVL497: 3582:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6133 .loc 1 3582 10 view .LVU1868 ARM GAS /tmp/cco84Mp4.s page 378 6134 0092 FCE7 b .L401 6135 .cfi_endproc 6136 .LFE355: 6138 .section .text.HAL_ADC_DeInit,"ax",%progbits 6139 .align 1 6140 .global HAL_ADC_DeInit 6141 .syntax unified 6142 .thumb 6143 .thumb_func 6145 HAL_ADC_DeInit: 6146 .LVL498: 6147 .LFB330: 714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6148 .loc 1 714 1 is_stmt 1 view -0 6149 .cfi_startproc 6150 @ args = 0, pretend = 0, frame = 0 6151 @ frame_needed = 0, uses_anonymous_args = 0 714:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6152 .loc 1 714 1 is_stmt 0 view .LVU1870 6153 0000 38B5 push {r3, r4, r5, lr} 6154 .LCFI28: 6155 .cfi_def_cfa_offset 16 6156 .cfi_offset 3, -16 6157 .cfi_offset 4, -12 6158 .cfi_offset 5, -8 6159 .cfi_offset 14, -4 715:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6160 .loc 1 715 3 is_stmt 1 view .LVU1871 718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6161 .loc 1 718 3 view .LVU1872 718:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6162 .loc 1 718 6 is_stmt 0 view .LVU1873 6163 0002 0028 cmp r0, #0 6164 0004 00F0C380 beq .L415 6165 0008 0446 mov r4, r0 724:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6166 .loc 1 724 3 is_stmt 1 view .LVU1874 727:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6167 .loc 1 727 3 view .LVU1875 6168 000a C36D ldr r3, [r0, #92] 6169 000c 43F00203 orr r3, r3, #2 6170 0010 C365 str r3, [r0, #92] 730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6171 .loc 1 730 3 view .LVU1876 730:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6172 .loc 1 730 20 is_stmt 0 view .LVU1877 6173 0012 0321 movs r1, #3 6174 0014 FFF7FEFF bl ADC_ConversionStop 6175 .LVL499: 738:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6176 .loc 1 738 3 is_stmt 1 view .LVU1878 6177 0018 2268 ldr r2, [r4] 6178 001a D368 ldr r3, [r2, #12] 6179 001c 43F40013 orr r3, r3, #2097152 6180 0020 D360 str r3, [r2, #12] 741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6181 .loc 1 741 3 view .LVU1879 ARM GAS /tmp/cco84Mp4.s page 379 741:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6182 .loc 1 741 6 is_stmt 0 view .LVU1880 6183 0022 0546 mov r5, r0 6184 0024 0028 cmp r0, #0 6185 0026 00F09980 beq .L417 6186 .L412: 6187 .LVL500: 762:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_IT_JQOVF | ADC_IT_OVR | 6188 .loc 1 762 3 is_stmt 1 view .LVU1881 6189 002a 2268 ldr r2, [r4] 6190 002c 5368 ldr r3, [r2, #4] 6191 002e 6FF30A03 bfc r3, #0, #11 6192 0032 5360 str r3, [r2, #4] 769:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_FLAG_JQOVF | ADC_FLAG_OVR | 6193 .loc 1 769 3 view .LVU1882 6194 0034 2368 ldr r3, [r4] 6195 0036 40F2FF72 movw r2, #2047 6196 003a 1A60 str r2, [r3] 780:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CR, ADC_CR_DEEPPWD); 6197 .loc 1 780 3 view .LVU1883 6198 003c 2268 ldr r2, [r4] 6199 003e 9368 ldr r3, [r2, #8] 6200 0040 23F0A043 bic r3, r3, #1342177280 6201 0044 9360 str r3, [r2, #8] 781:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6202 .loc 1 781 3 view .LVU1884 6203 0046 2268 ldr r2, [r4] 6204 0048 9368 ldr r3, [r2, #8] 6205 004a 43F00053 orr r3, r3, #536870912 6206 004e 9360 str r3, [r2, #8] 784:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** SET_BIT(hadc->Instance->CFGR, ADC_CFGR_JQDIS); 6207 .loc 1 784 3 view .LVU1885 6208 0050 2268 ldr r2, [r4] 6209 0052 D368 ldr r3, [r2, #12] 6210 0054 23F0FF43 bic r3, r3, #2139095040 6211 0058 23F4FF03 bic r3, r3, #8355840 6212 005c 23F4FF43 bic r3, r3, #32640 6213 0060 23F07B03 bic r3, r3, #123 6214 0064 D360 str r3, [r2, #12] 785:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6215 .loc 1 785 3 view .LVU1886 6216 0066 2268 ldr r2, [r4] 6217 0068 D368 ldr r3, [r2, #12] 6218 006a 43F00043 orr r3, r3, #-2147483648 6219 006e D360 str r3, [r2, #12] 788:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_CFGR2_OVSR | ADC_CFGR2_JOVSE | ADC_CFGR2_ROVSE); 6220 .loc 1 788 3 view .LVU1887 6221 0070 2268 ldr r2, [r4] 6222 0072 1369 ldr r3, [r2, #16] 6223 0074 6FF30A03 bfc r3, #0, #11 6224 0078 1361 str r3, [r2, #16] 792:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6225 .loc 1 792 3 view .LVU1888 6226 007a 2268 ldr r2, [r4] 6227 007c 5369 ldr r3, [r2, #20] 6228 007e 03F08043 and r3, r3, #1073741824 6229 0082 5361 str r3, [r2, #20] ARM GAS /tmp/cco84Mp4.s page 380 795:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SMPR2_SMP15 | ADC_SMPR2_SMP14 | ADC_SMPR2_SMP13 | 6230 .loc 1 795 3 view .LVU1889 6231 0084 2268 ldr r2, [r4] 6232 0086 9369 ldr r3, [r2, #24] 6233 0088 03F07843 and r3, r3, #-134217728 6234 008c 9361 str r3, [r2, #24] 800:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6235 .loc 1 800 3 view .LVU1890 6236 008e 2268 ldr r2, [r4] 6237 0090 136A ldr r3, [r2, #32] 6238 0092 03F0F023 and r3, r3, #-268374016 6239 0096 1362 str r3, [r2, #32] 803:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6240 .loc 1 803 3 view .LVU1891 6241 0098 2268 ldr r2, [r4] 6242 009a 536A ldr r3, [r2, #36] 6243 009c 03F0FF23 and r3, r3, #-16711936 6244 00a0 5362 str r3, [r2, #36] 806:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6245 .loc 1 806 3 view .LVU1892 6246 00a2 2268 ldr r2, [r4] 6247 00a4 936A ldr r3, [r2, #40] 6248 00a6 03F0FF23 and r3, r3, #-16711936 6249 00aa 9362 str r3, [r2, #40] 809:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR1_SQ1 | ADC_SQR1_L); 6250 .loc 1 809 3 view .LVU1893 6251 00ac 2268 ldr r2, [r4] 6252 00ae 116B ldr r1, [r2, #48] 6253 00b0 384B ldr r3, .L419 6254 00b2 0B40 ands r3, r3, r1 6255 00b4 1363 str r3, [r2, #48] 813:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR2_SQ6 | ADC_SQR2_SQ5); 6256 .loc 1 813 3 view .LVU1894 6257 00b6 2268 ldr r2, [r4] 6258 00b8 536B ldr r3, [r2, #52] 6259 00ba 3749 ldr r1, .L419+4 6260 00bc 0B40 ands r3, r3, r1 6261 00be 5363 str r3, [r2, #52] 817:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ADC_SQR3_SQ11 | ADC_SQR3_SQ10); 6262 .loc 1 817 3 view .LVU1895 6263 00c0 2268 ldr r2, [r4] 6264 00c2 936B ldr r3, [r2, #56] 6265 00c4 0B40 ands r3, r3, r1 6266 00c6 9363 str r3, [r2, #56] 821:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6267 .loc 1 821 3 view .LVU1896 6268 00c8 2268 ldr r2, [r4] 6269 00ca D36B ldr r3, [r2, #60] 6270 00cc 23F4FB63 bic r3, r3, #2008 6271 00d0 23F00703 bic r3, r3, #7 6272 00d4 D363 str r3, [r2, #60] 829:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR2 */ 6273 .loc 1 829 3 view .LVU1897 6274 00d6 2168 ldr r1, [r4] 6275 00d8 0A6E ldr r2, [r1, #96] 6276 00da 304B ldr r3, .L419+8 6277 00dc 1A40 ands r2, r2, r3 ARM GAS /tmp/cco84Mp4.s page 381 6278 00de 0A66 str r2, [r1, #96] 831:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR3 */ 6279 .loc 1 831 3 view .LVU1898 6280 00e0 2168 ldr r1, [r4] 6281 00e2 4A6E ldr r2, [r1, #100] 6282 00e4 1A40 ands r2, r2, r3 6283 00e6 4A66 str r2, [r1, #100] 833:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** /* Reset register OFR4 */ 6284 .loc 1 833 3 view .LVU1899 6285 00e8 2168 ldr r1, [r4] 6286 00ea 8A6E ldr r2, [r1, #104] 6287 00ec 1A40 ands r2, r2, r3 6288 00ee 8A66 str r2, [r1, #104] 835:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6289 .loc 1 835 3 view .LVU1900 6290 00f0 2168 ldr r1, [r4] 6291 00f2 CA6E ldr r2, [r1, #108] 6292 00f4 1340 ands r3, r3, r2 6293 00f6 CB66 str r3, [r1, #108] 841:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6294 .loc 1 841 3 view .LVU1901 6295 00f8 2268 ldr r2, [r4] 6296 00fa D2F8A030 ldr r3, [r2, #160] 6297 00fe 6FF31203 bfc r3, #0, #19 6298 0102 C2F8A030 str r3, [r2, #160] 844:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6299 .loc 1 844 3 view .LVU1902 6300 0106 2268 ldr r2, [r4] 6301 0108 D2F8A430 ldr r3, [r2, #164] 6302 010c 6FF31203 bfc r3, #0, #19 6303 0110 C2F8A430 str r3, [r2, #164] 847:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6304 .loc 1 847 3 view .LVU1903 6305 0114 2268 ldr r2, [r4] 6306 0116 D2F8B030 ldr r3, [r2, #176] 6307 011a 6FF31203 bfc r3, #0, #19 6308 011e C2F8B030 str r3, [r2, #176] 850:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6309 .loc 1 850 3 view .LVU1904 6310 0122 2268 ldr r2, [r4] 6311 0124 D2F8B430 ldr r3, [r2, #180] 6312 0128 23F07F13 bic r3, r3, #8323199 6313 012c C2F8B430 str r3, [r2, #180] 857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6314 .loc 1 857 3 view .LVU1905 6315 .LVL501: 6316 .LBB608: 6317 .LBI608: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6318 .loc 2 7744 26 view .LVU1906 6319 .LBB609: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6320 .loc 2 7746 3 view .LVU1907 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6321 .loc 2 7746 12 is_stmt 0 view .LVU1908 6322 0130 4FF0A043 mov r3, #1342177280 6323 0134 9B68 ldr r3, [r3, #8] ARM GAS /tmp/cco84Mp4.s page 382 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6324 .loc 2 7746 68 view .LVU1909 6325 0136 13F00103 ands r3, r3, #1 6326 013a 00D0 beq .L413 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6327 .loc 2 7746 68 discriminator 1 view .LVU1910 6328 013c 0123 movs r3, #1 6329 .L413: 6330 .LVL502: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6331 .loc 2 7746 68 discriminator 1 view .LVU1911 6332 .LBE609: 6333 .LBE608: 6334 .LBB610: 6335 .LBI610: 7744:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** { 6336 .loc 2 7744 26 is_stmt 1 view .LVU1912 6337 .LBB611: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6338 .loc 2 7746 3 view .LVU1913 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6339 .loc 2 7746 12 is_stmt 0 view .LVU1914 6340 013e 184A ldr r2, .L419+12 6341 0140 9268 ldr r2, [r2, #8] 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6342 .loc 2 7746 68 view .LVU1915 6343 0142 12F0010F tst r2, #1 6344 0146 00D1 bne .L414 6345 .LVL503: 7746:Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_adc.h **** } 6346 .loc 2 7746 68 view .LVU1916 6347 .LBE611: 6348 .LBE610: 857:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6349 .loc 1 857 6 discriminator 2 view .LVU1917 6350 0148 93B1 cbz r3, .L418 6351 .L414: 891:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6352 .loc 1 891 3 is_stmt 1 view .LVU1918 6353 014a 0023 movs r3, #0 6354 014c 2366 str r3, [r4, #96] 894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 6355 .loc 1 894 3 view .LVU1919 894:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** hadc->InjectionConfig.ChannelCount = 0; 6356 .loc 1 894 38 is_stmt 0 view .LVU1920 6357 014e 6366 str r3, [r4, #100] 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6358 .loc 1 895 3 is_stmt 1 view .LVU1921 895:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6359 .loc 1 895 38 is_stmt 0 view .LVU1922 6360 0150 A366 str r3, [r4, #104] 898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6361 .loc 1 898 3 is_stmt 1 view .LVU1923 898:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6362 .loc 1 898 15 is_stmt 0 view .LVU1924 6363 0152 E365 str r3, [r4, #92] 901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 383 6364 .loc 1 901 3 is_stmt 1 view .LVU1925 901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6365 .loc 1 901 3 view .LVU1926 6366 0154 84F85830 strb r3, [r4, #88] 901:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6367 .loc 1 901 3 view .LVU1927 904:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6368 .loc 1 904 3 view .LVU1928 6369 .LVL504: 6370 .L411: 905:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6371 .loc 1 905 1 is_stmt 0 view .LVU1929 6372 0158 2846 mov r0, r5 6373 015a 38BD pop {r3, r4, r5, pc} 6374 .LVL505: 6375 .L417: 744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6376 .loc 1 744 5 is_stmt 1 view .LVU1930 744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6377 .loc 1 744 22 is_stmt 0 view .LVU1931 6378 015c 2046 mov r0, r4 6379 .LVL506: 744:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6380 .loc 1 744 22 view .LVU1932 6381 015e FFF7FEFF bl ADC_Disable 6382 .LVL507: 747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6383 .loc 1 747 5 is_stmt 1 view .LVU1933 747:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6384 .loc 1 747 8 is_stmt 0 view .LVU1934 6385 0162 0546 mov r5, r0 6386 0164 0028 cmp r0, #0 6387 0166 7FF460AF bne .L412 750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6388 .loc 1 750 7 is_stmt 1 view .LVU1935 750:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6389 .loc 1 750 19 is_stmt 0 view .LVU1936 6390 016a 0123 movs r3, #1 6391 016c E365 str r3, [r4, #92] 6392 016e 5CE7 b .L412 6393 .LVL508: 6394 .L418: 866:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6395 .loc 1 866 5 is_stmt 1 view .LVU1937 6396 0170 0C4A ldr r2, .L419+16 6397 0172 9368 ldr r3, [r2, #8] 6398 0174 23F0FF73 bic r3, r3, #33423360 6399 0178 23F4F733 bic r3, r3, #126464 6400 017c 23F48F73 bic r3, r3, #286 6401 0180 23F00103 bic r3, r3, #1 6402 0184 9360 str r3, [r2, #8] 886:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ 6403 .loc 1 886 5 view .LVU1938 6404 0186 2046 mov r0, r4 6405 0188 FFF7FEFF bl HAL_ADC_MspDeInit 6406 .LVL509: 6407 018c DDE7 b .L414 ARM GAS /tmp/cco84Mp4.s page 384 6408 .LVL510: 6409 .L415: 720:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6410 .loc 1 720 12 is_stmt 0 view .LVU1939 6411 018e 0125 movs r5, #1 6412 0190 E2E7 b .L411 6413 .L420: 6414 0192 00BF .align 2 6415 .L419: 6416 0194 300882E0 .word -528349136 6417 0198 200882E0 .word -528349152 6418 019c 00F0FF03 .word 67104768 6419 01a0 00010050 .word 1342177536 6420 01a4 00030050 .word 1342178048 6421 .cfi_endproc 6422 .LFE330: 6424 .section .text.HAL_ADC_Stop,"ax",%progbits 6425 .align 1 6426 .global HAL_ADC_Stop 6427 .syntax unified 6428 .thumb 6429 .thumb_func 6431 HAL_ADC_Stop: 6432 .LVL511: 6433 .LFB334: 1355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6434 .loc 1 1355 1 is_stmt 1 view -0 6435 .cfi_startproc 6436 @ args = 0, pretend = 0, frame = 0 6437 @ frame_needed = 0, uses_anonymous_args = 0 1356:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6438 .loc 1 1356 3 view .LVU1941 1359:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6439 .loc 1 1359 3 view .LVU1942 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6440 .loc 1 1362 3 view .LVU1943 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6441 .loc 1 1362 3 view .LVU1944 6442 0000 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6443 0004 012B cmp r3, #1 6444 0006 1AD0 beq .L424 1355:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6445 .loc 1 1355 1 is_stmt 0 view .LVU1945 6446 0008 10B5 push {r4, lr} 6447 .LCFI29: 6448 .cfi_def_cfa_offset 8 6449 .cfi_offset 4, -8 6450 .cfi_offset 14, -4 6451 000a 0446 mov r4, r0 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6452 .loc 1 1362 3 is_stmt 1 discriminator 2 view .LVU1946 6453 000c 0123 movs r3, #1 6454 000e 80F85830 strb r3, [r0, #88] 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6455 .loc 1 1362 3 view .LVU1947 1365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6456 .loc 1 1365 3 view .LVU1948 ARM GAS /tmp/cco84Mp4.s page 385 1365:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6457 .loc 1 1365 20 is_stmt 0 view .LVU1949 6458 0012 0321 movs r1, #3 6459 0014 FFF7FEFF bl ADC_ConversionStop 6460 .LVL512: 1368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6461 .loc 1 1368 3 is_stmt 1 view .LVU1950 1368:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6462 .loc 1 1368 6 is_stmt 0 view .LVU1951 6463 0018 18B1 cbz r0, .L429 6464 .L423: 1384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6465 .loc 1 1384 3 is_stmt 1 view .LVU1952 1384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6466 .loc 1 1384 3 view .LVU1953 6467 001a 0023 movs r3, #0 6468 001c 84F85830 strb r3, [r4, #88] 1384:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6469 .loc 1 1384 3 view .LVU1954 1387:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6470 .loc 1 1387 3 view .LVU1955 1388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6471 .loc 1 1388 1 is_stmt 0 view .LVU1956 6472 0020 10BD pop {r4, pc} 6473 .LVL513: 6474 .L429: 1371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6475 .loc 1 1371 5 is_stmt 1 view .LVU1957 1371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6476 .loc 1 1371 22 is_stmt 0 view .LVU1958 6477 0022 2046 mov r0, r4 6478 .LVL514: 1371:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6479 .loc 1 1371 22 view .LVU1959 6480 0024 FFF7FEFF bl ADC_Disable 6481 .LVL515: 1374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6482 .loc 1 1374 5 is_stmt 1 view .LVU1960 1374:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6483 .loc 1 1374 8 is_stmt 0 view .LVU1961 6484 0028 0028 cmp r0, #0 6485 002a F6D1 bne .L423 1377:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6486 .loc 1 1377 7 is_stmt 1 view .LVU1962 6487 002c E36D ldr r3, [r4, #92] 6488 002e 23F48853 bic r3, r3, #4352 6489 0032 23F00103 bic r3, r3, #1 6490 0036 43F00103 orr r3, r3, #1 6491 003a E365 str r3, [r4, #92] 6492 003c EDE7 b .L423 6493 .LVL516: 6494 .L424: 6495 .LCFI30: 6496 .cfi_def_cfa_offset 0 6497 .cfi_restore 4 6498 .cfi_restore 14 1362:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** ARM GAS /tmp/cco84Mp4.s page 386 6499 .loc 1 1362 3 is_stmt 0 discriminator 1 view .LVU1963 6500 003e 0220 movs r0, #2 6501 .LVL517: 1388:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6502 .loc 1 1388 1 view .LVU1964 6503 0040 7047 bx lr 6504 .cfi_endproc 6505 .LFE334: 6507 .section .text.HAL_ADC_Stop_IT,"ax",%progbits 6508 .align 1 6509 .global HAL_ADC_Stop_IT 6510 .syntax unified 6511 .thumb 6512 .thumb_func 6514 HAL_ADC_Stop_IT: 6515 .LVL518: 6516 .LFB338: 1951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6517 .loc 1 1951 1 is_stmt 1 view -0 6518 .cfi_startproc 6519 @ args = 0, pretend = 0, frame = 0 6520 @ frame_needed = 0, uses_anonymous_args = 0 1952:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6521 .loc 1 1952 3 view .LVU1966 1955:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6522 .loc 1 1955 3 view .LVU1967 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6523 .loc 1 1958 3 view .LVU1968 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6524 .loc 1 1958 3 view .LVU1969 6525 0000 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6526 0004 012B cmp r3, #1 6527 0006 1FD0 beq .L433 1951:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6528 .loc 1 1951 1 is_stmt 0 view .LVU1970 6529 0008 10B5 push {r4, lr} 6530 .LCFI31: 6531 .cfi_def_cfa_offset 8 6532 .cfi_offset 4, -8 6533 .cfi_offset 14, -4 6534 000a 0446 mov r4, r0 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6535 .loc 1 1958 3 is_stmt 1 discriminator 2 view .LVU1971 6536 000c 0123 movs r3, #1 6537 000e 80F85830 strb r3, [r0, #88] 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6538 .loc 1 1958 3 view .LVU1972 1961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6539 .loc 1 1961 3 view .LVU1973 1961:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6540 .loc 1 1961 20 is_stmt 0 view .LVU1974 6541 0012 0321 movs r1, #3 6542 0014 FFF7FEFF bl ADC_ConversionStop 6543 .LVL519: 1964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6544 .loc 1 1964 3 is_stmt 1 view .LVU1975 1964:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 387 6545 .loc 1 1964 6 is_stmt 0 view .LVU1976 6546 0018 18B1 cbz r0, .L438 6547 .L432: 1984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6548 .loc 1 1984 3 is_stmt 1 view .LVU1977 1984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6549 .loc 1 1984 3 view .LVU1978 6550 001a 0023 movs r3, #0 6551 001c 84F85830 strb r3, [r4, #88] 1984:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6552 .loc 1 1984 3 view .LVU1979 1987:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6553 .loc 1 1987 3 view .LVU1980 1988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6554 .loc 1 1988 1 is_stmt 0 view .LVU1981 6555 0020 10BD pop {r4, pc} 6556 .LVL520: 6557 .L438: 1968:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6558 .loc 1 1968 5 is_stmt 1 view .LVU1982 6559 0022 2268 ldr r2, [r4] 6560 0024 5368 ldr r3, [r2, #4] 6561 0026 23F01C03 bic r3, r3, #28 6562 002a 5360 str r3, [r2, #4] 1971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6563 .loc 1 1971 5 view .LVU1983 1971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6564 .loc 1 1971 22 is_stmt 0 view .LVU1984 6565 002c 2046 mov r0, r4 6566 .LVL521: 1971:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6567 .loc 1 1971 22 view .LVU1985 6568 002e FFF7FEFF bl ADC_Disable 6569 .LVL522: 1974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6570 .loc 1 1974 5 is_stmt 1 view .LVU1986 1974:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6571 .loc 1 1974 8 is_stmt 0 view .LVU1987 6572 0032 0028 cmp r0, #0 6573 0034 F1D1 bne .L432 1977:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6574 .loc 1 1977 7 is_stmt 1 view .LVU1988 6575 0036 E36D ldr r3, [r4, #92] 6576 0038 23F48853 bic r3, r3, #4352 6577 003c 23F00103 bic r3, r3, #1 6578 0040 43F00103 orr r3, r3, #1 6579 0044 E365 str r3, [r4, #92] 6580 0046 E8E7 b .L432 6581 .LVL523: 6582 .L433: 6583 .LCFI32: 6584 .cfi_def_cfa_offset 0 6585 .cfi_restore 4 6586 .cfi_restore 14 1958:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6587 .loc 1 1958 3 is_stmt 0 discriminator 1 view .LVU1989 6588 0048 0220 movs r0, #2 ARM GAS /tmp/cco84Mp4.s page 388 6589 .LVL524: 1988:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6590 .loc 1 1988 1 view .LVU1990 6591 004a 7047 bx lr 6592 .cfi_endproc 6593 .LFE338: 6595 .section .text.HAL_ADC_Stop_DMA,"ax",%progbits 6596 .align 1 6597 .global HAL_ADC_Stop_DMA 6598 .syntax unified 6599 .thumb 6600 .thumb_func 6602 HAL_ADC_Stop_DMA: 6603 .LVL525: 6604 .LFB340: 2146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6605 .loc 1 2146 1 is_stmt 1 view -0 6606 .cfi_startproc 6607 @ args = 0, pretend = 0, frame = 0 6608 @ frame_needed = 0, uses_anonymous_args = 0 2146:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_StatusTypeDef tmp_hal_status; 6609 .loc 1 2146 1 is_stmt 0 view .LVU1992 6610 0000 38B5 push {r3, r4, r5, lr} 6611 .LCFI33: 6612 .cfi_def_cfa_offset 16 6613 .cfi_offset 3, -16 6614 .cfi_offset 4, -12 6615 .cfi_offset 5, -8 6616 .cfi_offset 14, -4 2147:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6617 .loc 1 2147 3 is_stmt 1 view .LVU1993 2150:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6618 .loc 1 2150 3 view .LVU1994 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6619 .loc 1 2153 3 view .LVU1995 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6620 .loc 1 2153 3 view .LVU1996 6621 0002 90F85830 ldrb r3, [r0, #88] @ zero_extendqisi2 6622 0006 012B cmp r3, #1 6623 0008 38D0 beq .L445 6624 000a 0446 mov r4, r0 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6625 .loc 1 2153 3 discriminator 2 view .LVU1997 6626 000c 0123 movs r3, #1 6627 000e 80F85830 strb r3, [r0, #88] 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6628 .loc 1 2153 3 view .LVU1998 2156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6629 .loc 1 2156 3 view .LVU1999 2156:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6630 .loc 1 2156 20 is_stmt 0 view .LVU2000 6631 0012 0321 movs r1, #3 6632 0014 FFF7FEFF bl ADC_ConversionStop 6633 .LVL526: 2159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6634 .loc 1 2159 3 is_stmt 1 view .LVU2001 2159:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { ARM GAS /tmp/cco84Mp4.s page 389 6635 .loc 1 2159 6 is_stmt 0 view .LVU2002 6636 0018 0546 mov r5, r0 6637 001a E0B9 cbnz r0, .L441 2162:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6638 .loc 1 2162 5 is_stmt 1 view .LVU2003 6639 001c 2268 ldr r2, [r4] 6640 001e D368 ldr r3, [r2, #12] 6641 0020 23F00103 bic r3, r3, #1 6642 0024 D360 str r3, [r2, #12] 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6643 .loc 1 2166 5 view .LVU2004 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6644 .loc 1 2166 13 is_stmt 0 view .LVU2005 6645 0026 606D ldr r0, [r4, #84] 6646 .LVL527: 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6647 .loc 1 2166 25 view .LVU2006 6648 0028 90F82530 ldrb r3, [r0, #37] @ zero_extendqisi2 2166:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6649 .loc 1 2166 8 view .LVU2007 6650 002c 022B cmp r3, #2 6651 002e 17D0 beq .L447 6652 .LVL528: 6653 .L442: 2179:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6654 .loc 1 2179 5 is_stmt 1 view .LVU2008 6655 0030 2268 ldr r2, [r4] 6656 0032 5368 ldr r3, [r2, #4] 6657 0034 23F01003 bic r3, r3, #16 6658 0038 5360 str r3, [r2, #4] 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6659 .loc 1 2184 5 view .LVU2009 2184:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6660 .loc 1 2184 8 is_stmt 0 view .LVU2010 6661 003a DDB9 cbnz r5, .L443 2186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6662 .loc 1 2186 7 is_stmt 1 view .LVU2011 2186:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6663 .loc 1 2186 24 is_stmt 0 view .LVU2012 6664 003c 2046 mov r0, r4 6665 003e FFF7FEFF bl ADC_Disable 6666 .LVL529: 6667 0042 0546 mov r5, r0 6668 .LVL530: 6669 .L444: 2194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6670 .loc 1 2194 5 is_stmt 1 view .LVU2013 2194:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6671 .loc 1 2194 8 is_stmt 0 view .LVU2014 6672 0044 3DB9 cbnz r5, .L441 2197:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, 6673 .loc 1 2197 7 is_stmt 1 view .LVU2015 6674 0046 E36D ldr r3, [r4, #92] 6675 0048 23F48853 bic r3, r3, #4352 6676 004c 23F00103 bic r3, r3, #1 6677 0050 43F00103 orr r3, r3, #1 6678 0054 E365 str r3, [r4, #92] ARM GAS /tmp/cco84Mp4.s page 390 6679 .LVL531: 6680 .L441: 2205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6681 .loc 1 2205 3 view .LVU2016 2205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6682 .loc 1 2205 3 view .LVU2017 6683 0056 0023 movs r3, #0 6684 0058 84F85830 strb r3, [r4, #88] 2205:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6685 .loc 1 2205 3 view .LVU2018 2208:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6686 .loc 1 2208 3 view .LVU2019 6687 .LVL532: 6688 .L440: 2209:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6689 .loc 1 2209 1 is_stmt 0 view .LVU2020 6690 005c 2846 mov r0, r5 6691 005e 38BD pop {r3, r4, r5, pc} 6692 .LVL533: 6693 .L447: 2168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6694 .loc 1 2168 7 is_stmt 1 view .LVU2021 2168:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6695 .loc 1 2168 24 is_stmt 0 view .LVU2022 6696 0060 FFF7FEFF bl HAL_DMA_Abort 6697 .LVL534: 2171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6698 .loc 1 2171 7 is_stmt 1 view .LVU2023 2171:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** { 6699 .loc 1 2171 10 is_stmt 0 view .LVU2024 6700 0064 0546 mov r5, r0 6701 0066 0028 cmp r0, #0 6702 0068 E2D0 beq .L442 2174:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6703 .loc 1 2174 9 is_stmt 1 view .LVU2025 6704 006a E36D ldr r3, [r4, #92] 6705 006c 43F04003 orr r3, r3, #64 6706 0070 E365 str r3, [r4, #92] 6707 0072 DDE7 b .L442 6708 .LVL535: 6709 .L443: 2190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6710 .loc 1 2190 7 view .LVU2026 2190:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** } 6711 .loc 1 2190 13 is_stmt 0 view .LVU2027 6712 0074 2046 mov r0, r4 6713 0076 FFF7FEFF bl ADC_Disable 6714 .LVL536: 6715 007a E3E7 b .L444 6716 .LVL537: 6717 .L445: 2153:Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_adc.c **** 6718 .loc 1 2153 3 discriminator 1 view .LVU2028 6719 007c 0225 movs r5, #2 6720 007e EDE7 b .L440 6721 .cfi_endproc 6722 .LFE340: ARM GAS /tmp/cco84Mp4.s page 391 6724 .text 6725 .Letext0: 6726 .file 4 "/home/fra/bin/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/mach 6727 .file 5 "/home/fra/bin/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/sys/ 6728 .file 6 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g431xx.h" 6729 .file 7 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4xx.h" 6730 .file 8 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_def.h" 6731 .file 9 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_dma.h" 6732 .file 10 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_adc.h" 6733 .file 11 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal_adc_ex.h" 6734 .file 12 "Drivers/CMSIS/Device/ST/STM32G4xx/Include/system_stm32g4xx.h" 6735 .file 13 "Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_hal.h" ARM GAS /tmp/cco84Mp4.s page 392 DEFINED SYMBOLS *ABS*:00000000 stm32g4xx_hal_adc.c /tmp/cco84Mp4.s:21 .text.LL_ADC_REG_SetSequencerRanks:00000000 $t /tmp/cco84Mp4.s:26 .text.LL_ADC_REG_SetSequencerRanks:00000000 LL_ADC_REG_SetSequencerRanks /tmp/cco84Mp4.s:73 .text.LL_ADC_SetChannelSamplingTime:00000000 $t /tmp/cco84Mp4.s:78 .text.LL_ADC_SetChannelSamplingTime:00000000 LL_ADC_SetChannelSamplingTime /tmp/cco84Mp4.s:123 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 $t /tmp/cco84Mp4.s:128 .text.LL_ADC_SetAnalogWDMonitChannels:00000000 LL_ADC_SetAnalogWDMonitChannels /tmp/cco84Mp4.s:166 .text.HAL_ADC_MspInit:00000000 $t /tmp/cco84Mp4.s:172 .text.HAL_ADC_MspInit:00000000 HAL_ADC_MspInit /tmp/cco84Mp4.s:187 .text.HAL_ADC_Init:00000000 $t /tmp/cco84Mp4.s:193 .text.HAL_ADC_Init:00000000 HAL_ADC_Init /tmp/cco84Mp4.s:740 .text.HAL_ADC_Init:00000210 $d /tmp/cco84Mp4.s:749 .text.HAL_ADC_MspDeInit:00000000 $t /tmp/cco84Mp4.s:755 .text.HAL_ADC_MspDeInit:00000000 HAL_ADC_MspDeInit /tmp/cco84Mp4.s:770 .text.HAL_ADC_PollForConversion:00000000 $t /tmp/cco84Mp4.s:776 .text.HAL_ADC_PollForConversion:00000000 HAL_ADC_PollForConversion /tmp/cco84Mp4.s:1060 .text.HAL_ADC_PollForConversion:00000114 $d /tmp/cco84Mp4.s:1066 .text.HAL_ADC_PollForEvent:00000000 $t /tmp/cco84Mp4.s:1072 .text.HAL_ADC_PollForEvent:00000000 HAL_ADC_PollForEvent /tmp/cco84Mp4.s:1260 .text.HAL_ADC_GetValue:00000000 $t /tmp/cco84Mp4.s:1266 .text.HAL_ADC_GetValue:00000000 HAL_ADC_GetValue /tmp/cco84Mp4.s:1287 .text.HAL_ADC_StartSampling:00000000 $t /tmp/cco84Mp4.s:1293 .text.HAL_ADC_StartSampling:00000000 HAL_ADC_StartSampling /tmp/cco84Mp4.s:1317 .text.HAL_ADC_StopSampling:00000000 $t /tmp/cco84Mp4.s:1323 .text.HAL_ADC_StopSampling:00000000 HAL_ADC_StopSampling /tmp/cco84Mp4.s:1347 .text.HAL_ADC_ConvCpltCallback:00000000 $t /tmp/cco84Mp4.s:1353 .text.HAL_ADC_ConvCpltCallback:00000000 HAL_ADC_ConvCpltCallback /tmp/cco84Mp4.s:1368 .text.HAL_ADC_ConvHalfCpltCallback:00000000 $t /tmp/cco84Mp4.s:1374 .text.HAL_ADC_ConvHalfCpltCallback:00000000 HAL_ADC_ConvHalfCpltCallback /tmp/cco84Mp4.s:1389 .text.ADC_DMAHalfConvCplt:00000000 $t /tmp/cco84Mp4.s:1395 .text.ADC_DMAHalfConvCplt:00000000 ADC_DMAHalfConvCplt /tmp/cco84Mp4.s:1422 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 $t /tmp/cco84Mp4.s:1428 .text.HAL_ADC_LevelOutOfWindowCallback:00000000 HAL_ADC_LevelOutOfWindowCallback /tmp/cco84Mp4.s:1443 .text.HAL_ADC_ErrorCallback:00000000 $t /tmp/cco84Mp4.s:1449 .text.HAL_ADC_ErrorCallback:00000000 HAL_ADC_ErrorCallback /tmp/cco84Mp4.s:1464 .text.HAL_ADC_IRQHandler:00000000 $t /tmp/cco84Mp4.s:1470 .text.HAL_ADC_IRQHandler:00000000 HAL_ADC_IRQHandler /tmp/cco84Mp4.s:2047 .text.HAL_ADC_IRQHandler:00000274 $d /tmp/cco84Mp4.s:2052 .text.HAL_ADC_IRQHandler:0000027c $t /tmp/cco84Mp4.s:2073 .text.ADC_DMAConvCplt:00000000 $t /tmp/cco84Mp4.s:2079 .text.ADC_DMAConvCplt:00000000 ADC_DMAConvCplt /tmp/cco84Mp4.s:2214 .text.ADC_DMAError:00000000 $t /tmp/cco84Mp4.s:2220 .text.ADC_DMAError:00000000 ADC_DMAError /tmp/cco84Mp4.s:2254 .text.HAL_ADC_ConfigChannel:00000000 $t /tmp/cco84Mp4.s:2260 .text.HAL_ADC_ConfigChannel:00000000 HAL_ADC_ConfigChannel /tmp/cco84Mp4.s:3407 .text.HAL_ADC_ConfigChannel:00000340 $d /tmp/cco84Mp4.s:3421 .text.HAL_ADC_ConfigChannel:00000364 $t /tmp/cco84Mp4.s:3709 .text.HAL_ADC_ConfigChannel:00000450 $d /tmp/cco84Mp4.s:3717 .text.HAL_ADC_AnalogWDGConfig:00000000 $t /tmp/cco84Mp4.s:3723 .text.HAL_ADC_AnalogWDGConfig:00000000 HAL_ADC_AnalogWDGConfig /tmp/cco84Mp4.s:4529 .text.HAL_ADC_AnalogWDGConfig:000002e0 $d /tmp/cco84Mp4.s:4536 .text.HAL_ADC_GetState:00000000 $t /tmp/cco84Mp4.s:4542 .text.HAL_ADC_GetState:00000000 HAL_ADC_GetState /tmp/cco84Mp4.s:4561 .text.HAL_ADC_GetError:00000000 $t /tmp/cco84Mp4.s:4567 .text.HAL_ADC_GetError:00000000 HAL_ADC_GetError /tmp/cco84Mp4.s:4586 .text.ADC_ConversionStop:00000000 $t ARM GAS /tmp/cco84Mp4.s page 393 /tmp/cco84Mp4.s:4592 .text.ADC_ConversionStop:00000000 ADC_ConversionStop /tmp/cco84Mp4.s:4920 .text.ADC_ConversionStop:00000100 $d /tmp/cco84Mp4.s:4925 .text.ADC_Enable:00000000 $t /tmp/cco84Mp4.s:4931 .text.ADC_Enable:00000000 ADC_Enable /tmp/cco84Mp4.s:5151 .text.ADC_Enable:000000cc $d /tmp/cco84Mp4.s:5159 .text.HAL_ADC_Start:00000000 $t /tmp/cco84Mp4.s:5165 .text.HAL_ADC_Start:00000000 HAL_ADC_Start /tmp/cco84Mp4.s:5386 .text.HAL_ADC_Start:000000f4 $d /tmp/cco84Mp4.s:5392 .text.HAL_ADC_Start_IT:00000000 $t /tmp/cco84Mp4.s:5398 .text.HAL_ADC_Start_IT:00000000 HAL_ADC_Start_IT /tmp/cco84Mp4.s:5714 .text.HAL_ADC_Start_IT:00000188 $d /tmp/cco84Mp4.s:5720 .text.HAL_ADC_Start_DMA:00000000 $t /tmp/cco84Mp4.s:5726 .text.HAL_ADC_Start_DMA:00000000 HAL_ADC_Start_DMA /tmp/cco84Mp4.s:5955 .text.HAL_ADC_Start_DMA:000000f4 $d /tmp/cco84Mp4.s:5964 .text.ADC_Disable:00000000 $t /tmp/cco84Mp4.s:5970 .text.ADC_Disable:00000000 ADC_Disable /tmp/cco84Mp4.s:6139 .text.HAL_ADC_DeInit:00000000 $t /tmp/cco84Mp4.s:6145 .text.HAL_ADC_DeInit:00000000 HAL_ADC_DeInit /tmp/cco84Mp4.s:6416 .text.HAL_ADC_DeInit:00000194 $d /tmp/cco84Mp4.s:6425 .text.HAL_ADC_Stop:00000000 $t /tmp/cco84Mp4.s:6431 .text.HAL_ADC_Stop:00000000 HAL_ADC_Stop /tmp/cco84Mp4.s:6508 .text.HAL_ADC_Stop_IT:00000000 $t /tmp/cco84Mp4.s:6514 .text.HAL_ADC_Stop_IT:00000000 HAL_ADC_Stop_IT /tmp/cco84Mp4.s:6596 .text.HAL_ADC_Stop_DMA:00000000 $t /tmp/cco84Mp4.s:6602 .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