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

Fix undefined type error and ESP32 RTOS timer function call #277

Merged
merged 3 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
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
10 changes: 3 additions & 7 deletions lib/hal/hal_esp32_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@

extern void ets_delay_us(uint32_t);

void atca_delay_us(uint32_t delay)
void hal_delay_us(uint32_t delay)
{
ets_delay_us(delay);
}

#ifdef ATCA_USE_RTOS_TIMER
void atca_delay_ms_internal(uint32_t msec)
#else
void atca_delay_ms(uint32_t msec)
#endif
void hal_delay_ms(uint32_t msec)
{
ets_delay_us(msec * 1000);
}
}
1 change: 0 additions & 1 deletion lib/mbedtls/atca_mbedtls_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include "mbedtls/ecdh.h"
#include "mbedtls/ecp.h"
#include "mbedtls/entropy.h"
#include "mbedtls/bignum.h"
#include "mbedtls/x509_crt.h"


Expand Down
2 changes: 2 additions & 0 deletions lib/mbedtls/atca_mbedtls_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

#include "atca_device.h"

#include "mbedtls/bignum.h"

#ifdef __cplusplus
extern "C" {
#endif
Expand Down