Hi François,
This is a great question! Currently our TIS layer uses polling to detect data ready, however some TPM's do have an interrupt pin available. I have the ST33 TPM and will look into adding this feature. Aside from the physical GPIO it will also depend on how the ST33 enables the IRQ pin use.
Until then another option is to implement a delay in the polling period using the `XTPM_WAIT` macro, which you can define like this
#define XTPM_WAIT() usleep(1000)
.
If you do end up making changes to wolfTPM for IRQ support and would like to contribute them back, you are welcome to open a PR and sign a contributor agreement.
Thanks,
David Garske, wolfSSL