1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

DMA Stream/Channel unification on LL-DShot

This commit is contained in:
jflyper 2019-07-31 11:34:11 +09:00
parent 4d41c361c4
commit a103de784e
4 changed files with 16 additions and 16 deletions

View file

@ -67,12 +67,12 @@ __STATIC_INLINE void LL_EX_DMA_SetChannelSelection(DMA_Stream_TypeDef *DMAx_Stre
MODIFY_REG(DMAx_Streamy->CR, DMA_SxCR_CHSEL, Channel);
}
__STATIC_INLINE void LL_EX_DMA_EnableStream(DMA_Stream_TypeDef *DMAx_Streamy)
__STATIC_INLINE void LL_EX_DMA_EnableResource(DMA_Stream_TypeDef *DMAx_Streamy)
{
SET_BIT(DMAx_Streamy->CR, DMA_SxCR_EN);
}
__STATIC_INLINE void LL_EX_DMA_DisableStream(DMA_Stream_TypeDef *DMAx_Streamy)
__STATIC_INLINE void LL_EX_DMA_DisableResource(DMA_Stream_TypeDef *DMAx_Streamy)
{
CLEAR_BIT(DMAx_Streamy->CR, DMA_SxCR_EN);
}