corrected digitalPinToBitMask(P)
This commit is contained in:
parent
be69e9b024
commit
54a2309783
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
|
|
||||||
#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