We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c097cc commit cbd20e9Copy full SHA for cbd20e9
1 file changed
STM32F4/variants/discovery_f407/variant.h
@@ -2,7 +2,7 @@
2
#define _VARIANT_ARDUINO_STM32_
3
4
#define digitalPinToPort(P) ( PIN_MAP[P].gpio_device )
5
-#define digitalPinToBitMask(P) ( BIT(PIN_MAP[P].gpio_bit) )
+#define digitalPinToBitMask(P) ( BIT(P&0x0F) )
6
#define portOutputRegister(port) ( &(port->regs->ODR) )
7
#define portInputRegister(port) ( &(port->regs->IDR) )
8
0 commit comments