@@ -156,7 +156,6 @@ void telemetryPortInvertedInit(uint32_t baudrate)
|
||||
rxBitCount = 0;
|
||||
|
||||
// configure bit sample timer
|
||||
RCC->APB2ENR |= RCC_APB2ENR_TIM11EN;
|
||||
TELEMETRY_TIMER->PSC = (PERI2_FREQUENCY * TIMER_MULT_APB2) / 2000000 - 1; // 0.5uS
|
||||
TELEMETRY_TIMER->CCER = 0;
|
||||
TELEMETRY_TIMER->CCMR1 = 0;
|
||||
|
||||
@@ -113,7 +113,8 @@ void boardInit()
|
||||
INTMODULE_RCC_APB2Periph |
|
||||
EXTMODULE_RCC_APB2Periph |
|
||||
TRAINER_MODULE_RCC_APB2Periph |
|
||||
BT_RCC_APB2Periph,
|
||||
BT_RCC_APB2Periph |
|
||||
TELEMETRY_RCC_APB2Periph,
|
||||
ENABLE);
|
||||
|
||||
#if defined(BLUETOOTH) && !defined(PCBX9E)
|
||||
|
||||
@@ -1331,6 +1331,7 @@
|
||||
// Telemetry
|
||||
#define TELEMETRY_RCC_AHB1Periph (RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_DMA1)
|
||||
#define TELEMETRY_RCC_APB1Periph RCC_APB1Periph_USART2
|
||||
#define TELEMETRY_RCC_APB2Periph RCC_APB2Periph_TIM11
|
||||
#define TELEMETRY_DIR_GPIO GPIOD
|
||||
#define TELEMETRY_DIR_GPIO_PIN GPIO_Pin_4 // PD.04
|
||||
#if defined(PCBXLITE) || defined(PCBX9LITE) || defined(RADIO_X9DP2019) || defined(RADIO_X7ACCESS)
|
||||
|
||||
@@ -117,7 +117,6 @@ void telemetryPortInvertedInit(uint32_t baudrate)
|
||||
rxBitCount = 0;
|
||||
|
||||
// configure bit sample timer
|
||||
RCC->APB2ENR |= RCC_APB2ENR_TIM11EN;
|
||||
TELEMETRY_TIMER->PSC = (PERI2_FREQUENCY * TIMER_MULT_APB2) / 2000000 - 1; // 0.5uS
|
||||
TELEMETRY_TIMER->CCER = 0;
|
||||
TELEMETRY_TIMER->CCMR1 = 0;
|
||||
|
||||
Reference in New Issue
Block a user