fix: fix some typo issues

change 'LOS_MOUDLE_ID' to 'LOS_MODULE_ID', change 'a interrupt' to 'an interrupt', change 'HalIsIntAcvive' to 'HalIsIntActive' and other typos.

close https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNOQ, https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNR6, https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNTL, https://gitee.com/openharmony/kernel_liteos_m/issues/I3NNQ1
This commit is contained in:
kenneth 2021-04-23 17:19:01 +08:00
parent 3ca3a3e250
commit f6b8cab253
14 changed files with 30 additions and 30 deletions

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -110,7 +110,7 @@ WEAK VOID SysTick_Handler(VOID)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -120,7 +120,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -100,7 +100,7 @@ VOID OsSetVector(UINT32 num, HWI_PROC_FUNC vector)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -110,7 +110,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -110,7 +110,7 @@ WEAK VOID SysTick_Handler(VOID)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -120,7 +120,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -111,7 +111,7 @@ WEAK VOID SysTick_Handler(VOID)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -121,7 +121,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -100,7 +100,7 @@ VOID OsSetVector(UINT32 num, HWI_PROC_FUNC vector)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -110,7 +110,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -344,7 +344,7 @@ extern VOID HalInterrupt(VOID);
/* *
* @ingroup los_hwi
* @brief: Get a interrupt number.
* @brief: Get an interrupt number.
*
* @par Description:
* This API is used to get the current interrupt number.
@ -606,7 +606,7 @@ VOID HalHwiInit();
/**
* @ingroup los_exc
* Cortex-M exception types: ncorrect usage indicating that the divisor is zero during the division operation.
* Cortex-M exception types: Incorrect usage indicating that the divisor is zero during the division operation.
*/
#define OS_EXC_UF_DIVBYZERO 10

View File

@ -107,7 +107,7 @@ WEAK VOID SysTick_Handler(VOID)
/* ****************************************************************************
Function : HalIntNumGet
Description : Get a interrupt number
Description : Get an interrupt number
Input : None
Output : None
Return : Interrupt Indexes number
@ -117,7 +117,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 HalIntNumGet(VOID)
return __get_IPSR();
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}

View File

@ -62,8 +62,8 @@ typedef VOID (*HWI_PROC_FUNC)(VOID *parm);
typedef VOID (*HWI_PROC_FUNC)(void);
#endif
UINT32 HalIsIntAcvive(VOID);
#define OS_INT_ACTIVE (HalIsIntAcvive())
UINT32 HalIsIntActive(VOID);
#define OS_INT_ACTIVE (HalIsIntActive())
#define OS_INT_INACTIVE (!(OS_INT_ACTIVE))
/* *

View File

@ -145,7 +145,7 @@ LITE_OS_SEC_TEXT HWI_HANDLE_FORM_S *HalGetHwiForm(VOID)
}
inline UINT32 HalIsIntAcvive(VOID)
inline UINT32 HalIsIntActive(VOID)
{
return (g_intCount > 0);
}
@ -316,8 +316,8 @@ STATIC VOID ExcInfoDisplay(const LosExcContext *excBufAddr)
WEAK UINT32 HalUnalignedAccessFix(UINTPTR mcause, UINTPTR mepc, UINTPTR mtval, VOID *sp)
{
/* Unaligned acess fixes are not supported by default */
PRINTK("Unaligned acess fixes are not support by default!\n\r");
/* Unaligned access fixes are not supported by default */
PRINTK("Unaligned access fixes are not supported by default!\n\r");
return LOS_NOK;
}
@ -327,7 +327,7 @@ VOID HalExcEntry(const LosExcContext *excBufAddr)
g_excInfo.type = excBufAddr->mcause & 0x1FF;
g_excInfo.context = (LosExcContext *)excBufAddr;
if (g_excInfo.nestCnt > 2) { /* 2: Number of layers of exception nesting */
PRINTK("hard faule!\n\r");
PRINTK("hard fault!\n\r");
goto SYSTEM_DEATH;
}