Browse Source

merged board.h from cc1200-afsk-rx

curiousmuch 4 years ago
parent
commit
e23d081a97
1 changed files with 24 additions and 0 deletions
  1. 24 0
      main/board.h

+ 24 - 0
main/board.h

@@ -8,6 +8,12 @@
 #ifndef MAIN_BOARD_H_
 #define MAIN_BOARD_H_
 
+// Radio Selection
+#define CC1200		1
+#define CC1120		1
+
+
+#if CC1120
 // CC1120 - ESP32 I/O
 // NOTE: Logic Probe is connecting to RESET - Pin1
 #define CC1120_RESET		22
@@ -21,6 +27,24 @@
 #define CC1120_GPIO2_RTC	3
 #define CC1120_GPIO3 		34
 #define CC1120_GPIO3_RTC	4
+#endif
+
+#if CC1200
+// CC1120 - ESP32 I/O
+// NOTE: Logic Probe is connecting to RESET - Pin1
+#define CC1120_RESET		22
+#define CC1120_CS 			5
+#define CC1120_SCLK			18
+#define CC1120_MOSI			23
+#define CC1120_MISO			19
+#define CC1120_GPIO0		36
+#define CC1120_GPIO0_RTC	0
+#define CC1120_GPIO2		39
+#define CC1120_GPIO2_RTC	3
+#define CC1120_GPIO3 		34
+#define CC1120_GPIO3_RTC	4
+#endif
+
 
 #define DEBUG_0 			2
 #define DEBUG_1				4