|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "cc2500_settings.h"#include "cc2500_rx_spi.h"#include <BOARD_CONFIG>#include "mcu_periph/gpio.h"#include "generated/airframe.h"#include "modules/core/settings.h"#include <string.h>
Include dependency graph for cc2500_settings.c:Go to the source code of this file.
Macros | |
| #define | _LED_GPIO(l) l ## _GPIO |
| #define | LED_GPIO(l) _LED_GPIO(l) |
| #define | _LED_GPIO_PIN(l) l ## _GPIO_PIN |
| #define | LED_GPIO_PIN(l) _LED_GPIO_PIN(l) |
| #define | _LED_GPIO_ON(l) l ## _GPIO_ON |
| #define | LED_GPIO_ON(l) _LED_GPIO_ON(l) |
| #define | _LED_GPIO_OFF(l) l ## _GPIO_OFF |
| #define | LED_GPIO_OFF(l) _LED_GPIO_OFF(l) |
| #define | _BUTTON_GPIO(b) b ## _GPIO |
| #define | BUTTON_GPIO(b) _BUTTON_GPIO(b) |
| #define | _BUTTON_PIN(b) b ## _PIN |
| #define | BUTTON_PIN(b) _BUTTON_PIN(b) |
| #define | CC2500_RX_SPI_PROTOCOL RX_SPI_FRSKY_X_LBT |
| #define | CC2500_AUTOBIND FALSE |
| #define | CC2500_TELEMETRY_SENSORS (SENSOR_VOLTAGE | SENSOR_CURRENT | SENSOR_FUEL | SENSOR_ALTITUDE | SENSOR_VARIO) |
Variables | |
| static rxConfig_t | rxconfig |
| static struct gpio_t | extiIo |
| static struct gpio_t | ledIo |
| static struct gpio_t | bindIo |
| static rxSpiConfig_t | spiconfig |
| static rxCc2500SpiConfig_t | cc2500spiconfig |
| static telemetryConfig_t | telemetryconfig |
| struct cc2500_settings_persistent_s | cc2500_settings_persistent |
Definition at line 37 of file cc2500_settings.c.
Definition at line 43 of file cc2500_settings.c.
Definition at line 41 of file cc2500_settings.c.
Definition at line 39 of file cc2500_settings.c.
| #define BUTTON_GPIO | ( | b | ) | _BUTTON_GPIO(b) |
Definition at line 47 of file cc2500_settings.c.
| #define BUTTON_PIN | ( | b | ) | _BUTTON_PIN(b) |
Definition at line 49 of file cc2500_settings.c.
Definition at line 57 of file cc2500_settings.c.
| #define CC2500_RX_SPI_PROTOCOL RX_SPI_FRSKY_X_LBT |
Definition at line 53 of file cc2500_settings.c.
| #define CC2500_TELEMETRY_SENSORS (SENSOR_VOLTAGE | SENSOR_CURRENT | SENSOR_FUEL | SENSOR_ALTITUDE | SENSOR_VARIO) |
Definition at line 61 of file cc2500_settings.c.
Definition at line 38 of file cc2500_settings.c.
| #define LED_GPIO_OFF | ( | l | ) | _LED_GPIO_OFF(l) |
Definition at line 44 of file cc2500_settings.c.
| #define LED_GPIO_ON | ( | l | ) | _LED_GPIO_ON(l) |
Definition at line 42 of file cc2500_settings.c.
| #define LED_GPIO_PIN | ( | l | ) | _LED_GPIO_PIN(l) |
Definition at line 40 of file cc2500_settings.c.
Definition at line 68 of file cc2500_settings.c.
References cc2500_persistent_write(), and settings_StoreSettings.
Here is the call graph for this function:Definition at line 138 of file cc2500_settings.c.
References cc2500_settings_persistent_s::bindHopData, rxCc2500SpiConfig_s::bindHopData, rxCc2500SpiConfig_s::bindOffset, rxCc2500SpiConfig_s::bindTxId, cc2500_settings_persistent_s::bindVars, cc2500_settings_persistent, cc2500spiconfig, and rxCc2500SpiConfig_s::rxNum.
Referenced by cc2500_settings_init().
Here is the caller graph for this function:Definition at line 119 of file cc2500_settings.c.
References cc2500_settings_persistent_s::bindHopData, rxCc2500SpiConfig_s::bindHopData, rxCc2500SpiConfig_s::bindOffset, rxCc2500SpiConfig_s::bindTxId, cc2500_settings_persistent_s::bindVars, cc2500_settings_persistent, cc2500spiconfig, and rxCc2500SpiConfig_s::rxNum.
Referenced by bf_writeEEPROM().
Here is the caller graph for this function:Definition at line 159 of file cc2500_settings.c.
References rxCc2500SpiConfig_s::a1Source, rxCc2500SpiConfig_s::autoBind, rxCc2500SpiConfig_s::bindHopData, bindIo, rxSpiConfig_s::bindIoTag, rxCc2500SpiConfig_s::bindOffset, rxCc2500SpiConfig_s::bindTxId, BUTTON_GPIO, BUTTON_PIN, CC2500_AUTOBIND, CC2500_GDO0_GPIO, CC2500_GDO0_PIN, cc2500_persistent_read(), CC2500_RX_SPI_PROTOCOL, cc2500spiconfig, rxCc2500SpiConfig_s::chipDetectEnabled, extiIo, rxSpiConfig_s::extiIoTag, FALSE, foo, FRSKY_SPI_A1_SOURCE_VBAT, gpio_t::hi, LED_GPIO, LED_GPIO_OFF, LED_GPIO_ON, LED_GPIO_PIN, rxSpiConfig_s::ledInversion, ledIo, rxSpiConfig_s::ledIoTag, gpio_t::lo, rxConfig_s::max_aux_channel, rxConfig_s::midrc, telemetryConfig_s::pidValuesAsTelemetry, gpio_t::pin, gpio_t::port, telemetryConfig_s::report_cell_voltage, rxConfig_s::rssi_channel, rxConfig_s::rssi_src_frame_lpf_period, rxSpiConfig_s::rx_spi_protocol, rxconfig, rxCc2500SpiConfig_s::rxNum, settings_init(), spiconfig, telemetryconfig, and TRUE.
Referenced by radio_control_cc2500_init().
Here is the call graph for this function:
Here is the caller graph for this function:| const rxCc2500SpiConfig_t * rxCc2500SpiConfig | ( | void | ) |
Definition at line 94 of file cc2500_settings.c.
References cc2500spiconfig.
Referenced by buildTelemetryFrame(), cc2500SpiInit(), frSkySpiDataReceived(), getBind2(), initialiseData(), isValidPacket(), and nextChannel().
Here is the caller graph for this function:| rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable | ( | void | ) |
Definition at line 97 of file cc2500_settings.c.
References cc2500spiconfig.
Referenced by getBind1(), getBind2(), and tuneRx().
Here is the caller graph for this function:| const rxConfig_t * rxConfig | ( | void | ) |
Definition at line 77 of file cc2500_settings.c.
References rxconfig.
Referenced by rxInit().
Here is the caller graph for this function:| const rxSpiConfig_t * rxSpiConfig | ( | void | ) |
Definition at line 87 of file cc2500_settings.c.
References spiconfig.
Referenced by cc2500SpiInit(), frSkySpiInit(), rxInit(), rxSpiCommonIOInit(), and rxSpiInit().
Here is the caller graph for this function:| const telemetryConfig_t * telemetryConfig | ( | void | ) |
Definition at line 105 of file cc2500_settings.c.
References telemetryconfig.
Referenced by processSmartPortTelemetry().
Here is the caller graph for this function:Definition at line 111 of file cc2500_settings.c.
References CC2500_TELEMETRY_SENSORS, and foo.
Referenced by initSmartPortSensors().
Here is the caller graph for this function:
|
static |
Definition at line 85 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
| struct cc2500_settings_persistent_s cc2500_settings_persistent |
Definition at line 117 of file cc2500_settings.c.
Referenced by cc2500_persistent_read(), and cc2500_persistent_write().
|
static |
Definition at line 93 of file cc2500_settings.c.
Referenced by cc2500_persistent_read(), cc2500_persistent_write(), cc2500_settings_init(), rxCc2500SpiConfig(), and rxCc2500SpiConfigMutable().
|
static |
Definition at line 83 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
|
static |
Definition at line 84 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
|
static |
Definition at line 76 of file cc2500_settings.c.
Referenced by cc2500_settings_init(), and rxConfig().
|
static |
Definition at line 86 of file cc2500_settings.c.
Referenced by cc2500_settings_init(), and rxSpiConfig().
|
static |
Definition at line 103 of file cc2500_settings.c.
Referenced by cc2500_settings_init(), and telemetryConfig().