IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-06-12 12:46:26 (12 years 9 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 39c37258c5e3ba69c2f7d06c9fb49d8d0ca27761 |
Message: | 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 |
Files: |
prod/atben (1 diff) prod/atusb (2 diffs) |
Change Details
prod/atben | ||
---|---|---|
15 | 15 | # |
16 | 16 | |
17 | 17 | # P_ON state (after reset; transceiver pull-up/downs active) |
18 | # (Note: this only works on atben because we power-cycle to reset) | |
18 | 19 | |
19 | 20 | step "GPIO scan (P_ON)" |
20 | 21 | cmd "$LOCAL_EXEC \"atrf-gpio -d $LOCAL_DUT -p \ |
prod/atusb | ||
---|---|---|
39 | 39 | |
40 | 40 | gpio_usb() |
41 | 41 | { |
42 | # P_ON state (after reset; transceiver pull-up/downs active) | |
43 | ||
44 | # | |
45 | # BBBBBBBB CCCCCCCC DDDDDDDD | |
46 | # 01234567 01234567 01234567 | |
47 | # | |
48 | # -xxxS-L- -x-----n InMM-S-- | |
49 | # T E R RSIO C | |
50 | # | |
51 | # Pull in P_ON v ^ -^-v v | |
52 | # | |
53 | ||
54 | if false; then | |
55 | step "GPIO scan (P_ON)" | |
56 | cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \ | |
57 | HHHHoHxH.HxHxHxHh.ohzoHoHH '# reset state (H)' \ | |
58 | HHHH0HxH.HxHxHxHh.ohzoHoHH '# test SLP_TR (0)' \ | |
59 | HHHHoH0H.HxHxHxHh.ohzoHoHH '# test LED (0)' \ | |
60 | HHHHoHxH.HxHxHxHh.LhzoHoHH '# test IRQ_RF (0)' \ | |
61 | HHHHoHxH.HxHxHxHh.o0zoHoHH '# test nSEL (0)' \ | |
62 | HHHHoHxH.HxHxHxHh.ohz0HoHH '# test MOSI (0)' \ | |
63 | HHHHoHxH.HxHxHxHh.ohzoH0HH '# test SCLK (0)' \ | |
64 | 0000o0x0.0x0x0x0h.ohzo0o00 '# reset state (0)' \ | |
65 | 000010x0.0x0x0x0h.ohzo0o00 '# test SLP_TR (1)' \ | |
66 | 0000o010.0x0x0x0h.ohzo0o00 '# test LED (1)' \ | |
67 | 0000o0x0.0x0x0x0h.o1zo0o00 '# test nSEL (1)' \ | |
68 | 0000o0x0.0x0x0x0h.ohz10o00 '# test MOSI (1)' \ | |
69 | 0000o0x0.0x0x0x0h.ohzo0100 '# test SCLK (1)'" | |
70 | doit | |
71 | fi | |
72 | ||
73 | 42 | # TRX_OFF state (transceiver pull-up/downs inactive) |
74 | 43 | |
75 | 44 | # -xxxS-L- -x-----n InMM-S-- |
... | ... | |
109 | 78 | # T E R RSIO C |
110 | 79 | |
111 | 80 | step "GPIO scan (INT)" |
112 | cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT -p \ | |
81 | cmd "$LOCAL_EXEC atrf-gpio -d $LOCAL_DUT \ | |
113 | 82 | xxxxxxxx.xxxxxxxx.oxxxxxxx '# reset state' \ |
114 | 83 | 0x04=1 '# IRQ_POLARITY = 1' \ |
115 | 84 | xxxxxxxx.xxxxxxxx.hxxxxxxx '# test INT (1)' \ |