forked from wolfSSL/wolfssl
uTasker: add note about XTIME to settings.h
This commit is contained in:
@ -3355,7 +3355,7 @@ ProtocolVersion MakeDTLSv1_2(void)
|
||||
|
||||
word32 LowResTimer(void)
|
||||
{
|
||||
return (word32)(uTaskerSystemTick / TICK_RESOLUTION);
|
||||
return (word32)(uTaskerSystemTick / TICK_RESOLUTION);
|
||||
}
|
||||
|
||||
#elif defined(USER_TICKS)
|
||||
|
@ -382,6 +382,13 @@
|
||||
#define CUSTOM_RAND_GENERATE fnRandom
|
||||
#define CUSTOM_RAND_TYPE unsigned short
|
||||
|
||||
/* user needs to define XTIME to function that provides
|
||||
* seconds since Unix epoch */
|
||||
#ifndef XTIME
|
||||
#error XTIME must be defined in wolfSSL settings.h
|
||||
/* #define XTIME fnSecondsSinceEpoch */
|
||||
#endif
|
||||
|
||||
/* use uTasker std library replacements where available */
|
||||
#define STRING_USER
|
||||
#define XMEMCPY(d,s,l) uMemcpy((d),(s),(l))
|
||||
|
Reference in New Issue
Block a user