Skip to content

Commit

Permalink
add a macro judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
shensheng070632 committed Jan 15, 2019
1 parent 75471f9 commit 12a4486
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions arch/arm/arm-m/cortex-m0/los_exc.ph
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */

#if (LOSCFG_PLATFORM_EXC == YES)
typedef enum
{
OS_EXC_TYPE_CONTEXT = 0,
Expand Down Expand Up @@ -102,11 +102,11 @@ typedef struct tagExcInfoCallBackArray
#endif

extern VOID osExcRegister(EXC_INFO_TYPE uwType, EXC_INFO_SAVE_CALLBACK pFunc, VOID *pArg);

#endif
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

#endif
#endif
4 changes: 2 additions & 2 deletions arch/arm/arm-m/cortex-m3/los_exc.ph
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */

#if (LOSCFG_PLATFORM_EXC == YES)
typedef enum
{
OS_EXC_TYPE_CONTEXT = 0,
Expand Down Expand Up @@ -102,7 +102,7 @@ typedef struct tagExcInfoCallBackArray
#endif

extern VOID osExcRegister(EXC_INFO_TYPE uwType, EXC_INFO_SAVE_CALLBACK pFunc, VOID *pArg);

#endif
#ifdef __cplusplus
#if __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/arm-m/cortex-m7/los_exc.ph
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */

#if (LOSCFG_PLATFORM_EXC == YES)
typedef enum
{
OS_EXC_TYPE_CONTEXT = 0,
Expand Down Expand Up @@ -89,7 +89,7 @@ typedef struct tagExcInfoCallBackArray
#define MAX_EXC_MEM_SIZE ( 4 + MAX_SCENE_INFO_SIZE + MAX_TSK_INFO_SIZE + MAX_QUEUE_INFO_SIZE + MAX_INT_INFO_SIZE + MAX_SWITCH_INFO_SIZE + MAX_MEM_INFO_SIZE + 4)

VOID osExcRegister(EXC_INFO_TYPE uwType, EXC_INFO_SAVE_CALLBACK pFunc, VOID* pArg);

#endif
#ifdef __cplusplus
#if __cplusplus
}
Expand Down

0 comments on commit 12a4486

Please sign in to comment.