Use normal soft-serial function for AFHDS3
This commit is contained in:
@@ -202,19 +202,7 @@ void extmoduleSerialStart()
|
||||
stm32_pulse_config_output(&extmoduleTimer, &ocInit);
|
||||
}
|
||||
|
||||
#if defined(AFHDS3) && !(defined(EXTMODULE_USART) && defined(EXTMODULE_TX_INVERT_GPIO))
|
||||
void extmoduleSendNextFrameAFHDS3(const void* pulses, uint16_t length)
|
||||
{
|
||||
if (!stm32_pulse_stop_if_running(&extmoduleTimer))
|
||||
return;
|
||||
|
||||
// Start DMA request and re-enable timer
|
||||
stm32_pulse_start_dma_req(&extmoduleTimer, pulses, length);
|
||||
}
|
||||
#endif
|
||||
|
||||
void extmoduleSendNextFrameSoftSerial100kbit(const void* pulses, uint16_t length,
|
||||
bool polarity)
|
||||
void extmoduleSendNextFrameSoftSerial(const void* pulses, uint16_t length, bool polarity)
|
||||
{
|
||||
if (!stm32_pulse_stop_if_running(&extmoduleTimer))
|
||||
return;
|
||||
|
||||
@@ -34,16 +34,11 @@ void extmoduleSendNextFramePxx1(const void* pulses, uint16_t length);
|
||||
// Soft serial on PPM pin
|
||||
void extmoduleSerialStart();
|
||||
|
||||
#if defined(AFHDS3) && !(defined(EXTMODULE_USART) && defined(EXTMODULE_TX_INVERT_GPIO))
|
||||
void extmoduleSendNextFrameAFHDS3(const void* dataPtr, uint16_t dataSize);
|
||||
#endif
|
||||
|
||||
void extmoduleSendNextFramePpm(void* pulses, uint16_t length,
|
||||
uint16_t ppm_delay, bool polarity);
|
||||
|
||||
void extmoduleSendNextFrameSoftSerial100kbit(const void* pulses,
|
||||
uint16_t length,
|
||||
bool polarity = true);
|
||||
void extmoduleSendNextFrameSoftSerial(const void* pulses, uint16_t length,
|
||||
bool polarity = true);
|
||||
|
||||
// Bitbang serial
|
||||
void extmoduleSendInvertedByte(uint8_t byte);
|
||||
|
||||
Reference in New Issue
Block a user