Skip to content

Commit

Permalink
Remove ref. to ATCA_USE_RTOS_TIMER. Revert deletion of cryptoauthlib …
Browse files Browse the repository at this point in the history
…header.
  • Loading branch information
Rashed Talukder committed Nov 11, 2021
1 parent b7915e5 commit a1ec5d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 3 additions & 6 deletions lib/hal/hal_esp32_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,19 @@
* limitations under the License.
*/

#include <stdio.h>
#include "atca_hal.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

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(uint32_t msec)
#else
void atca_delay_ms_internal(uint32_t msec)
#endif
void hal_delay_ms(uint32_t msec)
{
ets_delay_us(msec * 1000);
}
4 changes: 3 additions & 1 deletion lib/mbedtls/atca_mbedtls_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
#include "mbedtls/ecdh.h"
#include "mbedtls/ecp.h"
#include "mbedtls/entropy.h"
#include "mbedtls/bignum.h"
#include "mbedtls/x509_crt.h"


/* Cryptoauthlib Includes */
#include "cryptoauthlib.h"
#include "atca_mbedtls_wrap.h"
#include "atca_mbedtls_patch.h"

Expand Down

0 comments on commit a1ec5d7

Please sign in to comment.