]> sigrok.org Git - libsigrok.git/commit
kingst-la2016: rephrase USB renum code path after firmware upload
authorGerhard Sittig <redacted>
Sat, 22 Jan 2022 07:38:53 +0000 (08:38 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commit22cb067ab034ab95111f5bc388413dd244f64492
treea81bf8ed0b43a7df36ffedc2ad0fd35ca8d45718
parent1ed93110c3c31233dfce10ed6e67e21ecfcdae7d
kingst-la2016: rephrase USB renum code path after firmware upload

The dev_open() routine postprocesses USB renumeration after a previous
FX2 MCU firmware upload. Concentrate all tunables in the driver's header
file, and discuss their meaning in relation to each other. Rephrase the
logic to start checking earlier, and keep checking for longer, adjust
diagnostics in the process. Void the "firmware uploaded" flag when the
upload took effect. Consistently use u64 for timestamps. Rename a few
variables to improve readabilty.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.h