mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-26 23:33:38 +08:00
Start implementing unit tests for timers
This commit is contained in:
@@ -42,14 +42,16 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
u32_t lwip_sys_now;
|
||||
|
||||
u32_t sys_jiffies(void)
|
||||
{
|
||||
return (u32_t)0; /* todo */
|
||||
return lwip_sys_now;
|
||||
}
|
||||
|
||||
u32_t sys_now(void)
|
||||
{
|
||||
return (u32_t)0; /* todo */
|
||||
return lwip_sys_now;
|
||||
}
|
||||
|
||||
void sys_init(void)
|
||||
|
||||
@@ -65,5 +65,8 @@ typedef u32_t sys_thread_t;
|
||||
typedef int (*test_sys_arch_waiting_fn)(sys_sem_t* wait_sem, sys_mbox_t* wait_mbox);
|
||||
void test_sys_arch_wait_callback(test_sys_arch_waiting_fn waiting_fn);
|
||||
|
||||
/* current time */
|
||||
extern u32_t lwip_sys_now;
|
||||
|
||||
#endif /* LWIP_HDR_TEST_SYS_ARCH_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user