]> sigrok.org Git - libsigrok.git/commit
kingst-la2016: keep FPGA active after device close
authorGerhard Sittig <redacted>
Mon, 31 Jan 2022 20:39:30 +0000 (21:39 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:54 +0000 (18:53 +0100)
commit66a24ab57caebf6ba3abc57ee085a6fd0df37616
treeea557f38fdccdc2b9bc82df20dfbed0ce65f4839
parent286b3e13cae38e42e5d8baa02f0cee60411e96c0
kingst-la2016: keep FPGA active after device close

When the sigrok driver closes as the application shuts down, acquisition
of logic input channels will have completed. Generation of PWM signals
on output channels can be desirable to keep up. Do not de-initialize the
FPGA hardware in the close code path. Which allows to configure PWM by
means of sigrok-cli and use the signals between program invocations that
reconfigure the generator. Users can always disable channels before the
application shuts down if they prefer to. Similar use was seen with PSUs.
Make this approach a compile time option.
src/hardware/kingst-la2016/api.c
src/hardware/kingst-la2016/protocol.h