I working on Asset_tracker_v2. I need to add event based custom module to the application Asset_tracker_v2. I created follwoing files:
A. In the src/events folder
1. bms_event_module.h and included event_manger.h in it.
2. bms_event_module.c and included bms_module_event.h in it.
3. Added bms_module_event.c to target sources CMakeText File as below:
target_sources(app PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/app_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/cloud_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/gps_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/modem_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/data_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/sensor_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/ui_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/debug_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/util_module_event.c
${CMAKE_CURRENT_SOURCE_DIR}/led_state_event.c
${CMAKE_CURRENT_SOURCE_DIR}/bms_module_event.c
)
B. In the src/modules folder:
4. bms_module.c file and included required files.
5. Kconfig.bms_module file with contents :
#*************************
menuconfig BMS_MODULE
bool "Bms module"
default y
if BMS_MODULE
config BMS_THREAD_STACK_SIZE
int "BMS module thread stack size"
default 512
endif # BMS_MODULE
module = BMS_MODULE
module-str = bms module
source "subsys/logging/Kconfig.template.log_config"
The issues are:
1. There is no dependecies shown in bms_module.c file in the left side pane as shown in attached image
2. The Build error appears , while the file bms_module_event.h is included the c files as mentioned above

