We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2691f commit 383e2bdCopy full SHA for 383e2bd
examples/zephyr-battery/src/main.c
@@ -6,7 +6,8 @@
6
#include <zephyr/drivers/regulator.h>
7
#include <zephyr/drivers/adc.h>
8
#include <zephyr/kernel.h>
9
-
+#include <zephyr/logging/log.h>
10
+LOG_MODULE_REGISTER(battery, CONFIG_LOG_DEFAULT_LEVEL);
11
12
#if !DT_NODE_EXISTS(DT_PATH(zephyr_user)) || \
13
!DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels)
examples/zephyr-battery/zephyr/prj.conf
@@ -1,3 +1,10 @@
1
CONFIG_GPIO=y
2
CONFIG_ADC=y
3
-CONFIG_ADC_ASYNC=y
+CONFIG_ADC_ASYNC=y
4
+
5
+CONFIG_SERIAL=y
+CONFIG_STDOUT_CONSOLE=y
+CONFIG_PRINTK=y
+CONFIG_LOG=y
+CONFIG_LOG_PRINTK=y
+CONFIG_LOG_MODE_IMMEDIATE=y
0 commit comments