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
void cc2500_settings_init(void)
#define CC2500_TELEMETRY_SENSORS
static struct gpio_t ledIo
#define CC2500_RX_SPI_PROTOCOL
const rxSpiConfig_t * rxSpiConfig(void)
static void cc2500_persistent_write(void)
static struct gpio_t bindIo
const telemetryConfig_t * telemetryConfig(void)
bool telemetryIsSensorEnabled(sensor_e sensor)
static rxSpiConfig_t spiconfig
static struct gpio_t extiIo
void bf_writeEEPROM(void)
const rxCc2500SpiConfig_t * rxCc2500SpiConfig(void)
static rxConfig_t rxconfig
struct cc2500_settings_persistent_s cc2500_settings_persistent
static rxCc2500SpiConfig_t cc2500spiconfig
static telemetryConfig_t telemetryconfig
static void cc2500_persistent_read(void)
rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable(void)
const rxConfig_t * rxConfig(void)
uint8_t rssi_src_frame_lpf_period
uint8_t pidValuesAsTelemetry
@ FRSKY_SPI_A1_SOURCE_VBAT
uint8_t chipDetectEnabled
uint8_t report_cell_voltage
Some architecture independent helper functions for GPIOs.
Persistent settings interface.
#define settings_StoreSettings(_v)