From d2e8ee55c568629c55b449b79417243af100cb64 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Thu, 26 Jul 2012 12:55:02 -0400 Subject: Hack: Provide a hook so Mini doesn't disable JTAG/SWD. The nonexistence of a configuration system is starting to become kind of a pain. Oh well; let's keep piling hacks on until things break. Signed-off-by: Marti Bolivar --- wirish/boards/maple_mini/board.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wirish') diff --git a/wirish/boards/maple_mini/board.cpp b/wirish/boards/maple_mini/board.cpp index 599cb66..009ec51 100644 --- a/wirish/boards/maple_mini/board.cpp +++ b/wirish/boards/maple_mini/board.cpp @@ -39,9 +39,11 @@ #include /* Since we want the Serial Wire/JTAG pins as GPIOs, disable both SW - * and JTAG debug support */ + * and JTAG debug support, unless configured otherwise. */ void boardInit(void) { +#ifndef CONFIG_MAPLE_MINI_NO_DISABLE_DEBUG disableDebugPorts(); +#endif } extern const stm32_pin_info PIN_MAP[BOARD_NR_GPIO_PINS] = { -- cgit v1.2.3