aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGareth McMullin2011-02-17 18:00:03 +1300
committerGareth McMullin2011-02-17 18:00:03 +1300
commit660e861725828de1d6598414b22bfa8e7ee7de04 (patch)
tree1386b228faf4d29c6699b60a4d21bd7f36f9e429 /src
parente28edc08990b9b4780641eb64e56f0e9d4d386de (diff)
Force SRST high. Hopefully fixes target getting stuck in reset.
Diffstat (limited to 'src')
-rw-r--r--src/stm32/platform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stm32/platform.c b/src/stm32/platform.c
index 77ae453..71458b1 100644
--- a/src/stm32/platform.c
+++ b/src/stm32/platform.c
@@ -78,6 +78,11 @@ int platform_init(void)
GPIO_CNF_OUTPUT_PUSHPULL,
LED_RUN | LED_IDLE | LED_ERROR);
+ /* FIXME: This pin in intended to be input, but the TXS0108 fails
+ * to release the device from reset if this floats. */
+ gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
+ GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
+
/* Setup heartbeat timer */
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
systick_set_reload(900000); /* Interrupt us at 10 Hz */