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>
1.7 KiB
1.7 KiB
| 1 | # The pin_cap_tables contain the information anbout pin mux set and pad |
|---|---|
| 2 | # for some of the peripheral devices with many possible assignments. |
| 3 | # The pin_cap_table is a subset from table 7-1 of the data sheet. |
| 4 | # It contain the information about pin mux set and pad |
| 5 | # The eic and adc columns contain the decimal number for the respecitive |
| 6 | # quantity, the columns for sercom, tc and tcc have in each cell |
| 7 | # the device number in the upper nibble, and the pad number in the lower |
| 8 | # nibble. If a signal is not available, the cell in the csv table is left empty. |
| 9 | # The first column is the pin id, not the number of the board pin. |
| 10 | # Rows not starting with pa, pb, pc or pd are ignored. |
| 11 | # When editing the table with a spread sheet, take care to import the data as text. |
| 12 | Pin,EIC,ADC0,SERCOM1,SERCOM2,TCC1,TCC2 |
| 13 | PA00,0,,,10,20, |
| 14 | PA01,1,,,11,21, |
| 15 | PA02,2,0,,,, |
| 16 | PA03,3,1,,,, |
| 17 | PB04,4,12,,,, |
| 18 | PB05,5,13,,,, |
| 19 | PB06,6,14,,,, |
| 20 | PB07,7,15,,,, |
| 21 | PB08,8,2,,40,40, |
| 22 | PB09,9,3,,41,41, |
| 23 | PA04,4,4,,00,00, |
| 24 | PA05,5,5,,01,01, |
| 25 | PA06,6,6,,02,10, |
| 26 | PA07,7,7,,03,11, |
| 27 | PA08,,16,00,20,00,12 |
| 28 | PA09,9,17,01,21,01,13 |
| 29 | PA10,10,18,02,22,10,02 |
| 30 | PA11,11,19,03,23,11,03 |
| 31 | PB10,10,,,42,50,04 |
| 32 | PB11,11,,,43,51,05 |
| 33 | PB12,12,,40,,40,06 |
| 34 | PB13,13,,41,,41,07 |
| 35 | PB14,14,,42,,50, |
| 36 | PB15,15,,43,,51, |
| 37 | PA12,12,,20,40,20,06 |
| 38 | PA13,13,,21,41,20,07 |
| 39 | PA14,14,,22,42,30,04 |
| 40 | PA15,15,,23,43,31,05 |
| 41 | PA16,0,,10,30,20,06 |
| 42 | PA17,1,,11,31,21,07 |
| 43 | PA18,2,,12,32,30,02 |
| 44 | PA19,3,,13,33,31,03 |
| 45 | PB16,9,,50,,60,04 |
| 46 | PB17,1,,51,,61,05 |
| 47 | PA20,4,,52,32,70,04 |
| 48 | PA21,5,,53,33,71,07 |
| 49 | PA22,6,,30,50,40,04 |
| 50 | PA23,7,,31,51,41,05 |
| 51 | PA24,12,,32,52,50,12 |
| 52 | PA25,13,,33,53,51,13 |
| 53 | PB22,6,,,52,70, |
| 54 | PB23,7,,,53,71, |
| 55 | PA27,15,,,,, |
| 56 | PA28,8,,,,, |
| 57 | PA30,10,,,12,10, |
| 58 | PA31,11,,,13,11, |
| 59 | PB30,14,,,50,00,12 |
| 60 | PB31,15,,,51,01,13 |
| 61 | PB00,0,8,,52,70, |
| 62 | PB01,1,9,,53,71, |
| 63 | PB02,2,10,,50,60, |
| 64 | PB03,3,11,,51,61, |