From 61ef0c43f310d6110928c643c6ff32b457a30f34 Mon Sep 17 00:00:00 2001 From: jay_yeh Date: Wed, 8 Jan 2025 10:26:17 +0800 Subject: [PATCH] [rename] rename function name *_Enalbe -> *_Enable *_ENALBE -> *_ENABLE *_Disalbe -> *_Disable *_DISENALBE -> *_DISENABLE --- drivers/drivers-x16xx/include/x16xx_hal_aic.h | 4 ++-- drivers/drivers-x16xx/src/x16xx_hal_pdma.c | 10 +++++----- drivers/drivers-x2000/src/x2000_hal_pdma.c | 10 +++++----- drivers/drivers-x2600/include/x2600_hal_aic.h | 4 ++-- drivers/drivers-x2600/src/x2600_hal_pdma.c | 12 ++++++------ 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/drivers-x16xx/include/x16xx_hal_aic.h b/drivers/drivers-x16xx/include/x16xx_hal_aic.h index 64e089f2..3bc8e5dc 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 70e75bd6..ece759a8 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 a7dc549a..190d7aa5 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 c45a7028..08391d64 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 f3c37d48..6229b9db 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; } -- Gitee