Skip to content

Commit 1a345ce

Browse files
author
Marcelo Salazar
committed
Fix pin config for S2LP
1 parent 9ef2801 commit 1a345ce

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

components/802.15.4_RF/stm-s2lp-rf-driver/stm-s2lp-rf-driver/NanostackRfPhys2lp.h

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,49 @@
2828
// Uncomment to use testing gpios attached to TX/RX processes
2929
// #define TEST_GPIOS_ENABLED
3030

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+
3174
#include "at24mac_s2lp.h"
3275

3376
class RFPins;

0 commit comments

Comments
 (0)