1 /**
2 ******************************************************************************
3 * @file stm32l4xx_hal_gpio.c
4 * @author MCD Application Team
5 * @brief GPIO HAL module driver.
6 * This file provides firmware functions to manage the following
7 * functionalities of the General Purpose Input/Output (GPIO) peripheral:
8 * + Initialization and de-initialization functions
9 * + IO operation functions
10 *
11 @verbatim
12 ==============================================================================
13 ##### GPIO Peripheral features #####
14 ==============================================================================
15 [..]
16 (+) Each port bit of the general-purpose I/O (GPIO) ports can be individually
17 configured by software in several modes:
18 (++) Input mode
19 (++) Analog mode
20 (++) Output mode
21 (++) Alternate function mode
22 (++) External interrupt/event lines
23
24 (+) During and just after reset, the alternate functions and external interrupt
25 lines are not active and the I/O ports are configured in input floating mode.
26
27 (+) All GPIO pins have weak internal pull-up and pull-down resistors, which can be
28 activated or not.
29
30 (+) In Output or Alternate mode, each IO can be configured on open-drain or push-pull
31 type and the IO speed can be selected depending on the VDD value.
32
33 (+) The microcontroller IO pins are connected to onboard peripherals/modules through a
34 multiplexer that allows only one peripheral alternate function (AF) connected
35 to an IO pin at a time. In this way, there can be no conflict between peripherals
36 sharing the same IO pin.
37
38 (+) All ports have external interrupt/event capability. To use external interrupt
39 lines, the port must be configured in input mode. All available GPIO pins are
40 connected to the 16 external interrupt/event lines from EXTI0 to EXTI15.
41
42 (+) The external interrupt/event controller consists of up to 39 edge detectors
43 (16 lines are connected to GPIO) for generating event/interrupt requests (each
44 input line can be independently configured to select the type (interrupt or event)
45 and the corresponding trigger event (rising or falling or both). Each line can
46 also be masked independently.
47
48 ##### How to use this driver #####
49 ==============================================================================
50 [..]
51 (#) Enable the GPIO AHB clock using the following function: __HAL_RCC_GPIOx_CLK_ENABLE().
52
53 (#) Configure the GPIO pin(s) using HAL_GPIO_Init().
54 (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure
55 (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef
56 structure.
57 (++) In case of Output or alternate function mode selection: the speed is
58 configured through "Speed" member from GPIO_InitTypeDef structure.
59 (++) In alternate mode is selection, the alternate function connected to the IO
60 is configured through "Alternate" member from GPIO_InitTypeDef structure.
61 (++) Analog mode is required when a pin is to be used as ADC channel
62 or DAC output.
63 (++) In case of external interrupt/event selection the "Mode" member from
64 GPIO_InitTypeDef structure select the type (interrupt or event) and
65 the corresponding trigger event (rising or falling or both).
66
67 (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority
68 mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using
69 HAL_NVIC_EnableIRQ().
70
71 (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin().
72
73 (#) To set/reset the level of a pin configured in output mode use
74 HAL_GPIO_WritePin()/HAL_GPIO_TogglePin().
75
76 (#) To lock pin configuration until next reset use HAL_GPIO_LockPin().
77
78 (#) During and just after reset, the alternate functions are not
79 active and the GPIO pins are configured in input floating mode (except JTAG
80 pins).
81
82 (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose
83 (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has
84 priority over the GPIO function.
85
86 (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as
87 general purpose PH0 and PH1, respectively, when the HSE oscillator is off.
88 The HSE has priority over the GPIO function.
89
90 @endverbatim
91 ******************************************************************************
92 * @attention
93 *
94 * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
95 *
96 * Redistribution and use in source and binary forms, with or without modification,
97 * are permitted provided that the following conditions are met:
98 * 1. Redistributions of source code must retain the above copyright notice,
99 * this list of conditions and the following disclaimer.
100 * 2. Redistributions in binary form must reproduce the above copyright notice,
101 * this list of conditions and the following disclaimer in the documentation
102 * and/or other materials provided with the distribution.
103 * 3. Neither the name of STMicroelectronics nor the names of its contributors
104 * may be used to endorse or promote products derived from this software
105 * without specific prior written permission.
106 *
107 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
108 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
109 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
110 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
111 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
112 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
113 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
114 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
115 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
116 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117 *
118 ******************************************************************************
119 */
120
121 /* Includes ------------------------------------------------------------------*/
122 #include "stm32l4xx_hal.h"
123
124 /** @addtogroup STM32L4xx_HAL_Driver
125 * @{
126 */
127
128 /** @defgroup GPIO GPIO
129 * @brief GPIO HAL module driver
130 * @{
131 */
132 /** MISRA C:2012 deviation rule has been granted for following rules:
133 * Rule-12.2 - Medium: RHS argument is in interval [0,INF] which is out of
134 * range of the shift operator in following API :
135 * HAL_GPIO_Init
136 * HAL_GPIO_DeInit
137 */
138
139 #ifdef HAL_GPIO_MODULE_ENABLED
140
141 /* Private typedef -----------------------------------------------------------*/
142 /* Private defines -----------------------------------------------------------*/
143 /** @defgroup GPIO_Private_Defines GPIO Private Defines
144 * @{
145 */
146 #define GPIO_MODE (0x00000003u)
147 #define ANALOG_MODE (0x00000008u)
148 #define EXTI_MODE (0x10000000u)
149 #define GPIO_MODE_IT (0x00010000u)
150 #define GPIO_MODE_EVT (0x00020000u)
151 #define RISING_EDGE (0x00100000u)
152 #define FALLING_EDGE (0x00200000u)
153 #define GPIO_OUTPUT_TYPE (0x00000010u)
154
155 #define GPIO_NUMBER (16u)
156 /**
157 * @}
158 */
159
160 /* Private macros ------------------------------------------------------------*/
161 /* Private variables ---------------------------------------------------------*/
162 /* Private function prototypes -----------------------------------------------*/
163 /* Exported functions --------------------------------------------------------*/
164
165 /** @defgroup GPIO_Exported_Functions GPIO Exported Functions
166 * @{
167 */
168
169 /** @defgroup GPIO_Exported_Functions_Group1 Initialization/de-initialization functions
170 * @brief Initialization and Configuration functions
171 *
172 @verbatim
173 ===============================================================================
174 ##### Initialization and de-initialization functions #####
175 ===============================================================================
176
177 @endverbatim
178 * @{
179 */
180
181 /**
182 * @brief Initialize the GPIOx peripheral according to the specified parameters in the GPIO_Init.
183 * @param GPIOx: where x can be (A..H) to select the GPIO peripheral for STM32L4 family
184 * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
185 * the configuration information for the specified GPIO peripheral.
186 * @retval None
187 */
HAL_GPIO_Init(GPIO_TypeDef * GPIOx,GPIO_InitTypeDef * GPIO_Init)188 void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
189 {
190 uint32_t position = 0x00u;
191 uint32_t iocurrent;
192 uint32_t temp;
193
194 /* Check the parameters */
195 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
196 assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
197 assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
198 assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
199
200 /* Configure the port pins */
201 while (((GPIO_Init->Pin) >> position) != 0x00u)
202 {
203 /* Get current io position */
204 iocurrent = (GPIO_Init->Pin) & (1uL << position);
205
206 if (iocurrent != 0x00u)
207 {
208 /*--------------------- GPIO Mode Configuration ------------------------*/
209 /* In case of Alternate function mode selection */
210 if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD))
211 {
212 /* Check the Alternate function parameters */
213 assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
214 assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
215
216 /* Configure Alternate function mapped with the current IO */
217 temp = GPIOx->AFR[position >> 3u];
218 temp &= ~(0xFu << ((position & 0x07u) * 4u));
219 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u));
220 GPIOx->AFR[position >> 3u] = temp;
221 }
222
223 /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
224 temp = GPIOx->MODER;
225 temp &= ~(GPIO_MODER_MODE0 << (position * 2u));
226 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u));
227 GPIOx->MODER = temp;
228
229 /* In case of Output or Alternate function mode selection */
230 if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) ||
231 (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD))
232 {
233 /* Check the Speed parameter */
234 assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
235 /* Configure the IO Speed */
236 temp = GPIOx->OSPEEDR;
237 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u));
238 temp |= (GPIO_Init->Speed << (position * 2u));
239 GPIOx->OSPEEDR = temp;
240
241 /* Configure the IO Output Type */
242 temp = GPIOx->OTYPER;
243 temp &= ~(GPIO_OTYPER_OT0 << position) ;
244 temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4u) << position);
245 GPIOx->OTYPER = temp;
246 }
247
248 #if defined(STM32L471xx) || defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx)
249
250 /* In case of Analog mode, check if ADC control mode is selected */
251 if((GPIO_Init->Mode & GPIO_MODE_ANALOG) == GPIO_MODE_ANALOG)
252 {
253 /* Configure the IO Output Type */
254 temp = GPIOx->ASCR;
255 temp &= ~(GPIO_ASCR_ASC0 << position) ;
256 temp |= (((GPIO_Init->Mode & ANALOG_MODE) >> 3) << position);
257 GPIOx->ASCR = temp;
258 }
259
260 #endif /* STM32L471xx || STM32L475xx || STM32L476xx || STM32L485xx || STM32L486xx */
261
262 /* Activate the Pull-up or Pull down resistor for the current IO */
263 temp = GPIOx->PUPDR;
264 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u));
265 temp |= ((GPIO_Init->Pull) << (position * 2u));
266 GPIOx->PUPDR = temp;
267
268 /*--------------------- EXTI Mode Configuration ------------------------*/
269 /* Configure the External Interrupt or event for the current IO */
270 if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
271 {
272 /* Enable SYSCFG Clock */
273 __HAL_RCC_SYSCFG_CLK_ENABLE();
274
275 temp = SYSCFG->EXTICR[position >> 2u];
276 temp &= ~(0x0FuL << (4u * (position & 0x03u)));
277 temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)));
278 SYSCFG->EXTICR[position >> 2u] = temp;
279
280 /* Clear EXTI line configuration */
281 temp = EXTI->IMR1;
282 temp &= ~(iocurrent);
283 if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
284 {
285 temp |= iocurrent;
286 }
287 EXTI->IMR1 = temp;
288
289 temp = EXTI->EMR1;
290 temp &= ~(iocurrent);
291 if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
292 {
293 temp |= iocurrent;
294 }
295 EXTI->EMR1 = temp;
296
297 /* Clear Rising Falling edge configuration */
298 temp = EXTI->RTSR1;
299 temp &= ~(iocurrent);
300 if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
301 {
302 temp |= iocurrent;
303 }
304 EXTI->RTSR1 = temp;
305
306 temp = EXTI->FTSR1;
307 temp &= ~(iocurrent);
308 if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
309 {
310 temp |= iocurrent;
311 }
312 EXTI->FTSR1 = temp;
313 }
314 }
315
316 position++;
317 }
318 }
319
320 /**
321 * @brief De-initialize the GPIOx peripheral registers to their default reset values.
322 * @param GPIOx: where x can be (A..H) to select the GPIO peripheral for STM32L4 family
323 * @param GPIO_Pin: specifies the port bit to be written.
324 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
325 * @retval None
326 */
HAL_GPIO_DeInit(GPIO_TypeDef * GPIOx,uint32_t GPIO_Pin)327 void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
328 {
329 uint32_t position = 0x00u;
330 uint32_t iocurrent;
331 uint32_t tmp;
332
333 /* Check the parameters */
334 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
335 assert_param(IS_GPIO_PIN(GPIO_Pin));
336
337 /* Configure the port pins */
338 while ((GPIO_Pin >> position) != 0x00u)
339 {
340 /* Get current io position */
341 iocurrent = (GPIO_Pin) & (1uL << position);
342
343 if (iocurrent != 0x00u)
344 {
345 /*------------------------- GPIO Mode Configuration --------------------*/
346 /* Configure IO in Analog Mode */
347 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2u));
348
349 /* Configure the default Alternate Function in current IO */
350 GPIOx->AFR[position >> 3u] &= ~(0xFu << ((position & 0x07u) * 4u)) ;
351
352 /* Configure the default value for IO Speed */
353 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u));
354
355 /* Configure the default value IO Output Type */
356 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position) ;
357
358 /* Deactivate the Pull-up and Pull-down resistor for the current IO */
359 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2u));
360
361 #if defined(STM32L471xx) || defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L485xx) || defined(STM32L486xx)
362 /* Deactivate the Control bit of Analog mode for the current IO */
363 GPIOx->ASCR &= ~(GPIO_ASCR_ASC0<< position);
364 #endif /* STM32L471xx || STM32L475xx || STM32L476xx || STM32L485xx || STM32L486xx */
365
366 /*------------------------- EXTI Mode Configuration --------------------*/
367 /* Clear the External Interrupt or Event for the current IO */
368
369 tmp = SYSCFG->EXTICR[position >> 2u];
370 tmp &= (0x0FuL << (4u * (position & 0x03u)));
371 if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))))
372 {
373 tmp = 0x0FuL << (4u * (position & 0x03u));
374 SYSCFG->EXTICR[position >> 2u] &= ~tmp;
375
376 /* Clear EXTI line configuration */
377 EXTI->IMR1 &= ~(iocurrent);
378 EXTI->EMR1 &= ~(iocurrent);
379
380 /* Clear Rising Falling edge configuration */
381 EXTI->RTSR1 &= ~(iocurrent);
382 EXTI->FTSR1 &= ~(iocurrent);
383 }
384 }
385
386 position++;
387 }
388 }
389
390 /**
391 * @}
392 */
393
394 /** @defgroup GPIO_Exported_Functions_Group2 IO operation functions
395 * @brief GPIO Read, Write, Toggle, Lock and EXTI management functions.
396 *
397 @verbatim
398 ===============================================================================
399 ##### IO operation functions #####
400 ===============================================================================
401
402 @endverbatim
403 * @{
404 */
405
406 /**
407 * @brief Read the specified input port pin.
408 * @param GPIOx: where x can be (A..H) to select the GPIO peripheral for STM32L4 family
409 * @param GPIO_Pin: specifies the port bit to read.
410 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
411 * @retval The input port pin value.
412 */
HAL_GPIO_ReadPin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)413 GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
414 {
415 GPIO_PinState bitstatus;
416
417 /* Check the parameters */
418 assert_param(IS_GPIO_PIN(GPIO_Pin));
419
420 if ((GPIOx->IDR & GPIO_Pin) != 0x00u)
421 {
422 bitstatus = GPIO_PIN_SET;
423 }
424 else
425 {
426 bitstatus = GPIO_PIN_RESET;
427 }
428 return bitstatus;
429 }
430
431 /**
432 * @brief Set or clear the selected data port bit.
433 *
434 * @note This function uses GPIOx_BSRR and GPIOx_BRR registers to allow atomic read/modify
435 * accesses. In this way, there is no risk of an IRQ occurring between
436 * the read and the modify access.
437 *
438 * @param GPIOx where x can be (A..H) to select the GPIO peripheral for STM32L4 family
439 * @param GPIO_Pin specifies the port bit to be written.
440 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
441 * @param PinState specifies the value to be written to the selected bit.
442 * This parameter can be one of the GPIO_PinState enum values:
443 * @arg GPIO_PIN_RESET: to clear the port pin
444 * @arg GPIO_PIN_SET: to set the port pin
445 * @retval None
446 */
HAL_GPIO_WritePin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin,GPIO_PinState PinState)447 void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
448 {
449 /* Check the parameters */
450 assert_param(IS_GPIO_PIN(GPIO_Pin));
451 assert_param(IS_GPIO_PIN_ACTION(PinState));
452
453 if(PinState != GPIO_PIN_RESET)
454 {
455 GPIOx->BSRR = (uint32_t)GPIO_Pin;
456 }
457 else
458 {
459 GPIOx->BRR = (uint32_t)GPIO_Pin;
460 }
461 }
462
463 /**
464 * @brief Toggle the specified GPIO pin.
465 * @param GPIOx where x can be (A..H) to select the GPIO peripheral for STM32L4 family
466 * @param GPIO_Pin specifies the pin to be toggled.
467 * @retval None
468 */
HAL_GPIO_TogglePin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)469 void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
470 {
471 /* Check the parameters */
472 assert_param(IS_GPIO_PIN(GPIO_Pin));
473
474 GPIOx->ODR ^= GPIO_Pin;
475 }
476
477 /**
478 * @brief Lock GPIO Pins configuration registers.
479 * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR,
480 * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH.
481 * @note The configuration of the locked GPIO pins can no longer be modified
482 * until the next reset.
483 * @param GPIOx where x can be (A..H) to select the GPIO peripheral for STM32L4 family
484 * @param GPIO_Pin specifies the port bits to be locked.
485 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
486 * @retval None
487 */
HAL_GPIO_LockPin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)488 HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
489 {
490 __IO uint32_t tmp = GPIO_LCKR_LCKK;
491
492 /* Check the parameters */
493 assert_param(IS_GPIO_LOCK_INSTANCE(GPIOx));
494 assert_param(IS_GPIO_PIN(GPIO_Pin));
495
496 /* Apply lock key write sequence */
497 tmp |= GPIO_Pin;
498 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */
499 GPIOx->LCKR = tmp;
500 /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */
501 GPIOx->LCKR = GPIO_Pin;
502 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */
503 GPIOx->LCKR = tmp;
504 /* Read LCKK bit*/
505 tmp = GPIOx->LCKR;
506
507 if ((GPIOx->LCKR & GPIO_LCKR_LCKK) != 0x00u)
508 {
509 return HAL_OK;
510 }
511 else
512 {
513 return HAL_ERROR;
514 }
515 }
516
517 /**
518 * @brief Handle EXTI interrupt request.
519 * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
520 * @retval None
521 */
HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)522 void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
523 {
524 /* EXTI line interrupt detected */
525 if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00u)
526 {
527 __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
528 HAL_GPIO_EXTI_Callback(GPIO_Pin);
529 }
530 }
531
532 /**
533 * @brief EXTI line detection callback.
534 * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
535 * @retval None
536 */
HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)537 __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
538 {
539 /* Prevent unused argument(s) compilation warning */
540 UNUSED(GPIO_Pin);
541
542 /* NOTE: This function should not be modified, when the callback is needed,
543 the HAL_GPIO_EXTI_Callback could be implemented in the user file
544 */
545 }
546
547 /**
548 * @}
549 */
550
551
552 /**
553 * @}
554 */
555
556 #endif /* HAL_GPIO_MODULE_ENABLED */
557 /**
558 * @}
559 */
560
561 /**
562 * @}
563 */
564
565 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
566