fix:Fixed kernel error with header protector and header comment description.

Close #I3O4SF

Change-Id: I544cde728fb8131d199a21be440ae02da2fe21fb
This commit is contained in:
zhushengle
2021-04-26 21:13:55 +08:00
parent 8bf166b418
commit 3907238b0f
37 changed files with 681 additions and 785 deletions

View File

@@ -29,8 +29,8 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef LOS_ATOMIC_H
#define LOS_ATOMIC_H
#ifndef _LOS_ATOMIC_H
#define _LOS_ATOMIC_H
#include "los_compiler.h"
@@ -47,5 +47,5 @@ extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* LOS_ATOMIC_H */
#endif /* _LOS_ATOMIC_H */

View File

@@ -30,12 +30,12 @@
*/
/**
* @defgroup los_hw hardware
* @defgroup los_context hardware
* @ingroup kernel
*/
#ifndef _LOS_HW_H
#define _LOS_HW_H
#ifndef _LOS_CONTEXT_H
#define _LOS_CONTEXT_H
#include "los_compiler.h"
@@ -45,8 +45,8 @@ extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
/* *
* @ingroup los_hw
/**
* @ingroup los_context
* @brief: Task stack initialization.
*
* @par Description:
@@ -61,12 +61,13 @@ extern "C" {
*
* @retval: context Type#TaskContext *.
* @par Dependency:
* <ul><li>los_hw.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_context.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
extern VOID *HalTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
/**
* @ingroup los_hw
* @ingroup los_context
* @brief: Function to sys exit.
*
* @par Description:
@@ -79,12 +80,12 @@ extern VOID *HalTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
*
* @retval: None.
* @par Dependency:
* <ul><li>los_hw.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_context.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
LITE_OS_SEC_TEXT_MINOR NORETURN VOID HalSysExit(VOID);
/* *
/**
* @ingroup los_context
* @brief: Task scheduling Function.
*
@@ -115,13 +116,10 @@ VOID HalIntRestore(UINTPTR intSave);
UINTPTR HalIntUnLock(VOID);
#define LOS_IntUnLock HalIntUnLock
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* _LOS_HW_H */
#endif /* _LOS_CONTEXT_H */

View File

@@ -41,7 +41,7 @@ extern "C" {
#endif /* __cplusplus */
/* *
* @ingroup los_config
* @ingroup los_interrupt
* Configuration item for interrupt with argument
*/
#ifndef OS_HWI_WITH_ARG
@@ -66,8 +66,8 @@ UINT32 HalIsIntActive(VOID);
#define OS_INT_ACTIVE (HalIsIntActive())
#define OS_INT_INACTIVE (!(OS_INT_ACTIVE))
/* *
* @ingroup los_hwi
/**
* @ingroup los_interrupt
* @brief Delete hardware interrupt.
*
* @par Description:
@@ -86,13 +86,13 @@ UINT32 HalIsIntActive(VOID);
* @retval #OS_ERRNO_HWI_NUM_INVALID 0x02000900: Invalid interrupt number.
* @retval #LOS_OK 0 : The interrupt is successfully delete.
* @par Dependency:
* <ul><li>los_hwi.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_interrupt.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
extern UINT32 HalHwiDelete(HWI_HANDLE_T hwiNum);
/* *
* @ingroup los_hwi
/**
* @ingroup los_interrupt
* @brief Create a hardware interrupt.
*
* @par Description:
@@ -118,7 +118,7 @@ extern UINT32 HalHwiDelete(HWI_HANDLE_T hwiNum);
* @retval #OS_ERRNO_HWI_ALREADY_CREATED 0x02000904: The interrupt handler being created has already been created.
* @retval #LOS_OK 0 : The interrupt is successfully created.
* @par Dependency:
* <ul><li>los_hwi.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_interrupt.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
extern UINT32 HalHwiCreate(HWI_HANDLE_T hwiNum,
@@ -134,4 +134,3 @@ extern UINT32 HalHwiCreate(HWI_HANDLE_T hwiNum,
#endif /* __cplusplus */
#endif /* _LOS_INTERRUPT_H */

View File

@@ -29,8 +29,8 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef LOS_TIMER_H
#define LOS_TIMER_H
#ifndef _LOS_TIMER_H
#define _LOS_TIMER_H
#include "los_compiler.h"
@@ -90,7 +90,7 @@ VOID HalEnterSleep(LOS_SysSleepEnum sleep);
UINT64 HalGetTickCycle(UINT32 *period);
/**
* @ingroup los_hwi
* @ingroup los_timer
* @brief reconfig systick, and clear SysTick_IRQn.
*
* @par Description:
@@ -106,7 +106,7 @@ UINT64 HalGetTickCycle(UINT32 *period);
*
* @retval None.
* @par Dependency:
* <ul><li>los_hwi.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_timer.h: the header file that contains the API declaration.</li></ul>
* @see None
*/
extern VOID HalSysTickReload(UINT64 nextResponseTime);
@@ -117,4 +117,4 @@ extern VOID HalSysTickReload(UINT64 nextResponseTime);
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif
#endif /* _LOS_TIMER_H */