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.

56 lines
1.1 KiB

  1. /*
  2. Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. version 2 as published by the Free Software Foundation.
  6. */
  7. #ifndef __ARCH_CONFIG_H__
  8. #define __ARCH_CONFIG_H__
  9. #define RF24_LINUX
  10. #include <stddef.h>
  11. #include "spi.h"
  12. #include "wiringPi.h"
  13. #include <stdint.h>
  14. #include <stdio.h>
  15. #include <time.h>
  16. #include <string.h>
  17. #include <sys/time.h>
  18. #define _BV(x) (1<<(x))
  19. #define _SPI spi
  20. #undef SERIAL_DEBUG
  21. #ifdef SERIAL_DEBUG
  22. #define IF_SERIAL_DEBUG(x) ({x;})
  23. #else
  24. #define IF_SERIAL_DEBUG(x)
  25. #endif
  26. // Avoid spurious warnings
  27. #if 1
  28. #if ! defined( NATIVE ) && defined( ARDUINO )
  29. #undef PROGMEM
  30. #define PROGMEM __attribute__(( section(".progmem.data") ))
  31. #undef PSTR
  32. #define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
  33. #endif
  34. #endif
  35. typedef uint16_t prog_uint16_t;
  36. #define PSTR(x) (x)
  37. #define printf_P printf
  38. #define strlen_P strlen
  39. #define PROGMEM
  40. #define pgm_read_word(p) (*(p))
  41. #define PRIPSTR "%s"
  42. #define pgm_read_byte(p) (*(p))
  43. #define pgm_read_ptr(p) (*(p))
  44. #endif // __ARCH_CONFIG_H__
  45. /*@}*/