Skip to content

Commit

Permalink
Change USART6 to USART1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtgbe committed Aug 27, 2020
1 parent d8952b2 commit 5406ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Target/ARMCM4_STM32F4_ET4/Boot/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void FileFirmwareUpdateCompletedHook(void)
* 100ms.
*/
timeoutTime = TimerGet() + 100;
while (LL_USART_IsActiveFlag_TC(USART6) == 0)
while (LL_USART_IsActiveFlag_TC(USART1) == 0)
{
/* check for timeout */
if (TimerGet() > timeoutTime)
Expand Down Expand Up @@ -475,11 +475,11 @@ void FileFirmwareUpdateLogHook(blt_char *info_string)
while(*info_string != '\0')
{
/* write byte to transmit holding register */
LL_USART_TransmitData8(USART6, *info_string);
LL_USART_TransmitData8(USART1, *info_string);
/* set timeout time to wait for transmit completion. */
timeoutTime = TimerGet() + 10;
/* wait for tx holding register to be empty */
while (LL_USART_IsActiveFlag_TXE(USART6) == 0)
while (LL_USART_IsActiveFlag_TXE(USART1) == 0)
{
/* keep the watchdog happy */
CopService();
Expand Down

0 comments on commit 5406ade

Please sign in to comment.