2222#define  __STM32L0xx_HAL_GPIO_H 
2323
2424#ifdef  __cplusplus 
25-   extern  "C"  {
25+ extern  "C"  {
2626#endif 
2727
2828/* Includes ------------------------------------------------------------------*/ 
@@ -65,7 +65,7 @@ typedef struct
6565
6666  uint32_t  Alternate ;  /*!< Peripheral to be connected to the selected pins 
6767                            This parameter can be a value of @ref GPIOEx_Alternate_function_selection */ 
68- }GPIO_InitTypeDef ;
68+ }  GPIO_InitTypeDef ;
6969/** 
7070  * @} 
7171  */ 
@@ -80,7 +80,7 @@ typedef enum
8080{
8181  GPIO_PIN_RESET  =  0U ,
8282  GPIO_PIN_SET 
83- }GPIO_PinState ;
83+ }  GPIO_PinState ;
8484/** 
8585  * @} 
8686  */ 
@@ -124,8 +124,8 @@ typedef enum
124124  */ 
125125
126126#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))
129129
130130/** @defgroup GPIO_mode_define Mode definition 
131131  * @brief GPIO Configuration Mode 
@@ -188,10 +188,10 @@ typedef enum
188188                                  ((__SPEED__) == GPIO_SPEED_FREQ_HIGH  ) || ((__SPEED__) == GPIO_SPEED_FREQ_VERY_HIGH))
189189
190190
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+   */ 
195195#define   GPIO_NOPULL         ((uint32_t)0x00000000U)   /*!< No Pull-up or Pull-down activation  */ 
196196#define   GPIO_PULLUP         ((uint32_t)0x00000001U)   /*!< Pull-up activation                  */ 
197197#define   GPIO_PULLDOWN       ((uint32_t)0x00000002U)   /*!< Pull-down activation                */ 
@@ -283,10 +283,10 @@ void  HAL_GPIO_DeInit(GPIO_TypeDef  *GPIOx, uint32_t GPIO_Pin);
283283/** @defgroup GPIO_Exported_Functions_Group2 IO operation functions 
284284 *  @{ 
285285 */ 
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 );
290290void           HAL_GPIO_EXTI_IRQHandler (uint16_t  GPIO_Pin );
291291void           HAL_GPIO_EXTI_Callback (uint16_t  GPIO_Pin );
292292/** 
0 commit comments