NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <platform.h>
#include "build_config.h"
#include "common/axis.h"
#include "common/maths.h"
#include "common/utils.h"
#include "config.h"
#include "feature.h"
#include "profile.h"
#include "system_calls.h"
Data Structures | |
struct | eeprom_delta |
Macros | |
#define | CONFIG_EEPROM_START 0 |
this is the starting address of the config eeprom area More... | |
#define | CONFIG_EEPROM_SIZE 4096 |
this is the size of the eeporm area used by the config More... | |
#define | DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SERIAL |
#define | BRUSHED_MOTORS_PWM_RATE 16000 |
#define | BRUSHLESS_MOTORS_PWM_RATE 400 |
#define | DEFAULT_PWM_RATE BRUSHLESS_MOTORS_PWM_RATE |
#define | DEFAULT_TELEMETRY_INVERSION 0 |
#define | LF(name) LED_FLAG_FUNCTION(LED_FUNCTION_ ## name) |
#define | LD(name) LED_FLAG_DIRECTION(LED_DIRECTION_ ## name) |
Functions | |
struct eeprom_delta | __attribute__ ((packed)) |
void | config_reset (struct config *self) |
const struct config_profile const * | config_get_profile (const struct config *const self) |
struct config_profile * | config_get_profile_rw (struct config *self) |
struct rate_profile const * | config_get_rate_profile (const struct config *const self) |
struct rate_profile * | config_get_rate_profile_rw (struct config *self) |
int | config_save (const struct config *self, const struct system_calls *system) |
bool | config_fixup (struct config *config) |
int | config_load (struct config *self, const struct system_calls *system) |
Variables | |
uint16_t | addr |
uint16_t | data |
const serialPortIdentifier_e | serialPortIdentifiers [SERIAL_PORT_COUNT] |
#define LD | ( | name | ) | LED_FLAG_DIRECTION(LED_DIRECTION_ ## name) |
#define LF | ( | name | ) | LED_FLAG_FUNCTION(LED_FUNCTION_ ## name) |
uint16_t addr |
uint16_t data |