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
LPC1768/lwip/arch/perf.h@0:e083abcfe7a8, 2011-06-22 (annotated)
- 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?
User | Revision | Line number | New 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_ARCH_PERF_H__ |
cheungderek | 0:e083abcfe7a8 | 6 | #define __LWIP_ARCH_PERF_H__ |
cheungderek | 0:e083abcfe7a8 | 7 | |
cheungderek | 0:e083abcfe7a8 | 8 | #define PERF_START |
cheungderek | 0:e083abcfe7a8 | 9 | #define PERF_STOP(x) |
cheungderek | 0:e083abcfe7a8 | 10 | |
cheungderek | 0:e083abcfe7a8 | 11 | #define perf_init(fname) |
cheungderek | 0:e083abcfe7a8 | 12 | |
cheungderek | 0:e083abcfe7a8 | 13 | #if 0 |
cheungderek | 0:e083abcfe7a8 | 14 | #ifdef __cplusplus |
cheungderek | 0:e083abcfe7a8 | 15 | inline |
cheungderek | 0:e083abcfe7a8 | 16 | #endif |
cheungderek | 0:e083abcfe7a8 | 17 | void perf_init(char *fname) { |
cheungderek | 0:e083abcfe7a8 | 18 | return; |
cheungderek | 0:e083abcfe7a8 | 19 | } |
cheungderek | 0:e083abcfe7a8 | 20 | #endif |
cheungderek | 0:e083abcfe7a8 | 21 | |
cheungderek | 0:e083abcfe7a8 | 22 | |
cheungderek | 0:e083abcfe7a8 | 23 | #endif /* __LWIP_ARCH_PERF_H__ */ |