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 +=\