Log on first UART by default. Long only errors by default

This commit is contained in:
Vincent Barrilliot 2023-04-16 16:10:46 +02:00
parent 0628f7ce5d
commit e84eeaec39
3 changed files with 11 additions and 3 deletions

View file

@ -81,7 +81,15 @@ endif
export AS = vasmm68k_mot
export ASFLAGS = $(VASM_CPU) -quiet -Fvobj -nowarn=62 -DMODEL=$(MODEL_NUMBER)
export CC = vc
export DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER) # -DKBD_POLLED
DEFINES = -DCPU=$(CPU_NUMBER) -DMODEL=$(MODEL_NUMBER) # -DKBD_POLLED
# Logging level
ifeq ("$(DEFAULT_LOG_LEVEL)","")
else
DEFINES := $(DEFINES) -DDEFAULT_LOG_LEVEL=$(DEFAULT_LOG_LEVEL)
endif
export DEFINES:=$(DEFINES)
# When compiling an image for flash, size to which the image must be padded
PAD_FLASH_SIZE=524288

View file

@ -33,7 +33,7 @@ static void (*do_log)(const char* message);
static void log_to_uart(const char* message);
static void log_to_screen(const char* message);
#define UART_COM1 1
#define UART_COM1 0
/* Can use the buzzer as sound clues */
void buzzer_on(void) {

View file

@ -16,7 +16,7 @@
* Settings
*/
#ifndef DEFAULT_LOG_LEVEL
#define DEFAULT_LOG_LEVEL LOG_TRACE
#define DEFAULT_LOG_LEVEL LOG_ERROR
#endif
#ifndef LOG_CHANNEL