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:
Kevin Townsend authored and GitHub committed 2017-02-14 02:08:34 +01:00
1 parent 0739a87166
commit e938b724bf
1 file changed
+1 -1
+1 -1
View File
@@ -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) )