Changed digitalPinToPort to return NRF_GPIO
The nRF52 only has a single 32-bit GPIO bank, and the OUT/OUTSET/OUTCLR/IN registers don't have a concept of 'port'
This commit is contained in:
1 parent
0739a87166
commit
e938b724bf
1 file changed
+1
-1
@@ -101,7 +101,7 @@ uint32_t setLoopStacksize(void);
|
||||
|
||||
#define bit(b) (1UL << (b))
|
||||
|
||||
#define digitalPinToPort(P) ( &(NRF_GPIO[P]) )
|
||||
#define digitalPinToPort(P) ( &(NRF_GPIO) )
|
||||
#define digitalPinToBitMask(P) ( 1 << g_ADigitalPinMap[P] )
|
||||
//#define analogInPinToBit(P) ( )
|
||||
#define portOutputRegister(port) ( &(port->OUT) )
|
||||
|
||||
Reference in new issue
Block a user