mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw/: moved common elements of DFU processing to dfu_common.c
- dfu.c (functional_descriptor, dfu, my_descr), dfu.h (dfu_my_descr): moved to dfu_common.c - dfu.c (my_setup), dfu.h (dfu_setup_common), dfu_common.c (dfu_setup_common): moved handling of DFU_GETSTATUS, DFU_CLRSTATUS, and DFU_GETSTATE from my_setup to dfu_setup_common - dfu_common.c (my_descr), dfu.c (dfu_init): renamed my_descr to dfu_my_descr - Makefile (BOOT_OBJS): added dfu_common.o
This commit is contained in:
@@ -99,6 +99,9 @@ void flash_write(const uint8_t *buf, uint16_t size);
|
||||
void flash_end_write(void);
|
||||
uint16_t flash_read(uint8_t *buf, uint16_t size);
|
||||
|
||||
int dfu_setup_common(const struct setup_request *setup);
|
||||
int dfu_my_descr(uint8_t type, uint8_t index, const uint8_t **reply,
|
||||
uint8_t *size);
|
||||
|
||||
void dfu_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user