F1 and F3 HAL / LL libraries
[betaflight.git] / lib / main / STM32F3 / Drivers / STM32F3xx_HAL_Driver / Inc / stm32f3xx_ll_gpio.h
blobae7edcc44bf4622bbb93e8a256f74c527faeba13
1 /**
2 ******************************************************************************
3 * @file stm32f3xx_ll_gpio.h
4 * @author MCD Application Team
5 * @brief Header file of GPIO LL module.
6 ******************************************************************************
7 * @attention
9 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
11 * Redistribution and use in source and binary forms, with or without modification,
12 * are permitted provided that the following conditions are met:
13 * 1. Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 * 3. Neither the name of STMicroelectronics nor the names of its contributors
19 * may be used to endorse or promote products derived from this software
20 * without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 ******************************************************************************
36 /* Define to prevent recursive inclusion -------------------------------------*/
37 #ifndef __STM32F3xx_LL_GPIO_H
38 #define __STM32F3xx_LL_GPIO_H
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
44 /* Includes ------------------------------------------------------------------*/
45 #include "stm32f3xx.h"
47 /** @addtogroup STM32F3xx_LL_Driver
48 * @{
51 #if defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH)
53 /** @defgroup GPIO_LL GPIO
54 * @{
57 /* Private types -------------------------------------------------------------*/
58 /* Private variables ---------------------------------------------------------*/
59 /* Private constants ---------------------------------------------------------*/
60 /* Private macros ------------------------------------------------------------*/
61 #if defined(USE_FULL_LL_DRIVER)
62 /** @defgroup GPIO_LL_Private_Macros GPIO Private Macros
63 * @{
66 /**
67 * @}
69 #endif /*USE_FULL_LL_DRIVER*/
71 /* Exported types ------------------------------------------------------------*/
72 #if defined(USE_FULL_LL_DRIVER)
73 /** @defgroup GPIO_LL_ES_INIT GPIO Exported Init structures
74 * @{
77 /**
78 * @brief LL GPIO Init Structure definition
80 typedef struct
82 uint32_t Pin; /*!< Specifies the GPIO pins to be configured.
83 This parameter can be any value of @ref GPIO_LL_EC_PIN */
85 uint32_t Mode; /*!< Specifies the operating mode for the selected pins.
86 This parameter can be a value of @ref GPIO_LL_EC_MODE.
88 GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinMode().*/
90 uint32_t Speed; /*!< Specifies the speed for the selected pins.
91 This parameter can be a value of @ref GPIO_LL_EC_SPEED.
93 GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinSpeed().*/
95 uint32_t OutputType; /*!< Specifies the operating output type for the selected pins.
96 This parameter can be a value of @ref GPIO_LL_EC_OUTPUT.
98 GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinOutputType().*/
100 uint32_t Pull; /*!< Specifies the operating Pull-up/Pull down for the selected pins.
101 This parameter can be a value of @ref GPIO_LL_EC_PULL.
103 GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetPinPull().*/
105 uint32_t Alternate; /*!< Specifies the Peripheral to be connected to the selected pins.
106 This parameter can be a value of @ref GPIO_LL_EC_AF.
108 GPIO HW configuration can be modified afterwards using unitary function @ref LL_GPIO_SetAFPin_0_7() and LL_GPIO_SetAFPin_8_15().*/
109 } LL_GPIO_InitTypeDef;
112 * @}
114 #endif /* USE_FULL_LL_DRIVER */
116 /* Exported constants --------------------------------------------------------*/
117 /** @defgroup GPIO_LL_Exported_Constants GPIO Exported Constants
118 * @{
121 /** @defgroup GPIO_LL_EC_PIN PIN
122 * @{
124 #define LL_GPIO_PIN_0 GPIO_BSRR_BS_0 /*!< Select pin 0 */
125 #define LL_GPIO_PIN_1 GPIO_BSRR_BS_1 /*!< Select pin 1 */
126 #define LL_GPIO_PIN_2 GPIO_BSRR_BS_2 /*!< Select pin 2 */
127 #define LL_GPIO_PIN_3 GPIO_BSRR_BS_3 /*!< Select pin 3 */
128 #define LL_GPIO_PIN_4 GPIO_BSRR_BS_4 /*!< Select pin 4 */
129 #define LL_GPIO_PIN_5 GPIO_BSRR_BS_5 /*!< Select pin 5 */
130 #define LL_GPIO_PIN_6 GPIO_BSRR_BS_6 /*!< Select pin 6 */
131 #define LL_GPIO_PIN_7 GPIO_BSRR_BS_7 /*!< Select pin 7 */
132 #define LL_GPIO_PIN_8 GPIO_BSRR_BS_8 /*!< Select pin 8 */
133 #define LL_GPIO_PIN_9 GPIO_BSRR_BS_9 /*!< Select pin 9 */
134 #define LL_GPIO_PIN_10 GPIO_BSRR_BS_10 /*!< Select pin 10 */
135 #define LL_GPIO_PIN_11 GPIO_BSRR_BS_11 /*!< Select pin 11 */
136 #define LL_GPIO_PIN_12 GPIO_BSRR_BS_12 /*!< Select pin 12 */
137 #define LL_GPIO_PIN_13 GPIO_BSRR_BS_13 /*!< Select pin 13 */
138 #define LL_GPIO_PIN_14 GPIO_BSRR_BS_14 /*!< Select pin 14 */
139 #define LL_GPIO_PIN_15 GPIO_BSRR_BS_15 /*!< Select pin 15 */
140 #define LL_GPIO_PIN_ALL (GPIO_BSRR_BS_0 | GPIO_BSRR_BS_1 | GPIO_BSRR_BS_2 | \
141 GPIO_BSRR_BS_3 | GPIO_BSRR_BS_4 | GPIO_BSRR_BS_5 | \
142 GPIO_BSRR_BS_6 | GPIO_BSRR_BS_7 | GPIO_BSRR_BS_8 | \
143 GPIO_BSRR_BS_9 | GPIO_BSRR_BS_10 | GPIO_BSRR_BS_11 | \
144 GPIO_BSRR_BS_12 | GPIO_BSRR_BS_13 | GPIO_BSRR_BS_14 | \
145 GPIO_BSRR_BS_15) /*!< Select all pins */
147 * @}
150 /** @defgroup GPIO_LL_EC_MODE Mode
151 * @{
153 #define LL_GPIO_MODE_INPUT (0x00000000U) /*!< Select input mode */
154 #define LL_GPIO_MODE_OUTPUT GPIO_MODER_MODER0_0 /*!< Select output mode */
155 #define LL_GPIO_MODE_ALTERNATE GPIO_MODER_MODER0_1 /*!< Select alternate function mode */
156 #define LL_GPIO_MODE_ANALOG GPIO_MODER_MODER0 /*!< Select analog mode */
158 * @}
161 /** @defgroup GPIO_LL_EC_OUTPUT Output Type
162 * @{
164 #define LL_GPIO_OUTPUT_PUSHPULL (0x00000000U) /*!< Select push-pull as output type */
165 #define LL_GPIO_OUTPUT_OPENDRAIN GPIO_OTYPER_OT_0 /*!< Select open-drain as output type */
167 * @}
170 /** @defgroup GPIO_LL_EC_SPEED Output Speed
171 * @{
173 #define LL_GPIO_SPEED_FREQ_LOW (0x00000000U) /*!< Select I/O low output speed */
174 #define LL_GPIO_SPEED_FREQ_MEDIUM GPIO_OSPEEDER_OSPEEDR0_0 /*!< Select I/O medium output speed */
175 #define LL_GPIO_SPEED_FREQ_HIGH GPIO_OSPEEDER_OSPEEDR0 /*!< Select I/O high output speed */
177 * @}
180 /** @defgroup GPIO_LL_EC_PULL Pull Up Pull Down
181 * @{
183 #define LL_GPIO_PULL_NO (0x00000000U) /*!< Select I/O no pull */
184 #define LL_GPIO_PULL_UP GPIO_PUPDR_PUPDR0_0 /*!< Select I/O pull up */
185 #define LL_GPIO_PULL_DOWN GPIO_PUPDR_PUPDR0_1 /*!< Select I/O pull down */
187 * @}
190 /** @defgroup GPIO_LL_EC_AF Alternate Function
191 * @{
193 #define LL_GPIO_AF_0 (0x0000000U) /*!< Select alternate function 0 */
194 #define LL_GPIO_AF_1 (0x0000001U) /*!< Select alternate function 1 */
195 #define LL_GPIO_AF_2 (0x0000002U) /*!< Select alternate function 2 */
196 #define LL_GPIO_AF_3 (0x0000003U) /*!< Select alternate function 3 */
197 #define LL_GPIO_AF_4 (0x0000004U) /*!< Select alternate function 4 */
198 #define LL_GPIO_AF_5 (0x0000005U) /*!< Select alternate function 5 */
199 #define LL_GPIO_AF_6 (0x0000006U) /*!< Select alternate function 6 */
200 #define LL_GPIO_AF_7 (0x0000007U) /*!< Select alternate function 7 */
201 #define LL_GPIO_AF_8 (0x0000008U) /*!< Select alternate function 8 */
202 #define LL_GPIO_AF_9 (0x0000009U) /*!< Select alternate function 9 */
203 #define LL_GPIO_AF_10 (0x000000AU) /*!< Select alternate function 10 */
204 #define LL_GPIO_AF_11 (0x000000BU) /*!< Select alternate function 11 */
205 #define LL_GPIO_AF_12 (0x000000CU) /*!< Select alternate function 12 */
206 #define LL_GPIO_AF_13 (0x000000DU) /*!< Select alternate function 13 */
207 #define LL_GPIO_AF_14 (0x000000EU) /*!< Select alternate function 14 */
208 #define LL_GPIO_AF_15 (0x000000FU) /*!< Select alternate function 15 */
210 * @}
214 * @}
217 /* Exported macro ------------------------------------------------------------*/
218 /** @defgroup GPIO_LL_Exported_Macros GPIO Exported Macros
219 * @{
222 /** @defgroup GPIO_LL_EM_WRITE_READ Common Write and read registers Macros
223 * @{
227 * @brief Write a value in GPIO register
228 * @param __INSTANCE__ GPIO Instance
229 * @param __REG__ Register to be written
230 * @param __VALUE__ Value to be written in the register
231 * @retval None
233 #define LL_GPIO_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
236 * @brief Read a value in GPIO register
237 * @param __INSTANCE__ GPIO Instance
238 * @param __REG__ Register to be read
239 * @retval Register value
241 #define LL_GPIO_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
243 * @}
247 * @}
250 /* Exported functions --------------------------------------------------------*/
251 /** @defgroup GPIO_LL_Exported_Functions GPIO Exported Functions
252 * @{
255 /** @defgroup GPIO_LL_EF_Port_Configuration Port Configuration
256 * @{
260 * @brief Configure gpio mode for a dedicated pin on dedicated port.
261 * @note I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
262 * @note Warning: only one pin can be passed as parameter.
263 * @rmtoll MODER MODEy LL_GPIO_SetPinMode
264 * @param GPIOx GPIO Port
265 * @param Pin This parameter can be one of the following values:
266 * @arg @ref LL_GPIO_PIN_0
267 * @arg @ref LL_GPIO_PIN_1
268 * @arg @ref LL_GPIO_PIN_2
269 * @arg @ref LL_GPIO_PIN_3
270 * @arg @ref LL_GPIO_PIN_4
271 * @arg @ref LL_GPIO_PIN_5
272 * @arg @ref LL_GPIO_PIN_6
273 * @arg @ref LL_GPIO_PIN_7
274 * @arg @ref LL_GPIO_PIN_8
275 * @arg @ref LL_GPIO_PIN_9
276 * @arg @ref LL_GPIO_PIN_10
277 * @arg @ref LL_GPIO_PIN_11
278 * @arg @ref LL_GPIO_PIN_12
279 * @arg @ref LL_GPIO_PIN_13
280 * @arg @ref LL_GPIO_PIN_14
281 * @arg @ref LL_GPIO_PIN_15
282 * @param Mode This parameter can be one of the following values:
283 * @arg @ref LL_GPIO_MODE_INPUT
284 * @arg @ref LL_GPIO_MODE_OUTPUT
285 * @arg @ref LL_GPIO_MODE_ALTERNATE
286 * @arg @ref LL_GPIO_MODE_ANALOG
287 * @retval None
289 __STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)
291 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pin) * 2U)));
295 * @brief Return gpio mode for a dedicated pin on dedicated port.
296 * @note I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
297 * @note Warning: only one pin can be passed as parameter.
298 * @rmtoll MODER MODEy LL_GPIO_GetPinMode
299 * @param GPIOx GPIO Port
300 * @param Pin This parameter can be one of the following values:
301 * @arg @ref LL_GPIO_PIN_0
302 * @arg @ref LL_GPIO_PIN_1
303 * @arg @ref LL_GPIO_PIN_2
304 * @arg @ref LL_GPIO_PIN_3
305 * @arg @ref LL_GPIO_PIN_4
306 * @arg @ref LL_GPIO_PIN_5
307 * @arg @ref LL_GPIO_PIN_6
308 * @arg @ref LL_GPIO_PIN_7
309 * @arg @ref LL_GPIO_PIN_8
310 * @arg @ref LL_GPIO_PIN_9
311 * @arg @ref LL_GPIO_PIN_10
312 * @arg @ref LL_GPIO_PIN_11
313 * @arg @ref LL_GPIO_PIN_12
314 * @arg @ref LL_GPIO_PIN_13
315 * @arg @ref LL_GPIO_PIN_14
316 * @arg @ref LL_GPIO_PIN_15
317 * @retval Returned value can be one of the following values:
318 * @arg @ref LL_GPIO_MODE_INPUT
319 * @arg @ref LL_GPIO_MODE_OUTPUT
320 * @arg @ref LL_GPIO_MODE_ALTERNATE
321 * @arg @ref LL_GPIO_MODE_ANALOG
323 __STATIC_INLINE uint32_t LL_GPIO_GetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin)
325 return (uint32_t)(READ_BIT(GPIOx->MODER,
326 (GPIO_MODER_MODER0 << (POSITION_VAL(Pin) * 2U))) >> (POSITION_VAL(Pin) * 2U));
330 * @brief Configure gpio output type for several pins on dedicated port.
331 * @note Output type as to be set when gpio pin is in output or
332 * alternate modes. Possible type are Push-pull or Open-drain.
333 * @rmtoll OTYPER OTy LL_GPIO_SetPinOutputType
334 * @param GPIOx GPIO Port
335 * @param PinMask This parameter can be a combination of the following values:
336 * @arg @ref LL_GPIO_PIN_0
337 * @arg @ref LL_GPIO_PIN_1
338 * @arg @ref LL_GPIO_PIN_2
339 * @arg @ref LL_GPIO_PIN_3
340 * @arg @ref LL_GPIO_PIN_4
341 * @arg @ref LL_GPIO_PIN_5
342 * @arg @ref LL_GPIO_PIN_6
343 * @arg @ref LL_GPIO_PIN_7
344 * @arg @ref LL_GPIO_PIN_8
345 * @arg @ref LL_GPIO_PIN_9
346 * @arg @ref LL_GPIO_PIN_10
347 * @arg @ref LL_GPIO_PIN_11
348 * @arg @ref LL_GPIO_PIN_12
349 * @arg @ref LL_GPIO_PIN_13
350 * @arg @ref LL_GPIO_PIN_14
351 * @arg @ref LL_GPIO_PIN_15
352 * @arg @ref LL_GPIO_PIN_ALL
353 * @param OutputType This parameter can be one of the following values:
354 * @arg @ref LL_GPIO_OUTPUT_PUSHPULL
355 * @arg @ref LL_GPIO_OUTPUT_OPENDRAIN
356 * @retval None
358 __STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType)
360 MODIFY_REG(GPIOx->OTYPER, PinMask, (PinMask * OutputType));
364 * @brief Return gpio output type for several pins on dedicated port.
365 * @note Output type as to be set when gpio pin is in output or
366 * alternate modes. Possible type are Push-pull or Open-drain.
367 * @note Warning: only one pin can be passed as parameter.
368 * @rmtoll OTYPER OTy LL_GPIO_GetPinOutputType
369 * @param GPIOx GPIO Port
370 * @param Pin This parameter can be one of the following values:
371 * @arg @ref LL_GPIO_PIN_0
372 * @arg @ref LL_GPIO_PIN_1
373 * @arg @ref LL_GPIO_PIN_2
374 * @arg @ref LL_GPIO_PIN_3
375 * @arg @ref LL_GPIO_PIN_4
376 * @arg @ref LL_GPIO_PIN_5
377 * @arg @ref LL_GPIO_PIN_6
378 * @arg @ref LL_GPIO_PIN_7
379 * @arg @ref LL_GPIO_PIN_8
380 * @arg @ref LL_GPIO_PIN_9
381 * @arg @ref LL_GPIO_PIN_10
382 * @arg @ref LL_GPIO_PIN_11
383 * @arg @ref LL_GPIO_PIN_12
384 * @arg @ref LL_GPIO_PIN_13
385 * @arg @ref LL_GPIO_PIN_14
386 * @arg @ref LL_GPIO_PIN_15
387 * @arg @ref LL_GPIO_PIN_ALL
388 * @retval Returned value can be one of the following values:
389 * @arg @ref LL_GPIO_OUTPUT_PUSHPULL
390 * @arg @ref LL_GPIO_OUTPUT_OPENDRAIN
392 __STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t Pin)
394 return (uint32_t)(READ_BIT(GPIOx->OTYPER, Pin) >> POSITION_VAL(Pin));
398 * @brief Configure gpio speed for a dedicated pin on dedicated port.
399 * @note I/O speed can be Low, Medium, Fast or High speed.
400 * @note Warning: only one pin can be passed as parameter.
401 * @note Refer to datasheet for frequency specifications and the power
402 * supply and load conditions for each speed.
403 * @rmtoll OSPEEDR OSPEEDy LL_GPIO_SetPinSpeed
404 * @param GPIOx GPIO Port
405 * @param Pin This parameter can be one of the following values:
406 * @arg @ref LL_GPIO_PIN_0
407 * @arg @ref LL_GPIO_PIN_1
408 * @arg @ref LL_GPIO_PIN_2
409 * @arg @ref LL_GPIO_PIN_3
410 * @arg @ref LL_GPIO_PIN_4
411 * @arg @ref LL_GPIO_PIN_5
412 * @arg @ref LL_GPIO_PIN_6
413 * @arg @ref LL_GPIO_PIN_7
414 * @arg @ref LL_GPIO_PIN_8
415 * @arg @ref LL_GPIO_PIN_9
416 * @arg @ref LL_GPIO_PIN_10
417 * @arg @ref LL_GPIO_PIN_11
418 * @arg @ref LL_GPIO_PIN_12
419 * @arg @ref LL_GPIO_PIN_13
420 * @arg @ref LL_GPIO_PIN_14
421 * @arg @ref LL_GPIO_PIN_15
422 * @param Speed This parameter can be one of the following values:
423 * @arg @ref LL_GPIO_SPEED_FREQ_LOW
424 * @arg @ref LL_GPIO_SPEED_FREQ_MEDIUM
425 * @arg @ref LL_GPIO_SPEED_FREQ_HIGH
426 * @retval None
428 __STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed)
430 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U)),
431 (Speed << (POSITION_VAL(Pin) * 2U)));
435 * @brief Return gpio speed for a dedicated pin on dedicated port.
436 * @note I/O speed can be Low, Medium, Fast or High speed.
437 * @note Warning: only one pin can be passed as parameter.
438 * @note Refer to datasheet for frequency specifications and the power
439 * supply and load conditions for each speed.
440 * @rmtoll OSPEEDR OSPEEDy LL_GPIO_GetPinSpeed
441 * @param GPIOx GPIO Port
442 * @param Pin This parameter can be one of the following values:
443 * @arg @ref LL_GPIO_PIN_0
444 * @arg @ref LL_GPIO_PIN_1
445 * @arg @ref LL_GPIO_PIN_2
446 * @arg @ref LL_GPIO_PIN_3
447 * @arg @ref LL_GPIO_PIN_4
448 * @arg @ref LL_GPIO_PIN_5
449 * @arg @ref LL_GPIO_PIN_6
450 * @arg @ref LL_GPIO_PIN_7
451 * @arg @ref LL_GPIO_PIN_8
452 * @arg @ref LL_GPIO_PIN_9
453 * @arg @ref LL_GPIO_PIN_10
454 * @arg @ref LL_GPIO_PIN_11
455 * @arg @ref LL_GPIO_PIN_12
456 * @arg @ref LL_GPIO_PIN_13
457 * @arg @ref LL_GPIO_PIN_14
458 * @arg @ref LL_GPIO_PIN_15
459 * @retval Returned value can be one of the following values:
460 * @arg @ref LL_GPIO_SPEED_FREQ_LOW
461 * @arg @ref LL_GPIO_SPEED_FREQ_MEDIUM
462 * @arg @ref LL_GPIO_SPEED_FREQ_HIGH
464 __STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin)
466 return (uint32_t)(READ_BIT(GPIOx->OSPEEDR,
467 (GPIO_OSPEEDER_OSPEEDR0 << (POSITION_VAL(Pin) * 2U))) >> (POSITION_VAL(Pin) * 2U));
471 * @brief Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port.
472 * @note Warning: only one pin can be passed as parameter.
473 * @rmtoll PUPDR PUPDy LL_GPIO_SetPinPull
474 * @param GPIOx GPIO Port
475 * @param Pin This parameter can be one of the following values:
476 * @arg @ref LL_GPIO_PIN_0
477 * @arg @ref LL_GPIO_PIN_1
478 * @arg @ref LL_GPIO_PIN_2
479 * @arg @ref LL_GPIO_PIN_3
480 * @arg @ref LL_GPIO_PIN_4
481 * @arg @ref LL_GPIO_PIN_5
482 * @arg @ref LL_GPIO_PIN_6
483 * @arg @ref LL_GPIO_PIN_7
484 * @arg @ref LL_GPIO_PIN_8
485 * @arg @ref LL_GPIO_PIN_9
486 * @arg @ref LL_GPIO_PIN_10
487 * @arg @ref LL_GPIO_PIN_11
488 * @arg @ref LL_GPIO_PIN_12
489 * @arg @ref LL_GPIO_PIN_13
490 * @arg @ref LL_GPIO_PIN_14
491 * @arg @ref LL_GPIO_PIN_15
492 * @param Pull This parameter can be one of the following values:
493 * @arg @ref LL_GPIO_PULL_NO
494 * @arg @ref LL_GPIO_PULL_UP
495 * @arg @ref LL_GPIO_PULL_DOWN
496 * @retval None
498 __STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull)
500 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pin) * 2U)));
504 * @brief Return gpio pull-up or pull-down for a dedicated pin on a dedicated port
505 * @note Warning: only one pin can be passed as parameter.
506 * @rmtoll PUPDR PUPDy LL_GPIO_GetPinPull
507 * @param GPIOx GPIO Port
508 * @param Pin This parameter can be one of the following values:
509 * @arg @ref LL_GPIO_PIN_0
510 * @arg @ref LL_GPIO_PIN_1
511 * @arg @ref LL_GPIO_PIN_2
512 * @arg @ref LL_GPIO_PIN_3
513 * @arg @ref LL_GPIO_PIN_4
514 * @arg @ref LL_GPIO_PIN_5
515 * @arg @ref LL_GPIO_PIN_6
516 * @arg @ref LL_GPIO_PIN_7
517 * @arg @ref LL_GPIO_PIN_8
518 * @arg @ref LL_GPIO_PIN_9
519 * @arg @ref LL_GPIO_PIN_10
520 * @arg @ref LL_GPIO_PIN_11
521 * @arg @ref LL_GPIO_PIN_12
522 * @arg @ref LL_GPIO_PIN_13
523 * @arg @ref LL_GPIO_PIN_14
524 * @arg @ref LL_GPIO_PIN_15
525 * @retval Returned value can be one of the following values:
526 * @arg @ref LL_GPIO_PULL_NO
527 * @arg @ref LL_GPIO_PULL_UP
528 * @arg @ref LL_GPIO_PULL_DOWN
530 __STATIC_INLINE uint32_t LL_GPIO_GetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin)
532 return (uint32_t)(READ_BIT(GPIOx->PUPDR,
533 (GPIO_PUPDR_PUPDR0 << (POSITION_VAL(Pin) * 2U))) >> (POSITION_VAL(Pin) * 2U));
537 * @brief Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.
538 * @note Possible values are from AF0 to AF15 depending on target.
539 * @note Warning: only one pin can be passed as parameter.
540 * @rmtoll AFRL AFSELy LL_GPIO_SetAFPin_0_7
541 * @param GPIOx GPIO Port
542 * @param Pin This parameter can be one of the following values:
543 * @arg @ref LL_GPIO_PIN_0
544 * @arg @ref LL_GPIO_PIN_1
545 * @arg @ref LL_GPIO_PIN_2
546 * @arg @ref LL_GPIO_PIN_3
547 * @arg @ref LL_GPIO_PIN_4
548 * @arg @ref LL_GPIO_PIN_5
549 * @arg @ref LL_GPIO_PIN_6
550 * @arg @ref LL_GPIO_PIN_7
551 * @param Alternate This parameter can be one of the following values:
552 * @arg @ref LL_GPIO_AF_0
553 * @arg @ref LL_GPIO_AF_1
554 * @arg @ref LL_GPIO_AF_2
555 * @arg @ref LL_GPIO_AF_3
556 * @arg @ref LL_GPIO_AF_4
557 * @arg @ref LL_GPIO_AF_5
558 * @arg @ref LL_GPIO_AF_6
559 * @arg @ref LL_GPIO_AF_7
560 * @arg @ref LL_GPIO_AF_8
561 * @arg @ref LL_GPIO_AF_9
562 * @arg @ref LL_GPIO_AF_10
563 * @arg @ref LL_GPIO_AF_11
564 * @arg @ref LL_GPIO_AF_12
565 * @arg @ref LL_GPIO_AF_13
566 * @arg @ref LL_GPIO_AF_14
567 * @arg @ref LL_GPIO_AF_15
568 * @retval None
570 __STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
572 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFRL0 << (POSITION_VAL(Pin) * 4U)),
573 (Alternate << (POSITION_VAL(Pin) * 4U)));
577 * @brief Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.
578 * @rmtoll AFRL AFSELy LL_GPIO_GetAFPin_0_7
579 * @param GPIOx GPIO Port
580 * @param Pin This parameter can be one of the following values:
581 * @arg @ref LL_GPIO_PIN_0
582 * @arg @ref LL_GPIO_PIN_1
583 * @arg @ref LL_GPIO_PIN_2
584 * @arg @ref LL_GPIO_PIN_3
585 * @arg @ref LL_GPIO_PIN_4
586 * @arg @ref LL_GPIO_PIN_5
587 * @arg @ref LL_GPIO_PIN_6
588 * @arg @ref LL_GPIO_PIN_7
589 * @retval Returned value can be one of the following values:
590 * @arg @ref LL_GPIO_AF_0
591 * @arg @ref LL_GPIO_AF_1
592 * @arg @ref LL_GPIO_AF_2
593 * @arg @ref LL_GPIO_AF_3
594 * @arg @ref LL_GPIO_AF_4
595 * @arg @ref LL_GPIO_AF_5
596 * @arg @ref LL_GPIO_AF_6
597 * @arg @ref LL_GPIO_AF_7
598 * @arg @ref LL_GPIO_AF_8
599 * @arg @ref LL_GPIO_AF_9
600 * @arg @ref LL_GPIO_AF_10
601 * @arg @ref LL_GPIO_AF_11
602 * @arg @ref LL_GPIO_AF_12
603 * @arg @ref LL_GPIO_AF_13
604 * @arg @ref LL_GPIO_AF_14
605 * @arg @ref LL_GPIO_AF_15
607 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin)
609 return (uint32_t)(READ_BIT(GPIOx->AFR[0],
610 (GPIO_AFRL_AFRL0 << (POSITION_VAL(Pin) * 4U))) >> (POSITION_VAL(Pin) * 4U));
614 * @brief Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port.
615 * @note Possible values are from AF0 to AF15 depending on target.
616 * @note Warning: only one pin can be passed as parameter.
617 * @rmtoll AFRH AFSELy LL_GPIO_SetAFPin_8_15
618 * @param GPIOx GPIO Port
619 * @param Pin This parameter can be one of the following values:
620 * @arg @ref LL_GPIO_PIN_8
621 * @arg @ref LL_GPIO_PIN_9
622 * @arg @ref LL_GPIO_PIN_10
623 * @arg @ref LL_GPIO_PIN_11
624 * @arg @ref LL_GPIO_PIN_12
625 * @arg @ref LL_GPIO_PIN_13
626 * @arg @ref LL_GPIO_PIN_14
627 * @arg @ref LL_GPIO_PIN_15
628 * @param Alternate This parameter can be one of the following values:
629 * @arg @ref LL_GPIO_AF_0
630 * @arg @ref LL_GPIO_AF_1
631 * @arg @ref LL_GPIO_AF_2
632 * @arg @ref LL_GPIO_AF_3
633 * @arg @ref LL_GPIO_AF_4
634 * @arg @ref LL_GPIO_AF_5
635 * @arg @ref LL_GPIO_AF_6
636 * @arg @ref LL_GPIO_AF_7
637 * @arg @ref LL_GPIO_AF_8
638 * @arg @ref LL_GPIO_AF_9
639 * @arg @ref LL_GPIO_AF_10
640 * @arg @ref LL_GPIO_AF_11
641 * @arg @ref LL_GPIO_AF_12
642 * @arg @ref LL_GPIO_AF_13
643 * @arg @ref LL_GPIO_AF_14
644 * @arg @ref LL_GPIO_AF_15
645 * @retval None
647 __STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
649 MODIFY_REG(GPIOx->AFR[1], (GPIO_AFRH_AFRH0 << (POSITION_VAL(Pin >> 8U) * 4U)),
650 (Alternate << (POSITION_VAL(Pin >> 8U) * 4U)));
654 * @brief Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port.
655 * @note Possible values are from AF0 to AF15 depending on target.
656 * @rmtoll AFRH AFSELy LL_GPIO_GetAFPin_8_15
657 * @param GPIOx GPIO Port
658 * @param Pin This parameter can be one of the following values:
659 * @arg @ref LL_GPIO_PIN_8
660 * @arg @ref LL_GPIO_PIN_9
661 * @arg @ref LL_GPIO_PIN_10
662 * @arg @ref LL_GPIO_PIN_11
663 * @arg @ref LL_GPIO_PIN_12
664 * @arg @ref LL_GPIO_PIN_13
665 * @arg @ref LL_GPIO_PIN_14
666 * @arg @ref LL_GPIO_PIN_15
667 * @retval Returned value can be one of the following values:
668 * @arg @ref LL_GPIO_AF_0
669 * @arg @ref LL_GPIO_AF_1
670 * @arg @ref LL_GPIO_AF_2
671 * @arg @ref LL_GPIO_AF_3
672 * @arg @ref LL_GPIO_AF_4
673 * @arg @ref LL_GPIO_AF_5
674 * @arg @ref LL_GPIO_AF_6
675 * @arg @ref LL_GPIO_AF_7
676 * @arg @ref LL_GPIO_AF_8
677 * @arg @ref LL_GPIO_AF_9
678 * @arg @ref LL_GPIO_AF_10
679 * @arg @ref LL_GPIO_AF_11
680 * @arg @ref LL_GPIO_AF_12
681 * @arg @ref LL_GPIO_AF_13
682 * @arg @ref LL_GPIO_AF_14
683 * @arg @ref LL_GPIO_AF_15
685 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin)
687 return (uint32_t)(READ_BIT(GPIOx->AFR[1],
688 (GPIO_AFRH_AFRH0 << (POSITION_VAL(Pin >> 8U) * 4U))) >> (POSITION_VAL(Pin >> 8U) * 4U));
693 * @brief Lock configuration of several pins for a dedicated port.
694 * @note When the lock sequence has been applied on a port bit, the
695 * value of this port bit can no longer be modified until the
696 * next reset.
697 * @note Each lock bit freezes a specific configuration register
698 * (control and alternate function registers).
699 * @rmtoll LCKR LCKK LL_GPIO_LockPin
700 * @param GPIOx GPIO Port
701 * @param PinMask This parameter can be a combination of the following values:
702 * @arg @ref LL_GPIO_PIN_0
703 * @arg @ref LL_GPIO_PIN_1
704 * @arg @ref LL_GPIO_PIN_2
705 * @arg @ref LL_GPIO_PIN_3
706 * @arg @ref LL_GPIO_PIN_4
707 * @arg @ref LL_GPIO_PIN_5
708 * @arg @ref LL_GPIO_PIN_6
709 * @arg @ref LL_GPIO_PIN_7
710 * @arg @ref LL_GPIO_PIN_8
711 * @arg @ref LL_GPIO_PIN_9
712 * @arg @ref LL_GPIO_PIN_10
713 * @arg @ref LL_GPIO_PIN_11
714 * @arg @ref LL_GPIO_PIN_12
715 * @arg @ref LL_GPIO_PIN_13
716 * @arg @ref LL_GPIO_PIN_14
717 * @arg @ref LL_GPIO_PIN_15
718 * @arg @ref LL_GPIO_PIN_ALL
719 * @retval None
721 __STATIC_INLINE void LL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
723 __IO uint32_t temp;
724 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask);
725 WRITE_REG(GPIOx->LCKR, PinMask);
726 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask);
727 temp = READ_REG(GPIOx->LCKR);
728 (void) temp;
732 * @brief Return 1 if all pins passed as parameter, of a dedicated port, are locked. else Return 0.
733 * @rmtoll LCKR LCKy LL_GPIO_IsPinLocked
734 * @param GPIOx GPIO Port
735 * @param PinMask This parameter can be a combination of the following values:
736 * @arg @ref LL_GPIO_PIN_0
737 * @arg @ref LL_GPIO_PIN_1
738 * @arg @ref LL_GPIO_PIN_2
739 * @arg @ref LL_GPIO_PIN_3
740 * @arg @ref LL_GPIO_PIN_4
741 * @arg @ref LL_GPIO_PIN_5
742 * @arg @ref LL_GPIO_PIN_6
743 * @arg @ref LL_GPIO_PIN_7
744 * @arg @ref LL_GPIO_PIN_8
745 * @arg @ref LL_GPIO_PIN_9
746 * @arg @ref LL_GPIO_PIN_10
747 * @arg @ref LL_GPIO_PIN_11
748 * @arg @ref LL_GPIO_PIN_12
749 * @arg @ref LL_GPIO_PIN_13
750 * @arg @ref LL_GPIO_PIN_14
751 * @arg @ref LL_GPIO_PIN_15
752 * @arg @ref LL_GPIO_PIN_ALL
753 * @retval State of bit (1 or 0).
755 __STATIC_INLINE uint32_t LL_GPIO_IsPinLocked(GPIO_TypeDef *GPIOx, uint32_t PinMask)
757 return (READ_BIT(GPIOx->LCKR, PinMask) == (PinMask));
761 * @brief Return 1 if one of the pin of a dedicated port is locked. else return 0.
762 * @rmtoll LCKR LCKK LL_GPIO_IsAnyPinLocked
763 * @param GPIOx GPIO Port
764 * @retval State of bit (1 or 0).
766 __STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked(GPIO_TypeDef *GPIOx)
768 return (READ_BIT(GPIOx->LCKR, GPIO_LCKR_LCKK) == (GPIO_LCKR_LCKK));
772 * @}
775 /** @defgroup GPIO_LL_EF_Data_Access Data Access
776 * @{
780 * @brief Return full input data register value for a dedicated port.
781 * @rmtoll IDR IDy LL_GPIO_ReadInputPort
782 * @param GPIOx GPIO Port
783 * @retval Input data register value of port
785 __STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(GPIO_TypeDef *GPIOx)
787 return (uint32_t)(READ_REG(GPIOx->IDR));
791 * @brief Return if input data level for several pins of dedicated port is high or low.
792 * @rmtoll IDR IDy LL_GPIO_IsInputPinSet
793 * @param GPIOx GPIO Port
794 * @param PinMask This parameter can be a combination of the following values:
795 * @arg @ref LL_GPIO_PIN_0
796 * @arg @ref LL_GPIO_PIN_1
797 * @arg @ref LL_GPIO_PIN_2
798 * @arg @ref LL_GPIO_PIN_3
799 * @arg @ref LL_GPIO_PIN_4
800 * @arg @ref LL_GPIO_PIN_5
801 * @arg @ref LL_GPIO_PIN_6
802 * @arg @ref LL_GPIO_PIN_7
803 * @arg @ref LL_GPIO_PIN_8
804 * @arg @ref LL_GPIO_PIN_9
805 * @arg @ref LL_GPIO_PIN_10
806 * @arg @ref LL_GPIO_PIN_11
807 * @arg @ref LL_GPIO_PIN_12
808 * @arg @ref LL_GPIO_PIN_13
809 * @arg @ref LL_GPIO_PIN_14
810 * @arg @ref LL_GPIO_PIN_15
811 * @arg @ref LL_GPIO_PIN_ALL
812 * @retval State of bit (1 or 0).
814 __STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask)
816 return (READ_BIT(GPIOx->IDR, PinMask) == (PinMask));
820 * @brief Write output data register for the port.
821 * @rmtoll ODR ODy LL_GPIO_WriteOutputPort
822 * @param GPIOx GPIO Port
823 * @param PortValue Level value for each pin of the port
824 * @retval None
826 __STATIC_INLINE void LL_GPIO_WriteOutputPort(GPIO_TypeDef *GPIOx, uint32_t PortValue)
828 WRITE_REG(GPIOx->ODR, PortValue);
832 * @brief Return full output data register value for a dedicated port.
833 * @rmtoll ODR ODy LL_GPIO_ReadOutputPort
834 * @param GPIOx GPIO Port
835 * @retval Output data register value of port
837 __STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort(GPIO_TypeDef *GPIOx)
839 return (uint32_t)(READ_REG(GPIOx->ODR));
843 * @brief Return if input data level for several pins of dedicated port is high or low.
844 * @rmtoll ODR ODy LL_GPIO_IsOutputPinSet
845 * @param GPIOx GPIO Port
846 * @param PinMask This parameter can be a combination of the following values:
847 * @arg @ref LL_GPIO_PIN_0
848 * @arg @ref LL_GPIO_PIN_1
849 * @arg @ref LL_GPIO_PIN_2
850 * @arg @ref LL_GPIO_PIN_3
851 * @arg @ref LL_GPIO_PIN_4
852 * @arg @ref LL_GPIO_PIN_5
853 * @arg @ref LL_GPIO_PIN_6
854 * @arg @ref LL_GPIO_PIN_7
855 * @arg @ref LL_GPIO_PIN_8
856 * @arg @ref LL_GPIO_PIN_9
857 * @arg @ref LL_GPIO_PIN_10
858 * @arg @ref LL_GPIO_PIN_11
859 * @arg @ref LL_GPIO_PIN_12
860 * @arg @ref LL_GPIO_PIN_13
861 * @arg @ref LL_GPIO_PIN_14
862 * @arg @ref LL_GPIO_PIN_15
863 * @arg @ref LL_GPIO_PIN_ALL
864 * @retval State of bit (1 or 0).
866 __STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask)
868 return (READ_BIT(GPIOx->ODR, PinMask) == (PinMask));
872 * @brief Set several pins to high level on dedicated gpio port.
873 * @rmtoll BSRR BSy LL_GPIO_SetOutputPin
874 * @param GPIOx GPIO Port
875 * @param PinMask This parameter can be a combination of the following values:
876 * @arg @ref LL_GPIO_PIN_0
877 * @arg @ref LL_GPIO_PIN_1
878 * @arg @ref LL_GPIO_PIN_2
879 * @arg @ref LL_GPIO_PIN_3
880 * @arg @ref LL_GPIO_PIN_4
881 * @arg @ref LL_GPIO_PIN_5
882 * @arg @ref LL_GPIO_PIN_6
883 * @arg @ref LL_GPIO_PIN_7
884 * @arg @ref LL_GPIO_PIN_8
885 * @arg @ref LL_GPIO_PIN_9
886 * @arg @ref LL_GPIO_PIN_10
887 * @arg @ref LL_GPIO_PIN_11
888 * @arg @ref LL_GPIO_PIN_12
889 * @arg @ref LL_GPIO_PIN_13
890 * @arg @ref LL_GPIO_PIN_14
891 * @arg @ref LL_GPIO_PIN_15
892 * @arg @ref LL_GPIO_PIN_ALL
893 * @retval None
895 __STATIC_INLINE void LL_GPIO_SetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
897 WRITE_REG(GPIOx->BSRR, PinMask);
901 * @brief Set several pins to low level on dedicated gpio port.
902 * @rmtoll BRR BRy LL_GPIO_ResetOutputPin
903 * @param GPIOx GPIO Port
904 * @param PinMask This parameter can be a combination of the following values:
905 * @arg @ref LL_GPIO_PIN_0
906 * @arg @ref LL_GPIO_PIN_1
907 * @arg @ref LL_GPIO_PIN_2
908 * @arg @ref LL_GPIO_PIN_3
909 * @arg @ref LL_GPIO_PIN_4
910 * @arg @ref LL_GPIO_PIN_5
911 * @arg @ref LL_GPIO_PIN_6
912 * @arg @ref LL_GPIO_PIN_7
913 * @arg @ref LL_GPIO_PIN_8
914 * @arg @ref LL_GPIO_PIN_9
915 * @arg @ref LL_GPIO_PIN_10
916 * @arg @ref LL_GPIO_PIN_11
917 * @arg @ref LL_GPIO_PIN_12
918 * @arg @ref LL_GPIO_PIN_13
919 * @arg @ref LL_GPIO_PIN_14
920 * @arg @ref LL_GPIO_PIN_15
921 * @arg @ref LL_GPIO_PIN_ALL
922 * @retval None
924 __STATIC_INLINE void LL_GPIO_ResetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
926 WRITE_REG(GPIOx->BRR, PinMask);
930 * @brief Toggle data value for several pin of dedicated port.
931 * @rmtoll ODR ODy LL_GPIO_TogglePin
932 * @param GPIOx GPIO Port
933 * @param PinMask This parameter can be a combination of the following values:
934 * @arg @ref LL_GPIO_PIN_0
935 * @arg @ref LL_GPIO_PIN_1
936 * @arg @ref LL_GPIO_PIN_2
937 * @arg @ref LL_GPIO_PIN_3
938 * @arg @ref LL_GPIO_PIN_4
939 * @arg @ref LL_GPIO_PIN_5
940 * @arg @ref LL_GPIO_PIN_6
941 * @arg @ref LL_GPIO_PIN_7
942 * @arg @ref LL_GPIO_PIN_8
943 * @arg @ref LL_GPIO_PIN_9
944 * @arg @ref LL_GPIO_PIN_10
945 * @arg @ref LL_GPIO_PIN_11
946 * @arg @ref LL_GPIO_PIN_12
947 * @arg @ref LL_GPIO_PIN_13
948 * @arg @ref LL_GPIO_PIN_14
949 * @arg @ref LL_GPIO_PIN_15
950 * @arg @ref LL_GPIO_PIN_ALL
951 * @retval None
953 __STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
955 WRITE_REG(GPIOx->ODR, READ_REG(GPIOx->ODR) ^ PinMask);
959 * @}
962 #if defined(USE_FULL_LL_DRIVER)
963 /** @defgroup GPIO_LL_EF_Init Initialization and de-initialization functions
964 * @{
967 ErrorStatus LL_GPIO_DeInit(GPIO_TypeDef *GPIOx);
968 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct);
969 void LL_GPIO_StructInit(LL_GPIO_InitTypeDef *GPIO_InitStruct);
972 * @}
974 #endif /* USE_FULL_LL_DRIVER */
977 * @}
981 * @}
984 #endif /* defined (GPIOA) || defined (GPIOB) || defined (GPIOC) || defined (GPIOD) || defined (GPIOE) || defined (GPIOF) || defined (GPIOG) || defined (GPIOH) */
986 * @}
989 #ifdef __cplusplus
991 #endif
993 #endif /* __STM32F3xx_LL_GPIO_H */
995 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/