mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 19:59:13 +08:00
1.再次修复扫描问题
This commit is contained in:
parent
d316f09175
commit
83636c461f
@ -267,8 +267,7 @@ en_result_t Dma_InitChannel(en_dma_channel_t enCh, stc_dma_config_t* pstcConfig)
|
|||||||
ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enDstAddrMode));
|
ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enDstAddrMode));
|
||||||
|
|
||||||
/* Check for channel and NULL pointer */
|
/* Check for channel and NULL pointer */
|
||||||
if ((pstcConfig == NULL) ||
|
if (!IS_VALID_CH(enCh))
|
||||||
(!IS_VALID_CH(enCh)))
|
|
||||||
{
|
{
|
||||||
return ErrorInvalidParameter;
|
return ErrorInvalidParameter;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user