• Home
  • Raw
  • Download

Lines Matching refs:b

491     mraa_board_t* b = (mraa_board_t*) calloc(1, sizeof(mraa_board_t));  in mraa_beaglebone()  local
492 if (b == NULL) in mraa_beaglebone()
496 b->platform_name = PLATFORM_NAME_BEAGLEBONE_BLACK_REV_B; in mraa_beaglebone()
497 b->phy_pin_count = MRAA_BEAGLEBONE_BLACK_PINCOUNT; in mraa_beaglebone()
500 b->platform_name = PLATFORM_NAME_BEAGLEBONE_BLACK_REV_C; in mraa_beaglebone()
501 b->phy_pin_count = MRAA_BEAGLEBONE_BLACK_PINCOUNT; in mraa_beaglebone()
504 if (b->platform_name == NULL) { in mraa_beaglebone()
508 b->aio_count = 7; in mraa_beaglebone()
509 b->adc_raw = 12; in mraa_beaglebone()
510 b->adc_supported = 12; in mraa_beaglebone()
511 b->pwm_default_period = 500; in mraa_beaglebone()
512 b->pwm_max_period = 2147483; in mraa_beaglebone()
513 b->pwm_min_period = 1; in mraa_beaglebone()
515 b->pins = (mraa_pininfo_t*) calloc(b->phy_pin_count,sizeof(mraa_pininfo_t)); in mraa_beaglebone()
516 if (b->pins == NULL) { in mraa_beaglebone()
520 b->adv_func = (mraa_adv_func_t*) calloc(1, sizeof(mraa_adv_func_t)); in mraa_beaglebone()
521 if (b->adv_func == NULL) { in mraa_beaglebone()
522 free(b->pins); in mraa_beaglebone()
526 b->adv_func->uart_init_pre = &mraa_beaglebone_uart_init_pre; in mraa_beaglebone()
527 b->adv_func->spi_init_pre = &mraa_beaglebone_spi_init_pre; in mraa_beaglebone()
528 b->adv_func->i2c_init_pre = &mraa_beaglebone_i2c_init_pre; in mraa_beaglebone()
529 b->adv_func->pwm_init_replace = &mraa_beaglebone_pwm_init_replace; in mraa_beaglebone()
531 strncpy(b->pins[0].name, "INVALID", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
532 b->pins[0].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
534 strncpy(b->pins[1].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
535 b->pins[1].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
537 strncpy(b->pins[2].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
538 b->pins[2].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
541 strncpy(b->pins[3].name, "MMC1_D6", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
542 b->pins[3].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
544 strncpy(b->pins[3].name, "GPIO38", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
545 b->pins[3].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
547 b->pins[3].gpio.pinmap = 38; in mraa_beaglebone()
548 b->pins[3].gpio.parent_id = 0; in mraa_beaglebone()
549 b->pins[3].gpio.mux_total = 0; in mraa_beaglebone()
552 strncpy(b->pins[4].name, "MMC1_D7", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
553 b->pins[4].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
555 strncpy(b->pins[4].name, "GPIO39", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
556 b->pins[4].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
558 b->pins[4].gpio.pinmap = 39; in mraa_beaglebone()
559 b->pins[4].gpio.parent_id = 0; in mraa_beaglebone()
560 b->pins[4].gpio.mux_total = 0; in mraa_beaglebone()
563 strncpy(b->pins[5].name, "MMC1_D2", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
564 b->pins[5].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
566 strncpy(b->pins[5].name, "GPIO34", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
567 b->pins[5].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
569 b->pins[5].gpio.pinmap = 34; in mraa_beaglebone()
570 b->pins[5].gpio.parent_id = 0; in mraa_beaglebone()
571 b->pins[5].gpio.mux_total = 0; in mraa_beaglebone()
574 strncpy(b->pins[6].name, "MMC1_D3", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
575 b->pins[6].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
577 strncpy(b->pins[6].name, "GPIO35", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
578 b->pins[6].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
580 b->pins[6].gpio.pinmap = 35; in mraa_beaglebone()
581 b->pins[6].gpio.parent_id = 0; in mraa_beaglebone()
582 b->pins[6].gpio.mux_total = 0; in mraa_beaglebone()
585 strncpy(b->pins[7].name, "GPIO66", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
586 b->pins[7].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
587 b->pins[7].gpio.pinmap = 66; in mraa_beaglebone()
588 b->pins[7].gpio.parent_id = 0; in mraa_beaglebone()
589 b->pins[7].gpio.mux_total = 0; in mraa_beaglebone()
592 strncpy(b->pins[8].name, "GPIO67", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
593 b->pins[8].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
594 b->pins[8].gpio.pinmap = 67; in mraa_beaglebone()
595 b->pins[8].gpio.parent_id = 0; in mraa_beaglebone()
596 b->pins[8].gpio.mux_total = 0; in mraa_beaglebone()
599 strncpy(b->pins[9].name, "GPIO69", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
600 b->pins[9].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
601 b->pins[9].gpio.pinmap = 69; in mraa_beaglebone()
602 b->pins[9].gpio.parent_id = 0; in mraa_beaglebone()
603 b->pins[9].gpio.mux_total = 0; in mraa_beaglebone()
606 strncpy(b->pins[10].name, "GPIO68", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
607 b->pins[10].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
608 b->pins[10].gpio.pinmap = 68; in mraa_beaglebone()
609 b->pins[10].gpio.parent_id = 0; in mraa_beaglebone()
610 b->pins[10].gpio.mux_total = 0; in mraa_beaglebone()
612 strncpy(b->pins[11].name, "GPIO45", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
613 b->pins[11].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
614 b->pins[11].gpio.pinmap = 45; in mraa_beaglebone()
615 b->pins[11].gpio.parent_id = 0; in mraa_beaglebone()
616 b->pins[11].gpio.mux_total = 0; in mraa_beaglebone()
618 strncpy(b->pins[12].name, "GPIO44", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
619 b->pins[12].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
620 b->pins[12].gpio.pinmap = 44; in mraa_beaglebone()
621 b->pins[12].gpio.parent_id = 0; in mraa_beaglebone()
622 b->pins[12].gpio.mux_total = 0; in mraa_beaglebone()
625 strncpy(b->pins[13].name, "EHRPWM2B", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
626 b->pins[13].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
628 strncpy(b->pins[13].name, "GPIO23", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
629 b->pins[13].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
631 b->pins[13].gpio.pinmap = 23; in mraa_beaglebone()
632 b->pins[13].gpio.parent_id = 0; in mraa_beaglebone()
633 b->pins[13].gpio.mux_total = 0; in mraa_beaglebone()
634 b->pins[13].pwm.pinmap = 6; in mraa_beaglebone()
635 b->pins[13].pwm.mux_total = 0; in mraa_beaglebone()
637 strncpy(b->pins[14].name, "GPIO26", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
638 b->pins[14].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
639 b->pins[14].gpio.pinmap = 26; in mraa_beaglebone()
640 b->pins[14].gpio.parent_id = 0; in mraa_beaglebone()
641 b->pins[14].gpio.mux_total = 0; in mraa_beaglebone()
643 strncpy(b->pins[15].name, "GPIO47", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
644 b->pins[15].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
645 b->pins[15].gpio.pinmap = 47; in mraa_beaglebone()
646 b->pins[15].gpio.parent_id = 0; in mraa_beaglebone()
647 b->pins[15].gpio.mux_total = 0; in mraa_beaglebone()
649 strncpy(b->pins[16].name, "GPIO46", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
650 b->pins[16].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
651 b->pins[16].gpio.pinmap = 46; in mraa_beaglebone()
652 b->pins[16].gpio.parent_id = 0; in mraa_beaglebone()
653 b->pins[16].gpio.mux_total = 0; in mraa_beaglebone()
656 strncpy(b->pins[17].name, "GPIO27", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
657 b->pins[17].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
658 b->pins[17].gpio.pinmap = 27; in mraa_beaglebone()
659 b->pins[17].gpio.parent_id = 0; in mraa_beaglebone()
660 b->pins[17].gpio.mux_total = 0; in mraa_beaglebone()
662 strncpy(b->pins[18].name, "GPIO65", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
663 b->pins[18].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
664 b->pins[18].gpio.pinmap = 65; in mraa_beaglebone()
665 b->pins[18].gpio.parent_id = 0; in mraa_beaglebone()
666 b->pins[18].gpio.mux_total = 0; in mraa_beaglebone()
669 strncpy(b->pins[19].name, "EHRPWM2A", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
670 b->pins[19].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
672 strncpy(b->pins[19].name, "GPIO22", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
673 b->pins[19].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
675 b->pins[19].gpio.pinmap = 22; in mraa_beaglebone()
676 b->pins[19].gpio.parent_id = 0; in mraa_beaglebone()
677 b->pins[19].gpio.mux_total = 0; in mraa_beaglebone()
678 b->pins[19].pwm.pinmap = 5; in mraa_beaglebone()
679 b->pins[19].pwm.mux_total = 0; in mraa_beaglebone()
682 strncpy(b->pins[20].name, "MMC1_CMD", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
683 b->pins[20].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
685 strncpy(b->pins[20].name, "GPIO63", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
686 b->pins[20].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
688 b->pins[20].gpio.pinmap = 63; in mraa_beaglebone()
689 b->pins[20].gpio.parent_id = 0; in mraa_beaglebone()
690 b->pins[20].gpio.mux_total = 0; in mraa_beaglebone()
693 strncpy(b->pins[21].name, "MMC1_CLK", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
694 b->pins[21].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
696 strncpy(b->pins[21].name, "GPIO62", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
697 b->pins[21].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
699 b->pins[21].gpio.pinmap = 62; in mraa_beaglebone()
700 b->pins[21].gpio.parent_id = 0; in mraa_beaglebone()
701 b->pins[21].gpio.mux_total = 0; in mraa_beaglebone()
704 strncpy(b->pins[22].name, "MMC1_D5", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
705 b->pins[22].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
707 strncpy(b->pins[22].name, "GPIO37", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
708 b->pins[22].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
710 b->pins[22].gpio.pinmap = 37; in mraa_beaglebone()
711 b->pins[22].gpio.parent_id = 0; in mraa_beaglebone()
712 b->pins[22].gpio.mux_total = 0; in mraa_beaglebone()
715 strncpy(b->pins[23].name, "MMC_D4", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
716 b->pins[23].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
718 strncpy(b->pins[23].name, "GPIO36", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
719 b->pins[23].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
721 b->pins[23].gpio.pinmap = 36; in mraa_beaglebone()
722 b->pins[23].gpio.parent_id = 0; in mraa_beaglebone()
723 b->pins[23].gpio.mux_total = 0; in mraa_beaglebone()
726 strncpy(b->pins[24].name, "MMC_D1", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
727 b->pins[24].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
729 strncpy(b->pins[24].name, "GPIO33", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
730 b->pins[24].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
732 b->pins[24].gpio.pinmap = 33; in mraa_beaglebone()
733 b->pins[24].gpio.parent_id = 0; in mraa_beaglebone()
734 b->pins[24].gpio.mux_total = 0; in mraa_beaglebone()
737 strncpy(b->pins[25].name, "MMC1_D0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
738 b->pins[25].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
740 strncpy(b->pins[25].name, "GPIO32", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
741 b->pins[25].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
743 b->pins[25].gpio.pinmap = 32; in mraa_beaglebone()
744 b->pins[25].gpio.parent_id = 0; in mraa_beaglebone()
745 b->pins[25].gpio.mux_total = 0; in mraa_beaglebone()
747 strncpy(b->pins[26].name, "GPIO61", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
748 b->pins[26].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
749 b->pins[26].gpio.pinmap = 61; in mraa_beaglebone()
750 b->pins[26].gpio.parent_id = 0; in mraa_beaglebone()
751 b->pins[26].gpio.mux_total = 0; in mraa_beaglebone()
754 strncpy(b->pins[27].name, "LCD_VSYNC", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
755 b->pins[27].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
757 strncpy(b->pins[27].name, "GPIO86", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
758 b->pins[27].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
760 b->pins[27].gpio.pinmap = 86; in mraa_beaglebone()
761 b->pins[27].gpio.parent_id = 0; in mraa_beaglebone()
762 b->pins[27].gpio.mux_total = 0; in mraa_beaglebone()
765 strncpy(b->pins[28].name, "LCD_PCLK", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
766 b->pins[28].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
768 strncpy(b->pins[28].name, "GPIO88", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
769 b->pins[28].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
771 b->pins[28].gpio.pinmap = 88; in mraa_beaglebone()
772 b->pins[28].gpio.parent_id = 0; in mraa_beaglebone()
773 b->pins[28].gpio.mux_total = 0; in mraa_beaglebone()
776 strncpy(b->pins[29].name, "LCD_HSYNC", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
777 b->pins[29].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
779 strncpy(b->pins[29].name, "GPIO87", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
780 b->pins[29].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
782 b->pins[29].gpio.pinmap = 87; in mraa_beaglebone()
783 b->pins[29].gpio.parent_id = 0; in mraa_beaglebone()
784 b->pins[29].gpio.mux_total = 0; in mraa_beaglebone()
787 strncpy(b->pins[30].name, "LCD_AC_BIAS", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
788 b->pins[30].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
790 strncpy(b->pins[30].name, "GPIO89", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
791 b->pins[30].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
793 b->pins[30].gpio.pinmap = 89; in mraa_beaglebone()
794 b->pins[30].gpio.parent_id = 0; in mraa_beaglebone()
795 b->pins[30].gpio.mux_total = 0; in mraa_beaglebone()
798 strncpy(b->pins[31].name, "LCD_D14", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
799 b->pins[31].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
802 strncpy(b->pins[31].name, "GPIO10", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
803 b->pins[31].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
805 b->pins[31].gpio.pinmap = 10; in mraa_beaglebone()
806 b->pins[31].gpio.parent_id = 0; in mraa_beaglebone()
807 b->pins[31].gpio.mux_total = 0; in mraa_beaglebone()
808 b->pins[31].uart.mux_total = 0; in mraa_beaglebone()
811 strncpy(b->pins[32].name, "LCD_D15", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
812 b->pins[32].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
815 strncpy(b->pins[32].name, "GPIO11", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
816 b->pins[32].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
818 b->pins[32].gpio.pinmap = 11; in mraa_beaglebone()
819 b->pins[32].gpio.parent_id = 0; in mraa_beaglebone()
820 b->pins[32].gpio.mux_total = 0; in mraa_beaglebone()
821 b->pins[32].uart.mux_total = 0; in mraa_beaglebone()
824 strncpy(b->pins[33].name, "LCD_D13", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
825 b->pins[33].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
828 strncpy(b->pins[33].name, "GPIO9", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
829 b->pins[33].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
831 b->pins[33].gpio.pinmap = 9; in mraa_beaglebone()
832 b->pins[33].gpio.parent_id = 0; in mraa_beaglebone()
833 b->pins[33].gpio.mux_total = 0; in mraa_beaglebone()
834 b->pins[33].uart.mux_total = 0; in mraa_beaglebone()
838 strncpy(b->pins[34].name, "LCD_D11", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
839 b->pins[34].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
841 strncpy(b->pins[34].name, "GPIO81", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
842 b->pins[34].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
844 b->pins[34].gpio.pinmap = 81; in mraa_beaglebone()
845 b->pins[34].gpio.parent_id = 0; in mraa_beaglebone()
846 b->pins[34].gpio.mux_total = 0; in mraa_beaglebone()
849 strncpy(b->pins[35].name, "LCD_D12", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
850 b->pins[35].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
853 strncpy(b->pins[35].name, "GPIO8", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
854 b->pins[35].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
856 b->pins[35].gpio.pinmap = 8; in mraa_beaglebone()
857 b->pins[35].gpio.parent_id = 0; in mraa_beaglebone()
858 b->pins[35].gpio.mux_total = 0; in mraa_beaglebone()
859 b->pins[35].uart.mux_total = 0; in mraa_beaglebone()
863 strncpy(b->pins[36].name, "LCD_D10", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
864 b->pins[36].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
866 strncpy(b->pins[36].name, "GPIO80", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
867 b->pins[36].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
869 b->pins[36].gpio.pinmap = 80; in mraa_beaglebone()
870 b->pins[36].gpio.parent_id = 0; in mraa_beaglebone()
871 b->pins[36].gpio.mux_total = 0; in mraa_beaglebone()
874 strncpy(b->pins[37].name, "LCD_D8", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
875 b->pins[37].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
878 strncpy(b->pins[37].name, "UART5TX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
879 b->pins[37].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
881 strncpy(b->pins[37].name, "GPIO78", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
882 b->pins[37].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
885 b->pins[37].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
886 b->pins[37].gpio.pinmap = 78; in mraa_beaglebone()
887 b->pins[37].gpio.parent_id = 0; in mraa_beaglebone()
888 b->pins[37].gpio.mux_total = 0; in mraa_beaglebone()
889 b->pins[37].uart.mux_total = 0; in mraa_beaglebone()
892 strncpy(b->pins[38].name, "LCD_D9", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
893 b->pins[38].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
897 strncpy(b->pins[38].name, "UART5RX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
898 b->pins[38].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
900 strncpy(b->pins[38].name, "GPIO79", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
901 b->pins[38].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
904 b->pins[38].gpio.pinmap = 79; in mraa_beaglebone()
905 b->pins[38].gpio.parent_id = 0; in mraa_beaglebone()
906 b->pins[38].gpio.mux_total = 0; in mraa_beaglebone()
907 b->pins[38].uart.mux_total = 0; in mraa_beaglebone()
910 strncpy(b->pins[39].name, "LCD_D6", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
911 b->pins[39].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
913 strncpy(b->pins[39].name, "GPIO76", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
914 b->pins[39].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
916 b->pins[39].gpio.pinmap = 76; in mraa_beaglebone()
917 b->pins[39].gpio.parent_id = 0; in mraa_beaglebone()
918 b->pins[39].gpio.mux_total = 0; in mraa_beaglebone()
921 strncpy(b->pins[40].name, "LCD_D7", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
922 b->pins[40].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
924 strncpy(b->pins[40].name, "GPIO77", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
925 b->pins[40].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
927 b->pins[40].gpio.pinmap = 77; in mraa_beaglebone()
928 b->pins[40].gpio.parent_id = 0; in mraa_beaglebone()
929 b->pins[40].gpio.mux_total = 0; in mraa_beaglebone()
932 strncpy(b->pins[41].name, "LCD_D4", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
933 b->pins[41].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
935 strncpy(b->pins[41].name, "GPIO74", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
936 b->pins[41].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
938 b->pins[41].gpio.pinmap = 74; in mraa_beaglebone()
939 b->pins[41].gpio.parent_id = 0; in mraa_beaglebone()
940 b->pins[41].gpio.mux_total = 0; in mraa_beaglebone()
943 strncpy(b->pins[42].name, "LCD_D5", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
944 b->pins[42].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
946 strncpy(b->pins[42].name, "GPIO75", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
947 b->pins[42].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
949 b->pins[42].gpio.pinmap = 75; in mraa_beaglebone()
950 b->pins[42].gpio.parent_id = 0; in mraa_beaglebone()
951 b->pins[42].gpio.mux_total = 0; in mraa_beaglebone()
954 strncpy(b->pins[43].name, "LCD_D2", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
955 b->pins[43].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
957 strncpy(b->pins[43].name, "GPIO72", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
958 b->pins[43].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
960 b->pins[43].gpio.pinmap = 72; in mraa_beaglebone()
961 b->pins[43].gpio.parent_id = 0; in mraa_beaglebone()
962 b->pins[43].gpio.mux_total = 0; in mraa_beaglebone()
965 strncpy(b->pins[44].name, "LCD_D3", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
966 b->pins[44].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
968 strncpy(b->pins[44].name, "GPIO73", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
969 b->pins[44].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
971 b->pins[44].gpio.pinmap = 73; in mraa_beaglebone()
972 b->pins[44].gpio.parent_id = 0; in mraa_beaglebone()
973 b->pins[44].gpio.mux_total = 0; in mraa_beaglebone()
977 strncpy(b->pins[45].name, "LCD_D0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
978 b->pins[45].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
980 strncpy(b->pins[45].name, "GPIO70", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
981 b->pins[45].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
983 b->pins[45].gpio.pinmap = 70; in mraa_beaglebone()
984 b->pins[45].gpio.parent_id = 0; in mraa_beaglebone()
985 b->pins[45].gpio.mux_total = 0; in mraa_beaglebone()
989 strncpy(b->pins[46].name, "LCD_D1", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
990 b->pins[46].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
992 strncpy(b->pins[46].name, "GPIO71", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
993 b->pins[46].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
995 b->pins[46].gpio.pinmap = 71; in mraa_beaglebone()
996 b->pins[46].gpio.parent_id = 0; in mraa_beaglebone()
997 b->pins[46].gpio.mux_total = 0; in mraa_beaglebone()
999 strncpy(b->pins[47].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1000 b->pins[47].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1002 strncpy(b->pins[48].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1003 b->pins[48].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1005 strncpy(b->pins[49].name, "3.3V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1006 b->pins[49].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1008 strncpy(b->pins[50].name, "3.3V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1009 b->pins[50].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1011 strncpy(b->pins[51].name, "5V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1012 b->pins[51].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1014 strncpy(b->pins[52].name, "5V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1015 b->pins[52].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1017 strncpy(b->pins[53].name, "5V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1018 b->pins[53].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1020 strncpy(b->pins[54].name, "5V", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1021 b->pins[54].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1023 strncpy(b->pins[55].name, "PWR", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1024 b->pins[55].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1026 strncpy(b->pins[56].name, "RESET", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1027 b->pins[56].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1030 strncpy(b->pins[57].name, "UART4_RX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1031 b->pins[57].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1033 strncpy(b->pins[57].name, "GPIO30", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1034 b->pins[57].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1036 b->pins[57].gpio.pinmap = 30; in mraa_beaglebone()
1037 b->pins[57].gpio.parent_id = 0; in mraa_beaglebone()
1038 b->pins[57].gpio.mux_total = 0; in mraa_beaglebone()
1039 b->pins[57].uart.mux_total = 0; in mraa_beaglebone()
1041 strncpy(b->pins[58].name, "GPIO60", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1042 b->pins[58].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1043 b->pins[58].gpio.pinmap = 60; in mraa_beaglebone()
1044 b->pins[58].gpio.parent_id = 0; in mraa_beaglebone()
1045 b->pins[58].gpio.mux_total = 0; in mraa_beaglebone()
1048 strncpy(b->pins[59].name, "UART4_TX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1049 b->pins[59].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1051 strncpy(b->pins[59].name, "GPIO31", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1052 b->pins[59].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1054 b->pins[59].gpio.pinmap = 31; in mraa_beaglebone()
1055 b->pins[59].gpio.parent_id = 0; in mraa_beaglebone()
1056 b->pins[59].gpio.mux_total = 0; in mraa_beaglebone()
1057 b->pins[59].uart.mux_total = 0; in mraa_beaglebone()
1060 strncpy(b->pins[60].name, "EHRPWM1A", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1061 b->pins[60].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1063 strncpy(b->pins[60].name, "GPIO50", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1064 b->pins[60].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1066 b->pins[60].gpio.pinmap = 50; in mraa_beaglebone()
1067 b->pins[60].gpio.parent_id = 0; in mraa_beaglebone()
1068 b->pins[60].gpio.mux_total = 0; in mraa_beaglebone()
1069 b->pins[60].pwm.pinmap = 3; in mraa_beaglebone()
1070 b->pins[60].pwm.mux_total = 0; in mraa_beaglebone()
1073 strncpy(b->pins[61].name, "GPIO48", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1074 b->pins[61].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1075 b->pins[61].gpio.pinmap = 48; in mraa_beaglebone()
1076 b->pins[61].gpio.parent_id = 0; in mraa_beaglebone()
1077 b->pins[61].gpio.mux_total = 0; in mraa_beaglebone()
1080 strncpy(b->pins[62].name, "EHRPWM1B", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1081 b->pins[62].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1083 strncpy(b->pins[62].name, "GPIO51", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1084 b->pins[62].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1086 b->pins[62].gpio.pinmap = 51; in mraa_beaglebone()
1087 b->pins[62].gpio.parent_id = 0; in mraa_beaglebone()
1088 b->pins[62].gpio.mux_total = 0; in mraa_beaglebone()
1089 b->pins[62].pwm.pinmap = 4; in mraa_beaglebone()
1090 b->pins[62].pwm.mux_total = 0; in mraa_beaglebone()
1094 strncpy(b->pins[63].name, "I2C1SCL", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1095 b->pins[63].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 1, 0, 0 }; in mraa_beaglebone()
1098 strncpy(b->pins[63].name, "SPI0CS0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1099 b->pins[63].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1102 strncpy(b->pins[63].name, "GPIO4", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1103 b->pins[63].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 1, 0, 0 }; in mraa_beaglebone()
1105 b->pins[63].gpio.pinmap = 4; in mraa_beaglebone()
1106 b->pins[63].gpio.parent_id = 0; in mraa_beaglebone()
1107 b->pins[63].gpio.mux_total = 0; in mraa_beaglebone()
1108 b->pins[63].i2c.mux_total = 0; in mraa_beaglebone()
1109 b->pins[63].spi.mux_total = 0; in mraa_beaglebone()
1113 strncpy(b->pins[64].name, "I2C1SDA", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1114 b->pins[64].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 1, 0, 0 }; in mraa_beaglebone()
1117 strncpy(b->pins[64].name, "SPI0D1", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1118 b->pins[64].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1121 strncpy(b->pins[64].name, "GPIO5", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1122 b->pins[64].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 1, 0, 0 }; in mraa_beaglebone()
1124 b->pins[64].gpio.pinmap = 5; in mraa_beaglebone()
1125 b->pins[64].gpio.parent_id = 0; in mraa_beaglebone()
1126 b->pins[64].gpio.mux_total = 0; in mraa_beaglebone()
1127 b->pins[64].i2c.mux_total = 0; in mraa_beaglebone()
1128 b->pins[64].spi.mux_total = 0; in mraa_beaglebone()
1131 strncpy(b->pins[65].name, "I2C2SCL", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1132 b->pins[65].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 1, 0, 0 }; in mraa_beaglebone()
1133 b->pins[65].i2c.mux_total = 0; in mraa_beaglebone()
1135 strncpy(b->pins[65].name, "GPIO13", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1136 b->pins[65].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 }; in mraa_beaglebone()
1138 b->pins[65].gpio.pinmap = 13; in mraa_beaglebone()
1139 b->pins[65].gpio.parent_id = 0; in mraa_beaglebone()
1140 b->pins[65].gpio.mux_total = 0; in mraa_beaglebone()
1141 b->pins[65].i2c.mux_total = 0; in mraa_beaglebone()
1144 strncpy(b->pins[66].name, "I2C2SDA", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1145 b->pins[66].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 1, 0, 0 }; in mraa_beaglebone()
1146 b->pins[66].i2c.mux_total = 0; in mraa_beaglebone()
1148 strncpy(b->pins[66].name, "GPIO12", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1149 b->pins[66].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 }; in mraa_beaglebone()
1151 b->pins[66].gpio.pinmap = 12; in mraa_beaglebone()
1152 b->pins[66].gpio.parent_id = 0; in mraa_beaglebone()
1153 b->pins[66].gpio.mux_total = 0; in mraa_beaglebone()
1154 b->pins[66].i2c.mux_total = 0; in mraa_beaglebone()
1158 strncpy(b->pins[67].name, "UART2_TX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1159 b->pins[67].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1162 strncpy(b->pins[67].name, "SPI0D0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1163 b->pins[67].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1166 strncpy(b->pins[67].name, "EHRPWM0B", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1167 b->pins[67].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1170 strncpy(b->pins[67].name, "GPIO3", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1171 b->pins[67].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 1, 0, 0, 1 }; in mraa_beaglebone()
1173 b->pins[67].gpio.pinmap = 3; in mraa_beaglebone()
1174 b->pins[67].gpio.parent_id = 0; in mraa_beaglebone()
1175 b->pins[67].gpio.mux_total = 0; in mraa_beaglebone()
1176 b->pins[67].spi.mux_total = 0; in mraa_beaglebone()
1177 b->pins[67].uart.mux_total = 0; in mraa_beaglebone()
1178 b->pins[67].pwm.pinmap = 1; in mraa_beaglebone()
1179 b->pins[67].pwm.mux_total = 0; in mraa_beaglebone()
1183 strncpy(b->pins[68].name, "UART2_RX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1184 b->pins[68].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 1 }; in mraa_beaglebone()
1187 strncpy(b->pins[68].name, "SPI0CLK", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1188 b->pins[68].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1191 strncpy(b->pins[68].name, "EHRPWM0A", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1192 b->pins[68].capabilites = (mraa_pincapabilities_t){ 1, 0, 1, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1195 strncpy(b->pins[68].name, "GPIO2", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1196 b->pins[68].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 1, 0, 0, 1 }; in mraa_beaglebone()
1198 b->pins[68].gpio.pinmap = 2; in mraa_beaglebone()
1199 b->pins[68].gpio.parent_id = 0; in mraa_beaglebone()
1200 b->pins[68].gpio.mux_total = 0; in mraa_beaglebone()
1201 b->pins[68].spi.mux_total = 0; in mraa_beaglebone()
1202 b->pins[68].uart.mux_total = 0; in mraa_beaglebone()
1203 b->pins[68].pwm.pinmap = 0; in mraa_beaglebone()
1204 b->pins[68].pwm.mux_total = 0; in mraa_beaglebone()
1207 strncpy(b->pins[69].name, "GPIO49", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1208 b->pins[69].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1209 b->pins[69].gpio.pinmap = 49; in mraa_beaglebone()
1210 b->pins[69].gpio.parent_id = 0; in mraa_beaglebone()
1211 b->pins[69].gpio.mux_total = 0; in mraa_beaglebone()
1214 strncpy(b->pins[70].name, "UART1_RX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1215 b->pins[70].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1217 strncpy(b->pins[70].name, "GPIO15", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1218 b->pins[70].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1220 b->pins[70].gpio.pinmap = 15; in mraa_beaglebone()
1221 b->pins[70].gpio.parent_id = 0; in mraa_beaglebone()
1222 b->pins[70].gpio.mux_total = 0; in mraa_beaglebone()
1223 b->pins[70].uart.mux_total = 0; in mraa_beaglebone()
1225 strncpy(b->pins[71].name, "GPIO117", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1226 b->pins[71].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1227 b->pins[71].gpio.pinmap = 117; in mraa_beaglebone()
1228 b->pins[71].gpio.parent_id = 0; in mraa_beaglebone()
1229 b->pins[71].gpio.mux_total = 0; in mraa_beaglebone()
1232 strncpy(b->pins[72].name, "UART1_RX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1233 b->pins[72].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1235 strncpy(b->pins[72].name, "GPIO14", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1236 b->pins[72].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1238 b->pins[72].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 }; in mraa_beaglebone()
1239 b->pins[72].gpio.pinmap = 14; in mraa_beaglebone()
1240 b->pins[72].gpio.parent_id = 0; in mraa_beaglebone()
1241 b->pins[72].gpio.mux_total = 0; in mraa_beaglebone()
1242 b->pins[72].uart.mux_total = 0; in mraa_beaglebone()
1244 strncpy(b->pins[73].name, "GPIO115", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1245 b->pins[73].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1246 b->pins[73].gpio.pinmap = 115; in mraa_beaglebone()
1247 b->pins[73].gpio.parent_id = 0; in mraa_beaglebone()
1248 b->pins[73].gpio.mux_total = 0; in mraa_beaglebone()
1252 strncpy(b->pins[74].name, "SPI1CS0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1253 b->pins[74].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1255 strncpy(b->pins[74].name, "GPIO113", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1256 b->pins[74].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1259 strncpy(b->pins[74].name, "MCASP0XX", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1260 b->pins[74].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1262 b->pins[74].gpio.pinmap = 113; in mraa_beaglebone()
1263 b->pins[74].gpio.parent_id = 0; in mraa_beaglebone()
1264 b->pins[74].gpio.mux_total = 0; in mraa_beaglebone()
1265 b->pins[74].spi.mux_total = 0; in mraa_beaglebone()
1269 strncpy(b->pins[75].name, "SPI1D0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1270 b->pins[75].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1272 strncpy(b->pins[75].name, "GPIO111", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1273 b->pins[75].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1276 strncpy(b->pins[75].name, "MMC1_SD", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1277 b->pins[75].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1279 b->pins[75].gpio.pinmap = 111; in mraa_beaglebone()
1280 b->pins[75].gpio.parent_id = 0; in mraa_beaglebone()
1281 b->pins[75].gpio.mux_total = 0; in mraa_beaglebone()
1282 b->pins[75].spi.mux_total = 0; in mraa_beaglebone()
1286 strncpy(b->pins[76].name, "SPI1D1", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1287 b->pins[76].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1289 strncpy(b->pins[76].name, "GPIO112", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1290 b->pins[76].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1293 strncpy(b->pins[76].name, "MMC2_SD", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1294 b->pins[76].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1296 b->pins[76].gpio.pinmap = 112; in mraa_beaglebone()
1297 b->pins[76].gpio.parent_id = 0; in mraa_beaglebone()
1298 b->pins[76].gpio.mux_total = 0; in mraa_beaglebone()
1299 b->pins[76].spi.mux_total = 0; in mraa_beaglebone()
1303 strncpy(b->pins[77].name, "SPI1CLK", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1304 b->pins[77].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1306 strncpy(b->pins[77].name, "GPIO110", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1307 b->pins[77].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 }; in mraa_beaglebone()
1310 strncpy(b->pins[77].name, "MMC0_SD", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1311 b->pins[77].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1313 b->pins[77].gpio.pinmap = 110; in mraa_beaglebone()
1314 b->pins[77].gpio.parent_id = 0; in mraa_beaglebone()
1315 b->pins[77].gpio.mux_total = 0; in mraa_beaglebone()
1316 b->pins[77].spi.mux_total = 0; in mraa_beaglebone()
1319 strncpy(b->pins[78].name, "VDD_ADC", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1320 b->pins[78].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1323 strncpy(b->pins[79].name, "AIN4", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1324 b->pins[79].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1326 strncpy(b->pins[80].name, "GND_ADC", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1327 b->pins[80].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1329 strncpy(b->pins[81].name, "AIN6", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1330 b->pins[81].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1332 strncpy(b->pins[82].name, "AIN5", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1333 b->pins[82].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1335 strncpy(b->pins[83].name, "AIN2", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1336 b->pins[83].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1338 strncpy(b->pins[84].name, "AIN3", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1339 b->pins[84].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1341 strncpy(b->pins[85].name, "AIN0", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1342 b->pins[85].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1344 strncpy(b->pins[86].name, "AIN1", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1345 b->pins[86].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 1, 0 }; in mraa_beaglebone()
1347 strncpy(b->pins[87].name, "GPIO20", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1348 b->pins[87].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1349 b->pins[87].gpio.pinmap = 20; in mraa_beaglebone()
1350 b->pins[87].gpio.parent_id = 0; in mraa_beaglebone()
1351 b->pins[87].gpio.mux_total = 0; in mraa_beaglebone()
1353 strncpy(b->pins[88].name, "GPIO7", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1354 b->pins[88].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1355 b->pins[88].gpio.pinmap = 7; in mraa_beaglebone()
1356 b->pins[88].gpio.parent_id = 0; in mraa_beaglebone()
1357 b->pins[88].gpio.mux_total = 0; in mraa_beaglebone()
1360 strncpy(b->pins[89].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1361 b->pins[89].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1364 strncpy(b->pins[90].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1365 b->pins[90].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1368 strncpy(b->pins[91].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1369 b->pins[91].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1372 strncpy(b->pins[92].name, "GND", MRAA_PIN_NAME_SIZE); in mraa_beaglebone()
1373 b->pins[92].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 0, 0, 0, 0 }; in mraa_beaglebone()
1376 b->i2c_bus_count = 2; in mraa_beaglebone()
1377 b->def_i2c_bus = 0; in mraa_beaglebone()
1379 b->i2c_bus[0].bus_id = 0; in mraa_beaglebone()
1380 b->i2c_bus[0].sda = 46 + 18; in mraa_beaglebone()
1381 b->i2c_bus[0].scl = 46 + 17; in mraa_beaglebone()
1383 b->i2c_bus[1].bus_id = 1; in mraa_beaglebone()
1384 b->i2c_bus[1].sda = 46 + 20; in mraa_beaglebone()
1385 b->i2c_bus[1].scl = 46 + 19; in mraa_beaglebone()
1388 b->spi_bus_count = 1; in mraa_beaglebone()
1390 b->spi_bus_count = 2; in mraa_beaglebone()
1391 b->def_spi_bus = 0; in mraa_beaglebone()
1392 b->spi_bus[0].bus_id = 1; in mraa_beaglebone()
1393 b->spi_bus[0].slave_s = 0; in mraa_beaglebone()
1394 b->spi_bus[0].cs = 46 + 17; in mraa_beaglebone()
1395 b->spi_bus[0].mosi = 46 + 18; in mraa_beaglebone()
1396 b->spi_bus[0].miso = 46 + 21; in mraa_beaglebone()
1397 b->spi_bus[0].sclk = 46 + 22; in mraa_beaglebone()
1399 b->spi_bus[1].bus_id = 2; in mraa_beaglebone()
1400 b->spi_bus[1].slave_s = 0; in mraa_beaglebone()
1401 b->spi_bus[1].cs = 46 + 28; in mraa_beaglebone()
1402 b->spi_bus[1].mosi = 46 + 29; in mraa_beaglebone()
1403 b->spi_bus[1].miso = 46 + 30; in mraa_beaglebone()
1404 b->spi_bus[1].sclk = 46 + 31; in mraa_beaglebone()
1406 b->uart_dev_count = 5; in mraa_beaglebone()
1407 b->def_uart_dev = 0; in mraa_beaglebone()
1408 b->uart_dev[0].rx = 46 + 26; in mraa_beaglebone()
1409 b->uart_dev[0].tx = 46 + 24; in mraa_beaglebone()
1410 b->uart_dev[1].rx = 46 + 22; in mraa_beaglebone()
1411 b->uart_dev[1].tx = 46 + 21; in mraa_beaglebone()
1413 b->uart_dev[2].rx = 0; in mraa_beaglebone()
1414 b->uart_dev[2].tx = 42; in mraa_beaglebone()
1416 b->uart_dev[3].rx = 46 + 11; in mraa_beaglebone()
1417 b->uart_dev[3].tx = 46 + 13; in mraa_beaglebone()
1418 b->uart_dev[4].rx = 38; in mraa_beaglebone()
1419 b->uart_dev[4].tx = 37; in mraa_beaglebone()
1421 b->gpio_count = 0; in mraa_beaglebone()
1423 for (i = 0; i < b->phy_pin_count; i++) in mraa_beaglebone()
1424 if (b->pins[i].capabilites.gpio) in mraa_beaglebone()
1425 b->gpio_count++; in mraa_beaglebone()
1427 return b; in mraa_beaglebone()
1430 free(b); in mraa_beaglebone()