nrf: Add ADC channel mapping to alt function table.

This commit is contained in:
Damien George 2019-09-05 19:19:01 +10:00
parent 9cad134a2f
commit b766a6971e
2 changed files with 11 additions and 8 deletions

View File

@ -1,9 +1,9 @@
P0,P0
P1,P1
P2,P2
P3,P3
P4,P4
P5,P5
P2,P2,ADC1_CH0
P3,P3,ADC1_CH1
P4,P4,ADC1_CH2
P5,P5,ADC1_CH3
P6,P6
P7,P7
P8,P8
@ -26,10 +26,10 @@ P24,P24
P25,P25
P26,P26
P27,P27
P28,P28
P29,P29
P30,P30
P31,P31
P28,P28,ADC1_CH4
P29,P29,ADC1_CH5
P30,P30,ADC1_CH6
P31,P31,ADC1_CH7
P32,P32
P33,P33
P34,P34

1 P0 P0,P0 P0
2 P1 P1,P1 P1
3 P2 P2,P2,ADC1_CH0 P2
4 P3 P3,P3,ADC1_CH1 P3
5 P4 P4,P4,ADC1_CH2 P4
6 P5 P5,P5,ADC1_CH3 P5
7 P6 P6,P6 P6
8 P7 P7,P7 P7
9 P8 P8,P8 P8
26 P25 P25,P25 P25
27 P26 P26,P26 P26
28 P27 P27,P27 P27
29 P28 P28,P28,ADC1_CH4 P28
30 P29 P29,P29,ADC1_CH5 P29
31 P30 P30,P30,ADC1_CH6 P30
32 P31 P31,P31,ADC1_CH7 P31
33 P32 P32,P32 P32
34 P33 P33,P33 P33
35 P34 P34,P34 P34

View File

@ -57,5 +57,8 @@ enum {
// NRF_SPI_Type *SPIM;
// NRF_SPIS_Type *SPIS;
enum {
PIN_ADC1 = (1 << 0),
};
typedef NRF_GPIO_Type pin_gpio_t;