864f671744
In order to be able to support GPIO1 port on nrf52840 the port has been removed from the Pin object. All pins on port1 will now be incrementally on top of the pin numbers for gpio0. Hence, Pin 1.00 will become P32, and Pin 1.15 will become P47. The modification is done to address the new gpio HAL interface in nrfx, which resolves the port to be configured base on a multiple of 32. The patch also affects the existing devices which does not have a second GPIO port in the way that the port indication A and B is removed from Pin generation. This means that the port which was earlier addressed as PA0 is now P0, and PA31 is P31. Also, this patch removes the gpio member which earlier pointed to the perihperal GPIO base address. This is not needed anymore, hence removed.
31 lines
224 B
Plaintext
31 lines
224 B
Plaintext
P2,P2
|
|
P3,P3
|
|
P4,P4
|
|
P5,P5
|
|
P6,P6
|
|
P7,P7
|
|
P8,P8
|
|
P9,P9
|
|
P10,P10
|
|
P11,P11
|
|
P12,P12
|
|
P13,P13
|
|
P14,P14
|
|
P15,P15
|
|
P16,P16
|
|
P17,P17
|
|
P18,P18
|
|
P19,P19
|
|
P20,P20
|
|
P21,P21
|
|
P22,P22
|
|
P23,P23
|
|
P24,P24
|
|
P25,P25
|
|
P26,P26
|
|
P27,P27
|
|
P28,P28
|
|
P29,P29
|
|
P30,P30
|
|
P31,P31
|