IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit b0a3001ca23e9ba9a0d004b9971563cc5ef659ea created 7 years 3 months ago. By Werner Almesberger, atusb/atusb.kicad_pcb (C15): resolve silk screen on pad; add via | |
|---|---|
| 1 | # |
| 2 | # prod/Makefile - Run the production test process (reference/development) |
| 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 |
| 18 | SPECTRUM_MARGIN=+5 +5 |
| 19 | |
| 20 | GENPATHPROF=../tools/atrf-path/genpathprof |
| 21 | |
| 22 | |
| 23 | .PHONY: all ben usb flash spectrum spotless |
| 24 | |
| 25 | all: ben |
| 26 | |
| 27 | ben: ben.profile |
| 28 | ./atben $(ATBEN_REF) $(ATBEN_DUT) |
| 29 | |
| 30 | usb: usb.profile |
| 31 | ./atusb $(ATUSB_REF) $(ATUSB_DUT) |
| 32 | |
| 33 | flash: |
| 34 | ./atusb-flash $(ATUSB_REF) $(ATUSB_DUT) |
| 35 | |
| 36 | spectrum: |
| 37 | @echo "$(ATBEN_REF) => $(ATBEN_DUT)" |
| 38 | atrf-path -g $(ATBEN_REF) $(ATBEN_DUT) 10 | \ |
| 39 | $(GENPATHPROF) $(SPECTRUM_MARGIN) >ben.profile || \ |
| 40 | { rm -rf ben.profile; exit 1; } |
| 41 | @echo "$(ATBEN_DUT) => $(ATBEN_BEN)" |
| 42 | atrf-path -g $(ATUSB_REF) $(ATUSB_DUT) 10 | \ |
| 43 | $(GENPATHPROF) $(SPECTRUM_MARGIN) >usb.profile || \ |
| 44 | { rm -rf usb.profile; exit 1; } |
| 45 | |
| 46 | ben.profile: |
| 47 | cp ../tools/atrf-path/profile.example $@ |
| 48 | |
| 49 | usb.profile: |
| 50 | cp ../tools/atrf-path/profile.example $@ |
| 51 | |
| 52 | spotless: |
| 53 | rm -f ben.profile usb.profile |
| 54 | |
