From 2b4c5eef1d648b4712cd1e945bdb672700b370f6 Mon Sep 17 00:00:00 2001 From: jflyper Date: Tue, 23 Jul 2019 13:20:12 +0900 Subject: [PATCH] [G4] SOFTSERIAL support --- src/main/drivers/serial_softserial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/drivers/serial_softserial.c b/src/main/drivers/serial_softserial.c index 4b96140e8..152d00269 100644 --- a/src/main/drivers/serial_softserial.c +++ b/src/main/drivers/serial_softserial.c @@ -525,7 +525,7 @@ void onSerialRxPinChange(timerCCHandlerRec_t *cbRec, captureCompare_t capture) } timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_FALLING : ICPOLARITY_RISING, 0); -#if defined(STM32F7) || defined(STM32H7) +#if defined(STM32F7) || defined(STM32H7) || defined(STM32G4) serialEnableCC(self); #endif self->rxEdge = LEADING; @@ -550,7 +550,7 @@ void onSerialRxPinChange(timerCCHandlerRec_t *cbRec, captureCompare_t capture) self->rxEdge = TRAILING; timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_RISING : ICPOLARITY_FALLING, 0); } -#if defined(STM32F7) || defined(STM32H7) +#if defined(STM32F7) || defined(STM32H7) || defined(STM32G4) serialEnableCC(self); #endif }