diff --git a/.gitignore b/.gitignore index 03be194..7ae453f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ -# Claude Code configuration +# Codex / Claude Code configuration .claude/ .specify/ .spec-workflow +.codex # Common IDE files .vscode/ diff --git a/L2_Core/utils/inc/ek_evoke.h b/L2_Core/utils/inc/ek_evoke.h index 79d2d63..36218a9 100644 --- a/L2_Core/utils/inc/ek_evoke.h +++ b/L2_Core/utils/inc/ek_evoke.h @@ -15,7 +15,7 @@ #include "ek_conf.h" -#if EK_USE_RTOS == 0 +#if EK_USE_RTOS == 0 && EK_EVOKE_ENABLE == 1 # include "ek_def.h" # include "ek_list.h" @@ -280,6 +280,6 @@ void ek_evoke_light_sleep(void); */ void ek_evoke_deep_sleep(void); -#endif // EK_USE_RTOS +#endif // EK_USE_RTOS == 0 && EK_EVOKE_ENABLE == 1 #endif // EK_EVOKE_H diff --git a/L2_Core/utils/src/ek_evoke.c b/L2_Core/utils/src/ek_evoke.c index 86861eb..a68aa46 100644 --- a/L2_Core/utils/src/ek_evoke.c +++ b/L2_Core/utils/src/ek_evoke.c @@ -6,7 +6,7 @@ #include "ek_evoke.h" -#if EK_USE_RTOS == 0 +#if EK_USE_RTOS == 0 && EK_EVOKE_ENABLE == 1 # include "ek_ringbuf.h" # include "ek_mem.h" @@ -427,4 +427,4 @@ __EK_WEAK void ek_evoke_set_timer(uint32_t xtick) __EK_UNUSED(xtick); } -#endif // EK_USE_RTOS +#endif // EK_USE_RTOS == 0 && EK_EVOKE_ENABLE == 1 diff --git a/ek_conf.h b/ek_conf.h index 4cad1b6..8ae0413 100644 --- a/ek_conf.h +++ b/ek_conf.h @@ -38,6 +38,7 @@ * - EK_RINGBUF_ENABLE: 使能通用环形缓冲区模块 * - EK_RINGBUF_SPSC_ENABLE: 使能单生产者单消费者环形缓冲区模块 * - EK_STACK_ENABLE: 使能栈模块 + * - EK_EVOKE_ENABLE: 使能事件驱动模块 * ======================================================================== */ #define EK_EXPORT_ENABLE (0) #define EK_STR_ENABLE (1) @@ -47,6 +48,7 @@ #define EK_RINGBUF_ENABLE (1) #define EK_RINGBUF_SPSC_ENABLE (1) #define EK_STACK_ENABLE (1) +#define EK_EVOKE_ENABLE (1) /* ======================================================================== * 日志模块配置