Merge branch 'master' into add-esp32p4

This commit is contained in:
hathach 2024-10-01 00:18:24 +07:00
commit 49d250be8f
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
3 changed files with 11 additions and 5 deletions

View File

@ -185,6 +185,8 @@ void vendord_reset(uint8_t rhport) {
tu_memclr(p_itf, ITF_MEM_RESET_SIZE); tu_memclr(p_itf, ITF_MEM_RESET_SIZE);
tu_edpt_stream_clear(&p_itf->rx.stream); tu_edpt_stream_clear(&p_itf->rx.stream);
tu_edpt_stream_clear(&p_itf->tx.stream); tu_edpt_stream_clear(&p_itf->tx.stream);
tu_edpt_stream_close(&p_itf->rx.stream);
tu_edpt_stream_close(&p_itf->tx.stream);
} }
} }

View File

@ -240,8 +240,13 @@ def test_dual_host_info_to_device_cdc(board):
print(f'\r\n {l} ', end='') print(f'\r\n {l} ', end='')
enum_dev_sn.append(f'{vid_pid_sn.group(1)}_{vid_pid_sn.group(2)}_{vid_pid_sn.group(3)}') enum_dev_sn.append(f'{vid_pid_sn.group(1)}_{vid_pid_sn.group(2)}_{vid_pid_sn.group(3)}')
assert(set(declared_devs) == set(enum_dev_sn)), \ if set(declared_devs) != set(enum_dev_sn):
f'Enumerated devices {enum_dev_sn} not match with declared {declared_devs}' # for pico/pico2 make this test optional
failed_msg = f'Enumerated devices {enum_dev_sn} not match with declared {declared_devs}'
if 'raspberry_pi_pico' in board['name']:
print(f'\r\n {failed_msg} ', end='')
else:
assert False, failed_msg
return 0 return 0
@ -405,6 +410,8 @@ def test_board(board):
if 'tests' in board: if 'tests' in board:
board_tests = board['tests'] board_tests = board['tests']
if 'dual_attached' in board_tests:
test_list += dual_tests
if 'only' in board_tests: if 'only' in board_tests:
test_list = board_tests['only'] test_list = board_tests['only']
if 'skip' in board_tests: if 'skip' in board_tests:
@ -412,8 +419,6 @@ def test_board(board):
if skip in test_list: if skip in test_list:
test_list.remove(skip) test_list.remove(skip)
print(f'{name:25} {skip:30} ... Skip') print(f'{name:25} {skip:30} ... Skip')
if 'dual_attached' in board_tests:
test_list += dual_tests
# board_test is added last to disable board's usb # board_test is added last to disable board's usb
test_list.append('device/board_test') test_list.append('device/board_test')

View File

@ -59,7 +59,6 @@
"flasher_sn": "E6633861A3978538", "flasher_sn": "E6633861A3978538",
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2350.cfg -c \"adapter speed 5000\"", "flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2350.cfg -c \"adapter speed 5000\"",
"tests": { "tests": {
"skip": ["dual/host_info_to_device_cdc"],
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "533D004242"}] "dual_attached": [{"vid_pid": "1a86_55d4", "serial": "533D004242"}]
} }
}, },