mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-15 21:40:18 +00:00
tweak usb reset wait time, fix test script with IAR server
This commit is contained in:
parent
b343ac6d0f
commit
31c33ca853
4
.github/workflows/build_esp.yml
vendored
4
.github/workflows/build_esp.yml
vendored
@ -96,9 +96,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||||
sleep 1;
|
sleep 0.5;
|
||||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||||
sleep 1;
|
sleep 3;
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Test on actual hardware
|
- name: Test on actual hardware
|
||||||
|
4
.github/workflows/cmake_arm.yml
vendored
4
.github/workflows/cmake_arm.yml
vendored
@ -148,9 +148,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||||
sleep 1;
|
sleep 0.5;
|
||||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||||
sleep 1;
|
sleep 3;
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Test on actual hardware
|
- name: Test on actual hardware
|
||||||
|
@ -34,8 +34,11 @@ import subprocess
|
|||||||
import json
|
import json
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
# for RPI double reset: install sudo apt install python3-gpiozero or sudo pip install gpiozero
|
# for RPI double reset
|
||||||
from gpiozero import LED
|
try:
|
||||||
|
import gpiozero
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
ENUM_TIMEOUT = 10
|
ENUM_TIMEOUT = 10
|
||||||
@ -141,7 +144,7 @@ def flash_esptool(board, firmware):
|
|||||||
|
|
||||||
def doublereset_with_rpi_gpio(board):
|
def doublereset_with_rpi_gpio(board):
|
||||||
# Off = 0 = Reset
|
# Off = 0 = Reset
|
||||||
led = LED(board["flasher_reset_pin"])
|
led = gpiozero.LED(board["flasher_reset_pin"])
|
||||||
|
|
||||||
led.off()
|
led.off()
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user