diff --git a/drivers/drivers-x16xx/include/x16xx_hal_aic.h b/drivers/drivers-x16xx/include/x16xx_hal_aic.h index 64e089f280246477053580502b4261de65a661cd..3bc8e5dc8cfc05a1c4c446fae60418fd671d403b 100644 --- a/drivers/drivers-x16xx/include/x16xx_hal_aic.h +++ b/drivers/drivers-x16xx/include/x16xx_hal_aic.h @@ -256,8 +256,8 @@ typedef struct __AIC_HandleTypeDef { #define __HAL_AIC_DISABLE_TRANSMIT_DMA(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_TDMS) #define __HAL_AIC_ENABLE_TRANSMIT_DMA(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_TDMS) -#define __HAL_AIC_ENALBE_TUR(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) -#define __HAL_AIC_DISENALBE_TUR(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) +#define __HAL_AIC_ENABLE_TUR(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) +#define __HAL_AIC_DISENABLE_TUR(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) #define __HAL_AIC_ENABLE_REPLAY(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ERPL) #define __HAL_AIC_DISABLE_REPLAY(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ERPL) diff --git a/drivers/drivers-x16xx/src/x16xx_hal_pdma.c b/drivers/drivers-x16xx/src/x16xx_hal_pdma.c index 70e75bd6d78a7a717bcf3580377bfc46f67ef76d..ece759a8bf9a47a49a4dbd5f35981e9e5ee42ccc 100644 --- a/drivers/drivers-x16xx/src/x16xx_hal_pdma.c +++ b/drivers/drivers-x16xx/src/x16xx_hal_pdma.c @@ -173,7 +173,7 @@ void DMA_Dump_Reg(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Enable(DMA_HandleTypeDef *hdma) { uint32_t dmac = READ_REG(hdma->Instance->GCR.DMAC); @@ -187,7 +187,7 @@ static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Disalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Disable(DMA_HandleTypeDef *hdma) { CLEAR_BIT(hdma->Instance->GCR.DMAC, DMAC_DMAE); } @@ -511,7 +511,7 @@ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) /* request pdma descriptor interrupt and init descriptor */ ll_request_irq(IRQ_INTC0_PDMAD, HAL_PDMAD_IntHandler, hdma); - HAL_DMA_Global_Enalbe(hdma); + HAL_DMA_Global_Enable(hdma); return HAL_OK; } @@ -536,7 +536,7 @@ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) } } - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); return HAL_OK; } @@ -616,7 +616,7 @@ HAL_StatusTypeDef HAL_DMA_Stop(DMA_HandleTypeDef *hdma, uint32_t ch) if (hdma->Requested) { WRITE_REG(hdma->Instance->Channel.CHANNEL[ch].DCSn, 0); } else { - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); } return HAL_OK; } diff --git a/drivers/drivers-x2000/src/x2000_hal_pdma.c b/drivers/drivers-x2000/src/x2000_hal_pdma.c index a7dc549af84ba5d775ad8be2170c95e2d53f476b..190d7aa5dddc44faf17c9316fc19602d4c97c93a 100755 --- a/drivers/drivers-x2000/src/x2000_hal_pdma.c +++ b/drivers/drivers-x2000/src/x2000_hal_pdma.c @@ -188,7 +188,7 @@ __attribute__((unused)) static void DMA_Dump_Reg(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Enable(DMA_HandleTypeDef *hdma) { uint32_t dmac = READ_REG(hdma->Instance->GCR.DMAC); @@ -202,7 +202,7 @@ static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Disalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Disable(DMA_HandleTypeDef *hdma) { CLEAR_BIT(hdma->Instance->GCR.DMAC, DMAC_DMAE); } @@ -518,7 +518,7 @@ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) /* request pdma descriptor interrupt and init descriptor */ ll_request_irq(IRQ_INTC0_PDMAD, HAL_PDMAD_IntHandler, hdma); - HAL_DMA_Global_Enalbe(hdma); + HAL_DMA_Global_Enable(hdma); return HAL_OK; } @@ -543,7 +543,7 @@ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) } } - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); return HAL_OK; } @@ -623,7 +623,7 @@ HAL_StatusTypeDef HAL_DMA_Stop(DMA_HandleTypeDef *hdma, uint32_t ch) if (hdma->Requested) { WRITE_REG(hdma->Instance->Channel.CHANNEL[ch].DCSn, 0); } else { - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); } return HAL_OK; } diff --git a/drivers/drivers-x2600/include/x2600_hal_aic.h b/drivers/drivers-x2600/include/x2600_hal_aic.h index c45a702886effe52e79d7f362da88fc39e19eb95..08391d6426fa42cb44b03c302273b0baeb34bd2e 100644 --- a/drivers/drivers-x2600/include/x2600_hal_aic.h +++ b/drivers/drivers-x2600/include/x2600_hal_aic.h @@ -239,8 +239,8 @@ typedef struct __AIC_HandleTypeDef { #define __HAL_AIC_ENABLE_REPLAY(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ERPL) #define __HAL_AIC_DISABLE_REPLAY(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ERPL) -#define __HAL_AIC_ENALBE_TUR(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) -#define __HAL_AIC_DISENALBE_TUR(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) +#define __HAL_AIC_ENABLE_TUR(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) +#define __HAL_AIC_DISENABLE_TUR(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_ETUR) #define __HAL_AIC_ENABLE_ROR(__HANDLE__) SET_BIT((__HANDLE__)->Instance->AICCR, AICCR_EROR) #define __HAL_AIC_DISABLE_ROR(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->AICCR, AICCR_EROR) diff --git a/drivers/drivers-x2600/src/x2600_hal_pdma.c b/drivers/drivers-x2600/src/x2600_hal_pdma.c index f3c37d487c7dd1fcebc710f6d9c8e5be7371ac4b..6229b9db3ee2020818e795adf56e3bab0525e982 100755 --- a/drivers/drivers-x2600/src/x2600_hal_pdma.c +++ b/drivers/drivers-x2600/src/x2600_hal_pdma.c @@ -171,7 +171,7 @@ __attribute__((unused)) static void DMA_Dump_Reg(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Enable(DMA_HandleTypeDef *hdma) { uint32_t dmac = READ_REG(hdma->Instance->GCR.DMAC); @@ -185,7 +185,7 @@ static void HAL_DMA_Global_Enalbe(DMA_HandleTypeDef *hdma) * @param 指向DMA_HandleTypeDef结构的hdma指针,该结构包含指定DMA的配置信息。 * @retval 无 */ -static void HAL_DMA_Global_Disalbe(DMA_HandleTypeDef *hdma) +static void HAL_DMA_Global_Disable(DMA_HandleTypeDef *hdma) { CLEAR_BIT(hdma->Instance->GCR.DMAC, DMAC_DMAE); } @@ -523,7 +523,7 @@ void HAL_DMA_Init_Common(DMA_HandleTypeDef *hdma, DMA_InitDescConfTypeDef *descC /* 配置DSD寄存器,无stride */ WRITE_REG(hdma->Instance->Channel.CHANNEL[ch].DSDn, 0); - HAL_DMA_Global_Enalbe(hdma); + HAL_DMA_Global_Enable(hdma); } /** @@ -600,7 +600,7 @@ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) /* request pdma descriptor interrupt and init descriptor */ ll_request_irq(IRQ_INTC0_PDMAD, HAL_PDMAD_IntHandler, hdma); - HAL_DMA_Global_Enalbe(hdma); + HAL_DMA_Global_Enable(hdma); return HAL_OK; } @@ -625,7 +625,7 @@ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) } } - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); ll_release_irq(IRQ_INTC0_PDMA); ll_release_irq(IRQ_INTC0_PDMAD); @@ -757,7 +757,7 @@ HAL_StatusTypeDef HAL_DMA_Stop(DMA_HandleTypeDef *hdma, uint32_t ch) if (hdma->Requested) { WRITE_REG(hdma->Instance->Channel.CHANNEL[ch].DCSn, 0); } else { - HAL_DMA_Global_Disalbe(hdma); + HAL_DMA_Global_Disable(hdma); } return HAL_OK; }