コード例 #1
0
ファイル: Board_Data.c プロジェクト: UECIDE/UECIDE_data
	_TIMER_TCK1,	                        // 18   J3-10   RA4     SDO1, TCK1              SOSCO/RPA4/T1CK/CTED9/PMA1/RA4 
};

/* ------------------------------------------------------------ */
/* This table maps from a digital pin number to the corresponding
** PPS register. This register is used to select the peripheral output
** connected to the pin. The register is set to 0 to disconnedt the
** pin from any peripheral so it can be used as GPIO.
** For PIC32MX1xx/2xx series devices, the PPS output select registers
** are arranged as a contiguous series of 32 bit registers. This table
** treats these registers as an array of DWORDs an stores the index
** to the register.
*/
const uint8_t digital_pin_to_pps_out_PGM[] = {
    // Pins 0 through 18
    _PPS_OUT(_PPS_RPB5R),   //  0   J4-1    RB5     TMS/RPB5/USBID/RB5
    _PPS_OUT(_PPS_RPB7R),   //  1   J4-2    RB7     TDI/RPB7/CTED3/PMD5/INT0/RB7   
    _PPS_OUT(_PPS_RPB8R),   //  2   J4-3    RB8     TCK/RPB8/SCL1/CTED10/PMD4/RB8
    _PPS_OUT(_PPS_RPB9R),   //  3   J4-4    RB9     TDO/RPB9/SDA1/CTED4/PMD3/RB9
	_PPS_OUT(_PPS_RPB10R),	//  4   J4-5    RB10    PGED2/RPB10/D+/CTED11/RB10
	_PPS_OUT(_PPS_RPB11R),	//  5   J4-6    RB11    PGEC2/RPB11/D-/RB11
	_PPS_OUT(_PPS_RPB13R),	//  6   J4-7    RB13    AN11/RPB13/CTPLS/PMRD/RB13
	_PPS_OUT(_PPS_RPB14R),	//  7   J4-8    RB14    CVREF/AN10/C3INB/RPB14/VBUSON/SCK1/CTED5/RB14
	_PPS_OUT(_PPS_RPB15R),	//  8   J4-9    RB15    AN9/C3INA/RPB15/SCK2/CTED6/PMCS1/RB15
    _PPS_OUT(_PPS_RPA0R),   //  9   J3-1    RA0     PGED3/VREF+/CVREF+/AN0/C3INC/RPA0/CTED1/PMD7/RA0
	_PPS_OUT(_PPS_RPA1R),	// 10   J3-2    RA1     PGEC3/VREF-/CVREF-/AN1/RPA1/CTED2/PMD6/RA1  
	_PPS_OUT(_PPS_RPB0R),	// 11   J3-3    RB0     PGED1/AN2/C1IND/C2INB/C3IND/RPB0/PMD0/RB0  
	_PPS_OUT(_PPS_RPB1R),   // 12   J3-4    RB1     PGEC1/AN3/C1INC/C2INA/RPB1/CTED12/PMD1/RB1  
	_PPS_OUT(_PPS_RPB2R),	// 13   J3-5    RB2     AN4/C1INB/C2IND/RPB2/SDA2/CTED13/PMD2/RB2  
	_PPS_OUT(_PPS_RPB3R),   // 14   J3-6    RB3     AN5/C1INA/C2INC/RTCC/RPB3/SCL2/PMWR/RB3
	_PPS_OUT(_PPS_RPA2R),   // 15   J3-7    RA2     OSC1/CLKI/RPA2/RA2     
コード例 #2
0
	NOT_ON_TIMER ,	// 31  RB10
	NOT_ON_TIMER ,	// 32  RB11
};

/* ------------------------------------------------------------ */
/* This table maps from a digital pin number to the corresponding
** PPS register. This register is used to select the peripheral output
** connected to the pin. The register is set to 0 to disconnedt the
** pin from any peripheral so it can be used as GPIO.
** For PIC32MX1xx/2xx series devices, the PPS output select registers
** are arranged as a contiguous series of 32 bit registers. This table
** treats these registers as an array of DWORDs an stores the index
** to the register.
*/
const uint8_t digital_pin_to_pps_out_PGM[] = {
	_PPS_OUT(_PPS_RPB13R),	//	0	RB13
	NOT_PPS_PIN,	        //	1	RA10
	NOT_PPS_PIN,	        //	2	RA7
	_PPS_OUT(_PPS_RPB14R),	//	3	RB14
	_PPS_OUT(_PPS_RPB15R),	//	4	RB15
	_PPS_OUT(_PPS_RPA0R),	//	5	RA0
	_PPS_OUT(_PPS_RPA1R),	//	6	RA1
	_PPS_OUT(_PPS_RPB0R),	//	7	RB0
	_PPS_OUT(_PPS_RPB1R),	//	8	RB1
	_PPS_OUT(_PPS_RPB2R),	//	9	RB2
	_PPS_OUT(_PPS_RPB3R),	//	10	RB3
	_PPS_OUT(_PPS_RPC0R),	//	11	RC0
	_PPS_OUT(_PPS_RPC1R),	//	12	RC1
	_PPS_OUT(_PPS_RPC2R),	//	13	RC2
	_PPS_OUT(_PPS_RPA2R),	//	14	RA2
	_PPS_OUT(_PPS_RPA3R),	//	15	RA3
コード例 #3
0
    NOT_ON_TIMER, // 19   RB6     PGC
};

/* ------------------------------------------------------------ */
/* This table maps from a digital pin number to the corresponding
** PPS register. This register is used to select the peripheral output
** connected to the pin. The register is set to 0 to disconnect the
** pin from any peripheral so it can be used as GPIO.
** For PIC32MX1xx/2xx series devices, the PPS output select registers
** are arranged as a contiguous series of 32 bit registers. This table
** treats these registers as an array of DWORDs an stores the index
** to the register.
*/
const uint8_t digital_pin_to_pps_out_PGM[] = {
    // Click Header
    _PPS_OUT(_PPS_RPA0R ),  //  0   RA0     AN
    NOT_PPS_PIN,            //  1   RB12    RES
    _PPS_OUT(_PPS_RPB10R),  //  2   RB10    CS
    _PPS_OUT(_PPS_RPB15R),  //  3   RB15    SCK2
    _PPS_OUT(_PPS_RPB13R),  //  4   RB13    SDI2
    _PPS_OUT(_PPS_RPB11R),  //  5   RB11    SDO2
    _PPS_OUT(_PPS_RPB2R ),  //  6   RB9     SDA1
    _PPS_OUT(_PPS_RPB3R ),  //  7   RB8     SCL1
    _PPS_OUT(_PPS_RPC0R ),  //  8   RC0     U1TX
    _PPS_OUT(_PPS_RPC1R ),  //  9   RC1     U1RX
    _PPS_OUT(_PPS_RPB7R ),  // 10   RB7     INT0
    _PPS_OUT(_PPS_RPB8R ),  // 11   RB8     PWM (OC2)

    // LED & Button
    _PPS_OUT(_PPS_RPB9R ),  // 12   RB9     Button
    _PPS_OUT(_PPS_RPC3R ),  // 13   RC3     LED