summaryrefslogtreecommitdiff
path: root/src/include/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/console')
-rw-r--r--src/include/console/cbmem_console.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/console/cbmem_console.h b/src/include/console/cbmem_console.h
index 37ea4d8e89..9e2f14e715 100644
--- a/src/include/console/cbmem_console.h
+++ b/src/include/console/cbmem_console.h
@@ -19,8 +19,14 @@
#ifndef _CONSOLE_CBMEM_CONSOLE_H_
#define _CONSOLE_CBMEM_CONSOLE_H_
+#if CONFIG_CACHE_AS_RAM || !defined(__PRE_RAM__)
void cbmemc_init(void);
void cbmemc_reinit(void);
void cbmemc_tx_byte(unsigned char data);
+#else
+#define cbmemc_init()
+#define cbmemc_reinit()
+#define cbmemc_tx_byte()
+#endif
#endif