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 002aac7364e5f7f0024e067b85d10444ae882f02..2a8e66314f0504fbc92f1741034ff562e0499bf4 100644
(file)
--- a/
src/spec/microtest.py
+++ b/
src/spec/microtest.py
@@
-6,9
+6,9
@@
from spec.ifaceprint import display, display_fns, check_functions
from spec.ifaceprint import display_fixed
from spec.ifaceprint import display_fixed
-def pinspec(
of
):
+def pinspec():
pinbanks = {
pinbanks = {
- 'A':
4
,
+ 'A':
(3, 4)
,
}
fixedpins = {
'CTRL_SYS': [
}
fixedpins = {
'CTRL_SYS': [
@@
-37,8
+37,8
@@
def pinspec(of):
'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,17
+47,27
@@
def pinspec(of):
'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
# Bank A, 0-3
- #ps.gpio("", ('A', 0), 0, 0, 4)
- ps.uart("0", ('A', 0), 0)
+ ps.gpio("", ('A', 0), 0, 0, 3)
+ ps.uart("", ('A', 0), 1)
+ #ps.uart("0", ('A', 0), 1)
#ps.uart("1", ('A', 2), 1)
#ps.uart("1", ('A', 2), 1)
- ps.i2c("0", ('A', 1), 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)
- mi
nitest = ['UART0', 'TWI0
', ]
- mi
ni
test_eint = []
- mi
ni
test_pwm = []
+ mi
crotest = ['UART', 'TWI
', ]
+ mi
cro
test_eint = []
+ mi
cro
test_pwm = []
descriptions = {
'TWI0': 'I2C',
'E2:SD1': '',
descriptions = {
'TWI0': 'I2C',
'E2:SD1': '',
@@
-68,7
+78,7
@@
def pinspec(of):
'ULPI1': 'dual USB2 Host ULPI PHY'
}
'ULPI1': 'dual USB2 Host ULPI PHY'
}
- ps.add_scenario("Mi
niTest", minitest, minitest_eint, mini
test_pwm,
+ ps.add_scenario("Mi
croTest", microtest, microtest_eint, micro
test_pwm,
descriptions)
descriptions)
- return ps
.write(of)
+ return ps