diff network/test.c @ 107:56d09a0969b5 avr-http

Import uIP and the PPP implementation from https://code.google.com/p/avrusbmodem/
author Matt Johnston <matt@ucc.asn.au>
date Fri, 07 Sep 2012 23:53:53 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/network/test.c	Fri Sep 07 23:53:53 2012 +0800
@@ -0,0 +1,18 @@
+#include <sys/time.h>
+#include "uip.h"
+#include "clock.h"
+
+// clock.c
+clock_time_t 
+clock_time(void)
+{
+    struct timeval tv;
+    gettimeofday(&tv, NULL);
+    
+    return tv.tv_sec % 65536;
+}
+
+int main(int argc, char ** argv)
+{
+    return 0;
+}