Force SRST high. Hopefully fixes target getting stuck in reset.
This commit is contained in:
parent
e28edc0899
commit
660e861725
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue