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

Adding STM32 Expansion Pack #287

Merged
merged 4 commits into from Aug 3, 2023
Merged

Adding STM32 Expansion Pack #287

merged 4 commits into from Aug 3, 2023

Conversation

lealem47
Copy link
Contributor

No description provided.

@lealem47 lealem47 self-assigned this Jul 28, 2023
@dgarske dgarske changed the title Adding STM23 Expansion Pack Adding STM32 Expansion Pack Jul 28, 2023
printf("Running wolfTPM Tests...\n");

/* Run wolfTPM unit tests */
if (unit_tests(0, NULL))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer the wrap_test, not the unit test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

IDE/STM32CUBE/default_conf.ftl Show resolved Hide resolved

#undef USE_HW_SPI_CS
#if defined(WOLFTPM_CONF_HW_SPI) && WOLFTPM_CONF_HW_SPI == 1
#define USE_HW_SPI_CS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 4 spaces, not tabs (also above). What is USE_HW_SPI_CS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. It guards the calls to GPIO_WRITE_PIN(). I thought it would be something users want to toggle based off the OPENSTM32 user_setting.h

@lealem47 lealem47 requested a review from dgarske August 3, 2023 17:59
@lealem47 lealem47 assigned dgarske and unassigned lealem47 Aug 3, 2023
#include <config.h>
#endif

int TPM2_Wrapper_Test(void* userCtx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can come from examples/wrap/wrap_test.h or just put in the .c file and use extern int TPM2_Wrapper_Test(void* userCtx);.

@@ -0,0 +1,40 @@
/* wolfssh_test.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wolftpm_test.h

#endif
{
int ret = 0;
#if 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this. The TPM2_WolfCrypt_Init already has DEBUG_WOLFSSL and this call.

@dgarske dgarske assigned lealem47 and unassigned dgarske Aug 3, 2023
@lealem47 lealem47 requested a review from dgarske August 3, 2023 21:35
@lealem47 lealem47 assigned dgarske and unassigned lealem47 Aug 3, 2023
@dgarske dgarske merged commit aade405 into wolfSSL:master Aug 3, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants