mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 19:20:41 +02: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:
parent
c9e61eedf1
commit
00f28250c5
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 */
|
@ -1,4 +1,4 @@
|
||||
PCBNEW-BOARD Version 1 date Wed Aug 18 17:19:58 2010
|
||||
PCBNEW-BOARD Version 1 date Wed Aug 18 18:09:13 2010
|
||||
|
||||
# Created by Pcbnew(2010-08-11 BZR 2448)-unstable
|
||||
|
||||
@ -9,7 +9,7 @@ EnabledLayers 10AA8001
|
||||
Links 100
|
||||
NoConn 0
|
||||
Di 40281 33556 62755 41276
|
||||
Ndraw 30
|
||||
Ndraw 34
|
||||
Ntrack 369
|
||||
Nzone 0
|
||||
BoardThickness 630
|
||||
@ -1885,6 +1885,18 @@ Ne 7 "/RF/TST"
|
||||
Po 0 0
|
||||
$EndPAD
|
||||
$EndMODULE PAD_60x60
|
||||
$MIREPCB
|
||||
Po 1 28 48800 41200 1000 50 00000000
|
||||
$EndMIREPCB
|
||||
$MIREPCB
|
||||
Po 1 28 55600 34300 1000 50 00000000
|
||||
$EndMIREPCB
|
||||
$MIREPCB
|
||||
Po 1 28 40700 41200 1000 50 00000000
|
||||
$EndMIREPCB
|
||||
$MIREPCB
|
||||
Po 1 28 62200 34300 1000 50 00000000
|
||||
$EndMIREPCB
|
||||
$TEXTPCB
|
||||
Te "SC"
|
||||
Po 48400 35600 600 600 100 900
|
||||
|
Loading…
Reference in New Issue
Block a user