Explorar o código

Merge pull request #4002 from luhuadong/patch1

[bsp][stm32][driver] remove extra brackets
Bernard Xiong %!s(int64=4) %!d(string=hai) anos
pai
achega
0e5669ed96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bsp/stm32/libraries/HAL_Drivers/drv_gpio.c

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drv_gpio.c

@@ -26,7 +26,7 @@
 #define gpioz_port_base (175) /* PIN_STPORT_MAX * 16 - 16 */
 #define PIN_STPORT(pin) ((pin > gpioz_port_base) ? ((GPIO_TypeDef *)(GPIOZ_BASE )) : ((GPIO_TypeDef *)(GPIOA_BASE + (0x1000u * PIN_PORT(pin)))))
 #else
-#define PIN_STPORT(pin) ((GPIO_TypeDef *)(GPIOA_BASE + (0x1000u * PIN_PORT(pin)))))
+#define PIN_STPORT(pin) ((GPIO_TypeDef *)(GPIOA_BASE + (0x1000u * PIN_PORT(pin))))
 #endif /* GPIOZ */
 #else
 #define PIN_STPORT(pin) ((GPIO_TypeDef *)(GPIOA_BASE + (0x400u * PIN_PORT(pin))))