mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 20:04:03 +02:00
prod/: P_ON test for atusb can't work as intended ... because we're not in P_ON
The explanation is simple: reset from any state but P_ON throws us back into TRX_OFF, not P_ON. That's why the P_ON test only worked predictably after power-cycling the board. - prod/atusb (gpio_usb): removed P_ON test - prod/atben (gpio_ben): added comment to P_ON test explaining why it works in this case
This commit is contained in:
parent
3e37af63ca
commit
39c37258c5
@ -15,6 +15,7 @@ gpio_ben()
|
||||
#
|
||||
|
||||
# P_ON state (after reset; transceiver pull-up/downs active)
|
||||
# (Note: this only works on atben because we power-cycle to reset)
|
||||
|
||||
step "GPIO scan (P_ON)"
|
||||
cmd "$LOCAL_EXEC \"atrf-gpio -d $LOCAL_DUT -p \
|
||||
|
33
prod/atusb
33
prod/atusb
@ -39,37 +39,6 @@ led()
|
||||
|
||||
gpio_usb()
|
||||
{
|
||||
# P_ON state (after reset; transceiver pull-up/downs active)
|
||||
|
||||
#
|
||||
# BBBBBBBB CCCCCCCC DDDDDDDD
|
||||
# 01234567 01234567 01234567
|
||||
#
|
||||
# -xxxS-L- -x-----n InMM-S--
|
||||
# T E R RSIO C
|
||||
#
|
||||
# Pull in P_ON v ^ -^-v v
|
||||
#
|
||||
|
||||
if false; then
|
||||
step "GPIO scan (P_ON)"
|
||||
cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \
|
||||
HHHHoHxH.HxHxHxHh.ohzoHoHH '# reset state (H)' \
|
||||
HHHH0HxH.HxHxHxHh.ohzoHoHH '# test SLP_TR (0)' \
|
||||
HHHHoH0H.HxHxHxHh.ohzoHoHH '# test LED (0)' \
|
||||
HHHHoHxH.HxHxHxHh.LhzoHoHH '# test IRQ_RF (0)' \
|
||||
HHHHoHxH.HxHxHxHh.o0zoHoHH '# test nSEL (0)' \
|
||||
HHHHoHxH.HxHxHxHh.ohz0HoHH '# test MOSI (0)' \
|
||||
HHHHoHxH.HxHxHxHh.ohzoH0HH '# test SCLK (0)' \
|
||||
0000o0x0.0x0x0x0h.ohzo0o00 '# reset state (0)' \
|
||||
000010x0.0x0x0x0h.ohzo0o00 '# test SLP_TR (1)' \
|
||||
0000o010.0x0x0x0h.ohzo0o00 '# test LED (1)' \
|
||||
0000o0x0.0x0x0x0h.o1zo0o00 '# test nSEL (1)' \
|
||||
0000o0x0.0x0x0x0h.ohz10o00 '# test MOSI (1)' \
|
||||
0000o0x0.0x0x0x0h.ohzo0100 '# test SCLK (1)'"
|
||||
doit
|
||||
fi
|
||||
|
||||
# TRX_OFF state (transceiver pull-up/downs inactive)
|
||||
|
||||
# -xxxS-L- -x-----n InMM-S--
|
||||
@ -109,7 +78,7 @@ fi
|
||||
# T E R RSIO C
|
||||
|
||||
step "GPIO scan (INT)"
|
||||
cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \
|
||||
cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT \
|
||||
xxxxxxxx.xxxxxxxx.oxxxxxxx '# reset state' \
|
||||
0x04=1 '# IRQ_POLARITY = 1' \
|
||||
xxxxxxxx.xxxxxxxx.hxxxxxxx '# test INT (1)' \
|
||||
|
Loading…
Reference in New Issue
Block a user