corrected digitalPinToBitMask(P) for disco F4, too
This commit is contained in:
parent
1c097cc8c3
commit
cbd20e9384
|
@ -2,7 +2,7 @@
|
||||||
#define _VARIANT_ARDUINO_STM32_
|
#define _VARIANT_ARDUINO_STM32_
|
||||||
|
|
||||||
#define digitalPinToPort(P) ( PIN_MAP[P].gpio_device )
|
#define digitalPinToPort(P) ( PIN_MAP[P].gpio_device )
|
||||||
#define digitalPinToBitMask(P) ( BIT(PIN_MAP[P].gpio_bit) )
|
#define digitalPinToBitMask(P) ( BIT(P&0x0F) )
|
||||||
#define portOutputRegister(port) ( &(port->regs->ODR) )
|
#define portOutputRegister(port) ( &(port->regs->ODR) )
|
||||||
#define portInputRegister(port) ( &(port->regs->IDR) )
|
#define portInputRegister(port) ( &(port->regs->IDR) )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue