io.h 400 B

1234567891011121314151617181920212223
  1. #ifndef IO_H
  2. #define IO_H
  3. #ifdef __linux__
  4. #include <unistd.h>
  5. #include <wiringPi.h>
  6. #include <unistd.h>
  7. #include <sys/types.h>
  8. #include <sys/stat.h>
  9. #include <sys/types.h>
  10. #include <sys/stat.h>
  11. #include <fcntl.h>
  12. #include <pthread.h>
  13. #define ARM 1
  14. #else
  15. #include <Arduino.h>
  16. #include <avr/wdt.h>
  17. #include <avr/sleep.h>
  18. #include <avr/io.h>
  19. #include <avr/interrupt.h>
  20. #endif
  21. #endif