Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise I2C HAL gating logic in tpm_to_infineon #347

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hal/tpm_io_infineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
defined(WOLFTPM_SWTPM) || \
defined(WOLFTPM_WINAPI) )

#if defined(WOLFTPM_INFINEON_TRICORE) || defined(CY_USING_HAL)
#ifdef WOLFTPM_I2C
#ifndef TPM_I2C_TRIES
#define TPM_I2C_TRIES 10
Expand Down Expand Up @@ -148,7 +149,7 @@

#else
#error Infineon I2C support on this platform not supported yet
#endif /* CY_USING_HAL or WOLFTPM_INFINEON_TRICORE */
#endif /* CY_USING_HAL */

#else /* SPI */

Expand Down Expand Up @@ -211,6 +212,8 @@
#error Infineon I2C support on this platform not supported yet
#endif /* CY_USING_HAL or WOLFTPM_INFINEON_TRICORE */
#endif /* SPI or I2C */
#endif /* WOLFTPM_INFINEON_TRICORE || CY_USING_HAL */


#endif /* !(WOLFTPM_LINUX_DEV || WOLFTPM_SWTPM || WOLFTPM_WINAPI) */
#endif /* WOLFTPM_INCLUDE_IO_FILE */
Expand Down
Loading