Add missing wifi targets for some DIY modules (#1210)
[ExpressLRS.git] / src / include / target / GHOST_2400_TX.h
blob0027cf66c11c1ff35af69a3b4c9b8c5207f1573e
1 #if !defined(DEVICE_NAME)
2 #define DEVICE_NAME "Ghost 24TX"
3 #endif
4 // There is some special handling for this target
5 #define TARGET_TX_GHOST
7 // Any device features
8 #if !defined(USE_OLED_SPI_SMALL)
9 #define USE_OLED_SPI
10 #endif
12 // GPIO pin definitions
13 #define GPIO_PIN_NSS PA15
14 #define GPIO_PIN_BUSY PB15
15 #define GPIO_PIN_DIO1 PB2
16 #define GPIO_PIN_MOSI PA7
17 #define GPIO_PIN_MISO PA6
18 #define GPIO_PIN_SCK PA5
19 #define GPIO_PIN_RST PB0
20 #define GPIO_PIN_TX_ENABLE PA8 // Works on Lite
21 #define GPIO_PIN_RX_ENABLE PB14 // Works on Lite
22 #define GPIO_PIN_ANT_CTRL_1 PA9
23 #define GPIO_PIN_ANT_CTRL_2 PB13
24 #define GPIO_PIN_RCSIGNAL_RX PA10 // S.PORT (Only needs one wire )
25 #define GPIO_PIN_RCSIGNAL_TX PB6 // Needed for CRSF libs but does nothing/not hooked up to JR module.
26 #define GPIO_PIN_LED_WS2812 PB6
27 #define GPIO_PIN_LED_WS2812_FAST PB_6
28 #define GPIO_PIN_PA_ENABLE PB11 // https://www.skyworksinc.com/-/media/SkyWorks/Documents/Products/2101-2200/SE2622L_202733C.pdf
29 #define GPIO_PIN_RF_AMP_DET PA3 // Voltage detector pin
30 #define GPIO_PIN_BUZZER PC13
31 #define GPIO_PIN_OLED_CS PC14
32 #define GPIO_PIN_OLED_RST PB12
33 #define GPIO_PIN_OLED_DC PC15
34 #define GPIO_PIN_OLED_MOSI PB5
35 #define GPIO_PIN_OLED_SCK PB3
37 // Output Power
38 #define MinPower PWR_10mW
39 #define MaxPower PWR_250mW
40 #define POWER_OUTPUT_VALUES {-16,-14,-11,-8,-4}
42 #define Regulatory_Domain_ISM_2400 1