|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
31 #include "generated/airframe.h"
37 #define _LED_GPIO(l) l ## _GPIO
38 #define LED_GPIO(l) _LED_GPIO(l)
39 #define _LED_GPIO_PIN(l) l ## _GPIO_PIN
40 #define LED_GPIO_PIN(l) _LED_GPIO_PIN(l)
41 #define _LED_GPIO_ON(l) l ## _GPIO_ON
42 #define LED_GPIO_ON(l) _LED_GPIO_ON(l)
43 #define _LED_GPIO_OFF(l) l ## _GPIO_OFF
44 #define LED_GPIO_OFF(l) _LED_GPIO_OFF(l)
46 #define _BUTTON_GPIO(b) b ## _GPIO
47 #define BUTTON_GPIO(b) _BUTTON_GPIO(b)
48 #define _BUTTON_PIN(b) b ## _PIN
49 #define BUTTON_PIN(b) _BUTTON_PIN(b)
52 #ifndef CC2500_RX_SPI_PROTOCOL
53 #define CC2500_RX_SPI_PROTOCOL RX_SPI_FRSKY_X_LBT
56 #ifndef CC2500_AUTOBIND
57 #define CC2500_AUTOBIND FALSE
60 #ifndef CC2500_TELEMETRY_SENSORS
61 #define CC2500_TELEMETRY_SENSORS (SENSOR_VOLTAGE | SENSOR_CURRENT | SENSOR_FUEL | SENSOR_ALTITUDE | SENSOR_VARIO)
125 for (
int i = 0; i < 48; i += 4) {
147 for (
int i = 0; i < 48; i += 4) {
184 #ifdef CC2500_BIND_BUTTON
static void cc2500_persistent_read(void)
const rxCc2500SpiConfig_t * rxCc2500SpiConfig(void)
#define CC2500_TELEMETRY_SENSORS
static rxConfig_t rxconfig
uint8_t chipDetectEnabled
const telemetryConfig_t * telemetryConfig(void)
static struct gpio_t bindIo
uint8_t rssi_src_frame_lpf_period
#define CC2500_RX_SPI_PROTOCOL
struct cc2500_settings_persistent_s cc2500_settings_persistent
const rxConfig_t * rxConfig(void)
#define settings_StoreSettings(_v)
const rxSpiConfig_t * rxSpiConfig(void)
bool telemetryIsSensorEnabled(sensor_e sensor)
static void cc2500_persistent_write(void)
uint8_t pidValuesAsTelemetry
static rxCc2500SpiConfig_t cc2500spiconfig
static rxSpiConfig_t spiconfig
static telemetryConfig_t telemetryconfig
static struct gpio_t extiIo
void bf_writeEEPROM(void)
uint8_t report_cell_voltage
rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable(void)
@ FRSKY_SPI_A1_SOURCE_VBAT
void cc2500_settings_init(void)
static struct gpio_t ledIo