From 754ec9beea695f502d5872fefad65ec3e6804cae Mon Sep 17 00:00:00 2001 From: Andrey Perminov Date: Fri, 25 Jun 2021 08:30:53 -0700 Subject: [PATCH] Set SPI as default port and enable DEBUG_COMM for console_app --- BMLite_examples/console_app/app.mk | 1 + BMLite_examples/console_app/src/main.c | 3 ++- HAL_Driver/RaspberryPi/RaspberryPi.mk | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BMLite_examples/console_app/app.mk b/BMLite_examples/console_app/app.mk index 21cd83c..87eefb3 100644 --- a/BMLite_examples/console_app/app.mk +++ b/BMLite_examples/console_app/app.mk @@ -24,4 +24,5 @@ C_INC += $(addprefix -I,$(PATH_INC)) CFLAGS +=\ -DBMLITE_USE_CALLBACK \ + -DDEBUG_COMM diff --git a/BMLite_examples/console_app/src/main.c b/BMLite_examples/console_app/src/main.c index 3df451b..ea29627 100644 --- a/BMLite_examples/console_app/src/main.c +++ b/BMLite_examples/console_app/src/main.c @@ -114,7 +114,7 @@ int main (int argc, char **argv) int c; rpi_initparams_t rpi_params; - rpi_params.iface = COM_INTERFACE; + rpi_params.iface = SPI_INTERFACE; rpi_params.hcp_comm = &hcp_chain; rpi_params.baudrate = 921600; rpi_params.timeout = 5; @@ -133,6 +133,7 @@ int main (int argc, char **argv) rpi_params.baudrate = atoi(optarg); break; case 'p': + rpi_params.iface = COM_INTERFACE; rpi_params.port = optarg; break; case 't': diff --git a/HAL_Driver/RaspberryPi/RaspberryPi.mk b/HAL_Driver/RaspberryPi/RaspberryPi.mk index c6eb451..72c028e 100644 --- a/HAL_Driver/RaspberryPi/RaspberryPi.mk +++ b/HAL_Driver/RaspberryPi/RaspberryPi.mk @@ -2,7 +2,6 @@ HAL = $(ROOT)/HAL_Driver/RaspberryPi -PATH := /work/devtools/gcc-arm-hf/bin:$(PATH) CC := arm-linux-gnueabihf-gcc CFLAGS +=\