tillitis-key/hw/boards/mta1-usb-dev/test/usb_test.sh

12 lines
225 B
Bash
Raw Normal View History

2022-09-19 02:51:11 -04:00
#!/bin/bash
set -e
iceprog -I B interface_fpga_usb.bin
echo 'Waiting 2s for USB to stabalize'
sleep 2
if lsusb -d 1d50:6159; then
echo 'device found, USB test passed'
else
echo 'device not found, USB test failed'
fi