}; /* ------------------------------------------------------------ */ /* This table maps from the digital pin number to the value to be ** loaded into a PPS input select register to select that pin. ** It also maps from digital pin number to input/output pin set to ** which the pin belongs. The set mask is in the high four bits, ** the select value is in the low four bits. ** Note: if the PIC32 device has more than four pin sets, or more than ** 16 pin mapping choices per input function, then this table will have ** to be redefined as a table of uint16_t values and the macros used to ** access the table redefined as well. */ const uint8_t digital_pin_to_pps_in_PGM[] = { // Pins 0 through 18 _PPS_IN(_PPS_RPB5), // 0 J4-1 RB5 TMS/RPB5/USBID/RB5 _PPS_IN(_PPS_RPB7), // 1 J4-2 RB7 TDI/RPB7/CTED3/PMD5/INT0/RB7 _PPS_IN(_PPS_RPB8), // 2 J4-3 RB8 TCK/RPB8/SCL1/CTED10/PMD4/RB8 _PPS_IN(_PPS_RPB9), // 3 J4-4 RB9 TDO/RPB9/SDA1/CTED4/PMD3/RB9 _PPS_IN(_PPS_RPB10), // 4 J4-5 RB10 PGED2/RPB10/D+/CTED11/RB10 _PPS_IN(_PPS_RPB11), // 5 J4-6 RB11 PGEC2/RPB11/D-/RB11 _PPS_IN(_PPS_RPB13), // 6 J4-7 RB13 AN11/RPB13/CTPLS/PMRD/RB13 _PPS_IN(_PPS_RPB14), // 7 J4-8 RB14 CVREF/AN10/C3INB/RPB14/VBUSON/SCK1/CTED5/RB14 _PPS_IN(_PPS_RPB15), // 8 J4-9 RB15 AN9/C3INA/RPB15/SCK2/CTED6/PMCS1/RB15 _PPS_IN(_PPS_RPA0), // 9 J3-1 RA0 PGED3/VREF+/CVREF+/AN0/C3INC/RPA0/CTED1/PMD7/RA0 _PPS_IN(_PPS_RPA1), // 10 J3-2 RA1 PGEC3/VREF-/CVREF-/AN1/RPA1/CTED2/PMD6/RA1 _PPS_IN(_PPS_RPB0), // 11 J3-3 RB0 PGED1/AN2/C1IND/C2INB/C3IND/RPB0/PMD0/RB0 _PPS_IN(_PPS_RPB1), // 12 J3-4 RB1 PGEC1/AN3/C1INC/C2INA/RPB1/CTED12/PMD1/RB1 _PPS_IN(_PPS_RPB2), // 13 J3-5 RB2 AN4/C1INB/C2IND/RPB2/SDA2/CTED13/PMD2/RB2 _PPS_IN(_PPS_RPB3), // 14 J3-6 RB3 AN5/C1INA/C2INC/RTCC/RPB3/SCL2/PMWR/RB3 _PPS_IN(_PPS_RPA2), // 15 J3-7 RA2 OSC1/CLKI/RPA2/RA2
_PPS_OUT(_PPS_RPB11), // 32 RB11 }; /* ------------------------------------------------------------ */ /* This table maps from the digital pin number to the value to be ** loaded into a PPS input select register to select that pin. ** It also maps from digital pin number to input/output pin set to ** which the pin belongs. The set mask is in the high four bits, ** the select value is in the low four bits. ** Note: if the PIC32 device has more than four pin sets, or more than ** 16 pin mapping choices per input function, then this table will have ** to be redefined as a table of uint16_t values and the macros used to ** access the table redefined as well. */ const uint8_t digital_pin_to_pps_in_PGM[] = { _PPS_IN(_PPS_RPB13), // 0 RB13 NOT_PPS_PIN, // 1 RA10 NOT_PPS_PIN, // 2 RA7 _PPS_IN(_PPS_RPB14), // 3 RB14 _PPS_IN(_PPS_RPB15), // 4 RB15 _PPS_IN(_PPS_RPA0), // 5 RA0 _PPS_IN(_PPS_RPA1), // 6 RA1 _PPS_IN(_PPS_RPB0), // 7 RB0 _PPS_IN(_PPS_RPB1), // 8 RB1 _PPS_IN(_PPS_RPB2), // 9 RB2 _PPS_IN(_PPS_RPB3), // 10 RB3 _PPS_IN(_PPS_RPC0), // 11 RC0 _PPS_IN(_PPS_RPC1), // 12 RC1 _PPS_IN(_PPS_RPC2), // 13 RC2 _PPS_IN(_PPS_RPA2), // 14 RA2 _PPS_IN(_PPS_RPA3), // 15 RA3
}; /* ------------------------------------------------------------ */ /* This table maps from the digital pin number to the value to be ** loaded into a PPS input select register to select that pin. ** It also maps from digital pin number to input/output pin set to ** which the pin belongs. The set mask is in the high four bits, ** the select value is in the low four bits. ** Note: if the PIC32 device has more than four pin sets, or more than ** 16 pin mapping choices per input function, then this table will have ** to be redefined as a table of uint16_t values and the macros used to ** access the table redefined as well. */ const uint8_t digital_pin_to_pps_in_PGM[] = { // Click Header _PPS_IN(_PPS_RPA0 ), // 0 RA0 AN NOT_PPS_PIN, // 1 RB12 RES _PPS_IN(_PPS_RPB10), // 2 RB10 CS _PPS_IN(_PPS_RPB15), // 3 RB15 SCK2 _PPS_IN(_PPS_RPB13), // 4 RB13 SDI2 _PPS_IN(_PPS_RPB11), // 5 RB11 SDO2 _PPS_IN(_PPS_RPB2 ), // 6 RB9 SDA1 _PPS_IN(_PPS_RPB3 ), // 7 RB8 SCL1 _PPS_IN(_PPS_RPC0 ), // 8 RC0 U1TX _PPS_IN(_PPS_RPC1 ), // 9 RC1 U1RX _PPS_IN(_PPS_RPB7 ), // 10 RB7 INT0 _PPS_IN(_PPS_RPB8 ), // 11 RB8 PWM (OC3) // LED & Button _PPS_IN(_PPS_RPB9 ), // 12 RB9 Button (INT1) _PPS_IN(_PPS_RPC3 ), // 13 RC3 LED