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:
parent
4d41c361c4
commit
a103de784e
4 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue