IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-05-28 12:03:20 (12 years 10 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 0372d7d6cd18aaf76785fa1fbe01bdbe81d14c84 |
Message: | prod/: moved more configurable items to variables - Makefile: define driver names depending on device role - Makefile: changed title comment to indicate that this Makefile is no longer considered just a convenience hack - atusb: define USB_ID via a variable instead of hard-coding it |
Files: |
prod/Makefile (2 diffs) prod/atusb (1 diff) |
Change Details
prod/Makefile | ||
---|---|---|
1 | 1 | # |
2 | # This Makefile just contains a few convenience commands, for development | |
2 | # prod/Makefile - Run the production test process (reference/development) | |
3 | 3 | # |
4 | # Written 2011 by Werner Almesberger | |
5 | # Copyright 2011 Werner Almesberger | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2 of the License, or | |
10 | # (at your option) any later version. | |
11 | # | |
12 | ||
13 | ||
14 | ATBEN_DUT=net:ben | |
15 | ATBEN_REF=usb | |
16 | ATUSB_DUT=usb | |
17 | ATUSB_REF=net:ben | |
4 | 18 | |
5 | 19 | |
6 | 20 | .PHONY: all ben usb flash |
... | ... | |
8 | 22 | all: ben |
9 | 23 | |
10 | 24 | ben: ben.profile |
11 | ./atben usb net:ben | |
25 | ./atben $(ATBEN_REF) $(ATBEN_DUT) | |
12 | 26 | |
13 | 27 | usb: usb.profile |
14 | ./atusb net:ben usb | |
28 | ./atusb $(ATUSB_REF) $(ATUSB_DUT) | |
15 | 29 | |
16 | 30 | flash: |
17 | ./atusb-flash net:ben usb | |
31 | ./atusb-flash $(ATUSB_REF) $(ATUSB_DUT) | |
18 | 32 | |
19 | 33 | ben.profile: |
20 | 34 | cp ../tools/atrf-path/profile.example $@ |
prod/atusb | ||
---|---|---|
3 | 3 | . ./Common |
4 | 4 | |
5 | 5 | |
6 | USB_ID=20b7:1540 | |
7 | ||
8 | ||
6 | 9 | enumerate() |
7 | 10 | { |
8 | 11 | step "Enumeration" |
9 | cmd "usbwait -t 5 20b7:1540 && echo okay" | |
12 | cmd "usbwait -t 5 $USB_ID && echo okay" | |
10 | 13 | expect okay |
11 | 14 | } |
12 | 15 |