mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
Added boot loader for C8051F326 (using f326xbase)
- fw/boot/Makefile: build DFU-capable bootloader from f326xbase - fw/boot/config.h: product-specific configuration
This commit is contained in:
31
fw/boot/Makefile
Normal file
31
fw/boot/Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# boot/Makefile - Makefile for DFU-capable boot loader
|
||||
#
|
||||
# Written 2008, 2010 by Werner Almesberger
|
||||
# Copyright 2008, 2010 Werner Almesberger
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
|
||||
MAIN=boot
|
||||
OBJS=$(MAIN) usb dfu version
|
||||
|
||||
F32XBASE = ../../../f32xbase
|
||||
|
||||
include $(F32XBASE)/fw/common/Makefile.system
|
||||
include $(F32XBASE)/fw/common/Makefile.common
|
||||
|
||||
CFLAGS += -DLOW_SPEED
|
||||
LDFLAGS += --code-size $(PAYLOAD_START)
|
||||
|
||||
boot.rel: $(F32XBASE)/fw/boot/boot.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
usb.rel: $(F32XBASE)/fw/common/usb.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
dfu.rel: $(F32XBASE)/fw/boot/dfu.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
15
fw/boot/config.h
Normal file
15
fw/boot/config.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
/*
|
||||
* Platform-specific settings for boot.c
|
||||
*
|
||||
* USB_VENDOR = Qi Hardware
|
||||
* USB_PRODUCT = 802.15.4, device 0
|
||||
* -- - -
|
||||
*/
|
||||
|
||||
#define USB_VENDOR 0x20b7
|
||||
#define USB_PRODUCT 0x1540
|
||||
|
||||
#endif /* !CONFIG_H */
|
||||
Reference in New Issue
Block a user