diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-26 12:55:02 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-31 15:04:49 -0400 |
commit | d2e8ee55c568629c55b449b79417243af100cb64 (patch) | |
tree | 8b5380a4ca217e882c3550f3b9ecdcf808788c71 /wirish/boards/maple_mini | |
parent | 64d5231553b13511d52506666711a9303106dfc1 (diff) | |
download | librambutan-d2e8ee55c568629c55b449b79417243af100cb64.tar.gz librambutan-d2e8ee55c568629c55b449b79417243af100cb64.zip |
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 <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/boards/maple_mini')
-rw-r--r-- | wirish/boards/maple_mini/board.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <wirish/wirish_types.h> /* 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] = { |