IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
| Date: | 2011-06-06 02:47:02 (1 year 11 months ago) |
|---|---|
| Author: | Werner Almesberger |
| Commit: | 33b0400e5314c36716a5807d88da24f5411b7cee |
| Message: | atrf-gpio: accept 'o' as an alias for 'l' This, while being slightly unsystematic, reduces the risk of confusing "1" (one) and "l" (lower-case ell). - tools/atrf-gpio/atben.c (do_atben), tools/atrf-gpio/atusb.c (do_atusb): treat 'o' as an alias of 'l' - tools/atrf-gpio/atrf-gpio.c (usage): list 'o' as alternative for 'l' |
| Files: |
tools/atrf-gpio/atben.c (1 diff) tools/atrf-gpio/atrf-gpio.c (3 diffs) tools/atrf-gpio/atusb.c (1 diff) |
Change Details
| tools/atrf-gpio/atben.c | ||
|---|---|---|
| 159 | 159 | expect |= bit; |
| 160 | 160 | /* fall through */ |
| 161 | 161 | case 'l': |
| 162 | case 'o': | |
| 162 | 163 | read |= bit; |
| 163 | 164 | /* fall through */ |
| 164 | 165 | case 'z': |
| tools/atrf-gpio/atrf-gpio.c | ||
|---|---|---|
| 118 | 118 | " addr/value read and verify one byte from SRAM\n" |
| 119 | 119 | " #... comment\n\n" |
| 120 | 120 | " pattern is a sequence of the following characters:\n" |
| 121 | " 0 = output a strong 0 1 = output a strong 1\n" | |
| 122 | " L = pull up, expect to read 0 H = pull up, expect to read 1\n" | |
| 123 | " l = no pull-up, expect to read 0 h = no pull-up, expect to read 1\n" | |
| 124 | " Z = pull up, don't read z = no pull-up, don't read\n" | |
| 125 | " x = don't care . = separator\n" | |
| 121 | " 0 = output a strong 0 1 = output a strong 1\n" | |
| 122 | " L = pull up, expect to read 0 H = pull up, expect to read 1\n" | |
| 123 | " l/o = no pull-up, expect to read 0 h = no pull-up, expect to read 1\n" | |
| 124 | " Z = pull up, don't read z = no pull-up, don't read\n" | |
| 125 | " x = don't care . = separator\n" | |
| 126 | 126 | , name, atrf_default_driver_name()); |
| 127 | 127 | exit(1); |
| 128 | 128 | } |
| ... | ... | |
| 134 | 134 | * H pull-up, read 1 |
| 135 | 135 | * L pull-up, read 0 |
| 136 | 136 | * h no pull-up, read 1 |
| 137 | * l no pull-up, read 0 | |
| 137 | * l/o no pull-up, read 0 | |
| 138 | 138 | * Z pull-up, don't read |
| 139 | 139 | * z no pull-up, don't read |
| 140 | 140 | * x don't care |
| ... | ... | |
| 168 | 168 | if (reg_op(NULL, argv[i], 0)) |
| 169 | 169 | continue; |
| 170 | 170 | for (s = argv[i]; *s; s++) |
| 171 | if (!strchr("01HLhlZzx.", *s)) | |
| 171 | if (!strchr("01HLhloZzx.", *s)) | |
| 172 | 172 | fprintf(stderr, |
| 173 | 173 | "invalid configuration '%c' in \"%s\"\n", |
| 174 | 174 | *s, argv[i]); |
| tools/atrf-gpio/atusb.c | ||
|---|---|---|
| 160 | 160 | expect[port] |= bit; |
| 161 | 161 | /* fall through */ |
| 162 | 162 | case 'l': |
| 163 | case 'o': | |
| 163 | 164 | read[port] |= bit; |
| 164 | 165 | /* fall through */ |
| 165 | 166 | case 'z': |
Branches:
master
