38 #ifndef P33C_GPIO_SFR_ABSTRACTION_H 39 #define P33C_GPIO_SFR_ABSTRACTION_H 49 #ifndef P33C_GPIO_INSTANCE_s 68 }__attribute__((packed));
88 }__attribute__((packed));
108 }__attribute__((packed));
128 }__attribute__((packed));
148 }__attribute__((packed));
168 }__attribute__((packed));
188 }__attribute__((packed));
208 }__attribute__((packed));
228 }__attribute__((packed));
248 }__attribute__((packed));
268 }__attribute__((packed));
278 volatile uint16_t
value;
282 volatile uint16_t
value;
286 volatile uint16_t
value;
290 volatile uint16_t
value;
294 volatile uint16_t
value;
298 volatile uint16_t
value;
301 volatile struct tagCNCONABITS
bits;
302 volatile uint16_t
value;
306 volatile uint16_t
value;
310 volatile uint16_t
value;
314 volatile uint16_t
value;
318 volatile uint16_t
value;
320 } __attribute__((packed));
323 #define P33C_GPIO_SFR_OFFSET ((volatile uint16_t)&ANSELB - (volatile uint16_t)&ANSELA) 326 #define P33C_PORT_COUNT 5 328 #elif defined (TRISD) 329 #define P33C_PORT_COUNT 4 331 #elif defined (TRISC) 332 #define P33C_PORT_COUNT 3 334 #elif defined (TRISB) 335 #define P33C_PORT_COUNT 2 337 #elif defined (TRISA) 338 #define P33C_PORT_COUNT 1 357 extern volatile uint16_t* p33c_GpioInstance_Handles[];
358 #define p33c_GpioInstance_GetHandle(x) (struct P33C_GPIO_INSTANCE_s*)p33c_GpioInstance_Handles[(x)] 376 #if defined (_TRISA0) 378 #define PIN_RA0 PIN_RA0 380 #if defined (_TRISA1) 382 #define PIN_RA1 PIN_RA1 384 #if defined (_TRISA2) 386 #define PIN_RA2 PIN_RA2 388 #if defined (_TRISA3) 390 #define PIN_RA3 PIN_RA3 392 #if defined (_TRISA4) 394 #define PIN_RA4 PIN_RA4 399 #if defined (_TRISB0) 401 #define PIN_RB0 PIN_RB0 403 #if defined (_TRISB1) 405 #define PIN_RB1 PIN_RB1 407 #if defined (_TRISB2) 409 #define PIN_RB2 PIN_RB2 411 #if defined (_TRISB3) 413 #define PIN_RB3 PIN_RB3 415 #if defined (_TRISB4) 417 #define PIN_RB4 PIN_RB4 419 #if defined (_TRISB5) 421 #define PIN_RB5 PIN_RB5 423 #if defined (_TRISB6) 425 #define PIN_RB6 PIN_RB6 427 #if defined (_TRISB7) 429 #define PIN_RB7 PIN_RB7 431 #if defined (_TRISB8) 433 #define PIN_RB8 PIN_RB8 435 #if defined (_TRISB9) 437 #define PIN_RB9 PIN_RB9 439 #if defined (_TRISB10) 441 #define PIN_RB10 PIN_RB10 443 #if defined (_TRISB11) 445 #define PIN_RB11 PIN_RB11 447 #if defined (_TRISB12) 449 #define PIN_RB12 PIN_RB12 451 #if defined (_TRISB13) 453 #define PIN_RB13 PIN_RB13 455 #if defined (_TRISB14) 457 #define PIN_RB14 PIN_RB14 459 #if defined (_TRISB15) 461 #define PIN_RB15 PIN_RB15 465 #if defined (_TRISC0) 467 #define PIN_RC0 PIN_RC0 469 #if defined (_TRISC1) 471 #define PIN_RC1 PIN_RC1 473 #if defined (_TRISC2) 475 #define PIN_RC2 PIN_RC2 477 #if defined (_TRISC3) 479 #define PIN_RC3 PIN_RC3 481 #if defined (_TRISC4) 483 #define PIN_RC4 PIN_RC4 485 #if defined (_TRISC5) 487 #define PIN_RC5 PIN_RC5 489 #if defined (_TRISC6) 491 #define PIN_RC6 PIN_RC6 493 #if defined (_TRISC7) 495 #define PIN_RC7 PIN_RC7 497 #if defined (_TRISC8) 499 #define PIN_RC8 PIN_RC8 501 #if defined (_TRISC9) 503 #define PIN_RC9 PIN_RC9 505 #if defined (_TRISC10) 507 #define PIN_RC10 PIN_RC10 509 #if defined (_TRISC11) 511 #define PIN_RC11 PIN_RC11 513 #if defined (_TRISC12) 515 #define PIN_RC12 PIN_RC12 517 #if defined (_TRISC13) 519 #define PIN_RC13 PIN_RC13 521 #if defined (_TRISC14) 523 #define PIN_RC14 PIN_RC14 525 #if defined (_TRISC15) 527 #define PIN_RC15 PIN_RC15 531 #if defined (_TRISD0) 533 #define PIN_RD0 PIN_RD0 535 #if defined (_TRISD1) 537 #define PIN_RD1 PIN_RD1 539 #if defined (_TRISD2) 541 #define PIN_RD2 PIN_RD2 543 #if defined (_TRISD3) 545 #define PIN_RD3 PIN_RD3 547 #if defined (_TRISD4) 549 #define PIN_RD4 PIN_RD4 551 #if defined (_TRISD5) 553 #define PIN_RD5 PIN_RD5 555 #if defined (_TRISD6) 557 #define PIN_RD6 PIN_RD6 559 #if defined (_TRISD7) 561 #define PIN_RD7 PIN_RD7 563 #if defined (_TRISD8) 565 #define PIN_RD8 PIN_RD8 567 #if defined (_TRISD9) 569 #define PIN_RD9 PIN_RD9 571 #if defined (_TRISD10) 573 #define PIN_RD10 PIN_RD10 575 #if defined (_TRISD11) 577 #define PIN_RD11 PIN_RD11 579 #if defined (_TRISD12) 581 #define PIN_RD12 PIN_RD12 583 #if defined (_TRISD13) 585 #define PIN_RD13 PIN_RD13 587 #if defined (_TRISD14) 589 #define PIN_RD14 PIN_RD14 591 #if defined (_TRISD15) 593 #define PIN_RD15 PIN_RD15 597 #if defined (_TRISE0) 599 #define PIN_RE0 PIN_RE0 601 #if defined (_TRISE1) 603 #define PIN_RE1 PIN_RE1 605 #if defined (_TRISE2) 607 #define PIN_RE2 PIN_RE2 609 #if defined (_TRISE3) 611 #define PIN_RE3 PIN_RE3 613 #if defined (_TRISE4) 615 #define PIN_RE4 PIN_RE4 617 #if defined (_TRISE5) 619 #define PIN_RE5 PIN_RE5 621 #if defined (_TRISE6) 623 #define PIN_RE6 PIN_RE6 625 #if defined (_TRISE7) 627 #define PIN_RE7 PIN_RE7 629 #if defined (_TRISE8) 631 #define PIN_RE8 PIN_RE8 633 #if defined (_TRISE9) 635 #define PIN_RE9 PIN_RE9 637 #if defined (_TRISE10) 639 #define PIN_RE10 PIN_RE10 641 #if defined (_TRISE11) 643 #define PIN_RE11 PIN_RE11 645 #if defined (_TRISE12) 647 #define PIN_RE12 PIN_RE12 649 #if defined (_TRISE13) 651 #define PIN_RE13 PIN_RE13 653 #if defined (_TRISE14) 655 #define PIN_RE14 PIN_RE14 657 #if defined (_TRISE15) 659 #define PIN_RE15 PIN_RE15 666 extern volatile uint16_t p33c_GpioInstance_Dispose(
667 volatile uint16_t gpioInstance
671 volatile uint16_t gpioInstance
674 extern volatile uint16_t p33c_GpioInstance_ConfigWrite(
675 volatile uint16_t gpioInstance,
union P33C_GPIO_INSTANCE_s::@126 LATx
union P33C_GPIO_INSTANCE_s::@131 CNEN0x
union P33C_GPIO_INSTANCE_s::@124 TRISx
union P33C_GPIO_INSTANCE_s::@130 CNCONx
volatile struct ANSELx_s bits
union P33C_GPIO_INSTANCE_s::@129 CNPDx
union P33C_GPIO_INSTANCE_s::@127 ODCx
union P33C_GPIO_INSTANCE_s::@123 ANSELx
union P33C_GPIO_INSTANCE_s::@132 CNSTATx
union P33C_GPIO_INSTANCE_s::@125 PORTx
union P33C_GPIO_INSTANCE_s::@128 CNPUx
union P33C_GPIO_INSTANCE_s::@133 CNEN1x
union P33C_GPIO_INSTANCE_s::@134 CNFx