my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Committer:
filartrix
Date:
Wed Apr 08 14:12:53 2015 +0000
Revision:
97:4298809c7c9e
Parent:
93:e188a91d3eaa
First reale BlueNRG module for nucleo 401 board

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_smartcard_ex.h
Kojto 90:cb3d968589d8 4 * @author MCD Application Team
Kojto 93:e188a91d3eaa 5 * @version V1.2.0
Kojto 93:e188a91d3eaa 6 * @date 11-December-2014
Kojto 90:cb3d968589d8 7 * @brief Header file of SMARTCARD HAL module.
Kojto 90:cb3d968589d8 8 ******************************************************************************
Kojto 90:cb3d968589d8 9 * @attention
Kojto 90:cb3d968589d8 10 *
Kojto 90:cb3d968589d8 11 * <h2><center>&copy; COPYRIGHT(c) 2014 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_SMARTCARD_EX_H
Kojto 90:cb3d968589d8 40 #define __STM32F0xx_HAL_SMARTCARD_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 93:e188a91d3eaa 46 #if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
Kojto 90:cb3d968589d8 47
Kojto 90:cb3d968589d8 48 /* Includes ------------------------------------------------------------------*/
Kojto 90:cb3d968589d8 49 #include "stm32f0xx_hal_def.h"
Kojto 90:cb3d968589d8 50
Kojto 90:cb3d968589d8 51 /** @addtogroup STM32F0xx_HAL_Driver
Kojto 90:cb3d968589d8 52 * @{
Kojto 90:cb3d968589d8 53 */
Kojto 90:cb3d968589d8 54
Kojto 90:cb3d968589d8 55 /** @addtogroup SMARTCARDEx
Kojto 90:cb3d968589d8 56 * @{
Kojto 90:cb3d968589d8 57 */
Kojto 90:cb3d968589d8 58
Kojto 90:cb3d968589d8 59 /* Exported types ------------------------------------------------------------*/
Kojto 90:cb3d968589d8 60 /* Exported constants --------------------------------------------------------*/
Kojto 90:cb3d968589d8 61 /* Exported macro ------------------------------------------------------------*/
Kojto 90:cb3d968589d8 62
Kojto 90:cb3d968589d8 63 /** @defgroup SMARTCARD_Extended_Exported_Macros SMARTCARDEx Exported Macros
Kojto 90:cb3d968589d8 64 * @{
Kojto 90:cb3d968589d8 65 */
Kojto 90:cb3d968589d8 66
Kojto 90:cb3d968589d8 67 /** @brief Reports the SMARTCARD clock source.
Kojto 90:cb3d968589d8 68 * @param __HANDLE__: specifies the SMARTCARD Handle
Kojto 90:cb3d968589d8 69 * @param __CLOCKSOURCE__ : output variable
Kojto 90:cb3d968589d8 70 * @retval the SMARTCARD clocking source, written in __CLOCKSOURCE__.
Kojto 90:cb3d968589d8 71 */
Kojto 90:cb3d968589d8 72 #if defined(STM32F031x6) || defined(STM32F038xx)
Kojto 90:cb3d968589d8 73 #define __HAL_SMARTCARD_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \
Kojto 90:cb3d968589d8 74 do { \
Kojto 90:cb3d968589d8 75 switch(__HAL_RCC_GET_USART1_SOURCE()) \
Kojto 90:cb3d968589d8 76 { \
Kojto 90:cb3d968589d8 77 case RCC_USART1CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 78 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 79 break; \
Kojto 90:cb3d968589d8 80 case RCC_USART1CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 81 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 82 break; \
Kojto 90:cb3d968589d8 83 case RCC_USART1CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 84 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 85 break; \
Kojto 90:cb3d968589d8 86 case RCC_USART1CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 87 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 88 break; \
Kojto 90:cb3d968589d8 89 default: \
Kojto 90:cb3d968589d8 90 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 91 break; \
Kojto 90:cb3d968589d8 92 } \
Kojto 90:cb3d968589d8 93 } while(0)
Kojto 90:cb3d968589d8 94 #elif defined (STM32F030x8) || \
Kojto 90:cb3d968589d8 95 defined (STM32F042x6) || defined (STM32F048xx) || \
Kojto 90:cb3d968589d8 96 defined (STM32F051x8) || defined (STM32F058xx)
Kojto 90:cb3d968589d8 97 #define __HAL_SMARTCARD_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \
Kojto 90:cb3d968589d8 98 do { \
Kojto 90:cb3d968589d8 99 if((__HANDLE__)->Instance == USART1) \
Kojto 90:cb3d968589d8 100 { \
Kojto 90:cb3d968589d8 101 switch(__HAL_RCC_GET_USART1_SOURCE()) \
Kojto 90:cb3d968589d8 102 { \
Kojto 90:cb3d968589d8 103 case RCC_USART1CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 104 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 105 break; \
Kojto 90:cb3d968589d8 106 case RCC_USART1CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 107 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 108 break; \
Kojto 90:cb3d968589d8 109 case RCC_USART1CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 110 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 111 break; \
Kojto 90:cb3d968589d8 112 case RCC_USART1CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 113 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 114 break; \
Kojto 90:cb3d968589d8 115 default: \
Kojto 90:cb3d968589d8 116 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 117 break; \
Kojto 90:cb3d968589d8 118 } \
Kojto 90:cb3d968589d8 119 } \
Kojto 90:cb3d968589d8 120 else if((__HANDLE__)->Instance == USART2) \
Kojto 90:cb3d968589d8 121 { \
Kojto 90:cb3d968589d8 122 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 123 } \
Kojto 90:cb3d968589d8 124 else \
Kojto 90:cb3d968589d8 125 { \
Kojto 90:cb3d968589d8 126 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 127 } \
Kojto 90:cb3d968589d8 128 } while(0)
Kojto 90:cb3d968589d8 129 #elif defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)
Kojto 90:cb3d968589d8 130 #define __HAL_SMARTCARD_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \
Kojto 90:cb3d968589d8 131 do { \
Kojto 90:cb3d968589d8 132 if((__HANDLE__)->Instance == USART1) \
Kojto 90:cb3d968589d8 133 { \
Kojto 90:cb3d968589d8 134 switch(__HAL_RCC_GET_USART1_SOURCE()) \
Kojto 90:cb3d968589d8 135 { \
Kojto 90:cb3d968589d8 136 case RCC_USART1CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 137 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 138 break; \
Kojto 90:cb3d968589d8 139 case RCC_USART1CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 140 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 141 break; \
Kojto 90:cb3d968589d8 142 case RCC_USART1CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 143 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 144 break; \
Kojto 90:cb3d968589d8 145 case RCC_USART1CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 146 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 147 break; \
Kojto 90:cb3d968589d8 148 default: \
Kojto 90:cb3d968589d8 149 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 150 break; \
Kojto 90:cb3d968589d8 151 } \
Kojto 90:cb3d968589d8 152 } \
Kojto 90:cb3d968589d8 153 else if((__HANDLE__)->Instance == USART2) \
Kojto 90:cb3d968589d8 154 { \
Kojto 90:cb3d968589d8 155 switch(__HAL_RCC_GET_USART2_SOURCE()) \
Kojto 90:cb3d968589d8 156 { \
Kojto 90:cb3d968589d8 157 case RCC_USART2CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 158 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 159 break; \
Kojto 90:cb3d968589d8 160 case RCC_USART2CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 161 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 162 break; \
Kojto 90:cb3d968589d8 163 case RCC_USART2CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 164 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 165 break; \
Kojto 90:cb3d968589d8 166 case RCC_USART2CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 167 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 168 break; \
Kojto 90:cb3d968589d8 169 default: \
Kojto 90:cb3d968589d8 170 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 171 break; \
Kojto 90:cb3d968589d8 172 } \
Kojto 90:cb3d968589d8 173 } \
Kojto 90:cb3d968589d8 174 else if((__HANDLE__)->Instance == USART3) \
Kojto 90:cb3d968589d8 175 { \
Kojto 90:cb3d968589d8 176 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 177 } \
Kojto 90:cb3d968589d8 178 else if((__HANDLE__)->Instance == USART4) \
Kojto 90:cb3d968589d8 179 { \
Kojto 90:cb3d968589d8 180 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 181 } \
Kojto 90:cb3d968589d8 182 else \
Kojto 90:cb3d968589d8 183 { \
Kojto 90:cb3d968589d8 184 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 185 } \
Kojto 90:cb3d968589d8 186 } while(0)
Kojto 90:cb3d968589d8 187 #elif defined(STM32F091xC) || defined(STM32F098xx)
Kojto 90:cb3d968589d8 188 #define __HAL_SMARTCARD_GETCLOCKSOURCE(__HANDLE__,__CLOCKSOURCE__) \
Kojto 90:cb3d968589d8 189 do { \
Kojto 90:cb3d968589d8 190 if((__HANDLE__)->Instance == USART1) \
Kojto 90:cb3d968589d8 191 { \
Kojto 90:cb3d968589d8 192 switch(__HAL_RCC_GET_USART1_SOURCE()) \
Kojto 90:cb3d968589d8 193 { \
Kojto 90:cb3d968589d8 194 case RCC_USART1CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 195 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 196 break; \
Kojto 90:cb3d968589d8 197 case RCC_USART1CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 198 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 199 break; \
Kojto 90:cb3d968589d8 200 case RCC_USART1CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 201 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 202 break; \
Kojto 90:cb3d968589d8 203 case RCC_USART1CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 204 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 205 break; \
Kojto 90:cb3d968589d8 206 default: \
Kojto 90:cb3d968589d8 207 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 208 break; \
Kojto 90:cb3d968589d8 209 } \
Kojto 90:cb3d968589d8 210 } \
Kojto 90:cb3d968589d8 211 else if((__HANDLE__)->Instance == USART2) \
Kojto 90:cb3d968589d8 212 { \
Kojto 90:cb3d968589d8 213 switch(__HAL_RCC_GET_USART2_SOURCE()) \
Kojto 90:cb3d968589d8 214 { \
Kojto 90:cb3d968589d8 215 case RCC_USART2CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 216 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 217 break; \
Kojto 90:cb3d968589d8 218 case RCC_USART2CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 219 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 220 break; \
Kojto 90:cb3d968589d8 221 case RCC_USART2CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 222 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 223 break; \
Kojto 90:cb3d968589d8 224 case RCC_USART2CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 225 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 226 break; \
Kojto 90:cb3d968589d8 227 default: \
Kojto 90:cb3d968589d8 228 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 229 break; \
Kojto 90:cb3d968589d8 230 } \
Kojto 90:cb3d968589d8 231 } \
Kojto 90:cb3d968589d8 232 else if((__HANDLE__)->Instance == USART3) \
Kojto 90:cb3d968589d8 233 { \
Kojto 90:cb3d968589d8 234 switch(__HAL_RCC_GET_USART3_SOURCE()) \
Kojto 90:cb3d968589d8 235 { \
Kojto 90:cb3d968589d8 236 case RCC_USART3CLKSOURCE_PCLK1: \
Kojto 90:cb3d968589d8 237 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 238 break; \
Kojto 90:cb3d968589d8 239 case RCC_USART3CLKSOURCE_HSI: \
Kojto 90:cb3d968589d8 240 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_HSI; \
Kojto 90:cb3d968589d8 241 break; \
Kojto 90:cb3d968589d8 242 case RCC_USART3CLKSOURCE_SYSCLK: \
Kojto 90:cb3d968589d8 243 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_SYSCLK; \
Kojto 90:cb3d968589d8 244 break; \
Kojto 90:cb3d968589d8 245 case RCC_USART3CLKSOURCE_LSE: \
Kojto 90:cb3d968589d8 246 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_LSE; \
Kojto 90:cb3d968589d8 247 break; \
Kojto 90:cb3d968589d8 248 default: \
Kojto 90:cb3d968589d8 249 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 250 break; \
Kojto 90:cb3d968589d8 251 } \
Kojto 90:cb3d968589d8 252 } \
Kojto 90:cb3d968589d8 253 else if((__HANDLE__)->Instance == USART4) \
Kojto 90:cb3d968589d8 254 { \
Kojto 90:cb3d968589d8 255 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 256 } \
Kojto 90:cb3d968589d8 257 else if((__HANDLE__)->Instance == USART5) \
Kojto 90:cb3d968589d8 258 { \
Kojto 90:cb3d968589d8 259 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 260 } \
Kojto 90:cb3d968589d8 261 else if((__HANDLE__)->Instance == USART6) \
Kojto 90:cb3d968589d8 262 { \
Kojto 90:cb3d968589d8 263 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 264 } \
Kojto 90:cb3d968589d8 265 else if((__HANDLE__)->Instance == USART7) \
Kojto 90:cb3d968589d8 266 { \
Kojto 90:cb3d968589d8 267 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 268 } \
Kojto 90:cb3d968589d8 269 else if((__HANDLE__)->Instance == USART8) \
Kojto 90:cb3d968589d8 270 { \
Kojto 90:cb3d968589d8 271 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_PCLK1; \
Kojto 90:cb3d968589d8 272 } \
Kojto 90:cb3d968589d8 273 else \
Kojto 90:cb3d968589d8 274 { \
Kojto 90:cb3d968589d8 275 (__CLOCKSOURCE__) = SMARTCARD_CLOCKSOURCE_UNDEFINED; \
Kojto 90:cb3d968589d8 276 } \
Kojto 90:cb3d968589d8 277 } while(0)
Kojto 90:cb3d968589d8 278 #endif /* defined(STM32F031x6) || defined(STM32F038xx) */
Kojto 90:cb3d968589d8 279
Kojto 90:cb3d968589d8 280 /**
Kojto 90:cb3d968589d8 281 * @}
Kojto 90:cb3d968589d8 282 */
Kojto 90:cb3d968589d8 283
Kojto 90:cb3d968589d8 284 /* Exported functions --------------------------------------------------------*/
Kojto 90:cb3d968589d8 285
Kojto 90:cb3d968589d8 286 /* Initialization and de-initialization functions ****************************/
Kojto 90:cb3d968589d8 287 /* IO operation functions *****************************************************/
Kojto 90:cb3d968589d8 288
Kojto 90:cb3d968589d8 289 /** @addtogroup SMARTCARDEx_Exported_Functions
Kojto 90:cb3d968589d8 290 * @{
Kojto 90:cb3d968589d8 291 */
Kojto 90:cb3d968589d8 292
Kojto 90:cb3d968589d8 293 /** @addtogroup SMARTCARDEx_Exported_Functions_Group1
Kojto 90:cb3d968589d8 294 * @{
Kojto 90:cb3d968589d8 295 */
Kojto 90:cb3d968589d8 296
Kojto 90:cb3d968589d8 297 /* Peripheral Control functions ***********************************************/
Kojto 90:cb3d968589d8 298 void HAL_SMARTCARDEx_BlockLength_Config(SMARTCARD_HandleTypeDef *hsmartcard, uint8_t BlockLength);
Kojto 90:cb3d968589d8 299 void HAL_SMARTCARDEx_TimeOut_Config(SMARTCARD_HandleTypeDef *hsmartcard, uint32_t TimeOutValue);
Kojto 90:cb3d968589d8 300 HAL_StatusTypeDef HAL_SMARTCARDEx_EnableReceiverTimeOut(SMARTCARD_HandleTypeDef *hsmartcard);
Kojto 90:cb3d968589d8 301 HAL_StatusTypeDef HAL_SMARTCARDEx_DisableReceiverTimeOut(SMARTCARD_HandleTypeDef *hsmartcard);
Kojto 90:cb3d968589d8 302
Kojto 90:cb3d968589d8 303 /* Peripheral State and Error functions ***************************************/
Kojto 90:cb3d968589d8 304
Kojto 90:cb3d968589d8 305 /**
Kojto 90:cb3d968589d8 306 * @}
Kojto 90:cb3d968589d8 307 */
Kojto 90:cb3d968589d8 308
Kojto 90:cb3d968589d8 309 /**
Kojto 90:cb3d968589d8 310 * @}
Kojto 90:cb3d968589d8 311 */
Kojto 90:cb3d968589d8 312
Kojto 90:cb3d968589d8 313 /**
Kojto 90:cb3d968589d8 314 * @}
Kojto 90:cb3d968589d8 315 */
Kojto 90:cb3d968589d8 316
Kojto 90:cb3d968589d8 317 /**
Kojto 90:cb3d968589d8 318 * @}
Kojto 90:cb3d968589d8 319 */
Kojto 90:cb3d968589d8 320
Kojto 93:e188a91d3eaa 321 #endif /* !defined(STM32F030x6) && !defined(STM32F030x8)&& !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC) */
Kojto 90:cb3d968589d8 322
Kojto 90:cb3d968589d8 323 #ifdef __cplusplus
Kojto 90:cb3d968589d8 324 }
Kojto 90:cb3d968589d8 325 #endif
Kojto 90:cb3d968589d8 326
Kojto 90:cb3d968589d8 327 #endif /* __STM32F0xx_HAL_SMARTCARD_EX_H */
Kojto 90:cb3d968589d8 328
Kojto 90:cb3d968589d8 329 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 90:cb3d968589d8 330