HAL/LL: Generic EXTI & trainer driver
Changes: - generic EXTI driver - generic trainer driver - relocated rotary encoder timer (simple 100us delay) from TIM4 to TIM12 - taranis & horus use now TIM4 for trainer pulses - serial driver handles periph clocks for UARTs TODO: - SBUS on heartbeat pin (USART or soft-serial)
This commit is contained in:
committed by
Raphael Coeffic
parent
d4cd3d0ddf
commit
042d5091f2
@@ -26,6 +26,7 @@
|
||||
#include "debug.h"
|
||||
|
||||
#include "hal/adc_driver.h"
|
||||
#include "hal/trainer_driver.h"
|
||||
#include "stm32_hal_adc.h"
|
||||
#include "timers_driver.h"
|
||||
|
||||
@@ -95,21 +96,14 @@ void delay_self(int count)
|
||||
)
|
||||
|
||||
#define RCC_APB1PeriphOther (TELEMETRY_RCC_APB1Periph |\
|
||||
TRAINER_RCC_APB1Periph |\
|
||||
INTMODULE_RCC_APB1Periph |\
|
||||
FLYSKY_HALL_RCC_APB1Periph |\
|
||||
EXTMODULE_RCC_APB1Periph |\
|
||||
INTMODULE_RCC_APB1Periph |\
|
||||
AUX_SERIAL_RCC_APB1Periph |\
|
||||
MIXER_SCHEDULER_TIMER_RCC_APB1Periph \
|
||||
)
|
||||
#define RCC_APB2PeriphMinimum (LCD_RCC_APB2Periph)
|
||||
|
||||
#define RCC_APB2PeriphOther (ADC_RCC_APB2Periph |\
|
||||
HAPTIC_RCC_APB2Periph |\
|
||||
AUX_SERIAL_RCC_APB2Periph |\
|
||||
AUDIO_RCC_APB2Periph |\
|
||||
EXTMODULE_RCC_APB2Periph \
|
||||
AUDIO_RCC_APB2Periph \
|
||||
)
|
||||
|
||||
static uint8_t boardGetPcbRev()
|
||||
@@ -180,6 +174,7 @@ void boardInit()
|
||||
TRACE("RCC->CSR = %08x", RCC->CSR);
|
||||
|
||||
pwrInit();
|
||||
init_trainer();
|
||||
extModuleInit();
|
||||
battery_charge_init();
|
||||
globalData.flyskygimbals = true;
|
||||
|
||||
Reference in New Issue
Block a user