diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mkbp_event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mkbp_event.h b/include/mkbp_event.h index 5bfe7ac505..d9237dd33b 100644 --- a/include/mkbp_event.h +++ b/include/mkbp_event.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_MKBP_EVENT_H #define __CROS_EC_MKBP_EVENT_H +#include "common.h" + /* * Last time the host received an interrupt. * @@ -46,10 +48,14 @@ struct mkbp_event_source { int (*get_data)(uint8_t *data); }; +#ifdef CONFIG_PLATFORM_EC_MKBP_EVENT +#include "zephyr_mkbp_event.h" +#else #define DECLARE_EVENT_SOURCE(type, func) \ const struct mkbp_event_source __keep \ __no_sanitize_address _evt_src_##type \ __attribute__((section(".rodata.evtsrcs"))) \ = {type, func} +#endif #endif /* __CROS_EC_MKBP_EVENT_H */ |