Hi,
> +#ifdef DEBUG_CANOKEY
> +#define DPRINTF(fmt, ...) \
> +do { printf("canokey: " fmt "\n", ## __VA_ARGS__); } while (0)
Better use tracepoints instead (see docs/devel/tracing.rst).
> +int canokey_emu_transmit(
> +void *base, uint8_t ep, const uint8_t *pbuf, uint16_t size)
> +{
> +
This commit added a new emulated device called CanoKey to QEMU.
CanoKey implements platform independent features in canokey-core
https://github.com/canokeys/canokey-core, and leaves the USB implementation
to the platform.
In this commit the USB part was implemented in QEMU using QEMU's USB APIs,