We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e0ab5e + 361ee3d commit 21d24d5Copy full SHA for 21d24d5
bsp/stm32/libraries/HAL_Drivers/drv_gpio.h
@@ -14,9 +14,9 @@
14
#include <drv_common.h>
15
#include <board.h>
16
17
-#define __STM32_PORT(port) GPIO##port
+#define __STM32_PORT(port) GPIO##port##_BASE
18
19
-#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_PORT(PORTx) - (rt_base_t)GPIOA)/(0x0400UL) )) + PIN)
+#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_PORT(PORTx) - (rt_base_t)GPIOA_BASE)/(0x0400UL) )) + PIN)
20
21
#define __STM32_PIN(index, gpio, gpio_index) \
22
{ \
0 commit comments