diff options
author | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-20 00:50:54 +0000 |
---|---|---|
committer | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-20 00:50:54 +0000 |
commit | 569d11d8a5f033fb3bb67b4cabe55d386bb25794 (patch) | |
tree | 1e43601afde78985200504b9a990ab53449b5688 /firmware/src/dfu/dfu.h | |
parent | 3124bf3b4492d9cd608d4b933db88ca34ec425b7 (diff) |
- implement some more missing DFU bits
- add debugging support to DFU
- introduce a auto-generated compile.h to add reviison number/... to firmware
git-svn-id: https://svn.openpcd.org:2342/trunk@201 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/dfu/dfu.h')
-rw-r--r-- | firmware/src/dfu/dfu.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/firmware/src/dfu/dfu.h b/firmware/src/dfu/dfu.h index 4b7508f..e587fe4 100644 --- a/firmware/src/dfu/dfu.h +++ b/firmware/src/dfu/dfu.h @@ -54,19 +54,8 @@ #define __dfudata __attribute__ ((section (".data.shared"))) #define __dfufunc #define __dfustruct const - -#if 0 -extern void __dfufunc udp_ep0_send_data(const char *data, u_int32_t length); -extern void __dfufunc udp_ep0_send_zlp(void); -extern void __dfufunc udp_ep0_send_stall(void); -extern __dfustruct struct usb_device_descriptor dfu_dev_descriptor; -extern __dfustruct struct _dfu_desc dfu_cfg_descriptor; -extern void dfu_switch(void); -extern int __dfufunc dfu_ep0_handler(u_int8_t req_type, u_int8_t req, - u_int16_t val, u_int16_t len); -extern static u_int8_t dfu_state; -struct udp_pcd; -#endif + +#define DFU_API_LOCATION ((const struct dfuapi *) 0x00100fd0) struct _dfu_desc { struct usb_config_descriptor ucfg; |