[stm32f429i-discovery] Replaced the ctrl-c handler in console for a shorter version.

Thanks to ChuckM for that.
This commit is contained in:
Piotr Esden-Tempski
2015-02-05 16:30:59 -08:00
parent 8c6eb9ca57
commit 51dda90570
3 changed files with 17 additions and 31 deletions

View File

@@ -67,11 +67,13 @@ void usart1_isr(void)
if (reg & USART_SR_RXNE) {
recv_buf[recv_ndx_nxt] = USART_DR(CONSOLE_UART);
#ifdef RESET_ON_CTRLC
/* Check for "reset" */
/*
* This bit of code will jump to the ResetHandler if you
* hit ^C
*/
if (recv_buf[recv_ndx_nxt] == '\003') {
/* reset the system */
scb_reset_system();
return; /* not reached */
return; /* never actually reached */
}
#endif
/* Check for "overrun" */