nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
common_module_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#include <zephyr/sys/util_macro.h>
8#include <app_event_manager.h>
10
11#ifndef _COMMON_MODULE_EVENT_H_
12#define _COMMON_MODULE_EVENT_H_
13
14#define COMMON_EVENT_TYPES \
15 COND_CODE_1(CONFIG_NRF_PROFILER_EVENT_TYPE_STRING, \
16 (NRF_PROFILER_ARG_STRING), \
17 (NRF_PROFILER_ARG_U8)), \
18
19#define COMMON_APP_EVENT_INFO_DEFINE(ename, profile_func) \
20 APP_EVENT_INFO_DEFINE(ename, \
21 ENCODE(COMMON_EVENT_TYPES), \
22 ENCODE("type"), \
23 profile_func)
24
25#define COMMON_APP_EVENT_TYPE_DEFINE(ename, log_fn, ev_info_struct, flags) \
26 APP_EVENT_TYPE_DEFINE(ename, \
27 log_fn, \
28 COND_CODE_1(CONFIG_NRF_PROFILER, \
29 (ev_info_struct), \
30 (NULL)), \
31 flags)
32
33#endif /* _COMMON_MODULE_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.