|
28 | 28 | // Uncomment to use testing gpios attached to TX/RX processes
|
29 | 29 | // #define TEST_GPIOS_ENABLED
|
30 | 30 |
|
| 31 | +#if !defined(S2LP_SPI_SDI) |
| 32 | +#define S2LP_SPI_SDI D11 |
| 33 | +#endif |
| 34 | +#if !defined(S2LP_SPI_SDO) |
| 35 | +#define S2LP_SPI_SDO D12 |
| 36 | +#endif |
| 37 | +#if !defined(S2LP_SPI_SCLK) |
| 38 | +#define S2LP_SPI_SCLK D13 |
| 39 | +#endif |
| 40 | +#if !defined(S2LP_SPI_CS) |
| 41 | +#define S2LP_SPI_CS A1 |
| 42 | +#endif |
| 43 | +#if !defined(S2LP_SPI_SDN) |
| 44 | +#define S2LP_SPI_SDN D7 |
| 45 | +#endif |
| 46 | +#if !defined(TEST_PIN_TX) |
| 47 | +#define TEST_PIN_TX D6 |
| 48 | +#endif |
| 49 | +#if !defined(TEST_PIN_RX) |
| 50 | +#define TEST_PIN_RX D5 |
| 51 | +#endif |
| 52 | +#if !defined(TEST_PIN_CSMA) |
| 53 | +#define TEST_PIN_CSMA D4 |
| 54 | +#endif |
| 55 | +#if !defined(TEST_PIN_SPARE_1) |
| 56 | +#define TEST_PIN_SPARE_1 D2 |
| 57 | +#endif |
| 58 | +#if !defined(TEST_PIN_SPARE_2) |
| 59 | +#define TEST_PIN_SPARE_2 D8 |
| 60 | +#endif |
| 61 | +#if !defined(S2LP_SPI_GPIO0) |
| 62 | +#define S2LP_SPI_GPIO0 A0 |
| 63 | +#endif |
| 64 | +#if !defined(S2LP_SPI_GPIO1) |
| 65 | +#define S2LP_SPI_GPIO1 A2 |
| 66 | +#endif |
| 67 | +#if !defined(S2LP_SPI_GPIO2) |
| 68 | +#define S2LP_SPI_GPIO2 A3 |
| 69 | +#endif |
| 70 | +#if !defined(S2LP_SPI_GPIO3) |
| 71 | +#define S2LP_SPI_GPIO3 A5 |
| 72 | +#endif |
| 73 | + |
31 | 74 | #include "at24mac_s2lp.h"
|
32 | 75 |
|
33 | 76 | class RFPins;
|
|
0 commit comments