Explorar el Código

1.修复扫描问题

jacycle hace 4 años
padre
commit
d316f09175
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c

+ 2 - 2
bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c

@@ -267,8 +267,8 @@ en_result_t Dma_InitChannel(en_dma_channel_t enCh, stc_dma_config_t* pstcConfig)
   ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enDstAddrMode));
   
   /* Check for channel and NULL pointer */
-  if ((!IS_VALID_CH(enCh)) || 
-      (pstcConfig == NULL))
+  if ((pstcConfig == NULL) || 
+      (!IS_VALID_CH(enCh)))
   {
     return ErrorInvalidParameter;
   }