1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

[H7] Enable software serial (#8194)

[H7] Enable software serial
This commit is contained in:
Michael Keller 2019-05-07 20:05:41 +12:00 committed by GitHub
commit 2f3d42e58f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -525,7 +525,7 @@ void onSerialRxPinChange(timerCCHandlerRec_t *cbRec, captureCompare_t capture)
} }
timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_FALLING : ICPOLARITY_RISING, 0); timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_FALLING : ICPOLARITY_RISING, 0);
#ifdef STM32F7 #if defined(STM32F7) || defined(STM32H7)
serialEnableCC(self); serialEnableCC(self);
#endif #endif
self->rxEdge = LEADING; self->rxEdge = LEADING;
@ -550,7 +550,7 @@ void onSerialRxPinChange(timerCCHandlerRec_t *cbRec, captureCompare_t capture)
self->rxEdge = TRAILING; self->rxEdge = TRAILING;
timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_RISING : ICPOLARITY_FALLING, 0); timerChConfigIC(self->timerHardware, inverted ? ICPOLARITY_RISING : ICPOLARITY_FALLING, 0);
} }
#ifdef STM32F7 #if defined(STM32F7) || defined(STM32H7)
serialEnableCC(self); serialEnableCC(self);
#endif #endif
} }