mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
fix warning, change hil jlink for feather nrf52840
This commit is contained in:
@ -99,9 +99,9 @@ void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t product_id[16
|
||||
const char vid[] = "TinyUSB";
|
||||
const char pid[] = "Mass Storage";
|
||||
const char rev[] = "1.0";
|
||||
memcpy(vendor_id, vid, strlen(vid));
|
||||
memcpy(product_id, pid, strlen(pid));
|
||||
memcpy(product_rev, rev, strlen(rev));
|
||||
(void) strncpy((char*) vendor_id, vid, 8);
|
||||
(void) strncpy((char*) product_id, pid, 16);
|
||||
(void) strncpy((char*) product_rev, rev, 4);
|
||||
}
|
||||
|
||||
bool tud_msc_test_unit_ready_cb(uint8_t lun) {
|
||||
|
||||
@ -782,7 +782,8 @@ def test_device_cdc_msc_throughput(board):
|
||||
pass
|
||||
|
||||
# Put tty in raw mode so dd sees pure binary throughput.
|
||||
run_cmd(f'stty -F {tty} raw -echo')
|
||||
rs = run_cmd(f'timeout 30 stty -F {tty} raw -echo')
|
||||
assert rs.returncode == 0, f'stty failed: {rs.stdout.decode()}'
|
||||
|
||||
# Payload aim: ~5 s per direction at FS (~830 kB/s), much less at HS.
|
||||
msc_count = 2 if is_fs else 16 # bs=1M
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
},
|
||||
"flasher": {
|
||||
"name": "jlink",
|
||||
"uid": "000682804350",
|
||||
"uid": "681295394",
|
||||
"args": "-device nrf52840_xxaa"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user