meh

Fork of mbed by mbed official

Committer:
Kojto
Date:
Fri Oct 02 07:35:07 2015 +0200
Revision:
108:34e6b704fe68
Parent:
93:e188a91d3eaa
Release 108  of the mbed library

Changes:
- new platforms - ELMO_F411RE, WIZNET_7500P, ARM_MPS2_BEID
- EFM32 - bugfixes in rtc, serial
- Cortex A cmsis - update files
- STML4 - RAM fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 90:cb3d968589d8 1 /**
Kojto 90:cb3d968589d8 2 ******************************************************************************
Kojto 90:cb3d968589d8 3 * @file stm32f0xx_hal_adc_ex.h
Kojto 90:cb3d968589d8 4 * @author MCD Application Team
Kojto 108:34e6b704fe68 5 * @version V1.3.0
Kojto 108:34e6b704fe68 6 * @date 26-June-2015
Kojto 90:cb3d968589d8 7 * @brief Header file of ADC HAL Extension module.
Kojto 90:cb3d968589d8 8 ******************************************************************************
Kojto 90:cb3d968589d8 9 * @attention
Kojto 90:cb3d968589d8 10 *
Kojto 108:34e6b704fe68 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 90:cb3d968589d8 12 *
Kojto 90:cb3d968589d8 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 90:cb3d968589d8 14 * are permitted provided that the following conditions are met:
Kojto 90:cb3d968589d8 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 90:cb3d968589d8 16 * this list of conditions and the following disclaimer.
Kojto 90:cb3d968589d8 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 90:cb3d968589d8 18 * this list of conditions and the following disclaimer in the documentation
Kojto 90:cb3d968589d8 19 * and/or other materials provided with the distribution.
Kojto 90:cb3d968589d8 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 90:cb3d968589d8 21 * may be used to endorse or promote products derived from this software
Kojto 90:cb3d968589d8 22 * without specific prior written permission.
Kojto 90:cb3d968589d8 23 *
Kojto 90:cb3d968589d8 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 90:cb3d968589d8 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 90:cb3d968589d8 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 90:cb3d968589d8 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 90:cb3d968589d8 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 90:cb3d968589d8 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 90:cb3d968589d8 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 90:cb3d968589d8 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 90:cb3d968589d8 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 90:cb3d968589d8 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 90:cb3d968589d8 34 *
Kojto 90:cb3d968589d8 35 ******************************************************************************
Kojto 90:cb3d968589d8 36 */
Kojto 90:cb3d968589d8 37
Kojto 90:cb3d968589d8 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 90:cb3d968589d8 39 #ifndef __STM32F0xx_HAL_ADC_EX_H
Kojto 90:cb3d968589d8 40 #define __STM32F0xx_HAL_ADC_EX_H
Kojto 90:cb3d968589d8 41
Kojto 90:cb3d968589d8 42 #ifdef __cplusplus
Kojto 90:cb3d968589d8 43 extern "C" {
Kojto 90:cb3d968589d8 44 #endif
Kojto 90:cb3d968589d8 45
Kojto 90:cb3d968589d8 46 /* Includes ------------------------------------------------------------------*/
Kojto 90:cb3d968589d8 47 #include "stm32f0xx_hal_def.h"
Kojto 90:cb3d968589d8 48
Kojto 90:cb3d968589d8 49 /** @addtogroup STM32F0xx_HAL_Driver
Kojto 90:cb3d968589d8 50 * @{
Kojto 90:cb3d968589d8 51 */
Kojto 90:cb3d968589d8 52
Kojto 90:cb3d968589d8 53 /** @addtogroup ADCEx
Kojto 90:cb3d968589d8 54 * @{
Kojto 90:cb3d968589d8 55 */
Kojto 90:cb3d968589d8 56
Kojto 90:cb3d968589d8 57 /* Exported types ------------------------------------------------------------*/
Kojto 90:cb3d968589d8 58 /* Exported constants --------------------------------------------------------*/
Kojto 108:34e6b704fe68 59
Kojto 108:34e6b704fe68 60 /** @defgroup ADC_Exported_Constants ADC Exported Constants
Kojto 108:34e6b704fe68 61 * @{
Kojto 108:34e6b704fe68 62 */
Kojto 108:34e6b704fe68 63
Kojto 108:34e6b704fe68 64 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 65 #define ADC_CCR_ALL (ADC_CCR_VBATEN | ADC_CCR_TSEN | ADC_CCR_VREFEN)
Kojto 108:34e6b704fe68 66 #else
Kojto 108:34e6b704fe68 67 #define ADC_CCR_ALL (ADC_CCR_TSEN | ADC_CCR_VREFEN)
Kojto 108:34e6b704fe68 68 #endif
Kojto 108:34e6b704fe68 69
Kojto 108:34e6b704fe68 70 /** @defgroup ADC_External_trigger_source_Regular ADC External trigger source Regular
Kojto 108:34e6b704fe68 71 * @{
Kojto 108:34e6b704fe68 72 */
Kojto 108:34e6b704fe68 73 /* List of external triggers with generic trigger name, sorted by trigger */
Kojto 108:34e6b704fe68 74 /* name: */
Kojto 108:34e6b704fe68 75
Kojto 108:34e6b704fe68 76 /* External triggers of regular group for ADC1 */
Kojto 108:34e6b704fe68 77 #define ADC_EXTERNALTRIGCONV_T1_TRGO ADC1_2_EXTERNALTRIG_T1_TRGO
Kojto 108:34e6b704fe68 78 #define ADC_EXTERNALTRIGCONV_T1_CC4 ADC1_2_EXTERNALTRIG_T1_CC4
Kojto 108:34e6b704fe68 79 #define ADC_EXTERNALTRIGCONV_T3_TRGO ADC1_2_EXTERNALTRIG_T3_TRGO
Kojto 108:34e6b704fe68 80 #define ADC_SOFTWARE_START (ADC_CFGR1_EXTSEL + (uint32_t)1)
Kojto 108:34e6b704fe68 81
Kojto 108:34e6b704fe68 82 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 83 #define ADC_EXTERNALTRIGCONV_T2_TRGO ADC1_2_EXTERNALTRIG_T2_TRGO
Kojto 108:34e6b704fe68 84 #endif
Kojto 108:34e6b704fe68 85
Kojto 108:34e6b704fe68 86 #if !defined(STM32F030x6) && !defined(STM32F070x6) && !defined(STM32F042x6)
Kojto 108:34e6b704fe68 87 #define ADC_EXTERNALTRIGCONV_T15_TRGO ADC1_2_EXTERNALTRIG_T15_TRGO
Kojto 108:34e6b704fe68 88 #endif
Kojto 108:34e6b704fe68 89
Kojto 108:34e6b704fe68 90 /**
Kojto 108:34e6b704fe68 91 * @}
Kojto 108:34e6b704fe68 92 */
Kojto 108:34e6b704fe68 93
Kojto 108:34e6b704fe68 94
Kojto 108:34e6b704fe68 95 /** @defgroup ADC_channels ADC channels
Kojto 108:34e6b704fe68 96 * @{
Kojto 108:34e6b704fe68 97 */
Kojto 108:34e6b704fe68 98 /* Note: Depending on devices, some channels may not be available on package */
Kojto 108:34e6b704fe68 99 /* pins. Refer to device datasheet for channels availability. */
Kojto 108:34e6b704fe68 100 /* Note: Channels are used by bitfields for setting of channel selection */
Kojto 108:34e6b704fe68 101 /* (register ADC_CHSELR) and used by number for setting of analog */
Kojto 108:34e6b704fe68 102 /* watchdog channel (bits AWDCH in register ADC_CFGR1). */
Kojto 108:34e6b704fe68 103 /* Channels are defined with decimal numbers and converted them to */
Kojto 108:34e6b704fe68 104 /* bitfields when needed. */
Kojto 108:34e6b704fe68 105 #define ADC_CHANNEL_0 ((uint32_t) 0x00000000)
Kojto 108:34e6b704fe68 106 #define ADC_CHANNEL_1 ((uint32_t) 0x00000001)
Kojto 108:34e6b704fe68 107 #define ADC_CHANNEL_2 ((uint32_t) 0x00000002)
Kojto 108:34e6b704fe68 108 #define ADC_CHANNEL_3 ((uint32_t) 0x00000003)
Kojto 108:34e6b704fe68 109 #define ADC_CHANNEL_4 ((uint32_t) 0x00000004)
Kojto 108:34e6b704fe68 110 #define ADC_CHANNEL_5 ((uint32_t) 0x00000005)
Kojto 108:34e6b704fe68 111 #define ADC_CHANNEL_6 ((uint32_t) 0x00000006)
Kojto 108:34e6b704fe68 112 #define ADC_CHANNEL_7 ((uint32_t) 0x00000007)
Kojto 108:34e6b704fe68 113 #define ADC_CHANNEL_8 ((uint32_t) 0x00000008)
Kojto 108:34e6b704fe68 114 #define ADC_CHANNEL_9 ((uint32_t) 0x00000009)
Kojto 108:34e6b704fe68 115 #define ADC_CHANNEL_10 ((uint32_t) 0x0000000A)
Kojto 108:34e6b704fe68 116 #define ADC_CHANNEL_11 ((uint32_t) 0x0000000B)
Kojto 108:34e6b704fe68 117 #define ADC_CHANNEL_12 ((uint32_t) 0x0000000C)
Kojto 108:34e6b704fe68 118 #define ADC_CHANNEL_13 ((uint32_t) 0x0000000D)
Kojto 108:34e6b704fe68 119 #define ADC_CHANNEL_14 ((uint32_t) 0x0000000E)
Kojto 108:34e6b704fe68 120 #define ADC_CHANNEL_15 ((uint32_t) 0x0000000F)
Kojto 108:34e6b704fe68 121 #define ADC_CHANNEL_16 ((uint32_t) 0x00000010)
Kojto 108:34e6b704fe68 122 #define ADC_CHANNEL_17 ((uint32_t) 0x00000011)
Kojto 108:34e6b704fe68 123
Kojto 108:34e6b704fe68 124 #define ADC_CHANNEL_TEMPSENSOR ADC_CHANNEL_16
Kojto 108:34e6b704fe68 125 #define ADC_CHANNEL_VREFINT ADC_CHANNEL_17
Kojto 108:34e6b704fe68 126
Kojto 108:34e6b704fe68 127 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 128 #define ADC_CHANNEL_18 ((uint32_t) 0x00000012)
Kojto 108:34e6b704fe68 129 #define ADC_CHANNEL_VBAT ADC_CHANNEL_18
Kojto 108:34e6b704fe68 130 #endif
Kojto 108:34e6b704fe68 131
Kojto 108:34e6b704fe68 132 /**
Kojto 108:34e6b704fe68 133 * @}
Kojto 108:34e6b704fe68 134 */
Kojto 108:34e6b704fe68 135
Kojto 108:34e6b704fe68 136 /**
Kojto 108:34e6b704fe68 137 * @}
Kojto 108:34e6b704fe68 138 */
Kojto 108:34e6b704fe68 139
Kojto 90:cb3d968589d8 140 /* Exported macro ------------------------------------------------------------*/
Kojto 108:34e6b704fe68 141
Kojto 108:34e6b704fe68 142
Kojto 108:34e6b704fe68 143 /* Private macros ------------------------------------------------------------*/
Kojto 108:34e6b704fe68 144
Kojto 108:34e6b704fe68 145 /** @defgroup ADCEx_Private_Macros ADCEx Private Macros
Kojto 108:34e6b704fe68 146 * @{
Kojto 108:34e6b704fe68 147 */
Kojto 108:34e6b704fe68 148 /* Macro reserved for internal HAL driver usage, not intended to be used in */
Kojto 108:34e6b704fe68 149 /* code of final user. */
Kojto 108:34e6b704fe68 150
Kojto 108:34e6b704fe68 151 /**
Kojto 108:34e6b704fe68 152 * @brief Test if the selected ADC channel is an internal channel
Kojto 108:34e6b704fe68 153 * VrefInt/TempSensor/Vbat
Kojto 108:34e6b704fe68 154 * Note: On STM32F0, availability of internal channel Vbat depends on
Kojto 108:34e6b704fe68 155 * devices lines.
Kojto 108:34e6b704fe68 156 * @param __CHANNEL__: ADC channel
Kojto 108:34e6b704fe68 157 * @retval None
Kojto 108:34e6b704fe68 158 */
Kojto 108:34e6b704fe68 159 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 160 #define ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \
Kojto 108:34e6b704fe68 161 (((__CHANNEL__) == ADC_CHANNEL_TEMPSENSOR) || \
Kojto 108:34e6b704fe68 162 ((__CHANNEL__) == ADC_CHANNEL_VREFINT) || \
Kojto 108:34e6b704fe68 163 ((__CHANNEL__) == ADC_CHANNEL_VBAT) \
Kojto 108:34e6b704fe68 164 )
Kojto 108:34e6b704fe68 165 #else
Kojto 108:34e6b704fe68 166 #define ADC_IS_CHANNEL_INTERNAL(__CHANNEL__) \
Kojto 108:34e6b704fe68 167 (((__CHANNEL__) == ADC_CHANNEL_TEMPSENSOR) || \
Kojto 108:34e6b704fe68 168 ((__CHANNEL__) == ADC_CHANNEL_VREFINT) \
Kojto 108:34e6b704fe68 169 )
Kojto 108:34e6b704fe68 170 #endif
Kojto 108:34e6b704fe68 171
Kojto 108:34e6b704fe68 172 /**
Kojto 108:34e6b704fe68 173 * @brief Select the internal measurement path to be enabled/disabled
Kojto 108:34e6b704fe68 174 * corresponding to the selected ADC internal channel
Kojto 108:34e6b704fe68 175 * VrefInt/TempSensor/Vbat.
Kojto 108:34e6b704fe68 176 * Note: On STM32F0, availability of internal channel Vbat depends on
Kojto 108:34e6b704fe68 177 * devices lines.
Kojto 108:34e6b704fe68 178 * @param __CHANNEL__: ADC channel
Kojto 108:34e6b704fe68 179 * @retval Bit of register ADC_CCR
Kojto 108:34e6b704fe68 180 */
Kojto 108:34e6b704fe68 181 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 182 #define ADC_CHANNEL_INTERNAL_PATH(__CHANNEL__) \
Kojto 108:34e6b704fe68 183 (( (__CHANNEL__) == ADC_CHANNEL_TEMPSENSOR \
Kojto 108:34e6b704fe68 184 )? \
Kojto 108:34e6b704fe68 185 (ADC_CCR_TSEN) \
Kojto 108:34e6b704fe68 186 : \
Kojto 108:34e6b704fe68 187 ( \
Kojto 108:34e6b704fe68 188 ( (__CHANNEL__) == ADC_CHANNEL_VREFINT \
Kojto 108:34e6b704fe68 189 )? \
Kojto 108:34e6b704fe68 190 (ADC_CCR_VREFEN) \
Kojto 108:34e6b704fe68 191 : \
Kojto 108:34e6b704fe68 192 (ADC_CCR_VBATEN) \
Kojto 108:34e6b704fe68 193 ) \
Kojto 108:34e6b704fe68 194 )
Kojto 108:34e6b704fe68 195 #else
Kojto 108:34e6b704fe68 196 #define ADC_CHANNEL_INTERNAL_PATH(__CHANNEL__) \
Kojto 108:34e6b704fe68 197 (( (__CHANNEL__) == ADC_CHANNEL_TEMPSENSOR \
Kojto 108:34e6b704fe68 198 )? \
Kojto 108:34e6b704fe68 199 (ADC_CCR_TSEN) \
Kojto 108:34e6b704fe68 200 : \
Kojto 108:34e6b704fe68 201 (ADC_CHANNEL_VREFINT) \
Kojto 108:34e6b704fe68 202 )
Kojto 108:34e6b704fe68 203 #endif
Kojto 108:34e6b704fe68 204
Kojto 108:34e6b704fe68 205
Kojto 108:34e6b704fe68 206 #if defined (STM32F030x6) || defined (STM32F070x6)
Kojto 108:34e6b704fe68 207 #define IS_ADC_EXTTRIG(REGTRIG) (((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_TRGO) || \
Kojto 108:34e6b704fe68 208 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC4) || \
Kojto 108:34e6b704fe68 209 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_TRGO) || \
Kojto 108:34e6b704fe68 210 ((REGTRIG) == ADC_SOFTWARE_START))
Kojto 108:34e6b704fe68 211 #elif defined (STM32F042x6)
Kojto 108:34e6b704fe68 212 #define IS_ADC_EXTTRIG(REGTRIG) (((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_TRGO) || \
Kojto 108:34e6b704fe68 213 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC4) || \
Kojto 108:34e6b704fe68 214 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_TRGO) || \
Kojto 108:34e6b704fe68 215 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_TRGO) || \
Kojto 108:34e6b704fe68 216 ((REGTRIG) == ADC_SOFTWARE_START))
Kojto 108:34e6b704fe68 217
Kojto 108:34e6b704fe68 218 #elif defined (STM32F030xC) || defined (STM32F070xB) || defined (STM32F030x8)
Kojto 108:34e6b704fe68 219 #define IS_ADC_EXTTRIG(REGTRIG) (((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_TRGO) || \
Kojto 108:34e6b704fe68 220 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC4) || \
Kojto 108:34e6b704fe68 221 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_TRGO) || \
Kojto 108:34e6b704fe68 222 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T15_TRGO) || \
Kojto 108:34e6b704fe68 223 ((REGTRIG) == ADC_SOFTWARE_START))
Kojto 108:34e6b704fe68 224 #else
Kojto 108:34e6b704fe68 225 #define IS_ADC_EXTTRIG(REGTRIG) (((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_TRGO) || \
Kojto 108:34e6b704fe68 226 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T1_CC4) || \
Kojto 108:34e6b704fe68 227 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T2_TRGO) || \
Kojto 108:34e6b704fe68 228 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T3_TRGO) || \
Kojto 108:34e6b704fe68 229 ((REGTRIG) == ADC_EXTERNALTRIGCONV_T15_TRGO) || \
Kojto 108:34e6b704fe68 230 ((REGTRIG) == ADC_SOFTWARE_START))
Kojto 108:34e6b704fe68 231 #endif
Kojto 108:34e6b704fe68 232
Kojto 108:34e6b704fe68 233 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 108:34e6b704fe68 234 #define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) == ADC_CHANNEL_0) || \
Kojto 108:34e6b704fe68 235 ((CHANNEL) == ADC_CHANNEL_1) || \
Kojto 108:34e6b704fe68 236 ((CHANNEL) == ADC_CHANNEL_2) || \
Kojto 108:34e6b704fe68 237 ((CHANNEL) == ADC_CHANNEL_3) || \
Kojto 108:34e6b704fe68 238 ((CHANNEL) == ADC_CHANNEL_4) || \
Kojto 108:34e6b704fe68 239 ((CHANNEL) == ADC_CHANNEL_5) || \
Kojto 108:34e6b704fe68 240 ((CHANNEL) == ADC_CHANNEL_6) || \
Kojto 108:34e6b704fe68 241 ((CHANNEL) == ADC_CHANNEL_7) || \
Kojto 108:34e6b704fe68 242 ((CHANNEL) == ADC_CHANNEL_8) || \
Kojto 108:34e6b704fe68 243 ((CHANNEL) == ADC_CHANNEL_9) || \
Kojto 108:34e6b704fe68 244 ((CHANNEL) == ADC_CHANNEL_10) || \
Kojto 108:34e6b704fe68 245 ((CHANNEL) == ADC_CHANNEL_11) || \
Kojto 108:34e6b704fe68 246 ((CHANNEL) == ADC_CHANNEL_12) || \
Kojto 108:34e6b704fe68 247 ((CHANNEL) == ADC_CHANNEL_13) || \
Kojto 108:34e6b704fe68 248 ((CHANNEL) == ADC_CHANNEL_14) || \
Kojto 108:34e6b704fe68 249 ((CHANNEL) == ADC_CHANNEL_15) || \
Kojto 108:34e6b704fe68 250 ((CHANNEL) == ADC_CHANNEL_TEMPSENSOR) || \
Kojto 108:34e6b704fe68 251 ((CHANNEL) == ADC_CHANNEL_VREFINT) || \
Kojto 108:34e6b704fe68 252 ((CHANNEL) == ADC_CHANNEL_VBAT) )
Kojto 108:34e6b704fe68 253 #else
Kojto 108:34e6b704fe68 254 #define IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) == ADC_CHANNEL_0) || \
Kojto 108:34e6b704fe68 255 ((CHANNEL) == ADC_CHANNEL_1) || \
Kojto 108:34e6b704fe68 256 ((CHANNEL) == ADC_CHANNEL_2) || \
Kojto 108:34e6b704fe68 257 ((CHANNEL) == ADC_CHANNEL_3) || \
Kojto 108:34e6b704fe68 258 ((CHANNEL) == ADC_CHANNEL_4) || \
Kojto 108:34e6b704fe68 259 ((CHANNEL) == ADC_CHANNEL_5) || \
Kojto 108:34e6b704fe68 260 ((CHANNEL) == ADC_CHANNEL_6) || \
Kojto 108:34e6b704fe68 261 ((CHANNEL) == ADC_CHANNEL_7) || \
Kojto 108:34e6b704fe68 262 ((CHANNEL) == ADC_CHANNEL_8) || \
Kojto 108:34e6b704fe68 263 ((CHANNEL) == ADC_CHANNEL_9) || \
Kojto 108:34e6b704fe68 264 ((CHANNEL) == ADC_CHANNEL_10) || \
Kojto 108:34e6b704fe68 265 ((CHANNEL) == ADC_CHANNEL_11) || \
Kojto 108:34e6b704fe68 266 ((CHANNEL) == ADC_CHANNEL_12) || \
Kojto 108:34e6b704fe68 267 ((CHANNEL) == ADC_CHANNEL_13) || \
Kojto 108:34e6b704fe68 268 ((CHANNEL) == ADC_CHANNEL_14) || \
Kojto 108:34e6b704fe68 269 ((CHANNEL) == ADC_CHANNEL_15) || \
Kojto 108:34e6b704fe68 270 ((CHANNEL) == ADC_CHANNEL_TEMPSENSOR) || \
Kojto 108:34e6b704fe68 271 ((CHANNEL) == ADC_CHANNEL_VREFINT) )
Kojto 108:34e6b704fe68 272 #endif
Kojto 108:34e6b704fe68 273
Kojto 108:34e6b704fe68 274 /**
Kojto 108:34e6b704fe68 275 * @}
Kojto 108:34e6b704fe68 276 */
Kojto 108:34e6b704fe68 277
Kojto 108:34e6b704fe68 278
Kojto 90:cb3d968589d8 279 /* Exported functions --------------------------------------------------------*/
Kojto 90:cb3d968589d8 280 /** @addtogroup ADCEx_Exported_Functions
Kojto 90:cb3d968589d8 281 * @{
Kojto 90:cb3d968589d8 282 */
Kojto 90:cb3d968589d8 283
Kojto 90:cb3d968589d8 284 /* IO operation functions *****************************************************/
Kojto 90:cb3d968589d8 285 /** @addtogroup ADCEx_Exported_Functions_Group1
Kojto 90:cb3d968589d8 286 * @{
Kojto 90:cb3d968589d8 287 */
Kojto 90:cb3d968589d8 288
Kojto 90:cb3d968589d8 289 /* ADC calibration */
Kojto 90:cb3d968589d8 290 HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc);
Kojto 90:cb3d968589d8 291 /**
Kojto 90:cb3d968589d8 292 * @}
Kojto 90:cb3d968589d8 293 */
Kojto 90:cb3d968589d8 294
Kojto 90:cb3d968589d8 295
Kojto 90:cb3d968589d8 296 /**
Kojto 90:cb3d968589d8 297 * @}
Kojto 90:cb3d968589d8 298 */
Kojto 90:cb3d968589d8 299
Kojto 90:cb3d968589d8 300
Kojto 90:cb3d968589d8 301 /**
Kojto 90:cb3d968589d8 302 * @}
Kojto 90:cb3d968589d8 303 */
Kojto 90:cb3d968589d8 304
Kojto 90:cb3d968589d8 305 /**
Kojto 90:cb3d968589d8 306 * @}
Kojto 90:cb3d968589d8 307 */
Kojto 90:cb3d968589d8 308
Kojto 90:cb3d968589d8 309 #ifdef __cplusplus
Kojto 90:cb3d968589d8 310 }
Kojto 90:cb3d968589d8 311 #endif
Kojto 90:cb3d968589d8 312
Kojto 90:cb3d968589d8 313 #endif /* __STM32F0xx_HAL_ADC_EX_H */
Kojto 90:cb3d968589d8 314
Kojto 90:cb3d968589d8 315
Kojto 90:cb3d968589d8 316 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 90:cb3d968589d8 317