- added code and libraries of old door deamon
[svn42.git] / old-door-deamon / ledstats-0.3.1 / ledcpu.c
diff --git a/old-door-deamon/ledstats-0.3.1/ledcpu.c b/old-door-deamon/ledstats-0.3.1/ledcpu.c
new file mode 100644 (file)
index 0000000..1a79e63
--- /dev/null
@@ -0,0 +1,40 @@
+#include <stdio.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include <parportled.h>
+
+/* Get the current statistics on the cpu */
+
+
+int loop(void)
+{
+  FILE *pstat;
+  int load;
+  int lights[MAXLED];
+  int blink=0;
+       
+
+//     led_off_all();
+       
+//             for(load = 0; load <= ; load++)
+//                     lights[1] = 1;
+
+  led_on(1);
+
+               //led_set_on(lights);
+               
+//     led_on_all();   
+
+  return(0);
+}
+
+int main(int argc, char **argv)
+{
+
+      loop();
+       
+  return(EXIT_SUCCESS);
+}