Set SPI as default port and enable DEBUG_COMM for console_app

This commit is contained in:
Andrey Perminov 2021-06-25 08:30:53 -07:00
parent a70c45b251
commit 754ec9beea
3 changed files with 3 additions and 2 deletions

View File

@ -24,4 +24,5 @@ C_INC += $(addprefix -I,$(PATH_INC))
CFLAGS +=\ CFLAGS +=\
-DBMLITE_USE_CALLBACK \ -DBMLITE_USE_CALLBACK \
-DDEBUG_COMM

View File

@ -114,7 +114,7 @@ int main (int argc, char **argv)
int c; int c;
rpi_initparams_t rpi_params; rpi_initparams_t rpi_params;
rpi_params.iface = COM_INTERFACE; rpi_params.iface = SPI_INTERFACE;
rpi_params.hcp_comm = &hcp_chain; rpi_params.hcp_comm = &hcp_chain;
rpi_params.baudrate = 921600; rpi_params.baudrate = 921600;
rpi_params.timeout = 5; rpi_params.timeout = 5;
@ -133,6 +133,7 @@ int main (int argc, char **argv)
rpi_params.baudrate = atoi(optarg); rpi_params.baudrate = atoi(optarg);
break; break;
case 'p': case 'p':
rpi_params.iface = COM_INTERFACE;
rpi_params.port = optarg; rpi_params.port = optarg;
break; break;
case 't': case 't':

View File

@ -2,7 +2,6 @@
HAL = $(ROOT)/HAL_Driver/RaspberryPi HAL = $(ROOT)/HAL_Driver/RaspberryPi
PATH := /work/devtools/gcc-arm-hf/bin:$(PATH)
CC := arm-linux-gnueabihf-gcc CC := arm-linux-gnueabihf-gcc
CFLAGS +=\ CFLAGS +=\