summaryrefslogtreecommitdiff
path: root/py/objnamedtuple.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-06-05 09:26:49 +0200
committerDamien George <damien@micropython.org>2022-10-06 22:39:17 +1100
commit6765d4bbd66c19898158504ed8102ebd8de4c645 (patch)
tree0a7e917baae8caa932b9b452c4e18368db22a20e /py/objnamedtuple.h
parent6c037af086acd90755f93cd323a5114984885449 (diff)
samd/pin_af: Add the pin af table and its helper functions.
The pin af table is a representation of the MUX table from the data sheet. It provides information for each pin about the supported device functions. That information is needed by pin.irq, machine.ADC, machine.PWM, machine.UART, machine.SPI and machine.I2C. For each of these, the table tells for each pin, which device number, af number and pad number is assigned. Using the table gives a straight, uniform access to the information, where the benefit outweights the size of the table, which is not that large. The tables are MCU-specific. It is not required to tell for each board, which and where each of the above devices is available. That makes addding boards easy. Note: The information for DAC and I2S was not included, since it affects only a few pins.
Diffstat (limited to 'py/objnamedtuple.h')
0 files changed, 0 insertions, 0 deletions