mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-08 14:45:49 +08:00
HIL: add flag CFG_TUH_RPI_PIO_USB to pico/pico2
This commit is contained in:
parent
875e645b32
commit
1fd5c12316
@ -311,9 +311,6 @@ def test_dual_host_info_to_device_cdc(board):
|
||||
assert False, 'No data from device'
|
||||
lines = data.decode('utf-8').splitlines()
|
||||
|
||||
if verbose:
|
||||
print('\n'.join(lines))
|
||||
|
||||
enum_dev_sn = []
|
||||
for l in lines:
|
||||
vid_pid_sn = re.search(r'ID ([0-9a-fA-F]+):([0-9a-fA-F]+) SN (\w+)', l)
|
||||
@ -323,6 +320,7 @@ def test_dual_host_info_to_device_cdc(board):
|
||||
|
||||
if set(declared_devs) != set(enum_dev_sn):
|
||||
failed_msg = f'Expected {declared_devs}, Enumerated {enum_dev_sn}'
|
||||
print('\n'.join(lines))
|
||||
assert False, failed_msg
|
||||
return 0
|
||||
|
||||
@ -356,6 +354,7 @@ def test_host_device_info(board):
|
||||
|
||||
if set(declared_devs) != set(enum_dev_sn):
|
||||
failed_msg = f'Expected {declared_devs}, Enumerated {enum_dev_sn}'
|
||||
print('\n'.join(lines))
|
||||
assert False, failed_msg
|
||||
|
||||
return 0
|
||||
|
@ -98,6 +98,9 @@
|
||||
{
|
||||
"name": "raspberry_pi_pico",
|
||||
"uid": "E6614C311B764A37",
|
||||
"build" : {
|
||||
"flags_on": ["CFG_TUH_RPI_PIO_USB"]
|
||||
},
|
||||
"tests": {
|
||||
"device": true, "host": true, "dual": true,
|
||||
"dev_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002470"}]
|
||||
@ -111,6 +114,9 @@
|
||||
{
|
||||
"name": "raspberry_pi_pico2",
|
||||
"uid": "560AE75E1C7152C9",
|
||||
"build" : {
|
||||
"flags_on": ["CFG_TUH_RPI_PIO_USB"]
|
||||
},
|
||||
"tests": {
|
||||
"device": true, "host": true, "dual": true,
|
||||
"dev_attached": [{"vid_pid": "1a86_55d4", "serial": "533D004242"}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user