Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Claude Code configuration
# Codex / Claude Code configuration
.claude/
.specify/
.spec-workflow
.codex

# Common IDE files
.vscode/
Expand Down
4 changes: 2 additions & 2 deletions L2_Core/utils/inc/ek_evoke.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Comment on lines 16 to 20

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Header doc/@note currently states the module is available when EK_USE_RTOS == 0, but this header is now additionally gated by EK_EVOKE_ENABLE == 1. Please update the top-of-file notes (or add a new one) so the documentation matches the new compile-time condition.

Copilot uses AI. Check for mistakes.
# include "ek_list.h"
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions L2_Core/utils/src/ek_evoke.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions ek_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

/* ========================================================================
* 日志模块配置
Expand Down
Loading