Skip to content

Commit cbd20e9

Browse files
committed
corrected digitalPinToBitMask(P) for disco F4, too
1 parent 1c097cc commit cbd20e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

STM32F4/variants/discovery_f407/variant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define _VARIANT_ARDUINO_STM32_
33

44
#define digitalPinToPort(P) ( PIN_MAP[P].gpio_device )
5-
#define digitalPinToBitMask(P) ( BIT(PIN_MAP[P].gpio_bit) )
5+
#define digitalPinToBitMask(P) ( BIT(P&0x0F) )
66
#define portOutputRegister(port) ( &(port->regs->ODR) )
77
#define portInputRegister(port) ( &(port->regs->IDR) )
88

0 commit comments

Comments
 (0)