From: Luke Kenneth Casson Leighton Date: Sun, 5 Aug 2018 09:19:03 +0000 (+0100) Subject: minor cleanup, include epydoc in Makefile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cc01d9dec3956cf15709a137a722017514e338b;p=pinmux.git minor cleanup, include epydoc in Makefile --- diff --git a/Makefile b/Makefile index 0ef674e..746f0c8 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,9 @@ clean: pep8: autopep8 -a -a -a --experimental -r -i src + +epydoc: + cd src && epydoc -o ../html -v --show-imports \ + --inheritance listed --graph all \ + pinmux_generator.py spec/ bsv/ + diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index 1d1fcd4..7a3eede 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -137,11 +137,12 @@ def init(p, ifaces): that column. text is outputted in the format: - x_out = - muxer_sel==0 ? a : - muxer_sel==1 ? b : - muxer_sel==2 ? 0 : - d + + x_out = + muxer_sel==0 ? a : + muxer_sel==1 ? b : + muxer_sel==2 ? 0 : + d last line doesn't need selector-logic, obviously. diff --git a/src/spec/pinfunctions.py b/src/spec/pinfunctions.py index 00d97e4..cdfaab4 100644 --- a/src/spec/pinfunctions.py +++ b/src/spec/pinfunctions.py @@ -37,8 +37,8 @@ sdmmc is never going to do anything other than switch this entire bank all at once. so in this particular example, sdmmc returns: - (['CMD+', 'CLK+', 'D0*', 'D1*', 'D2*', 'D3*'] # pin names - ['D0*', 'D1*', 'D2*', 'D3*']) # ganged bus names + (['CMD+', 'CLK+', 'D0*', 'D1*', 'D2*', 'D3*'] # pin names + ['D0*', 'D1*', 'D2*', 'D3*']) # ganged bus names """