Files
micropython/ports/samd/mcu/samd21/pin-af-table.csv
Jim Mussared 4d568a5bd7 samd/boards/make-pins.py: Update to use tools/boardgen.py.
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>
2023-11-03 14:18:32 +11:00

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.
12Pin,EIC,ADC0,SERCOM1,SERCOM2,TCC1,TCC2
13PA00,0,,,10,20,
14PA01,1,,,11,21,
15PA02,2,0,,,,
16PA03,3,1,,,,
17PB04,4,12,,,,
18PB05,5,13,,,,
19PB06,6,14,,,,
20PB07,7,15,,,,
21PB08,8,2,,40,40,
22PB09,9,3,,41,41,
23PA04,4,4,,00,00,
24PA05,5,5,,01,01,
25PA06,6,6,,02,10,
26PA07,7,7,,03,11,
27PA08,,16,00,20,00,12
28PA09,9,17,01,21,01,13
29PA10,10,18,02,22,10,02
30PA11,11,19,03,23,11,03
31PB10,10,,,42,50,04
32PB11,11,,,43,51,05
33PB12,12,,40,,40,06
34PB13,13,,41,,41,07
35PB14,14,,42,,50,
36PB15,15,,43,,51,
37PA12,12,,20,40,20,06
38PA13,13,,21,41,20,07
39PA14,14,,22,42,30,04
40PA15,15,,23,43,31,05
41PA16,0,,10,30,20,06
42PA17,1,,11,31,21,07
43PA18,2,,12,32,30,02
44PA19,3,,13,33,31,03
45PB16,9,,50,,60,04
46PB17,1,,51,,61,05
47PA20,4,,52,32,70,04
48PA21,5,,53,33,71,07
49PA22,6,,30,50,40,04
50PA23,7,,31,51,41,05
51PA24,12,,32,52,50,12
52PA25,13,,33,53,51,13
53PB22,6,,,52,70,
54PB23,7,,,53,71,
55PA27,15,,,,,
56PA28,8,,,,,
57PA30,10,,,12,10,
58PA31,11,,,13,11,
59PB30,14,,,50,00,12
60PB31,15,,,51,01,13
61PB00,0,8,,52,70,
62PB01,1,9,,53,71,
63PB02,2,10,,50,60,
64PB03,3,11,,51,61,