diff --git a/CHANGELOG b/CHANGELOG index c8feecfc..6b2b3e3b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,9 @@ HISTORY ++ New features: + 2009-04-27 Simon Goldschmidt + * sys.h: Made SYS_LIGHTWEIGHT_PROT and sys_now() work with NO_SYS=1 + 2009-04-25 Simon Goldschmidt * mem.c, opt.h: Added option MEM_USE_POOLS_TRY_BIGGER_POOL to try the next bigger malloc pool if one is empty (only usable with MEM_USE_POOLS). diff --git a/src/include/lwip/sys.h b/src/include/lwip/sys.h index 7f0ee891..0cc84ddf 100644 --- a/src/include/lwip/sys.h +++ b/src/include/lwip/sys.h @@ -44,7 +44,6 @@ extern "C" { definitions of the sys_ functions. */ typedef u8_t sys_sem_t; typedef u8_t sys_mbox_t; -typedef u8_t sys_prot_t; struct sys_timeo {u8_t dummy;}; #define sys_init() @@ -139,11 +138,11 @@ void sys_mbox_fetch(sys_mbox_t mbox, void **msg); /* Thread functions. */ sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg), void *arg, int stacksize, int prio); -/* Returns the current time in microseconds. */ -u32_t sys_now(void); - #endif /* NO_SYS */ +/** Returns the current time in milliseconds. */ +u32_t sys_now(void); + /* Critical Region Protection */ /* These functions must be implemented in the sys_arch.c file. In some implementations they can provide a more light-weight protection