This short program illustrates how to use the DS130x_I2C library. My objective is to share the same RTC with Microchip 18F MCU.

Dependencies:   mbed DebugLibrary

Committer:
Yann
Date:
Fri Feb 11 10:17:20 2011 +0000
Revision:
1:995212d326ca
Parent:
0:f30e2135b0db
V0.0.0.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Yann 0:f30e2135b0db 1 /*
Yann 0:f30e2135b0db 2 * Author: Adam Dunkels <adam@sics.se>
Yann 0:f30e2135b0db 3 *
Yann 0:f30e2135b0db 4 */
Yann 0:f30e2135b0db 5 #ifndef __LWIP_SYS_ARCH_H__
Yann 0:f30e2135b0db 6 #define __LWIP_SYS_ARCH_H__
Yann 0:f30e2135b0db 7
Yann 0:f30e2135b0db 8 typedef unsigned int u32_t;
Yann 0:f30e2135b0db 9
Yann 0:f30e2135b0db 10 #ifdef __cplusplus
Yann 0:f30e2135b0db 11 extern "C" {
Yann 0:f30e2135b0db 12 #endif
Yann 0:f30e2135b0db 13
Yann 0:f30e2135b0db 14 //DG 2010
Yann 0:f30e2135b0db 15 void sys_init(void); /* To be called first */
Yann 0:f30e2135b0db 16 u32_t sys_jiffies(void); /* since power up. */
Yann 0:f30e2135b0db 17
Yann 0:f30e2135b0db 18 /** Returns the current time in milliseconds,
Yann 0:f30e2135b0db 19 * may be the same as sys_jiffies or at least based on it. */
Yann 0:f30e2135b0db 20 u32_t sys_now(void);
Yann 0:f30e2135b0db 21
Yann 0:f30e2135b0db 22 #ifdef __cplusplus
Yann 0:f30e2135b0db 23 }
Yann 0:f30e2135b0db 24 #endif
Yann 0:f30e2135b0db 25
Yann 0:f30e2135b0db 26
Yann 0:f30e2135b0db 27 #endif /* __LWIP_ARCH_CC_H__ */