From: Florent Kermarrec Date: Fri, 17 Jul 2020 13:39:39 +0000 (+0200) Subject: liblitesdcard/spisdcard: update comments. X-Git-Tag: 24jan2021_ls180~76 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63c19ff45fa3421d2affd1b987d6a92112a78710;p=litex.git liblitesdcard/spisdcard: update comments. --- diff --git a/litex/soc/software/liblitesdcard/spisdcard.c b/litex/soc/software/liblitesdcard/spisdcard.c index 55854b76..d4c3370d 100644 --- a/litex/soc/software/liblitesdcard/spisdcard.c +++ b/litex/soc/software/liblitesdcard/spisdcard.c @@ -35,7 +35,7 @@ #define min(x, y) (((x) < (y)) ? (x) : (y)) /*-----------------------------------------------------------------------*/ -/* SPI Master low-level functions */ +/* SPI SDCard clocker functions */ /*-----------------------------------------------------------------------*/ static void spi_set_clk_freq(uint32_t clk_freq) { @@ -53,6 +53,10 @@ static void spi_set_clk_freq(uint32_t clk_freq) { spisdcard_clk_divider_write(divider); } +/*-----------------------------------------------------------------------*/ +/* SPI SDCard low-level functions */ +/*----------------------------------------------------------------------*/ + static uint8_t spi_xfer(uint8_t byte) { /* Write byte on MOSI */ spisdcard_mosi_write(byte);