22
22
#define __STM32L0xx_HAL_GPIO_H
23
23
24
24
#ifdef __cplusplus
25
- extern "C" {
25
+ extern "C" {
26
26
#endif
27
27
28
28
/* Includes ------------------------------------------------------------------*/
@@ -65,7 +65,7 @@ typedef struct
65
65
66
66
uint32_t Alternate ; /*!< Peripheral to be connected to the selected pins
67
67
This parameter can be a value of @ref GPIOEx_Alternate_function_selection */
68
- }GPIO_InitTypeDef ;
68
+ } GPIO_InitTypeDef ;
69
69
/**
70
70
* @}
71
71
*/
@@ -80,7 +80,7 @@ typedef enum
80
80
{
81
81
GPIO_PIN_RESET = 0U ,
82
82
GPIO_PIN_SET
83
- }GPIO_PinState ;
83
+ } GPIO_PinState ;
84
84
/**
85
85
* @}
86
86
*/
@@ -124,8 +124,8 @@ typedef enum
124
124
*/
125
125
126
126
#define GPIO_PIN_MASK ((uint32_t)0x0000FFFFU) /* PIN mask for assert test */
127
- #define IS_GPIO_PIN (__PIN__ ) ((((__PIN__) & GPIO_PIN_MASK) != (uint32_t)0x00) &&\
128
- (((__PIN__) & ~GPIO_PIN_MASK) == (uint32_t)0x00))
127
+ #define IS_GPIO_PIN (__PIN__ ) ((((uint32_t)( __PIN__) & GPIO_PIN_MASK) != (uint32_t)0x00) &&\
128
+ (((uint32_t)( __PIN__) & ~GPIO_PIN_MASK) == (uint32_t)0x00))
129
129
130
130
/** @defgroup GPIO_mode_define Mode definition
131
131
* @brief GPIO Configuration Mode
@@ -188,10 +188,10 @@ typedef enum
188
188
((__SPEED__) == GPIO_SPEED_FREQ_HIGH ) || ((__SPEED__) == GPIO_SPEED_FREQ_VERY_HIGH))
189
189
190
190
191
- /** @defgroup GPIO_pull_define Pull definition
192
- * @brief GPIO Pull-Up or Pull-Down Activation
193
- * @{
194
- */
191
+ /** @defgroup GPIO_pull_define Pull definition
192
+ * @brief GPIO Pull-Up or Pull-Down Activation
193
+ * @{
194
+ */
195
195
#define GPIO_NOPULL ((uint32_t)0x00000000U) /*!< No Pull-up or Pull-down activation */
196
196
#define GPIO_PULLUP ((uint32_t)0x00000001U) /*!< Pull-up activation */
197
197
#define GPIO_PULLDOWN ((uint32_t)0x00000002U) /*!< Pull-down activation */
@@ -283,10 +283,10 @@ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin);
283
283
/** @defgroup GPIO_Exported_Functions_Group2 IO operation functions
284
284
* @{
285
285
*/
286
- GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
287
- void HAL_GPIO_WritePin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin , GPIO_PinState PinState );
288
- void HAL_GPIO_TogglePin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
289
- HAL_StatusTypeDef HAL_GPIO_LockPin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
286
+ GPIO_PinState HAL_GPIO_ReadPin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
287
+ void HAL_GPIO_WritePin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin , GPIO_PinState PinState );
288
+ void HAL_GPIO_TogglePin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
289
+ HAL_StatusTypeDef HAL_GPIO_LockPin (GPIO_TypeDef * GPIOx , uint16_t GPIO_Pin );
290
290
void HAL_GPIO_EXTI_IRQHandler (uint16_t GPIO_Pin );
291
291
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin );
292
292
/**
0 commit comments