![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
Integration into main.c (CubeMX, CMSIS-RTOS2): More...
#include "main.h"Go to the source code of this file.
Functions | |
| void | app_start (void) |
| void | app_exti (uint16_t pin) |
| void | app_i2c_rx_cplt (I2C_HandleTypeDef *hi2c) |
| void | app_i2c_error (I2C_HandleTypeDef *hi2c) |
| void | app_uart_tx_cplt (UART_HandleTypeDef *huart) |
Integration into main.c (CubeMX, CMSIS-RTOS2):
osKernelInitialize(); app_start(); // <– add this osKernelStart();
void HAL_GPIO_EXTI_Callback(uint16_t pin) { app_exti(pin); } void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *h){ app_i2c_rx_cplt(h); } void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *h) { app_i2c_error(h); } void HAL_UART_TxCpltCallback(UART_HandleTypeDef *h) { app_uart_tx_cplt(h); }
Definition in file app_main.h.
| void app_start | ( | void | ) |
Definition at line 716 of file app_main.c.
References batt_task_cfg_t::adc_read, APP_BATT_ADC, APP_BATT_CURRENT, APP_BATT_SENS_V_A, APP_FW_MAJOR, APP_FW_MINOR, APP_FW_PATCH, APP_HW_REV, app_task_boot(), app_task_start(), batt_task_cfg_t::batt, batt_adc_init(), batt_adc_read(), app_task_cfg_t::batt_monitor, batt_task_start(), cal_set_t::battery, app_task_cfg_t::board_sensors, dwt_init(), ext_sens_start(), fc_init(), log_task_cfg_t::flash, log_task_cfg_t::fw, get_init(), app_task_cfg_t::get_init, batt_cfg_t::has_current, hi2c1, app_task_cfg_t::hw_rev, log_task_cfg_t::hw_rev, imu_i2c_bus_init(), ImuTask(), log_flash(), app_task_cfg_t::log_pct, log_sensors(), log_task_pct(), log_task_start(), logf_event(), logf_set_clock(), MAG_HARD_IRON, motor_test_hook(), motors_arm(), app_task_cfg_t::motors_built, MOTORS_ENABLE, motors_init(), app_task_cfg_t::n_motors, PV2_S_CURRENT, PV2_S_FLASH_LOG, qTlm, s_imuTask, batt_cfg_t::scale_i, cal_battery_t::scale_i, batt_cfg_t::scale_v, cal_battery_t::scale_v, batt_cfg_t::sens_v_per_a, log_task_cfg_t::sensors, fc_config_t::sensors, TelemetryTask(), app_task_cfg_t::uid, usb_cdc_init(), usb_cdc_pump(), log_task_cfg_t::usb_pump, and usbl_host().
| void app_exti | ( | uint16_t | pin | ) |
Definition at line 136 of file app_main.c.
References FLAG_IMU_IRQ, s_imuTask, s_irqCount, and s_irqCyc.
| void app_i2c_rx_cplt | ( | I2C_HandleTypeDef * | hi2c | ) |
Definition at line 144 of file app_main.c.
References imu_i2c_rx_cplt_isr().
| void app_i2c_error | ( | I2C_HandleTypeDef * | hi2c | ) |
Definition at line 145 of file app_main.c.
References imu_i2c_error_isr().
| void app_uart_tx_cplt | ( | UART_HandleTypeDef * | huart | ) |
Definition at line 146 of file app_main.c.
References tlm_uart_tx_cplt_isr().