Read NTP time from Ethernet and drive six 7-segment LEDs using a MAX7221 to show time, date, month, week, year etc....

Dependencies:   NTPClient_NetServices mbed

Committer:
cheungderek
Date:
Wed Jun 22 01:31:47 2011 +0000
Revision:
0:e083abcfe7a8
First release.
Just some testing but working code to read NTP time and drive 6 LEDs to display time, date, month, year etc...

Who changed what in which revision?

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