dRonin
adbada4
dRonin firmware
|
Files | |
file | pios_board.c |
Board specific initialization for the bootloader. | |
file | pios_config.h |
Board specific bootloader configuration file for PiOS. | |
file | board_hw_defs.c |
Defines board specific static initializers for hardware for the BrainFPV RE1 board. | |
file | pios_board.h |
Board define file for FlyingF4. | |
file | pios_board.c |
The board specific initialization routines. | |
file | pios_config.h |
Board specific options that modify PiOS capabilities. | |
file | splash.h |
Data Structures | |
struct | pios_re1fpga_cfg |
Functions | |
void | PIOS_Board_Init () |
static void | settingsUpdatedCb (const UAVObjEvent *ev, void *ctx, void *obj, int len) |
int32_t | PIOS_RE1FPGA_Init (pios_spi_t spi_id, uint32_t slave_num, const struct pios_re1fpga_cfg *cfg, bool load_config) |
uint8_t | PIOS_RE1FPGA_GetHWRevision () |
int32_t | PIOS_RE1FPGA_SerialRxInvert (bool invert) |
int32_t | PIOS_RE1FPGA_MPTxPinMode (bool bidrectional, bool invert) |
int32_t | PIOS_RE1FPGA_MPTxPinPullUpDown (bool enable, bool pullup) |
int32_t | PIOS_RE1FPGA_SetBuzzerType (enum pios_re1fpga_buzzer_types type) |
int32_t | PIOS_RE1FPGA_Buzzer (bool enable) |
int32_t | PIOS_RE1FPGA_SetNotificationLedColor (enum pios_re1fpga_led_colors led_colors) |
void | PIOS_RE1FPGA_SetBwLevels (uint8_t black, uint8_t white) |
int32_t | PIOS_RE1FPGA_SetSyncThreshold (uint8_t threshold) |
void | PIOS_RE1FPGA_SetXOffset (int8_t x_offset) |
void | PIOS_RE1FPGA_SetXScale (uint8_t x_scale) |
void | PIOS_RE1FPGA_Set3DConfig (enum pios_video_3d_mode mode, uint8_t x_shift_right) |
int32_t | PIOS_RE1FPGA_SetIRProtocol (enum pios_re1fpga_ir_protocols ir_protocol) |
int32_t | PIOS_RE1FPGA_SetIRData (const uint8_t *ir_data, uint8_t n_bytes) |
Variables | |
uintptr_t | pios_com_telem_usb_id |
uintptr_t | pios_com_telem_serial_id |
uintptr_t | pios_com_gps_id |
uintptr_t | pios_com_telem_usb_id |
uintptr_t | pios_com_bridge_id |
uintptr_t | pios_com_vcp_id |
uintptr_t | pios_com_mavlink_id |
uintptr_t | pios_com_frsky_sensor_hub_id |
uintptr_t | pios_com_frsky_sport_id |
uintptr_t | pios_com_lighttelemetry_id |
uintptr_t | pios_com_hott_id |
uintptr_t | pios_com_openlog_logging_id |
uintptr_t | pios_com_storm32bgc_id |
uintptr_t | pios_com_tbsvtxconfig_id |
ws2811_dev_t | pios_ws2811 |
uintptr_t | pios_com_logging_id |
uintptr_t | pios_com_openlog_logging_id |
uintptr_t | pios_internal_adc_id |
uintptr_t | pios_uavo_settings_fs_id |
ws2811_dev_t | pios_ws2811 |
static const unsigned short | oplogo_bits [] |
static const unsigned short | oplogo_mask_bits [] |
static const unsigned short | level_bits [] |
static const unsigned short | level_mask_bits [] |
static const unsigned short | llama_bits [] |
static const unsigned short | llama_mask_bits [] |
#define AUTOTUNE_AVERAGING_DECIMATION 2 |
Definition at line 86 of file pios_config.h.
#define BOARD_READABLE true |
Definition at line 79 of file pios_board.h.
#define BOARD_WRITABLE true |
Definition at line 80 of file pios_board.h.
#define BRAIN |
Definition at line 106 of file pios_config.h.
#define CAMERASTAB_POI_MODE |
Definition at line 89 of file pios_config.h.
#define DEBUG_PRINTF | ( | level, | |
... | |||
) |
Definition at line 40 of file pios_board.h.
#define FLASH_FREERTOS |
Definition at line 57 of file pios_config.h.
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD (9873737) |
Definition at line 104 of file pios_config.h.
#define MAX_DEL_RETRYS 3 |
Definition at line 81 of file pios_board.h.
#define MODULE_FLIGHTSTATS_BUILTIN |
Definition at line 80 of file pios_config.h.
#define OSD_USE_BRAINFPV_LOGO |
Definition at line 82 of file pios_config.h.
#define OSD_USE_MENU |
Definition at line 83 of file pios_config.h.
#define PIOS_ADC_MAX_OVERSAMPLING 1 |
Definition at line 226 of file pios_board.h.
#define PIOS_ADC_SUB_DRIVER_MAX_INSTANCES 3 |
Definition at line 231 of file pios_board.h.
#define PIOS_ADC_USE_ADC2 0 |
Definition at line 227 of file pios_board.h.
#define PIOS_ANNUNCIATOR_BUZZER 2 |
Definition at line 89 of file pios_board.h.
#define PIOS_COM_BRIDGE (pios_com_bridge_id) |
Definition at line 122 of file pios_board.h.
#define PIOS_COM_FRSKY_SENSOR_HUB (pios_com_frsky_sensor_hub_id) |
Definition at line 126 of file pios_board.h.
#define PIOS_COM_FRSKY_SPORT (pios_com_frsky_sport_id) |
Definition at line 127 of file pios_board.h.
#define PIOS_COM_GPS (pios_com_gps_id) |
Definition at line 120 of file pios_board.h.
#define PIOS_COM_HOTT (pios_com_hott_id) |
Definition at line 125 of file pios_board.h.
#define PIOS_COM_LIGHTTELEMETRY (pios_com_lighttelemetry_id) |
Definition at line 128 of file pios_board.h.
#define PIOS_COM_MAVLINK (pios_com_mavlink_id) |
Definition at line 124 of file pios_board.h.
#define PIOS_COM_OPENLOG (uintptr_t)(pios_com_openlog_logging_id) |
Definition at line 129 of file pios_board.h.
#define PIOS_COM_STORM32BGC (pios_com_storm32bgc_id) |
Definition at line 130 of file pios_board.h.
#define PIOS_COM_TBSVTXCONFIG (pios_com_tbsvtxconfig_id) |
Definition at line 131 of file pios_board.h.
#define PIOS_COM_TELEM_USB (pios_com_telem_usb_id) |
Definition at line 121 of file pios_board.h.
#define PIOS_COM_VCP (pios_com_vcp_id) |
Definition at line 123 of file pios_board.h.
#define PIOS_DSM_NUM_INPUTS 12 |
Definition at line 199 of file pios_board.h.
#define PIOS_HSUM_MAX_DEVS 2 |
Definition at line 209 of file pios_board.h.
#define PIOS_HSUM_NUM_INPUTS 32 |
Definition at line 210 of file pios_board.h.
#define PIOS_INCLUDE_ANNUNC |
Definition at line 39 of file pios_config.h.
#define PIOS_INCLUDE_BMI160 |
Definition at line 50 of file pios_config.h.
#define PIOS_INCLUDE_BMP280 |
Definition at line 51 of file pios_config.h.
#define PIOS_INCLUDE_COM_MSG |
Definition at line 45 of file pios_config.h.
#define PIOS_INCLUDE_DEBUG_CONSOLE |
Definition at line 81 of file pios_config.h.
#define PIOS_INCLUDE_DMASHOT |
Definition at line 63 of file pios_config.h.
#define PIOS_INCLUDE_FLASH |
Definition at line 46 of file pios_config.h.
#define PIOS_INCLUDE_FLASH_INTERNAL |
Definition at line 47 of file pios_config.h.
#define PIOS_INCLUDE_FLASH_JEDEC |
Definition at line 43 of file pios_config.h.
#define PIOS_INCLUDE_FLASH_JEDEC |
Definition at line 48 of file pios_config.h.
#define PIOS_INCLUDE_HMC5883 |
Definition at line 53 of file pios_config.h.
#define PIOS_INCLUDE_HMC5983_I2C |
Definition at line 54 of file pios_config.h.
#define PIOS_INCLUDE_HPWM |
Definition at line 46 of file pios_config.h.
#define PIOS_INCLUDE_I2C |
Definition at line 44 of file pios_config.h.
#define PIOS_INCLUDE_IAP |
Definition at line 42 of file pios_config.h.
#define PIOS_INCLUDE_IR_TRANSPONDER |
Definition at line 71 of file pios_config.h.
#define PIOS_INCLUDE_LIGHTTELEMETRY |
Definition at line 61 of file pios_config.h.
#define PIOS_INCLUDE_LOG_TO_FLASH |
Definition at line 68 of file pios_config.h.
#define PIOS_INCLUDE_MAVLINK |
Definition at line 60 of file pios_config.h.
#define PIOS_INCLUDE_MS5611 |
Definition at line 52 of file pios_config.h.
#define PIOS_INCLUDE_RE1_FPGA |
Definition at line 50 of file pios_config.h.
#define PIOS_INCLUDE_RE1_FPGA |
Definition at line 74 of file pios_config.h.
#define PIOS_INCLUDE_SPI |
Definition at line 40 of file pios_config.h.
#define PIOS_INCLUDE_SPI |
Definition at line 45 of file pios_config.h.
#define PIOS_INCLUDE_SYS |
Definition at line 41 of file pios_config.h.
#define PIOS_INCLUDE_TBSVTXCONFIG |
Definition at line 47 of file pios_config.h.
#define PIOS_INCLUDE_USB |
Definition at line 43 of file pios_config.h.
#define PIOS_INCLUDE_USB_HID |
Definition at line 44 of file pios_config.h.
#define PIOS_INCLUDE_VIDEO_QUADSPI |
Definition at line 77 of file pios_config.h.
#define PIOS_IRQ_PRIO_HIGH 5 |
Definition at line 176 of file pios_board.h.
#define PIOS_IRQ_PRIO_HIGHEST 4 |
Definition at line 177 of file pios_board.h.
#define PIOS_IRQ_PRIO_LOW 12 |
Definition at line 174 of file pios_board.h.
#define PIOS_IRQ_PRIO_MID 8 |
Definition at line 175 of file pios_board.h.
#define PIOS_LED_ALARM PIOS_LED_RED |
Definition at line 92 of file pios_board.h.
#define PIOS_LED_GREEN 0 |
Definition at line 87 of file pios_board.h.
#define PIOS_LED_HEARTBEAT PIOS_LED_GREEN |
Definition at line 91 of file pios_board.h.
#define PIOS_LED_RED 1 |
Definition at line 88 of file pios_board.h.
#define PIOS_LOGFLASH_SECT_SIZE 0x10000 /* 64kb */ |
Definition at line 69 of file pios_config.h.
#define PIOS_PERIPHERAL_APB1_CLOCK (PIOS_SYSCLK / 4) |
Definition at line 158 of file pios_board.h.
#define PIOS_PERIPHERAL_APB2_CLOCK (PIOS_SYSCLK / 2) |
Definition at line 168 of file pios_board.h.
#define PIOS_PPM_NUM_INPUTS 12 |
Definition at line 189 of file pios_board.h.
#define PIOS_PWM_NUM_INPUTS 8 |
Definition at line 194 of file pios_board.h.
#define PIOS_RCVR_MAX_CHANNELS 12 |
Definition at line 184 of file pios_board.h.
#define PIOS_SBUS_NUM_INPUTS (16+2) |
Definition at line 204 of file pios_board.h.
#define PIOS_SERVO_UPDATE_HZ 50 |
Definition at line 215 of file pios_board.h.
#define PIOS_SERVOS_INITIAL_POSITION 0 /* dont want to start motors, have no pulse till settings loaded */ |
Definition at line 216 of file pios_board.h.
#define PIOS_SYSCLK SYSCLK_FREQ |
Definition at line 147 of file pios_board.h.
#define PIOS_TIM_MAX_DEVS 8 |
Definition at line 221 of file pios_board.h.
#define PIOS_TOLERATE_MISSING_SENSORS |
Definition at line 55 of file pios_config.h.
#define PIOS_USB_ENABLED 1 /* Should remove all references to this */ |
Definition at line 236 of file pios_board.h.
#define PIOS_VIDEO_BITS_PER_PIXEL 2 |
Definition at line 78 of file pios_config.h.
#define PIOS_VIDEO_QUADSPI_Y_OFFSET 3 |
Definition at line 79 of file pios_config.h.
#define PIOS_WATCHDOG_TIMEOUT 250 |
Definition at line 98 of file pios_board.h.
#define PIOS_WDG_REGISTER RTC_BKP_DR4 |
Definition at line 99 of file pios_board.h.
#define RS_ECC_NPARITY 4 |
Definition at line 144 of file pios_board.h.
#define STABILIZATION_LQG |
Definition at line 40 of file pios_config.h.
#define SYSTEMMOD_RGBLED_SUPPORT |
Definition at line 87 of file pios_config.h.
#define VREF_PLUS 3.275 |
Definition at line 229 of file pios_board.h.
Enumerator | |
---|---|
PIOS_RE1FPGA_BUZZER_DC | |
PIOS_RE1FPGA_BUZZER_AC |
Definition at line 56 of file fpga_drv.h.
Enumerator | |
---|---|
PIOS_RE1FPGA_IR_PROTOCOL_OFF | |
PIOS_RE1FPGA_IR_PROTOCOL_ILAP | |
PIOS_RE1FPGA_IR_PROTOCOL_TRACKMATE |
Definition at line 50 of file fpga_drv.h.
Enumerator | |
---|---|
PIOS_RE1FPGA_STATUS_BLUE_CUSTOM_GREEN | |
PIOS_RE1FPGA_STATUS_GREEN_CUSTOM_BLUE |
Definition at line 45 of file fpga_drv.h.
void PIOS_Board_Init | ( | void | ) |
PIOS_Board_Init() initializes all the core subsystems on this specific hardware called from System/openpilot.c
Definition at line 51 of file pios_board.c.
int32_t PIOS_RE1FPGA_Buzzer | ( | bool | enable | ) |
uint8_t PIOS_RE1FPGA_GetHWRevision | ( | ) |
int32_t PIOS_RE1FPGA_Init | ( | pios_spi_t | spi_id, |
uint32_t | slave_num, | ||
const struct pios_re1fpga_cfg * | cfg, | ||
bool | load_config | ||
) |
int32_t PIOS_RE1FPGA_MPTxPinMode | ( | bool | bidrectional, |
bool | invert | ||
) |
int32_t PIOS_RE1FPGA_MPTxPinPullUpDown | ( | bool | enable, |
bool | pullup | ||
) |
int32_t PIOS_RE1FPGA_SerialRxInvert | ( | bool | invert | ) |
void PIOS_RE1FPGA_Set3DConfig | ( | enum pios_video_3d_mode | mode, |
uint8_t | x_shift_right | ||
) |
int32_t PIOS_RE1FPGA_SetBuzzerType | ( | enum pios_re1fpga_buzzer_types | type | ) |
void PIOS_RE1FPGA_SetBwLevels | ( | uint8_t | black, |
uint8_t | white | ||
) |
int32_t PIOS_RE1FPGA_SetIRData | ( | const uint8_t * | ir_data, |
uint8_t | n_bytes | ||
) |
int32_t PIOS_RE1FPGA_SetIRProtocol | ( | enum pios_re1fpga_ir_protocols | ir_protocol | ) |
int32_t PIOS_RE1FPGA_SetNotificationLedColor | ( | enum pios_re1fpga_led_colors | led_colors | ) |
int32_t PIOS_RE1FPGA_SetSyncThreshold | ( | uint8_t | threshold | ) |
void PIOS_RE1FPGA_SetXOffset | ( | int8_t | x_offset | ) |
void PIOS_RE1FPGA_SetXScale | ( | uint8_t | x_scale | ) |
|
static |
settingsUpdatedCb() Called when RE1 hardware settings are updated
Definition at line 72 of file pios_board.c.
uintptr_t pios_com_bridge_id |
Definition at line 81 of file pios_hal.c.
uintptr_t pios_com_frsky_sensor_hub_id |
uintptr_t pios_com_frsky_sport_id |
uintptr_t pios_com_gps_id |
Definition at line 80 of file pios_hal.c.
uintptr_t pios_com_hott_id |
uintptr_t pios_com_lighttelemetry_id |
uintptr_t pios_com_logging_id |
Definition at line 61 of file pios_board.c.
uintptr_t pios_com_mavlink_id |
uintptr_t pios_com_openlog_logging_id |
Definition at line 62 of file pios_board.c.
uintptr_t pios_com_openlog_logging_id |
Definition at line 49 of file pios_board.c.
uintptr_t pios_com_storm32bgc_id |
uintptr_t pios_com_tbsvtxconfig_id |
uintptr_t pios_com_telem_serial_id |
Definition at line 127 of file pios_hal.c.
uintptr_t pios_com_telem_usb_id |
Definition at line 49 of file pios_board.c.
uintptr_t pios_com_telem_usb_id |
Definition at line 42 of file pios_board.c.
uintptr_t pios_com_vcp_id |
uintptr_t pios_internal_adc_id |
Definition at line 63 of file pios_board.c.
uintptr_t pios_uavo_settings_fs_id |
Definition at line 64 of file pios_board.c.
ws2811_dev_t pios_ws2811 |
Definition at line 66 of file pios_board.c.
ws2811_dev_t pios_ws2811 |
Definition at line 66 of file pios_board.c.