From 826d17c143cd6e5b47318c6eaefcc0cb782aa0d6 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Tue, 7 May 2019 21:29:14 +0200 Subject: [PATCH] fix(Makefile): compile for card10 by default --- bootloader/Makefile | 3 ++- sdk/Libraries/Boards/card10/Source/board.c | 3 ++- testapp/Makefile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bootloader/Makefile b/bootloader/Makefile index 7cc0db7b..e188eecd 100644 --- a/bootloader/Makefile +++ b/bootloader/Makefile @@ -53,7 +53,8 @@ COMPILER=GCC # Specify the board used ifeq "$(BOARD)" "" -BOARD=EvKit_V1 +#BOARD=EvKit_V1 +BOARD=card10 endif # This is the path to the CMSIS root directory diff --git a/sdk/Libraries/Boards/card10/Source/board.c b/sdk/Libraries/Boards/card10/Source/board.c index 15e1e565..aebe0ffa 100644 --- a/sdk/Libraries/Boards/card10/Source/board.c +++ b/sdk/Libraries/Boards/card10/Source/board.c @@ -103,7 +103,8 @@ int Board_Init(void) {PORT_0, PIN_31, GPIO_FUNC_OUT, GPIO_PAD_NONE}, // ECG switch }; const unsigned int num_pins = (sizeof(pins) / sizeof(gpio_cfg_t)); - for (int i = 0; i < num_pins; i++) { + int i; + for (i = 0; i < num_pins; i++) { GPIO_OutClr(&pins[i]); GPIO_Config(&pins[i]); } diff --git a/testapp/Makefile b/testapp/Makefile index ff77fa65..02f653b5 100644 --- a/testapp/Makefile +++ b/testapp/Makefile @@ -53,7 +53,8 @@ COMPILER=GCC # Specify the board used ifeq "$(BOARD)" "" -BOARD=EvKit_V1 +#BOARD=EvKit_V1 +BOARD=card10 endif # This is the path to the CMSIS root directory -- GitLab