[Taranis] Cosmetics
This commit is contained in:
@@ -147,9 +147,9 @@ void usbInit()
|
|||||||
void watchdogInit()
|
void watchdogInit()
|
||||||
{
|
{
|
||||||
IWDG->KR = 0x5555 ; // Unlock registers
|
IWDG->KR = 0x5555 ; // Unlock registers
|
||||||
IWDG->PR = 3 ; // Divide by 32 => 1kHz clock
|
IWDG->PR = 3 ; // Divide by 32 => 1kHz clock
|
||||||
IWDG->KR = 0x5555 ; // Unlock registers
|
IWDG->KR = 0x5555 ; // Unlock registers
|
||||||
IWDG->RLR = 1500 ; // 1.5 seconds nominal
|
IWDG->RLR = 1500 ; // 1.5 seconds nominal
|
||||||
IWDG->KR = 0xAAAA ; // reload
|
IWDG->KR = 0xAAAA ; // reload
|
||||||
IWDG->KR = 0xCCCC ; // start
|
IWDG->KR = 0xCCCC ; // start
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,8 @@ uint32_t sdMounted();
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Pulses driver
|
// Pulses driver
|
||||||
|
void init_no_pulses(uint32_t port);
|
||||||
|
void disable_no_pulses(uint32_t port);
|
||||||
void init_ppm( uint32_t module_index );
|
void init_ppm( uint32_t module_index );
|
||||||
void disable_ppm( uint32_t module_index );
|
void disable_ppm( uint32_t module_index );
|
||||||
void init_pxx( uint32_t module_index );
|
void init_pxx( uint32_t module_index );
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ void init_trainer_ppm()
|
|||||||
|
|
||||||
TIM3->CR1 = TIM_CR1_CEN ;
|
TIM3->CR1 = TIM_CR1_CEN ;
|
||||||
NVIC_EnableIRQ(TIM3_IRQn) ;
|
NVIC_EnableIRQ(TIM3_IRQn) ;
|
||||||
// NVIC_EnableIRQ(TIM8_UP_TIM13_IRQn) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - testing
|
// TODO - testing
|
||||||
|
|||||||
Reference in New Issue
Block a user