This replaces the previous make-pin-table.py with an implementation based on boardgen.py. - MICROPY_PY_MACHINE_PIN_BOARD_CPU macro is removed. This isn't optional on other ports, so no need for it to be optional on SAMD. - pin_af_table is removed, and lookups just search the cpu dict instead (this saves N*wordsize bytes of firmware size to have this extra table). - pins.csv is now BOARD,CPU to match other ports. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2.8 KiB
2.8 KiB
| 1 | # The pin_cap_table is a subset from table 6-1 of the data sheet. |
|---|---|
| 2 | # It contain the information about pin mux set and pad |
| 3 | # for some of the peripheral devices with many possible assignments. |
| 4 | # The columns represent the peripheral class, as defined in pin_cap_t. The |
| 5 | # column number is equivalent to the mux class. |
| 6 | # The eic and adc columns contain the decimal number for the respecitive |
| 7 | # quantity, the columns for sercom, tc and tcc have in each cell |
| 8 | # the device number in the first, and the pad number in the second |
| 9 | # digit. If a signal is not available, the cell in the csv table is left empty. |
| 10 | # The first column is the pin id, not the number of the board pin. |
| 11 | # Rows not starting with pa, pb, pc or pd are ignored. |
| 12 | # When editing the table with a spread sheet, take care to import the data as text. |
| 13 | Pin,EIC,ADC0,ADC1,SERCOM1,SERCOM2,TC,TCC1,TCC2 |
| 14 | PB03,9,15,,,51,61,, |
| 15 | PA00,0,,,,10,20,, |
| 16 | PA01,1,,,,11,21,, |
| 17 | PC00,0,,10,,,,, |
| 18 | PC01,1,,11,,,,, |
| 19 | PC02,2,,4,,,,, |
| 20 | PC03,3,,5,,,,, |
| 21 | PA02,2,0,,,,,, |
| 22 | PA03,3,10,,,,,, |
| 23 | PB04,4,,6,,,,, |
| 24 | PB05,5,,7,,,,, |
| 25 | PD00,0,,14,,,,, |
| 26 | PD01,1,,15,,,,, |
| 27 | PB06,6,,8,,,,, |
| 28 | PB07,7,,9,,,,, |
| 29 | PB08,8,2,0,,40,40,, |
| 30 | PB09,9,3,1,,41,41,, |
| 31 | PA04,4,4,,,00,00,, |
| 32 | PA05,5,5,,,01,01,, |
| 33 | PA06,6,6,,,02,10,, |
| 34 | PA07,7,7,,,03,11,, |
| 35 | PC04,4,,,60,,,00, |
| 36 | PC05,5,,,61,,,, |
| 37 | PC06,6,,,62,,,, |
| 38 | PC07,9,,,63,,,, |
| 39 | PA08,,8,2,00,21,00,00,14 |
| 40 | PA09,9,9,3,01,20,01,01,15 |
| 41 | PA10,10,10,,02,22,10,02,16 |
| 42 | PA11,11,11,,03,23,11,03,17 |
| 43 | PB10,10,,,,42,50,04,10 |
| 44 | PB11,12,,,,43,51,05,11 |
| 45 | PB12,12,,,40,,40,30,00 |
| 46 | PB13,13,,,41,,41,31,01 |
| 47 | PB14,14,,,42,,50,40,02 |
| 48 | PB15,15,,,43,,51,41,03 |
| 49 | PD08,3,,,70,61,,01, |
| 50 | PD09,4,,,71,60,,02, |
| 51 | PD10,5,,,72,62,,03, |
| 52 | PD11,6,,,73,63,,04, |
| 53 | PD12,7,,,,,,05, |
| 54 | PC10,10,,,62,72,,00,14 |
| 55 | PC11,11,,,63,73,,01,15 |
| 56 | PC12,12,,,70,61,,02,16 |
| 57 | PC13,13,,,71,60,,03,17 |
| 58 | PC14,14,,,72,62,,04,10 |
| 59 | PC15,15,,,73,63,,05,11 |
| 60 | PA12,12,,,20,41,20,06,12 |
| 61 | PA13,13,,,21,40,21,07,13 |
| 62 | PA14,14,,,22,42,30,20,12 |
| 63 | PA15,15,,,23,43,31,21,13 |
| 64 | PA16,0,,,10,31,20,10,04 |
| 65 | PA17,1,,,11,30,21,11,05 |
| 66 | PA18,2,,,12,32,30,12,06 |
| 67 | PA19,3,,,13,33,31,13,07 |
| 68 | PC16,0,,,60,01,,00, |
| 69 | PC17,1,,,61,00,,01, |
| 70 | PC18,2,,,62,02,,02, |
| 71 | PC19,3,,,63,03,,03, |
| 72 | PC20,4,,,,,,04, |
| 73 | PC21,5,,,,,,05, |
| 74 | PC22,6,,,10,31,,05, |
| 75 | PC23,7,,,11,30,,07, |
| 76 | PD20,10,,,12,32,,10, |
| 77 | PD21,11,,,13,33,,11, |
| 78 | PB16,0,,,50,,60,30,04 |
| 79 | PB17,1,,,51,,61,31,05 |
| 80 | PB18,2,,,52,72,,10, |
| 81 | PB19,3,,,53,73,,11, |
| 82 | PB20,4,,,30,71,,12, |
| 83 | PB21,5,,,31,70,,13, |
| 84 | PA20,4,,,52,32,70,14,00 |
| 85 | PA21,5,,,53,33,71,15,01 |
| 86 | PA22,6,,,30,51,40,16,02 |
| 87 | PA23,7,,,31,50,41,17,03 |
| 88 | PA24,8,,,32,52,50,22, |
| 89 | PA25,9,,,33,53,51,, |
| 90 | PB22,22,,,12,52,70,, |
| 91 | PB23,7,,,13,53,71,, |
| 92 | PB24,8,,,00,21,,, |
| 93 | PB25,9,,,01,20,,, |
| 94 | PB26,12,,,20,41,,12, |
| 95 | PB27,13,,,21,40,,13, |
| 96 | PB28,14,,,22,42,,14, |
| 97 | PB29,15,,,23,43,,15, |
| 98 | PC24,8,,,02,22,,, |
| 99 | PC25,9,,,03,23,,, |
| 100 | PC26,10,,,,,,, |
| 101 | PC27,11,,,10,,,, |
| 102 | PC28,12,,,11,,,, |
| 103 | PA27,11,,,,,,, |
| 104 | PA30,14,,,72,12,60,20, |
| 105 | PA31,15,,,73,13,61,21, |
| 106 | PB30,14,,,70,51,00,40,06 |
| 107 | PB31,15,,,71,50,01,41,07 |
| 108 | PC30,14,,12,,,,, |
| 109 | PC31,15,,13,,,,, |
| 110 | PB00,9,12,,,52,70,, |
| 111 | PB01,1,13,,,53,71,, |
| 112 | PB02,2,14,,,50,60,22, |