old netservices
Fork of NetServices by
lwip/arch/sys_arch.h@0:ac1725ba162c, 2010-11-09 (annotated)
- Committer:
- segundo
- Date:
- Tue Nov 09 20:54:15 2010 +0000
- Revision:
- 0:ac1725ba162c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
segundo | 0:ac1725ba162c | 1 | /* |
segundo | 0:ac1725ba162c | 2 | * Author: Adam Dunkels <adam@sics.se> |
segundo | 0:ac1725ba162c | 3 | * |
segundo | 0:ac1725ba162c | 4 | */ |
segundo | 0:ac1725ba162c | 5 | #ifndef __LWIP_SYS_ARCH_H__ |
segundo | 0:ac1725ba162c | 6 | #define __LWIP_SYS_ARCH_H__ |
segundo | 0:ac1725ba162c | 7 | |
segundo | 0:ac1725ba162c | 8 | typedef unsigned int u32_t; |
segundo | 0:ac1725ba162c | 9 | |
segundo | 0:ac1725ba162c | 10 | #ifdef __cplusplus |
segundo | 0:ac1725ba162c | 11 | extern "C" { |
segundo | 0:ac1725ba162c | 12 | #endif |
segundo | 0:ac1725ba162c | 13 | |
segundo | 0:ac1725ba162c | 14 | //DG 2010 |
segundo | 0:ac1725ba162c | 15 | void sys_init(void); /* To be called first */ |
segundo | 0:ac1725ba162c | 16 | u32_t sys_jiffies(void); /* since power up. */ |
segundo | 0:ac1725ba162c | 17 | |
segundo | 0:ac1725ba162c | 18 | /** Returns the current time in milliseconds, |
segundo | 0:ac1725ba162c | 19 | * may be the same as sys_jiffies or at least based on it. */ |
segundo | 0:ac1725ba162c | 20 | u32_t sys_now(void); |
segundo | 0:ac1725ba162c | 21 | |
segundo | 0:ac1725ba162c | 22 | #ifdef __cplusplus |
segundo | 0:ac1725ba162c | 23 | } |
segundo | 0:ac1725ba162c | 24 | #endif |
segundo | 0:ac1725ba162c | 25 | |
segundo | 0:ac1725ba162c | 26 | |
segundo | 0:ac1725ba162c | 27 | #endif /* __LWIP_ARCH_CC_H__ */ |