power.c 324 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "web.h"
  2. #include "thread.h"
  3. #include "mongoose.h"
  4. static void *power_thread(void *arg)
  5. {
  6. thread_handle_t *th=(thread_handle_t*)arg;
  7. while(th->quit==0) {
  8. //msleep(100);
  9. }
  10. pthread_exit(NULL);
  11. }
  12. int power_init(void)
  13. {
  14. //thread_start();
  15. return 0;
  16. }