1 /**
2 ******************************************************************************
3 * @file stm32c0xx_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 * @attention
12 *
13 * Copyright (c) 2022 STMicroelectronics.
14 * All rights reserved.
15 *
16 * This software is licensed under terms that can be found in the LICENSE file
17 * in the root directory of this software component.
18 * If no LICENSE file comes with this software, it is provided AS-IS.
19 *
20 ******************************************************************************
21 @verbatim
22 ==============================================================================
23 ##### GPIO Peripheral features #####
24 ==============================================================================
25 [..]
26 (+) Each port bit of the general-purpose I/O (GPIO) ports can be individually
27 configured by software in several modes:
28 (++) Input mode
29 (++) Analog mode
30 (++) Output mode
31 (++) Alternate function mode
32 (++) External interrupt/event lines
33
34 (+) During and just after reset, the alternate functions and external interrupt
35 lines are not active and the I/O ports are configured in input floating mode.
36
37 (+) All GPIO pins have weak internal pull-up and pull-down resistors, which can be
38 activated or not.
39
40 (+) In Output or Alternate mode, each IO can be configured on open-drain or push-pull
41 type and the IO speed can be selected depending on the VDD value.
42
43 (+) The microcontroller IO pins are connected to onboard peripherals/modules through a
44 multiplexer that allows only one peripheral alternate function (AF) connected
45 to an IO pin at a time. In this way, there can be no conflict between peripherals
46 sharing the same IO pin.
47
48 (+) All ports have external interrupt/event capability. To use external interrupt
49 lines, the port must be configured in input mode. All available GPIO pins are
50 connected to the 16 external interrupt/event lines from EXTI0 to EXTI15.
51
52 (+) The external interrupt/event controller consists of up to 28 edge detectors
53 (16 lines are connected to GPIO) for generating event/interrupt requests (each
54 input line can be independently configured to select the type (interrupt or event)
55 and the corresponding trigger event (rising or falling or both). Each line can
56 also be masked independently.
57
58 ##### How to use this driver #####
59 ==============================================================================
60 [..]
61 (#) Enable the GPIO AHB clock using the following function: __HAL_RCC_GPIOx_CLK_ENABLE().
62
63 (#) Configure the GPIO pin(s) using HAL_GPIO_Init().
64 (++) Configure the IO mode using "Mode" member from GPIO_InitTypeDef structure
65 (++) Activate Pull-up, Pull-down resistor using "Pull" member from GPIO_InitTypeDef
66 structure.
67 (++) In case of Output or alternate function mode selection: the speed is
68 configured through "Speed" member from GPIO_InitTypeDef structure.
69 (++) In alternate mode is selection, the alternate function connected to the IO
70 is configured through "Alternate" member from GPIO_InitTypeDef structure.
71 (++) Analog mode is required when a pin is to be used as ADC channel
72 or DAC output.
73 (++) In case of external interrupt/event selection the "Mode" member from
74 GPIO_InitTypeDef structure select the type (interrupt or event) and
75 the corresponding trigger event (rising or falling or both).
76
77 (#) In case of external interrupt/event mode selection, configure NVIC IRQ priority
78 mapped to the EXTI line using HAL_NVIC_SetPriority() and enable it using
79 HAL_NVIC_EnableIRQ().
80
81 (#) To get the level of a pin configured in input mode use HAL_GPIO_ReadPin().
82
83 (#) To set/reset the level of a pin configured in output mode use
84 HAL_GPIO_WritePin()/HAL_GPIO_TogglePin().
85
86 (#) To set the level of several pins and reset level of several other pins in
87 same cycle, use HAL_GPIO_WriteMultipleStatePin().
88
89 (#) To lock pin configuration until next reset use HAL_GPIO_LockPin().
90
91 (#) During and just after reset, the alternate functions are not
92 active and the GPIO pins are configured in input floating mode (except JTAG
93 pins).
94
95 (#) The LSE oscillator pins OSC32_IN and OSC32_OUT can be used as general purpose
96 (PC14 and PC15, respectively) when the LSE oscillator is off. The LSE has
97 priority over the GPIO function.
98
99 (#) The HSE oscillator pins OSC_IN/OSC_OUT can be used as
100 general purpose PF0 and PF1, respectively, when the HSE oscillator is off.
101 The HSE has priority over the GPIO function.
102
103 @endverbatim
104 ******************************************************************************
105 */
106
107 /* Includes ------------------------------------------------------------------*/
108 #include "stm32c0xx_hal.h"
109
110 /** @addtogroup STM32C0xx_HAL_Driver
111 * @{
112 */
113
114 /** @defgroup GPIO GPIO
115 * @brief GPIO HAL module driver
116 * @{
117 */
118 #ifdef HAL_GPIO_MODULE_ENABLED
119
120 /* Private typedef -----------------------------------------------------------*/
121 /* Private defines -----------------------------------------------------------*/
122 /** @defgroup GPIO_Private_Defines GPIO Private Defines
123 * @{
124 */
125 #define GPIO_MODE (0x00000003U)
126 #define EXTI_MODE (0x10000000U)
127 #define GPIO_MODE_IT (0x00010000U)
128 #define GPIO_MODE_EVT (0x00020000U)
129 #define RISING_EDGE (0x00100000U)
130 #define FALLING_EDGE (0x00200000U)
131 #define GPIO_OUTPUT_TYPE (0x00000010U)
132 #define GPIO_NUMBER (16U)
133
134 /**
135 * @}
136 */
137
138 /* Private macros ------------------------------------------------------------*/
139 /* Private variables ---------------------------------------------------------*/
140 /** @defgroup GPIO_Private_Macros GPIO Private Macros
141 * @{
142 */
143 /**
144 * @}
145 */
146
147 /* Private function prototypes -----------------------------------------------*/
148 /* Exported functions --------------------------------------------------------*/
149
150 /** @defgroup GPIO_Exported_Functions GPIO Exported Functions
151 * @{
152 */
153
154 /** @defgroup GPIO_Exported_Functions_Group1 Initialization/de-initialization functions
155 * @brief Initialization and Configuration functions
156 *
157 @verbatim
158 ===============================================================================
159 ##### Initialization and de-initialization functions #####
160 ===============================================================================
161
162 @endverbatim
163 * @{
164 */
165
166 /**
167 * @brief Initialize the GPIOx peripheral according to the specified parameters in the GPIO_Init.
168 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
169 * @param pGPIO_Init pointer to a GPIO_InitTypeDef structure that contains
170 * the configuration information for the specified GPIO peripheral.
171 * @retval None
172 */
HAL_GPIO_Init(GPIO_TypeDef * GPIOx,const GPIO_InitTypeDef * pGPIO_Init)173 void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, const GPIO_InitTypeDef *pGPIO_Init)
174 {
175 uint32_t tmp;
176 uint32_t iocurrent;
177 uint32_t position = 0U;
178
179 /* Check the parameters */
180 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
181 assert_param(IS_GPIO_PIN(pGPIO_Init->Pin));
182 assert_param(IS_GPIO_MODE(pGPIO_Init->Mode));
183
184 /* Configure the port pins */
185 while (((pGPIO_Init->Pin) >> position) != 0U)
186 {
187 /* Get current io position */
188 iocurrent = (pGPIO_Init->Pin) & (1UL << position);
189
190 if (iocurrent != 0U)
191 {
192 /*--------------------- GPIO Mode Configuration ------------------------*/
193 /* In case of Alternate function mode selection */
194 if ((pGPIO_Init->Mode == GPIO_MODE_AF_PP) || (pGPIO_Init->Mode == GPIO_MODE_AF_OD))
195 {
196 /* Check the Alternate function parameters */
197 assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
198 assert_param(IS_GPIO_AF(pGPIO_Init->Alternate));
199
200 /* Configure Alternate function mapped with the current IO */
201 tmp = GPIOx->AFR[position >> 3U];
202 tmp &= ~(0xFUL << ((position & 0x07U) * 4U)) ;
203 tmp |= ((pGPIO_Init->Alternate & 0x0FUL) << ((position & 0x07U) * 4U));
204 GPIOx->AFR[position >> 3U] = tmp;
205 }
206
207 /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
208 tmp = GPIOx->MODER;
209 tmp &= ~(GPIO_MODER_MODE0 << (position * 2U));
210 tmp |= ((pGPIO_Init->Mode & GPIO_MODE) << (position * 2U));
211 GPIOx->MODER = tmp;
212
213 /* In case of Output or Alternate function mode selection */
214 if ((pGPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (pGPIO_Init->Mode == GPIO_MODE_AF_PP) ||
215 (pGPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (pGPIO_Init->Mode == GPIO_MODE_AF_OD))
216 {
217 /* Check the Speed parameter */
218 assert_param(IS_GPIO_SPEED(pGPIO_Init->Speed));
219
220 /* Configure the IO Speed */
221 tmp = GPIOx->OSPEEDR;
222 tmp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
223 tmp |= (pGPIO_Init->Speed << (position * 2U));
224 GPIOx->OSPEEDR = tmp;
225
226 /* Configure the IO Output Type */
227 tmp = GPIOx->OTYPER;
228 tmp &= ~(GPIO_OTYPER_OT0 << position) ;
229 tmp |= (((pGPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4U) << position);
230 GPIOx->OTYPER = tmp;
231 }
232
233 if (pGPIO_Init->Mode != GPIO_MODE_ANALOG)
234 {
235 /* Check the Pull parameters */
236 assert_param(IS_GPIO_PULL(pGPIO_Init->Pull));
237
238 /* Activate the Pull-up or Pull down resistor for the current IO */
239 tmp = GPIOx->PUPDR;
240 tmp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
241 tmp |= ((pGPIO_Init->Pull) << (position * 2U));
242 GPIOx->PUPDR = tmp;
243 }
244
245 /*--------------------- EXTI Mode Configuration ------------------------*/
246 /* Configure the External Interrupt or event for the current IO */
247 if ((pGPIO_Init->Mode & EXTI_MODE) == EXTI_MODE)
248 {
249 tmp = EXTI->EXTICR[position >> 2U];
250 tmp &= ~((0x0FUL) << (8U * (position & 0x03U)));
251 tmp |= (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U)));
252 EXTI->EXTICR[position >> 2U] = tmp;
253
254 /* Clear EXTI line configuration */
255 tmp = EXTI->IMR1;
256 tmp &= ~((uint32_t)iocurrent);
257 if ((pGPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT)
258 {
259 tmp |= iocurrent;
260 }
261 EXTI->IMR1 = tmp;
262
263 tmp = EXTI->EMR1;
264 tmp &= ~((uint32_t)iocurrent);
265 if ((pGPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT)
266 {
267 tmp |= iocurrent;
268 }
269 EXTI->EMR1 = tmp;
270
271 /* Clear Rising Falling edge configuration */
272 tmp = EXTI->RTSR1;
273 tmp &= ~((uint32_t)iocurrent);
274 if ((pGPIO_Init->Mode & RISING_EDGE) == RISING_EDGE)
275 {
276 tmp |= iocurrent;
277 }
278 EXTI->RTSR1 = tmp;
279
280 tmp = EXTI->FTSR1;
281 tmp &= ~((uint32_t)iocurrent);
282 if ((pGPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE)
283 {
284 tmp |= iocurrent;
285 }
286 EXTI->FTSR1 = tmp;
287 }
288 }
289
290 position++;
291 }
292 }
293
294 /**
295 * @brief De-initialize the GPIOx peripheral registers to their default reset values.
296 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
297 * @param GPIO_Pin specifies the port bit to be written.
298 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
299 * @retval None
300 */
HAL_GPIO_DeInit(GPIO_TypeDef * GPIOx,uint32_t GPIO_Pin)301 void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
302 {
303 uint32_t tmp;
304 uint32_t iocurrent;
305 uint32_t position = 0U;
306
307 /* Check the parameters */
308 assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
309 assert_param(IS_GPIO_PIN(GPIO_Pin));
310
311 /* Configure the port pins */
312 while ((GPIO_Pin >> position) != 0U)
313 {
314 /* Get current io position */
315 iocurrent = (GPIO_Pin) & (1UL << position);
316
317 if (iocurrent != 0U)
318 {
319 /*------------------------- EXTI Mode Configuration --------------------*/
320 /* Clear the External Interrupt or Event for the current IO */
321 tmp = EXTI->EXTICR[position >> 2U];
322 tmp &= ((0x0FUL) << (8U * (position & 0x03U)));
323 if (tmp == (GPIO_GET_INDEX(GPIOx) << (8U * (position & 0x03U))))
324 {
325 /* Clear EXTI line configuration */
326 EXTI->IMR1 &= ~(iocurrent);
327 EXTI->EMR1 &= ~(iocurrent);
328
329 /* Clear Rising Falling edge configuration */
330 EXTI->RTSR1 &= ~(iocurrent);
331 EXTI->FTSR1 &= ~(iocurrent);
332
333 tmp = (0x0FUL) << (8U * (position & 0x03U));
334 EXTI->EXTICR[position >> 2U] &= ~tmp;
335 }
336
337 /*------------------------- GPIO Mode Configuration --------------------*/
338 /* Configure IO in Analog Mode */
339 GPIOx->MODER |= (GPIO_MODER_MODE0 << (position * 2U));
340
341 /* Configure the default Alternate Function in current IO */
342 GPIOx->AFR[position >> 3U] &= ~(0x0FUL << ((position & 0x07U) * 4U)) ;
343
344 /* Configure the default value for IO Speed */
345 GPIOx->OSPEEDR &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
346
347 /* Configure the default value IO Output Type */
348 GPIOx->OTYPER &= ~(GPIO_OTYPER_OT0 << position);
349
350 /* Deactivate the Pull-up and Pull-down resistor for the current IO */
351 GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
352 }
353
354 position++;
355 }
356 }
357
358 /**
359 * @}
360 */
361
362 /** @addtogroup GPIO_Exported_Functions_Group2
363 * @brief GPIO Read, Write, Toggle, Lock and EXTI management functions.
364 *
365 @verbatim
366 ===============================================================================
367 ##### IO operation functions #####
368 ===============================================================================
369
370 @endverbatim
371 * @{
372 */
373
374 /**
375 * @brief Read the specified input port pin.
376 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
377 * @param GPIO_Pin specifies the port bit to read.
378 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
379 * @retval The input port pin value.
380 */
HAL_GPIO_ReadPin(const GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)381 GPIO_PinState HAL_GPIO_ReadPin(const GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
382 {
383 GPIO_PinState bitstatus;
384
385 /* Check the parameters */
386 assert_param(IS_GPIO_PIN(GPIO_Pin));
387
388 if ((GPIOx->IDR & GPIO_Pin) != 0U)
389 {
390 bitstatus = GPIO_PIN_SET;
391 }
392 else
393 {
394 bitstatus = GPIO_PIN_RESET;
395 }
396 return bitstatus;
397 }
398
399 /**
400 * @brief Set or clear the selected data port bit.
401 * @note This function uses GPIOx_BSRR and GPIOx_BRR registers to allow atomic read/modify
402 * accesses. In this way, there is no risk of an IRQ occurring between
403 * the read and the modify access.
404 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
405 * @param GPIO_Pin specifies the port bit to be written.
406 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
407 * @param PinState specifies the value to be written to the selected bit.
408 * This parameter can be one of the GPIO_PinState enum values:
409 * @arg GPIO_PIN_RESET: to clear the port pin
410 * @arg GPIO_PIN_SET: to set the port pin
411 * @retval None
412 */
HAL_GPIO_WritePin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin,GPIO_PinState PinState)413 void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
414 {
415 /* Check the parameters */
416 assert_param(IS_GPIO_PIN(GPIO_Pin));
417 assert_param(IS_GPIO_PIN_ACTION(PinState));
418
419 if (PinState != GPIO_PIN_RESET)
420 {
421 GPIOx->BSRR = (uint32_t)GPIO_Pin;
422 }
423 else
424 {
425 GPIOx->BRR = (uint32_t)GPIO_Pin;
426 }
427 }
428
429 /**
430 * @brief Set and clear several pins of a dedicated port in same cycle.
431 * @note This function uses GPIOx_BSRR and GPIOx_BRR registers to allow atomic read/modify
432 * accesses.
433 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
434 * @param PinReset specifies the port bits to be reset
435 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15) or zero.
436 * @param PinSet specifies the port bits to be set
437 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15) or zero.
438 * @note Both PinReset and PinSet combinations shall not get any common bit, else
439 * assert would be triggered.
440 * @note At least one of the two parameters used to set or reset shall be different from zero.
441 * @retval None
442 */
HAL_GPIO_WriteMultipleStatePin(GPIO_TypeDef * GPIOx,uint16_t PinReset,uint16_t PinSet)443 void HAL_GPIO_WriteMultipleStatePin(GPIO_TypeDef *GPIOx, uint16_t PinReset, uint16_t PinSet)
444 {
445 uint32_t tmp;
446
447 /* Check the parameters */
448 /* Make sure at least one parameter is different from zero and that there is no common pin */
449 assert_param(IS_GPIO_PIN((uint32_t)PinReset | (uint32_t)PinSet));
450 assert_param(IS_GPIO_COMMON_PIN(PinReset, PinSet));
451
452 tmp = (((uint32_t)PinReset << 16) | PinSet);
453 GPIOx->BSRR = tmp;
454 }
455
456 /**
457 * @brief Toggle the specified GPIO pin.
458 * @param GPIOx: where x can be (A..I) to select the GPIO peripheral for STM32C0 family
459 * @param GPIO_Pin: specifies the pin to be toggled.
460 * @retval None
461 */
HAL_GPIO_TogglePin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)462 void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
463 {
464 uint32_t odr;
465
466 /* Check the parameters */
467 assert_param(IS_GPIO_PIN(GPIO_Pin));
468
469 /* get current Output Data Register value */
470 odr = GPIOx->ODR;
471
472 /* Set selected pins that were at low level, and reset ones that were high */
473 GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
474 }
475
476 /**
477 * @brief Lock GPIO Pins configuration registers.
478 * @note The locked registers are GPIOx_MODER, GPIOx_OTYPER, GPIOx_OSPEEDR,
479 * GPIOx_PUPDR, GPIOx_AFRL and GPIOx_AFRH.
480 * @note The configuration of the locked GPIO pins can no longer be modified
481 * until the next reset.
482 * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32C0xx family
483 * @param GPIO_Pin specifies the port bits to be locked.
484 * This parameter can be any combination of GPIO_Pin_x where x can be (0..15).
485 * @retval None
486 */
HAL_GPIO_LockPin(GPIO_TypeDef * GPIOx,uint16_t GPIO_Pin)487 HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
488 {
489 __IO uint32_t tmp = GPIO_LCKR_LCKK;
490
491 /* Check the parameters */
492 assert_param(IS_GPIO_LOCK_INSTANCE(GPIOx));
493 assert_param(IS_GPIO_PIN(GPIO_Pin));
494
495 /* Apply lock key write sequence */
496 tmp |= GPIO_Pin;
497 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */
498 GPIOx->LCKR = tmp;
499 /* Reset LCKx bit(s): LCKK='0' + LCK[15-0] */
500 GPIOx->LCKR = GPIO_Pin;
501 /* Set LCKx bit(s): LCKK='1' + LCK[15-0] */
502 GPIOx->LCKR = tmp;
503 /* Read LCKK bit*/
504 tmp = GPIOx->LCKR;
505
506 /* read again in order to confirm lock is active */
507 if ((GPIOx->LCKR & GPIO_LCKR_LCKK) != GPIO_LCKR_LCKK)
508 {
509 return HAL_ERROR;
510 }
511 return HAL_OK;
512 }
513
514 /**
515 * @brief Handle EXTI interrupt request.
516 * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
517 * @retval None
518 */
HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)519 void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
520 {
521 /* EXTI line interrupt detected */
522 if (__HAL_GPIO_EXTI_GET_RISING_IT(GPIO_Pin) != 0U)
523 {
524 __HAL_GPIO_EXTI_CLEAR_RISING_IT(GPIO_Pin);
525 HAL_GPIO_EXTI_Rising_Callback(GPIO_Pin);
526 }
527
528 if (__HAL_GPIO_EXTI_GET_FALLING_IT(GPIO_Pin) != 0U)
529 {
530 __HAL_GPIO_EXTI_CLEAR_FALLING_IT(GPIO_Pin);
531 HAL_GPIO_EXTI_Falling_Callback(GPIO_Pin);
532 }
533 }
534
535 /**
536 * @brief EXTI line detection callback.
537 * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
538 * @retval None
539 */
HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin)540 __weak void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin)
541 {
542 /* Prevent unused argument(s) compilation warning */
543 UNUSED(GPIO_Pin);
544
545 /* NOTE: This function should not be modified, when the callback is needed,
546 the HAL_GPIO_EXTI_Rising_Callback could be implemented in the user file
547 */
548 }
549
550 /**
551 * @brief EXTI line detection callback.
552 * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
553 * @retval None
554 */
HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin)555 __weak void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin)
556 {
557 /* Prevent unused argument(s) compilation warning */
558 UNUSED(GPIO_Pin);
559
560 /* NOTE: This function should not be modified, when the callback is needed,
561 the HAL_GPIO_EXTI_Falling_Callback could be implemented in the user file
562 */
563 }
564
565 /**
566 * @}
567 */
568
569
570 /**
571 * @}
572 */
573
574 #endif /* HAL_GPIO_MODULE_ENABLED */
575 /**
576 * @}
577 */
578
579 /**
580 * @}
581 */
582
583 /**
584 * @}
585 */
586