STM32F439xx HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_hal_gpio.c 00004 * @author MCD Application Team 00005 * @brief GPIO HAL module driver. 00006 * This file provides firmware functions to manage the following 00007 * functionalities of the General Purpose Input/Output (GPIO) peripheral: 00008 * + Initialization and de-initialization functions 00009 * + IO operation functions 00010 * 00011 @verbatim 00012 ============================================================================== 00013 ##### GPIO Peripheral features ##### 00014 ============================================================================== 00015 [..] 00016 Subject to the specific hardware characteristics of each I/O port listed in the datasheet, each 00017 port bit of the General Purpose IO (GPIO) Ports, can be individually configured by software 00018 in several modes: 00019 (+) Input mode 00020 (+) Analog mode 00021 (+) Output mode 00022 (+) Alternate function mode 00023 (+) External interrupt/event lines 00024 00025 [..] 00026 During and just after reset, the alternate functions and external interrupt 00027 lines are not active and the I/O ports are configured in input floating mode. 00028 00029 [..] 00030 All GPIO pins have weak internal pull-up and pull-down resistors, which can be 00031 activated or not. 00032 00033 [..] 00034 In Output or Alternate mode, each IO can be configured on open-drain or push-pull 00035 type and the IO speed can be selected depending on the VDD value. 00036 00037 [..] 00038 All ports have external interrupt/event capability. To use external interrupt 00039 lines, the port must be configured in input mode. All available GPIO pins are 00040 connected to the 16 external interrupt/event lines from EXTI0 to EXTI15. 00041 00042 [..] 00043 The external interrupt/event controller consists of up to 23 edge detectors 00044 (16 lines are connected to GPIO) for generating event/interrupt requests (each 00045 input line can be independently configured to select the type (interrupt or event) 00046 and the corresponding trigger event (rising or falling or both). Each line can 00047 also be masked independently. 00048 00049 ##### How to use this driver ##### 00050 ============================================================================== 00051 [..] 00052 (#) Enable the GPIO AHB clock using the following function: __HAL_RCC_GPIOx_CLK_ENABLE(). 00053 00054 (#) Configure the GPIO pin(s) using HAL_GPIO_Init(). 00055 (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure 00056 (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef 00057 structure. 00058 (++) In case of Output or alternate function mode selection: the speed is 00059 configured through "Speed" member from GPIO_InitTypeDef structure. 00060 (++) In alternate mode is selection, the alternate function connected to the IO 00061 is configured through "Alternate" member from GPIO_InitTypeDef structure. 00062 (++) Analog mode is required when a pin is to be used as ADC channel 00063 or DAC output. 00064 (++) In case of external interrupt/event selection the "Mode" member from 00065 GPIO_InitTypeDef structure select the type (interrupt or event) and 00066 the corresponding trigger event (rising or falling or both). 00067 00068 (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority 00069 mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using 00070 HAL_NVIC_EnableIRQ(). 00071 00072 (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin(). 00073 00074 (#) To set/reset the level of a pin configured in output mode use 00075 HAL_GPIO_WritePin()/HAL_GPIO_TogglePin(). 00076 00077 (#) To lock pin configuration until next reset use HAL_GPIO_LockPin(). 00078 00079 00080 (#) During and just after reset, the alternate functions are not 00081 active and the GPIO pins are configured in input floating mode (except JTAG 00082 pins). 00083 00084 (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose 00085 (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has 00086 priority over the GPIO function. 00087 00088 (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as 00089 general purpose PH0 and PH1, respectively, when the HSE oscillator is off. 00090 The HSE has priority over the GPIO function. 00091 00092 @endverbatim 00093 ****************************************************************************** 00094 * @attention 00095 * 00096 * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> 00097 * 00098 * Redistribution and use in source and binary forms, with or without modification, 00099 * are permitted provided that the following conditions are met: 00100 * 1. Redistributions of source code must retain the above copyright notice, 00101 * this list of conditions and the following disclaimer. 00102 * 2. Redistributions in binary form must reproduce the above copyright notice, 00103 * this list of conditions and the following disclaimer in the documentation 00104 * and/or other materials provided with the distribution. 00105 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00106 * may be used to endorse or promote products derived from this software 00107 * without specific prior written permission. 00108 * 00109 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00110 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00111 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00112 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00113 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00114 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00115 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00116 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00117 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00118 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00119 * 00120 ****************************************************************************** 00121 */ 00122 00123 /* Includes ------------------------------------------------------------------*/ 00124 #include "stm32f4xx_hal.h" 00125 00126 /** @addtogroup STM32F4xx_HAL_Driver 00127 * @{ 00128 */ 00129 00130 /** @defgroup GPIO GPIO 00131 * @brief GPIO HAL module driver 00132 * @{ 00133 */ 00134 00135 #ifdef HAL_GPIO_MODULE_ENABLED 00136 00137 /* Private typedef -----------------------------------------------------------*/ 00138 /* Private define ------------------------------------------------------------*/ 00139 /** @addtogroup GPIO_Private_Constants GPIO Private Constants 00140 * @{ 00141 */ 00142 #define GPIO_MODE 0x00000003U 00143 #define EXTI_MODE 0x10000000U 00144 #define GPIO_MODE_IT 0x00010000U 00145 #define GPIO_MODE_EVT 0x00020000U 00146 #define RISING_EDGE 0x00100000U 00147 #define FALLING_EDGE 0x00200000U 00148 #define GPIO_OUTPUT_TYPE 0x00000010U 00149 00150 #define GPIO_NUMBER 16U 00151 /** 00152 * @} 00153 */ 00154 /* Private macro -------------------------------------------------------------*/ 00155 /* Private variables ---------------------------------------------------------*/ 00156 /* Private function prototypes -----------------------------------------------*/ 00157 /* Private functions ---------------------------------------------------------*/ 00158 /* Exported functions --------------------------------------------------------*/ 00159 /** @defgroup GPIO_Exported_Functions GPIO Exported Functions 00160 * @{ 00161 */ 00162 00163 /** @defgroup GPIO_Exported_Functions_Group1 Initialization and de-initialization functions 00164 * @brief Initialization and Configuration functions 00165 * 00166 @verbatim 00167 =============================================================================== 00168 ##### Initialization and de-initialization functions ##### 00169 =============================================================================== 00170 [..] 00171 This section provides functions allowing to initialize and de-initialize the GPIOs 00172 to be ready for use. 00173 00174 @endverbatim 00175 * @{ 00176 */ 00177 00178 00179 /** 00180 * @brief Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init. 00181 * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or 00182 * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. 00183 * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains 00184 * the configuration information for the specified GPIO peripheral. 00185 * @retval None 00186 */ 00187 void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 00188 { 00189 uint32_t position; 00190 uint32_t ioposition = 0x00U; 00191 uint32_t iocurrent = 0x00U; 00192 uint32_t temp = 0x00U; 00193 00194 /* Check the parameters */ 00195 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); 00196 assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); 00197 assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); 00198 assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); 00199 00200 /* Configure the port pins */ 00201 for(position = 0U; position < GPIO_NUMBER; position++) 00202 { 00203 /* Get the IO position */ 00204 ioposition = 0x01U << position; 00205 /* Get the current IO position */ 00206 iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; 00207 00208 if(iocurrent == ioposition) 00209 { 00210 /*--------------------- GPIO Mode Configuration ------------------------*/ 00211 /* In case of Alternate function mode selection */ 00212 if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) 00213 { 00214 /* Check the Alternate function parameter */ 00215 assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); 00216 /* Configure Alternate function mapped with the current IO */ 00217 temp = GPIOx->AFR[position >> 3U]; 00218 temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; 00219 temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); 00220 GPIOx->AFR[position >> 3U] = temp; 00221 } 00222 00223 /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ 00224 temp = GPIOx->MODER; 00225 temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); 00226 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); 00227 GPIOx->MODER = temp; 00228 00229 /* In case of Output or Alternate function mode selection */ 00230 if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || 00231 (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) 00232 { 00233 /* Check the Speed parameter */ 00234 assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); 00235 /* Configure the IO Speed */ 00236 temp = GPIOx->OSPEEDR; 00237 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); 00238 temp |= (GPIO_Init->Speed << (position * 2U)); 00239 GPIOx->OSPEEDR = temp; 00240 00241 /* Configure the IO Output Type */ 00242 temp = GPIOx->OTYPER; 00243 temp &= ~(GPIO_OTYPER_OT_0 << position) ; 00244 temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4U) << position); 00245 GPIOx->OTYPER = temp; 00246 } 00247 00248 /* Activate the Pull-up or Pull down resistor for the current IO */ 00249 temp = GPIOx->PUPDR; 00250 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); 00251 temp |= ((GPIO_Init->Pull) << (position * 2U)); 00252 GPIOx->PUPDR = temp; 00253 00254 /*--------------------- EXTI Mode Configuration ------------------------*/ 00255 /* Configure the External Interrupt or event for the current IO */ 00256 if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) 00257 { 00258 /* Enable SYSCFG Clock */ 00259 __HAL_RCC_SYSCFG_CLK_ENABLE(); 00260 00261 temp = SYSCFG->EXTICR[position >> 2U]; 00262 temp &= ~(0x0FU << (4U * (position & 0x03U))); 00263 temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); 00264 SYSCFG->EXTICR[position >> 2U] = temp; 00265 00266 /* Clear EXTI line configuration */ 00267 temp = EXTI->IMR; 00268 temp &= ~((uint32_t)iocurrent); 00269 if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) 00270 { 00271 temp |= iocurrent; 00272 } 00273 EXTI->IMR = temp; 00274 00275 temp = EXTI->EMR; 00276 temp &= ~((uint32_t)iocurrent); 00277 if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) 00278 { 00279 temp |= iocurrent; 00280 } 00281 EXTI->EMR = temp; 00282 00283 /* Clear Rising Falling edge configuration */ 00284 temp = EXTI->RTSR; 00285 temp &= ~((uint32_t)iocurrent); 00286 if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) 00287 { 00288 temp |= iocurrent; 00289 } 00290 EXTI->RTSR = temp; 00291 00292 temp = EXTI->FTSR; 00293 temp &= ~((uint32_t)iocurrent); 00294 if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) 00295 { 00296 temp |= iocurrent; 00297 } 00298 EXTI->FTSR = temp; 00299 } 00300 } 00301 } 00302 } 00303 00304 /** 00305 * @brief De-initializes the GPIOx peripheral registers to their default reset values. 00306 * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or 00307 * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. 00308 * @param GPIO_Pin specifies the port bit to be written. 00309 * This parameter can be one of GPIO_PIN_x where x can be (0..15). 00310 * @retval None 00311 */ 00312 void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) 00313 { 00314 uint32_t position; 00315 uint32_t ioposition = 0x00U; 00316 uint32_t iocurrent = 0x00U; 00317 uint32_t tmp = 0x00U; 00318 00319 /* Check the parameters */ 00320 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); 00321 00322 /* Configure the port pins */ 00323 for(position = 0U; position < GPIO_NUMBER; position++) 00324 { 00325 /* Get the IO position */ 00326 ioposition = 0x01U << position; 00327 /* Get the current IO position */ 00328 iocurrent = (GPIO_Pin) & ioposition; 00329 00330 if(iocurrent == ioposition) 00331 { 00332 /*------------------------- GPIO Mode Configuration --------------------*/ 00333 /* Configure IO Direction in Input Floating Mode */ 00334 GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2U)); 00335 00336 /* Configure the default Alternate Function in current IO */ 00337 GPIOx->AFR[position >> 3U] &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; 00338 00339 /* Configure the default value for IO Speed */ 00340 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); 00341 00342 /* Configure the default value IO Output Type */ 00343 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; 00344 00345 /* Deactivate the Pull-up and Pull-down resistor for the current IO */ 00346 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); 00347 00348 /*------------------------- EXTI Mode Configuration --------------------*/ 00349 tmp = SYSCFG->EXTICR[position >> 2U]; 00350 tmp &= (0x0FU << (4U * (position & 0x03U))); 00351 if(tmp == ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)))) 00352 { 00353 /* Configure the External Interrupt or event for the current IO */ 00354 tmp = 0x0FU << (4U * (position & 0x03U)); 00355 SYSCFG->EXTICR[position >> 2U] &= ~tmp; 00356 00357 /* Clear EXTI line configuration */ 00358 EXTI->IMR &= ~((uint32_t)iocurrent); 00359 EXTI->EMR &= ~((uint32_t)iocurrent); 00360 00361 /* Clear Rising Falling edge configuration */ 00362 EXTI->RTSR &= ~((uint32_t)iocurrent); 00363 EXTI->FTSR &= ~((uint32_t)iocurrent); 00364 } 00365 } 00366 } 00367 } 00368 00369 /** 00370 * @} 00371 */ 00372 00373 /** @defgroup GPIO_Exported_Functions_Group2 IO operation functions 00374 * @brief GPIO Read and Write 00375 * 00376 @verbatim 00377 =============================================================================== 00378 ##### IO operation functions ##### 00379 =============================================================================== 00380 00381 @endverbatim 00382 * @{ 00383 */ 00384 00385 /** 00386 * @brief Reads the specified input port pin. 00387 * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or 00388 * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. 00389 * @param GPIO_Pin specifies the port bit to read. 00390 * This parameter can be GPIO_PIN_x where x can be (0..15). 00391 * @retval The input port pin value. 00392 */ 00393 GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) 00394 { 00395 GPIO_PinState bitstatus; 00396 00397 /* Check the parameters */ 00398 assert_param(IS_GPIO_PIN(GPIO_Pin)); 00399 00400 if((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) 00401 { 00402 bitstatus = GPIO_PIN_SET; 00403 } 00404 else 00405 { 00406 bitstatus = GPIO_PIN_RESET; 00407 } 00408 return bitstatus; 00409 } 00410 00411 /** 00412 * @brief Sets or clears the selected data port bit. 00413 * 00414 * @note This function uses GPIOx_BSRR register to allow atomic read/modify 00415 * accesses. In this way, there is no risk of an IRQ occurring between 00416 * the read and the modify access. 00417 * 00418 * @param GPIOx where x can be (A..K) to select the GPIO peripheral for STM32F429X device or 00419 * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. 00420 * @param GPIO_Pin specifies the port bit to be written. 00421 * This parameter can be one of GPIO_PIN_x where x can be (0..15). 00422 * @param PinState specifies the value to be written to the selected bit. 00423 * This parameter can be one of the GPIO_PinState enum values: 00424 * @arg GPIO_PIN_RESET: to clear the port pin 00425 * @arg GPIO_PIN_SET: to set the port pin 00426 * @retval None 00427 */ 00428 void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) 00429 { 00430 /* Check the parameters */ 00431 assert_param(IS_GPIO_PIN(GPIO_Pin)); 00432 assert_param(IS_GPIO_PIN_ACTION(PinState)); 00433 00434 if(PinState != GPIO_PIN_RESET) 00435 { 00436 GPIOx->BSRR = GPIO_Pin; 00437 } 00438 else 00439 { 00440 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; 00441 } 00442 } 00443 00444 /** 00445 * @brief Toggles the specified GPIO pins. 00446 * @param GPIOx Where x can be (A..K) to select the GPIO peripheral for STM32F429X device or 00447 * x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. 00448 * @param GPIO_Pin Specifies the pins to be toggled. 00449 * @retval None 00450 */ 00451 void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) 00452 { 00453 /* Check the parameters */ 00454 assert_param(IS_GPIO_PIN(GPIO_Pin)); 00455 00456 GPIOx->ODR ^= GPIO_Pin; 00457 } 00458 00459 /** 00460 * @brief Locks GPIO Pins configuration registers. 00461 * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR, 00462 * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH. 00463 * @note The configuration of the locked GPIO pins can no longer be modified 00464 * until the next reset. 00465 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F4 family 00466 * @param GPIO_Pin specifies the port bit to be locked. 00467 * This parameter can be any combination of GPIO_PIN_x where x can be (0..15). 00468 * @retval None 00469 */ 00470 HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) 00471 { 00472 __IO uint32_t tmp = GPIO_LCKR_LCKK; 00473 00474 /* Check the parameters */ 00475 assert_param(IS_GPIO_PIN(GPIO_Pin)); 00476 00477 /* Apply lock key write sequence */ 00478 tmp |= GPIO_Pin; 00479 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ 00480 GPIOx->LCKR = tmp; 00481 /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */ 00482 GPIOx->LCKR = GPIO_Pin; 00483 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */ 00484 GPIOx->LCKR = tmp; 00485 /* Read LCKK bit*/ 00486 tmp = GPIOx->LCKR; 00487 00488 if((GPIOx->LCKR & GPIO_LCKR_LCKK) != RESET) 00489 { 00490 return HAL_OK; 00491 } 00492 else 00493 { 00494 return HAL_ERROR; 00495 } 00496 } 00497 00498 /** 00499 * @brief This function handles EXTI interrupt request. 00500 * @param GPIO_Pin Specifies the pins connected EXTI line 00501 * @retval None 00502 */ 00503 void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin) 00504 { 00505 /* EXTI line interrupt detected */ 00506 if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET) 00507 { 00508 __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin); 00509 HAL_GPIO_EXTI_Callback(GPIO_Pin); 00510 } 00511 } 00512 00513 /** 00514 * @brief EXTI line detection callbacks. 00515 * @param GPIO_Pin Specifies the pins connected EXTI line 00516 * @retval None 00517 */ 00518 __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) 00519 { 00520 /* Prevent unused argument(s) compilation warning */ 00521 UNUSED(GPIO_Pin); 00522 /* NOTE: This function Should not be modified, when the callback is needed, 00523 the HAL_GPIO_EXTI_Callback could be implemented in the user file 00524 */ 00525 } 00526 00527 /** 00528 * @} 00529 */ 00530 00531 00532 /** 00533 * @} 00534 */ 00535 00536 #endif /* HAL_GPIO_MODULE_ENABLED */ 00537 /** 00538 * @} 00539 */ 00540 00541 /** 00542 * @} 00543 */ 00544 00545 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/