| 1 | #ifndef RF24_UTILITY_TEENSY_RF24_ARCH_CONFIG_H_ |
| 2 | #define RF24_UTILITY_TEENSY_RF24_ARCH_CONFIG_H_ |
| 3 | #if ARDUINO < 100 |
| 4 | |
| 5 | #include <WProgram.h> |
| 6 | |
| 7 | #else |
| 8 | #include <Arduino.h> |
| 9 | #endif |
| 10 | |
| 11 | #include <stddef.h> |
| 12 | |
| 13 | #include <stdint.h> |
| 14 | #include <stdio.h> |
| 15 | #include <string.h> |
| 16 | |
| 17 | #include <SPI.h> |
| 18 | |
| 19 | #define _SPI SPIClass |
| 20 | #define RF24_SPI_PTR |
| 21 | typedef uint8_t rf24_gpio_pin_t; |
| 22 | #define RF24_PIN_INVALID 0xFF |
| 23 | |
| 24 | #define printf Serial.printf |
| 25 | |
| 26 | #ifdef RF24_DEBUG |
| 27 | #define IF_RF24_DEBUG(x) ({ x; }) |
| 28 | #else |
| 29 | #define IF_RF24_DEBUG(x) |
| 30 | #endif |
| 31 | |
| 32 | #define PRIPSTR "%s" |
| 33 | |
| 34 | #endif // RF24_UTILITY_TEENSY_RF24_ARCH_CONFIG_H_ |