[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:
@@ -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
|
||||
|
||||
@@ -6,6 +6,7 @@ STELLARIS_CHIP := LM4F120H5QR
|
||||
PLATFORM := stellaris
|
||||
|
||||
GLOBAL_DEFINES += \
|
||||
CONSOLE_ENABLE_HISTORY=0 \
|
||||
TARGET_HAS_DEBUG_LED=1 \
|
||||
CRYSTAL_FREQ=16000000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user