mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 16:28:32 +03:00
uart_console: Re-start watchdog during busy-waiting for serial chars
This commit is contained in:
@@ -129,7 +129,8 @@ extern uint32_t UART_GetChar( void )
|
|||||||
UART_Configure(CONSOLE_BAUDRATE, BOARD_MCK);
|
UART_Configure(CONSOLE_BAUDRATE, BOARD_MCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( (pUart->UART_SR & UART_SR_RXRDY) == 0 ) ;
|
while ( (pUart->UART_SR & UART_SR_RXRDY) == 0 )
|
||||||
|
WDT_Restart(WDT);
|
||||||
|
|
||||||
return pUart->UART_RHR ;
|
return pUart->UART_RHR ;
|
||||||
}
|
}
|
||||||
@@ -281,6 +282,7 @@ extern uint32_t UART_GetInteger( uint32_t* pdwValue )
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
WDT_Restart(WDT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user