This PR updates the gating logic in the hal/tpm_io_infineon.c to be more consistent with other target platforms.
For example, note how the tpm_io_microchip.c is wrapped with WOLFTPM_MICROCHIP_HARMONY, disabling the entire file otherwise:
Without this modification, enabling WOLFTPM_INCLUDE_IO_FILE and WOLFTPM_I2C causes a compile-time error as the only gate is WOLFTPM_I2C. In my case, I'm using the Espressf I2C library, not the cyhal here:
This PR updates the gating logic in the
hal/tpm_io_infineon.c
to be more consistent with other target platforms.For example, note how the
tpm_io_microchip.c
is wrapped withWOLFTPM_MICROCHIP_HARMONY
, disabling the entire file otherwise:Without this modification, enabling
WOLFTPM_INCLUDE_IO_FILE
andWOLFTPM_I2C
causes a compile-time error as the only gate isWOLFTPM_I2C
. In my case, I'm using the Espressf I2C library, not the cyhal here:Here's the content of my wolfTPM
options.h
:Testing
I have not tested this, as I don't have the target library that is being changed.