projects
/
pinmux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding support for interface of SD/MMC.
[pinmux.git]
/
src
/
actual_pinmux.py
diff --git
a/src/actual_pinmux.py
b/src/actual_pinmux.py
index 37c8cdf921347988b9057b8f7eaf9b92ab5ddc46..2c1d76f1584282269ac59ff0e9ef5f9571728dc6 100644
(file)
--- a/
src/actual_pinmux.py
+++ b/
src/actual_pinmux.py
@@
-1,4
+1,4
@@
-from par
ams
import *
+from par
se
import *
from string import digits
from string import digits
@@
-11,7
+11,10
@@
dictionary = {
"spi_ss" : "output",
"spi_miso" : "input",
"twi_sda" : "inout",
"spi_ss" : "output",
"spi_miso" : "input",
"twi_sda" : "inout",
- "twi_scl" : "inout"
+ "twi_scl" : "inout",
+ "sd_clk": "output",
+ "sd_cmd": "output",
+ "sd_d": "inout",
}
}
@@
-57,11
+60,10
@@
for cell in muxed_cells:
x = dictionary.get(temp)
if(x is None):
print(
x = dictionary.get(temp)
if(x is None):
print(
- "E
rror
: The signal : " +
+ "E
RROR
: The signal : " +
str(cell[i + 1]) +
str(cell[i + 1]) +
- " in lineno: " +
- str(lineno) + "of pinmap.txt isn't present in the \
- current dictionary.\nUpdate dictionary or fix-typo.")
+ " of pinmap.txt isn't present in the current dictionary.\
+ \nUpdate dictionary or fix-typo.")
exit(1)
if(x == "input"):
pinmux = pinmux + \
exit(1)
if(x == "input"):
pinmux = pinmux + \