@@ -18,6 +18,7 @@ target_sources(app
18
18
../../../app/src/modules/app/app.c
19
19
../../../app/src/common/message_channel.c
20
20
../../../app/src/modules/cloud/cloud_module.c
21
+ ../../../app/src/modules/battery/battery.c
21
22
)
22
23
23
24
target_include_directories (app PRIVATE src)
@@ -27,7 +28,10 @@ zephyr_include_directories(${ZEPHYR_BASE}/subsys/testsuite/include)
27
28
zephyr_include_directories(../../../app/src/common)
28
29
zephyr_include_directories(../../../app/src/modules/cloud)
29
30
zephyr_include_directories(${NRF_DIR} /subsys/net/lib/nrf_cloud/include )
31
+ zephyr_include_directories(../../../app/src/modules/battery)
30
32
zephyr_include_directories(${NRF_DIR} /../modules/lib/cjson)
33
+ zephyr_include_directories(${ZEPHYR_NRFXLIB_MODULE_DIR} /nrf_fuel_gauge/include /)
34
+
31
35
32
36
target_link_options (app PRIVATE --whole-archive)
33
37
@@ -52,4 +56,12 @@ target_compile_definitions(app PRIVATE
52
56
-DCONFIG_LTE_LC_PSM_MODULE=1
53
57
-DCONFIG_APP_MODULE_RECV_BUFFER_SIZE=1024
54
58
-DCOAP_CONTENT_FORMAT_APP_JSON=50
59
+ -DCONFIG_APP_BATTERY_LOG_LEVEL=4
60
+ -DCONFIG_APP_BATTERY_THREAD_STACK_SIZE=4096
61
+ -DCONFIG_APP_PAYLOAD_CHANNEL_BUFFER_MAX_SIZE=100
62
+ -DCONFIG_APP_BATTERY_EXEC_TIME_SECONDS_MAX=3
63
+ -DCONFIG_APP_BATTERY_WATCHDOG_TIMEOUT_SECONDS=120
55
64
)
65
+
66
+ set_property (SOURCE ${../../..}/app/src/modules/battery/battery.c PROPERTY COMPILE_FLAGS
67
+ "-include ${CMAKE_CURRENT_SOURCE_DIR} /src/redef.h" )
0 commit comments