Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
816 B

  1. #ifndef __ARCH_CONFIG_H__
  2. #define __ARCH_CONFIG_H__
  3. #include <stdint.h>
  4. #include <stdio.h>
  5. #include <time.h>
  6. #include <string.h>
  7. #include <sys/time.h>
  8. #include <stddef.h>
  9. // Additional fixes for LittleWire
  10. #include <LittleWireSPI/littlewirespi.h>
  11. #include <LittleWireSPI/avr_fixes.h>
  12. extern LittleWireSPI _SPI;
  13. // GCC a Arduino Missing
  14. #define _BV(x) (1<<(x))
  15. #define pgm_read_word(p) (*(p))
  16. #define pgm_read_byte(p) (*(p))
  17. #define pgm_read_ptr(p) (*(p))
  18. //typedef uint16_t prog_uint16_t;
  19. #define PSTR(x) (x)
  20. #define printf_P printf
  21. #define strlen_P strlen
  22. #define PROGMEM
  23. #define PRIPSTR "%s"
  24. #ifdef SERIAL_DEBUG
  25. #define IF_SERIAL_DEBUG(x) ({x;})
  26. #else
  27. #define IF_SERIAL_DEBUG(x)
  28. #if defined(RF24_TINY)
  29. #define printf_P(...)
  30. #endif
  31. #endif
  32. #endif