76 volatile uint16_t p33c_PPS_LockIO(
void){
78 __builtin_write_RPCON(0x0800);
79 return(RPCONbits.IOLOCK);
103 volatile uint16_t p33c_PPS_UnlockIO(
void){
105 __builtin_write_RPCON(0x0000);
106 return(1 - RPCONbits.IOLOCK);
134 volatile uint16_t p33c_PPS_RemapOutput(
volatile uint8_t pinno,
volatile uint8_t peripheral){
136 volatile uint16_t retval = 0;
137 volatile uint8_t *regptr;
138 volatile uint8_t pin_offset=0;
140 pin_offset = (pinno - RP_PINNO_MIN);
141 regptr = (
volatile uint8_t *)&RPOR0;
142 regptr += (
volatile uint8_t)pin_offset;
143 *regptr = (
volatile uint8_t)peripheral;
144 retval = (bool)(*regptr == (
volatile uint8_t)peripheral);
175 volatile uint16_t p33c_PPS_RemapInput(
volatile uint8_t pinno,
volatile uint8_t *peripheral)
208 volatile uint16_t p33c_PPS_UnmapOutput(
volatile uint8_t pinno)
210 volatile uint16_t retval=0;
213 retval = p33c_PPS_RemapOutput(pinno, PPSPIN_NULL);
241 volatile uint16_t p33c_PPS_UnmapInput(
volatile uint8_t *peripheral)
243 volatile uint16_t retval=0;
246 retval = p33c_PPS_RemapInput(PPSPIN_NULL, peripheral);