diff options
| author | hathach <[email protected]> | 2021-07-14 15:52:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-07-14 15:52:38 +0700 |
| commit | 5b965a38883efb2d7210d48be6f305c0f31ca8fc (patch) | |
| tree | f202a7e08cef91c83f676fd3fc44210bdddd30ad /examples/device/dfu/src | |
| parent | 27676f738d54c1edf87449531b3a1fd24fca59d3 (diff) | |
more rename and update
Diffstat (limited to 'examples/device/dfu/src')
| -rw-r--r-- | examples/device/dfu/src/main.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/device/dfu/src/main.c b/examples/device/dfu/src/main.c index 8e7fa9ee0..2c114c5a2 100644 --- a/examples/device/dfu/src/main.c +++ b/examples/device/dfu/src/main.c @@ -28,11 +28,13 @@ * * To transfer firmware from host to device: * - * $ dfu-util -D [filename] + * $ dfu-util -d cafe -a 0 -D [filename] + * $ dfu-util -d cafe -a 1 -D [filename] * * To transfer firmware from device to host: * - * $ dfu-util -U [filename] + * $ dfu-util -d cafe -a 0 -U [filename] + * $ dfu-util -d cafe -a 1 -U [filename] * */ @@ -138,12 +140,12 @@ uint32_t tud_dfu_get_status_cb(uint8_t alt, uint8_t state) void tud_dfu_download_cb(uint8_t alt, uint16_t wBlockNum, uint8_t* data, uint16_t length) { (void) data; - printf(" Received Alt %u BlockNum %u of length %u\r\n", alt, wBlockNum, length); + printf("Received Alt %u BlockNum %u of length %u\r\n", alt, wBlockNum, length); #if DFU_VERBOSE for(uint16_t i=0; i<length; i++) { - printf(" [%u][%u]: %x\r\n", wBlockNum, i, (uint8_t)data[i]); + printf(" [%u][%u]: %x\r\n", wBlockNum, i, (uint8_t)data[i]); } #endif @@ -153,14 +155,14 @@ void tud_dfu_download_cb(uint8_t alt, uint16_t wBlockNum, uint8_t* data, uint16_ bool tud_dfu_device_data_done_check_cb(uint8_t alt) { (void) alt; - printf(" Host said no more data... Returning true\r\n"); + printf("Host said no more data... Returning true\r\n"); return true; } void tud_dfu_abort_cb(uint8_t alt) { (void) alt; - printf(" Host aborted transfer\r\n"); + printf("Host aborted transfer\r\n"); } #define UPLOAD_SIZE 43 |
