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 ad2c72fa7f4f373716016dd0777f44b85c365209 created 13 years 3 months ago. By Werner Almesberger, atusb: firmware update for the 2010-12-16 board series | |
---|---|
1 | # |
2 | # atusb/Makefile - Makefile for USB to SPI translator (for AT86RF230) |
3 | # |
4 | # Written 2010 by Werner Almesberger |
5 | # Copyright 2010 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 | MAIN = atusb |
15 | OBJS = $(MAIN) usb descr version ep0 |
16 | |
17 | F32XBASE = ../../../../f32xbase |
18 | |
19 | include $(F32XBASE)/fw/common/Makefile.system |
20 | include $(F32XBASE)/fw/common/Makefile.common |
21 | include ../common/Makefile.common |
22 | |
23 | CFLAGS += -I../common -I../include -D$(BOARD) |
24 | LDFLAGS += --code-size $(PAYLOAD_SIZE) --code-loc $(PAYLOAD_START) |
25 | |
26 | USB_ID = $(shell \ |
27 | ( echo '\#include "config.h"'; echo USB_VENDOR:USB_PRODUCT; ) | \ |
28 | cpp -I../common -I../include | sed '/^ *$$/d;/^\#/d' ) |
29 | |
30 | .PHONY: dfu |
31 | |
32 | dfu: |
33 | dfu-util -d $(USB_ID) -D $(MAIN).bin |
34 |