[Pulses] Refactoring
This commit is contained in:
@@ -212,6 +212,7 @@ void disable_pxx(uint8_t module);
|
||||
void init_pxx2(uint8_t module);
|
||||
void disable_pxx2(uint8_t module);
|
||||
void init_serial(uint8_t module, uint32_t baudrate, uint32_t period_half_us);
|
||||
void intmoduleSerialStart(uint32_t baudrate, uint8_t rxEnable);
|
||||
void disable_serial(uint8_t module);
|
||||
void intmoduleSendNextFrame();
|
||||
void extmoduleSendNextFrame();
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
void intmoduleStop();
|
||||
void intmodulePxxStart();
|
||||
void intmoduleSerialStart(uint32_t baudrate);
|
||||
void intmoduleSerialStart(uint32_t baudrate, uint8_t rxEnable);
|
||||
|
||||
void extmoduleStop();
|
||||
void extmodulePpmStart();
|
||||
@@ -48,7 +48,7 @@ void disable_ppm(uint8_t module)
|
||||
void init_pxx2(uint8_t module)
|
||||
{
|
||||
if (module == INTERNAL_MODULE)
|
||||
intmoduleSerialStart(INTMODULE_USART_PXX_BAUDRATE);
|
||||
intmoduleSerialStart(INTMODULE_USART_PXX_BAUDRATE, true);
|
||||
else
|
||||
extmodulePxx2Start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user