Ignore:
Timestamp:
May 16, 2013, 3:01:37 PM (11 years ago)
Author:
cfuguet
Message:

Modifications in tsar/trunk/softs/tsar_boot:

  • Improving the boot_ioc_read when using a SD card in FPGA platform.
  • Adding some instrumentation on the SD card driver (under preprocessor conditional directives).
  • Including Doxyfile for generate documentation using doxygen.
  • Improving the Makefile to include doc generation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/spi.c

    r292 r388  
    1 /*
     1/**
    22 * \file    spi.c
    3  * \data    31 August 2012
     3 * \date    31 August 2012
    44 * \author  Cesar Fuguet <cesar.fuguet-tortolero@lip6.fr>
    55 */
     
    1515static void _spi_wait_if_busy(struct spi_dev * spi)
    1616{
    17     volatile register int delay;
     17    register int delay;
    1818
    1919    while(SPI_IS_BUSY(spi))
    2020    {
    21         for (delay = 0; delay < 10000; delay++);
     21        for (delay = 0; delay < 100; delay++);
    2222    }
    2323}
     
    5858        iowrite8(&spi->rx_tx[index % 4], byte);
    5959        _spi_init_transfer(spi);
    60 
    61         asm volatile("sync");
    6260    }
    6361    _spi_wait_if_busy(spi);
     
    104102    if (spi_freq > 0 && sys_freq > 0)
    105103        iowrite32(&spi->divider, _spi_calc_divider_value(spi_freq, sys_freq));
    106 
    107104}
    108105
Note: See TracChangeset for help on using the changeset viewer.