uTasker: add note about XTIME to settings.h

This commit is contained in:
Chris Conlon
2016-03-25 11:33:27 -06:00
parent 8d040ad41f
commit 46f4be357b
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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))