Force SRST high. Hopefully fixes target getting stuck in reset.

This commit is contained in:
Gareth McMullin 2011-02-17 18:00:03 +13:00
parent e28edc0899
commit 660e861725
1 changed files with 5 additions and 0 deletions

View File

@ -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 */