[console] move the history buffer into static memory, remove console_init

No need to malloc this memory if it's always going to be initialized
anyway. Add history disabling switch to a few targets to make sure both
builds are tested.
This commit is contained in:
Travis Geiselbrecht
2020-05-17 16:12:47 -07:00
parent 0175e27ac5
commit ca800ac932
5 changed files with 7 additions and 27 deletions

View File

@@ -15,6 +15,7 @@ GLOBAL_DEFINES += SIFIVE_FREQ=16000000
MODULE_SRCS := $(LOCAL_DIR)/target.c
# set some global defines based on capability
GLOBAL_DEFINES += CONSOLE_ENABLE_HISTORY=0
GLOBAL_DEFINES += PLATFORM_HAS_DYNAMIC_TIMER=1
GLOBAL_DEFINES += ARCH_RISCV_CLINT_BASE=0x02000000
GLOBAL_DEFINES += ARCH_RISCV_MTIME_RATE=32768

View File

@@ -6,6 +6,7 @@ STELLARIS_CHIP := LM4F120H5QR
PLATFORM := stellaris
GLOBAL_DEFINES += \
CONSOLE_ENABLE_HISTORY=0 \
TARGET_HAS_DEBUG_LED=1 \
CRYSTAL_FREQ=16000000