From 1fe860406256e7c350ad0232db64720557dc0c8b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 13 Nov 2021 14:42:05 +0000 Subject: [PATCH] code-comment for get_pinspecs() --- src/soc/config/pinouts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/config/pinouts.py b/src/soc/config/pinouts.py index 03cfa974..a66317aa 100644 --- a/src/soc/config/pinouts.py +++ b/src/soc/config/pinouts.py @@ -26,6 +26,10 @@ def _byteify(data, ignore_dicts = False): def get_pinspecs(chipname=None, subset=None): + """get_pinspecs - returns a dictionary of lists of pins for an IO function + example: {'uart': ['tx+', 'rx-'], + 'i2c': ['sda*', 'scl+']} + """ chip = load_pinouts(chipname) pinmap = chip['pins.map'] specs = OrderedDict() # preserve order -- 2.30.2