28 #include "p33c_gpio.h" 31 volatile uint16_t* p33c_GpioInstance_Handles[5]={
32 &ANSELA, &ANSELB, &ANSELC, &ANSELD,
35 #elif defined (ANSELD) 36 volatile uint16_t* p33c_GpioInstance_Handles[4]={
37 &ANSELA, &ANSELB, &ANSELC, &ANSELD
39 #elif defined (ANSELC) 40 volatile uint16_t* p33c_GpioInstance_Handles[3]={
41 &ANSELA, &ANSELB, &ANSELC
43 #elif defined (ANSELB) 44 volatile uint16_t* p33c_GpioInstance_Handles[2]={
47 #elif defined (ANSELA) 48 volatile uint16_t* p33c_GpioInstance_Handles[1]={
52 #pragma message "selected device has no supported ports" 76 volatile uint16_t p33c_GpioInstance_Dispose(
volatile uint16_t gpioInstance)
78 volatile uint16_t retval=1;
80 retval = p33c_GpioInstance_ConfigWrite(gpioInstance, gpioConfigClear);
101 volatile struct P33C_GPIO_INSTANCE_s p33c_GpioInstance_ConfigRead(volatile uint16_t gpioInstance)
106 gpio = p33c_GpioInstance_GetHandle(gpioInstance);
131 volatile uint16_t p33c_GpioInstance_ConfigWrite(
132 volatile uint16_t gpioInstance,
136 volatile uint16_t retval=1;
140 gpio = p33c_GpioInstance_GetHandle(gpioInstance);
169 .CNCONx.value = 0x0000,
170 .CNEN0x.value = 0x0000,
171 .CNEN1x.value = 0x0000,
172 .CNFx.value = 0x0000,
173 .CNPDx.value = 0x0000,
174 .CNPUx.value = 0x0000,
175 .CNSTATx.value = 0x0000,
176 .LATx.value = 0x0000,
177 .ODCx.value = 0x0000,
178 .PORTx.value = 0x0000,
179 .TRISx.value = 0x1111,
186 #if defined (_TRISA0) 189 #if defined (_TRISA1) 192 #if defined (_TRISA2) 195 #if defined (_TRISA3) 198 #if defined (_TRISA4) 201 #if defined (_TRISA5) 204 #if defined (_TRISA6) 207 #if defined (_TRISA7) 210 #if defined (_TRISA8) 213 #if defined (_TRISA9) 216 #if defined (_TRISA10) 219 #if defined (_TRISA12) 222 #if defined (_TRISA12) 225 #if defined (_TRISA13) 228 #if defined (_TRISA14) 231 #if defined (_TRISA15) 236 #if defined (_TRISB0) 239 #if defined (_TRISB1) 242 #if defined (_TRISB2) 245 #if defined (_TRISB3) 248 #if defined (_TRISB4) 251 #if defined (_TRISB5) 254 #if defined (_TRISB6) 257 #if defined (_TRISB7) 260 #if defined (_TRISB8) 263 #if defined (_TRISB9) 266 #if defined (_TRISB10) 269 #if defined (_TRISB11) 272 #if defined (_TRISB12) 275 #if defined (_TRISB13) 278 #if defined (_TRISB14) 281 #if defined (_TRISB15) 286 #if defined (_TRISC0) 289 #if defined (_TRISC1) 292 #if defined (_TRISC2) 295 #if defined (_TRISC3) 298 #if defined (_TRISC4) 301 #if defined (_TRISC5) 304 #if defined (_TRISC6) 307 #if defined (_TRISC7) 310 #if defined (_TRISC8) 313 #if defined (_TRISC9) 316 #if defined (_TRISC10) 319 #if defined (_TRISC11) 322 #if defined (_TRISC12) 325 #if defined (_TRISC13) 328 #if defined (_TRISC14) 331 #if defined (_TRISC15) 336 #if defined (_TRISD0) 339 #if defined (_TRISD1) 342 #if defined (_TRISD2) 345 #if defined (_TRISD3) 348 #if defined (_TRISD4) 351 #if defined (_TRISD5) 354 #if defined (_TRISD6) 357 #if defined (_TRISD7) 360 #if defined (_TRISD8) 363 #if defined (_TRISD9) 366 #if defined (_TRISD10) 369 #if defined (_TRISD11) 372 #if defined (_TRISD12) 375 #if defined (_TRISD13) 378 #if defined (_TRISD14) 381 #if defined (_TRISD15) 386 #if defined (_TRISE0) 389 #if defined (_TRISE1) 392 #if defined (_TRISE2) 395 #if defined (_TRISE3) 398 #if defined (_TRISE4) 401 #if defined (_TRISE5) 404 #if defined (_TRISE6) 407 #if defined (_TRISE7) 410 #if defined (_TRISE8) 413 #if defined (_TRISE9) 416 #if defined (_TRISE10) 419 #if defined (_TRISE11) 422 #if defined (_TRISE12) 425 #if defined (_TRISE13) 428 #if defined (_TRISE14) 431 #if defined (_TRISE15)
union P33C_GPIO_INSTANCE_s::@123 ANSELx