[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] SNTP module and sys integration
From: |
Sergio R. Caprile |
Subject: |
[lwip-devel] SNTP module and sys integration |
Date: |
Fri, 13 Jun 2014 13:05:13 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Hi guys.
The current SNTP contrib example has a set of macros to get and set the
time. If these macros are set to external functions, then the compiler
will complain because it doesn't know the prototypes; so the user has to
modify the sntp.c file.
What if sntp.c calls sys_gettime() and sys_settime(), which, the same as
for sys_now(), are system provided functions ?
Those functions can be:
void sys_gettime(u32_t *sec, u32_t *us);
void sys_settime(u32_t sec, u32_t us);
If the system does not handle microseconds, then they will just write as
0 and discard the us, respectively.
I can do it if you agree
Regards
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] SNTP module and sys integration,
Sergio R. Caprile <=