projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f44d86a
)
adding a sample test where certain IOs have differing number of muxes
author
Neel
<neelgala@gmail.com>
Tue, 13 Mar 2018 12:07:12 +0000
(17:37 +0530)
committer
Neel
<neelgala@gmail.com>
Tue, 13 Mar 2018 12:07:12 +0000
(17:37 +0530)
pinmap.txt
patch
|
blob
|
history
src/params.py
patch
|
blob
|
history
diff --git
a/pinmap.txt
b/pinmap.txt
index 71d0963c371b6905fe5476e648926a31178b2ae5..882865c9fbc1e2e395270c8f9b5f36bfcec30f97 100644
(file)
--- a/
pinmap.txt
+++ b/
pinmap.txt
@@
-1,6
+1,6
@@
muxed
muxed
-0 uart0_tx spi0_sclk
-1 uart0_rx spi0_mosi
+0 uart0_tx spi0_sclk
uart2_tx uart3_tx
+1 uart0_rx spi0_mosi
uart2_rx uart3_rx
2 twi0_sda spi0_ss
3 twi0_scl spi0_miso
dedicated
2 twi0_sda spi0_ss
3 twi0_scl spi0_miso
dedicated
diff --git
a/src/params.py
b/src/params.py
index cad4449f8014431569a4a9e2c8f35207f259c2be..d19169764295012f295d78791dc6b626142af6a8 100644
(file)
--- a/
src/params.py
+++ b/
src/params.py
@@
-2,7
+2,7
@@
N_MUX = 1 # number of selection lines for the mux per io
N_IO = 0
N_MUX_IO = 0
N_MUX = 1 # number of selection lines for the mux per io
N_IO = 0
N_MUX_IO = 0
-N_UART =
2
+N_UART =
4
N_SPI = 1
N_TWI = 2
# ================ #
N_SPI = 1
N_TWI = 2
# ================ #
@@
-18,7
+18,13
@@
for lineno, line in enumerate(pinmapfile):
dedicated_cells.append(line1)
if(len(line1) > 2):
muxed_cells.append(line1)
dedicated_cells.append(line1)
if(len(line1) > 2):
muxed_cells.append(line1)
+# ============================================= #
+# check if the user has not screwed up by ensuring that no pin is
+# present in both muxed and dedicated pins
+# TODO
+
+# =========================================== #
N_IO = len(dedicated_cells) + len(muxed_cells)
print("Max number of IO: " + str(N_IO))
print("Muxed IOs: " + str(len(muxed_cells)))
N_IO = len(dedicated_cells) + len(muxed_cells)
print("Max number of IO: " + str(N_IO))
print("Muxed IOs: " + str(len(muxed_cells)))