From 8f2e36927dee2bbdb3d339c8282ccca881e37692 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 25 Mar 2020 09:21:28 +0100 Subject: [PATCH] bios/boot: update comments. --- litex/soc/software/bios/boot.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 62c83e30..c6c8b958 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -122,7 +122,7 @@ int serialboot(void) printf("Booting from serial...\n"); printf("Press Q or ESC to abort boot completely.\n"); - // send the "magic" request to host for a firmware download + /* send the serialboot "magic" request to Host */ c = str; while(*c) { uart_write(*c); @@ -158,10 +158,8 @@ int serialboot(void) actualcrc = ((int)frame.crc[0] << 8)|(int)frame.crc[1]; goodcrc = crc16(&frame.cmd, frame.payload_length+1); if(actualcrc != goodcrc) { - // clear out the RX buffer - while (uart_read_nonblock()) { - uart_read(); - } + /* Clear out the RX buffer */ + while (uart_read_nonblock()) uart_read(); failed++; if(failed == MAX_FAILED) { printf("Too many consecutive errors, aborting"); -- 2.30.2