Revert "misc: Remove generic PRINT macros from power samples"
This reverts commit 6f992e2119
.
Change-Id: I14767699b02d147a245db1cb8ac5cef430782232
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
ebf02d4b7d
commit
7bc48f69c2
2 changed files with 8 additions and 4 deletions
|
@ -2,4 +2,3 @@ CONFIG_STDOUT_CONSOLE=y
|
|||
CONFIG_SYS_POWER_MANAGEMENT=y
|
||||
CONFIG_DEVICE_POWER_MANAGEMENT=y
|
||||
CONFIG_TICKLESS_IDLE=y
|
||||
CONFIG_SYS_LOG=y
|
||||
|
|
|
@ -17,12 +17,17 @@
|
|||
#include <zephyr.h>
|
||||
#include <power.h>
|
||||
|
||||
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_INFO
|
||||
#include <misc/sys_log.h>
|
||||
#if defined(CONFIG_STDOUT_CONSOLE)
|
||||
#include <stdio.h>
|
||||
#define PRINT printf
|
||||
#else
|
||||
#include <misc/printk.h>
|
||||
#define PRINT printk
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
SYS_LOG_INF("Power management template!");
|
||||
PRINT("Power management template!\n");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue