Skip to content

Commit ffd1c70

Browse files
martintvadamkondraciuk
authored andcommitted
Playing around, measuring power.
1 parent b83eabe commit ffd1c70

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

samples/hello_world/prj.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
# nothing here
2+
CONFIG_SERIAL=n # This disables UART which draws power.
3+
CONFIG_DEBUG=y
4+
CONFIG_DEBUG_INFO=y
5+
CONFIG_PRINTK=n
6+
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
7+
CONFIG_SYSTEM_CLOCK_NO_WAIT=y

samples/hello_world/src/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <stdio.h>
7+
#include <zephyr/kernel.h>
88

99
int main(void)
1010
{
11-
printf("Hello World! %s\n", CONFIG_BOARD_TARGET);
12-
11+
k_sleep(K_FOREVER);
1312
return 0;
1413
}

0 commit comments

Comments
 (0)