timer.c 621 B

123456789101112131415161718192021222324252627282930313233
  1. #include <stdlib.h>
  2. #include <sys/timer.h>
  3. #include "wonx.h"
  4. #include "WonxDisplay.h"
  5. void rtc_set_datetime(int field, unsigned int value)
  6. {
  7. }
  8. unsigned int rtc_get_datetime(int field)
  9. {
  10. unsigned int t;
  11. t = (unsigned int)time(NULL); /* ここはてきとうなので,あとで修正すること */
  12. return (t);
  13. }
  14. void rtc_set_datetime_struct(void * buf)
  15. {}
  16. void rtc_get_datetime_struct(void * buf)
  17. {}
  18. void rtc_enable_alarm(int hour, int min)
  19. {}
  20. void rtc_disable_alarm(void)
  21. {}
  22. void timer_enable(int type, unsigned int auto_preset, unsigned int preset)
  23. {}
  24. void timer_disable(int type)
  25. {}
  26. unsigned int timer_get_count(int type)
  27. {}