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.

43 lines
982 B

  1. #ifndef __ARCH_CONFIG_H__
  2. #define __ARCH_CONFIG_H__
  3. #define RF24_LINUX
  4. #include <stdint.h>
  5. #include <stdio.h>
  6. #include <time.h>
  7. #include <string.h>
  8. #include <sys/time.h>
  9. #include <stddef.h>
  10. #include "bcm2835.h"
  11. #include "spi.h"
  12. #define _SPI spi
  13. #if defined SPI_HAS_TRANSACTION && !defined SPI_UART && !defined SOFTSPI
  14. #define RF24_SPI_TRANSACTIONS
  15. #endif
  16. // GCC a Arduino Missing
  17. #define _BV(x) (1<<(x))
  18. #define pgm_read_word(p) (*(p))
  19. #define pgm_read_byte(p) (*(p))
  20. #define pgm_read_ptr(p) (*(p))
  21. //typedef uint16_t prog_uint16_t;
  22. #define PSTR(x) (x)
  23. #define printf_P printf
  24. #define strlen_P strlen
  25. #define PROGMEM
  26. #define PRIPSTR "%s"
  27. #ifdef SERIAL_DEBUG
  28. #define IF_SERIAL_DEBUG(x) ({x;})
  29. #else
  30. #define IF_SERIAL_DEBUG(x)
  31. #endif
  32. #define digitalWrite(pin, value) bcm2835_gpio_write(pin, value)
  33. #define pinMode(pin,value) bcm2835_gpio_fsel(pin,value);
  34. #define OUTPUT BCM2835_GPIO_FSEL_OUTP
  35. #endif