SNTPtest.c example details
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <inttypes.h>
#include <time.h>
#include <string.h>
#include "SNTP.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#define MAX_PING_DATA 100
#define UTC_PRINTF " Current UTC time: "VT100_BLUE"%s\r"VT100_DEFAULT
"europe.pool.ntp.org",
"ptbtime1.ptb.de",
"ptbtime2.ptb.de",
"ntp0.fau.de",
"ntp1.sul",
};
#pragma CODE_SECTION(main , ".commontext");
{
int main_loop = 1;
struct tm *local_time;
CPrintf (
" *** timer %d mapped to CPU int %d ***\r\n",
CPuts (
"\r\n Entering main loop ...\r\n");
while ( main_loop )
{
{
}
}
return(0);
}