|
Paparazzi UAS v7.1_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>Go to the source code of this file.
Macros | |
| #define | _LED_GPIO(l) |
| #define | LED_GPIO(l) |
| #define | _LED_GPIO_PIN(l) |
| #define | LED_GPIO_PIN(l) |
| #define | _LED_GPIO_ON(l) |
| #define | LED_GPIO_ON(l) |
| #define | _LED_GPIO_OFF(l) |
| #define | LED_GPIO_OFF(l) |
| #define | _BUTTON_GPIO(b) |
| #define | BUTTON_GPIO(b) |
| #define | _BUTTON_PIN(b) |
| #define | 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) |
Functions | |
| static void | cc2500_persistent_write (void) |
| void | bf_writeEEPROM (void) |
| const rxConfig_t * | rxConfig (void) |
| const rxSpiConfig_t * | rxSpiConfig (void) |
| const rxCc2500SpiConfig_t * | rxCc2500SpiConfig (void) |
| rxCc2500SpiConfig_t * | rxCc2500SpiConfigMutable (void) |
| const telemetryConfig_t * | telemetryConfig (void) |
| bool | telemetryIsSensorEnabled (sensor_e sensor) |
| static void | cc2500_persistent_read (void) |
| void | cc2500_settings_init (void) |
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 |
| #define _BUTTON_GPIO | ( | b | ) |
Definition at line 46 of file cc2500_settings.c.
| #define _BUTTON_PIN | ( | b | ) |
Definition at line 48 of file cc2500_settings.c.
| #define _LED_GPIO | ( | l | ) |
Definition at line 37 of file cc2500_settings.c.
| #define _LED_GPIO_OFF | ( | l | ) |
Definition at line 43 of file cc2500_settings.c.
| #define _LED_GPIO_ON | ( | l | ) |
Definition at line 41 of file cc2500_settings.c.
| #define _LED_GPIO_PIN | ( | l | ) |
Definition at line 39 of file cc2500_settings.c.
| #define BUTTON_GPIO | ( | b | ) |
| #define BUTTON_PIN | ( | b | ) |
| #define CC2500_AUTOBIND FALSE |
Definition at line 57 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
| #define CC2500_RX_SPI_PROTOCOL RX_SPI_FRSKY_X_LBT |
Definition at line 53 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
| #define CC2500_TELEMETRY_SENSORS (SENSOR_VOLTAGE | SENSOR_CURRENT | SENSOR_FUEL | SENSOR_ALTITUDE | SENSOR_VARIO) |
Definition at line 61 of file cc2500_settings.c.
Referenced by telemetryIsSensorEnabled().
| #define LED_GPIO | ( | l | ) |
Definition at line 38 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
| #define LED_GPIO_OFF | ( | l | ) |
| #define LED_GPIO_ON | ( | l | ) |
Definition at line 42 of file cc2500_settings.c.
Referenced by cc2500_settings_init().
| #define LED_GPIO_PIN | ( | l | ) |
| void bf_writeEEPROM | ( | void | ) |
Definition at line 68 of file cc2500_settings.c.
References cc2500_persistent_write(), and settings_StoreSettings.
|
static |
Definition at line 138 of file cc2500_settings.c.
References cc2500_settings_persistent, and cc2500spiconfig.
Referenced by cc2500_settings_init().
|
static |
Definition at line 119 of file cc2500_settings.c.
References cc2500_settings_persistent, and cc2500spiconfig.
Referenced by bf_writeEEPROM().
| void cc2500_settings_init | ( | void | ) |
Definition at line 159 of file cc2500_settings.c.
References bindIo, BUTTON_GPIO, BUTTON_PIN, CC2500_AUTOBIND, cc2500_persistent_read(), CC2500_RX_SPI_PROTOCOL, cc2500spiconfig, extiIo, FALSE, FRSKY_SPI_A1_SOURCE_VBAT, LED_GPIO, LED_GPIO_OFF, LED_GPIO_ON, LED_GPIO_PIN, ledIo, rxconfig, settings_init(), spiconfig, telemetryconfig, and TRUE.
Referenced by radio_control_cc2500_init().
| 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().
| rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable | ( | void | ) |
Definition at line 97 of file cc2500_settings.c.
References cc2500spiconfig.
Referenced by getBind1(), getBind2(), and tuneRx().
| const rxConfig_t * rxConfig | ( | void | ) |
Definition at line 77 of file cc2500_settings.c.
References rxconfig.
Referenced by rxInit().
| const rxSpiConfig_t * rxSpiConfig | ( | void | ) |
Definition at line 87 of file cc2500_settings.c.
References spiconfig.
Referenced by cc2500SpiInit(), frSkySpiInit(), rxInit(), rxSpiCommonIOInit(), and rxSpiInit().
| const telemetryConfig_t * telemetryConfig | ( | void | ) |
Definition at line 105 of file cc2500_settings.c.
References telemetryconfig.
Referenced by processSmartPortTelemetry().
| bool telemetryIsSensorEnabled | ( | sensor_e | sensor | ) |
Definition at line 111 of file cc2500_settings.c.
References CC2500_TELEMETRY_SENSORS.
Referenced by initSmartPortSensors().
|
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().