mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 11:44:38 +02:00
Build fixes for KSDK NXP MMCAU / LTC after Hexiwear changes.
This commit is contained in:
@@ -29,6 +29,12 @@ void __assert(const char *__expression, const char *__filename, int __line)
|
|||||||
printf("Assert: %s, File %s (%d)\n", __expression, __filename, __line);
|
printf("Assert: %s, File %s (%d)\n", __expression, __filename, __line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long ksdk_time(unsigned long* timer)
|
||||||
|
{
|
||||||
|
(void)timer;
|
||||||
|
return hw_get_time_sec();
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int LowResTimer(void)
|
unsigned int LowResTimer(void)
|
||||||
{
|
{
|
||||||
return hw_get_time_sec();
|
return hw_get_time_sec();
|
||||||
|
@@ -7,6 +7,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h> /* for size_t */
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
/* Platform */
|
/* Platform */
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
@@ -270,6 +272,8 @@ extern "C" {
|
|||||||
/* Allows custom "custom_time()" function to be used for benchmark */
|
/* Allows custom "custom_time()" function to be used for benchmark */
|
||||||
#define WOLFSSL_USER_CURRTIME
|
#define WOLFSSL_USER_CURRTIME
|
||||||
#define USER_TICKS
|
#define USER_TICKS
|
||||||
|
extern unsigned long ksdk_time(unsigned long* timer);
|
||||||
|
#define XTIME ksdk_time
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
@@ -52,9 +52,10 @@
|
|||||||
#else
|
#else
|
||||||
#include <nio.h>
|
#include <nio.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined(FREESCALE_KSDK_BM)
|
#elif defined(FREESCALE_KSDK_1_3)
|
||||||
#include "fsl_debug_console.h"
|
#include "fsl_debug_console.h"
|
||||||
#include "fsl_os_abstraction.h"
|
#include "fsl_os_abstraction.h"
|
||||||
|
|
||||||
#undef printf
|
#undef printf
|
||||||
#define printf PRINTF
|
#define printf PRINTF
|
||||||
#else
|
#else
|
||||||
|
@@ -154,6 +154,7 @@ ASN Options:
|
|||||||
#elif defined(FREESCALE_KSDK_BM) || defined(FREESCALE_FREE_RTOS) || defined(FREESCALE_KSDK_FREERTOS)
|
#elif defined(FREESCALE_KSDK_BM) || defined(FREESCALE_FREE_RTOS) || defined(FREESCALE_KSDK_FREERTOS)
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#ifndef XTIME
|
#ifndef XTIME
|
||||||
|
/*extern time_t ksdk_time(time_t* timer);*/
|
||||||
#define XTIME(t1) ksdk_time((t1))
|
#define XTIME(t1) ksdk_time((t1))
|
||||||
#endif
|
#endif
|
||||||
#define XGMTIME(c, t) gmtime((c))
|
#define XGMTIME(c, t) gmtime((c))
|
||||||
@@ -239,10 +240,6 @@ ASN Options:
|
|||||||
struct tm* gmtime(const time_t* timer);
|
struct tm* gmtime(const time_t* timer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FREESCALE_KSDK_BM) || defined(FREESCALE_FREE_RTOS)
|
|
||||||
/* extern time_t ksdk_time(time_t* timer); */
|
|
||||||
#endif /* FREESCALE_KSDK_BM || FREESCALE_FREE_RTOS */
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(_WIN32_WCE)
|
#if defined(_WIN32_WCE)
|
||||||
time_t windows_time(time_t* timer)
|
time_t windows_time(time_t* timer)
|
||||||
|
@@ -2283,6 +2283,8 @@ exit:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* !FREESCALE_LTC_ECC */
|
||||||
|
|
||||||
/** ECC Fixed Point mulmod global
|
/** ECC Fixed Point mulmod global
|
||||||
k The multiplicand
|
k The multiplicand
|
||||||
G Base point to multiply
|
G Base point to multiply
|
||||||
@@ -2299,8 +2301,6 @@ int wc_ecc_mulmod(mp_int* k, ecc_point *G, ecc_point *R, mp_int* a,
|
|||||||
return wc_ecc_mulmod_ex(k, G, R, a, modulus, map, NULL);
|
return wc_ecc_mulmod_ex(k, G, R, a, modulus, map, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !FREESCALE_LTC_ECC */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ALT_ECC_SIZE
|
#ifdef ALT_ECC_SIZE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user