projects
/
pinmux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
decided to use new spec
[pinmux.git]
/
src
/
spec
/
microtest.py
diff --git
a/src/spec/microtest.py
b/src/spec/microtest.py
index f4adabf6fdd0aaf5659fa2cd6ffabe24ca04b089..2a8e66314f0504fbc92f1741034ff562e0499bf4 100644
(file)
--- a/
src/spec/microtest.py
+++ b/
src/spec/microtest.py
@@
-8,7
+8,7
@@
from spec.ifaceprint import display_fixed
def pinspec():
pinbanks = {
def pinspec():
pinbanks = {
- 'A':
4
,
+ 'A':
(3, 4)
,
}
fixedpins = {
'CTRL_SYS': [
}
fixedpins = {
'CTRL_SYS': [
@@
-37,8
+37,8
@@
def pinspec():
'TWI0': 'I2C 0',
'TWI1': 'I2C 1',
'TWI2': 'I2C 2',
'TWI0': 'I2C 0',
'TWI1': 'I2C 1',
'TWI2': 'I2C 2',
- '
UARTQ
0': 'UART (TX/RX/CTS/RTS) 0',
- '
UARTQ
1': 'UART (TX/RX/CTS/RTS) 1',
+ '
QUART
0': 'UART (TX/RX/CTS/RTS) 0',
+ '
QUART
1': 'UART (TX/RX/CTS/RTS) 1',
'UART0': 'UART (TX/RX) 0',
'UART1': 'UART (TX/RX) 1',
'UART2': 'UART (TX/RX) 2',
'UART0': 'UART (TX/RX) 0',
'UART1': 'UART (TX/RX) 1',
'UART2': 'UART (TX/RX) 2',
@@
-47,7
+47,13
@@
def pinspec():
'ULPI2': 'ULPI (USB Low Pin-count) 2',
}
'ULPI2': 'ULPI (USB Low Pin-count) 2',
}
- ps = PinSpec(pinbanks, fixedpins, function_names)
+ ps = PinSpec(pinbanks, fixedpins, function_names,
+ { "gpioa" :
+ {
+ "muxconfig" : "011000"
+ }
+ }
+ )
# Bank A, 0-3
ps.gpio("", ('A', 0), 0, 0, 3)
# Bank A, 0-3
ps.gpio("", ('A', 0), 0, 0, 3)
@@
-55,6
+61,7
@@
def pinspec():
#ps.uart("0", ('A', 0), 1)
#ps.uart("1", ('A', 2), 1)
ps.i2c("", ('A', 1), 2)
#ps.uart("0", ('A', 0), 1)
#ps.uart("1", ('A', 2), 1)
ps.i2c("", ('A', 1), 2)
+ ps.i2c("", ('A', 0), 3, limit=1)
#ps.i2c("0", ('A', 1), 2)
#ps.i2c("1", ('A', 2), 4)
#ps.i2c("0", ('A', 1), 2)
#ps.i2c("1", ('A', 2), 4)