diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-01-08 17:42:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-08 17:44:16 +0100 |
commit | 1b1befdeb5c24e5434952718cdd1b78cb6556fe5 (patch) | |
tree | 4c6c793a08fed3926b09ce776d2a1344c51892d2 /usb/device/dfu/dfu.h | |
parent | 5729b6faa31ad687facd4101e9a82b5daca65249 (diff) |
DFU: add dfu_runtime.c for runtime-to-dfu switching
Diffstat (limited to 'usb/device/dfu/dfu.h')
-rw-r--r-- | usb/device/dfu/dfu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usb/device/dfu/dfu.h b/usb/device/dfu/dfu.h index ad64c99..eec956b 100644 --- a/usb/device/dfu/dfu.h +++ b/usb/device/dfu/dfu.h @@ -110,6 +110,9 @@ const USBDDriverDescriptors dfu_descriptors; #endif /* BOARD_USB_DFU */ +#define USB_DFU_MAGIC 0xDFDFDFDF +#define USB_DFU_MAGIC_ADDR AT91C_IRAM + /* The API between the core DFU handler and the board/soc specific code */ struct dfudata { @@ -120,8 +123,11 @@ struct dfudata { }; extern struct dfudata g_dfu; + void set_usb_serial_str(const uint8_t *serial_usbstr); +void DFURT_SwitchToDFU(void); + /* call-backs by the board/SOC */ extern int USBDFU_handle_dnload(uint8_t altif, unsigned int offset, uint8_t *data, unsigned int len); |