Ignore:
Timestamp:
May 14, 2015, 10:45:44 PM (9 years ago)
Author:
alain
Message:

Introduce a new driver for SD Card using the 4bits wide SD bus.
THere is now 5 supported block device peripherals, and the driver names
have been re-organised: reset_ioc_xxx with xxx in (bdv, hba, rdk, spi, sdc)

File:
1 edited

Legend:

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

    r962 r992  
    66 * \brief  API for accessing the disk controller
    77 *
    8  * \note   These functions call the specific disk controller driver depending
    9  *         on the USE_IOC_BDV, USE_IOC_SDC or USE_IOC_RDK constants
     8 * \note   These functions call the specific disk controller driver depending on
     9 *          USE_IOC_BDV / USE_IOC_SDC / USE_IOC_RDK / USE_IOC_SDC / USE_IOC_SPI
    1010 */
    1111
     
    1313#include <defs.h>
    1414
    15 #if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA) != 1
     15#if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA + USE_IOC_SPI) != 1
    1616#   error "in reset_ioc.c : undefined disk controller in hard_config.h"
    1717#endif
    1818
    1919#if USE_IOC_SDC
    20 #include <reset_sdc.h>
     20#include <reset_ioc_sdc.h>
    2121#endif
    2222
    2323#if USE_IOC_BDV
    24 #include <reset_bdv.h>
     24#include <reset_ioc_bdv.h>
    2525#endif
    2626
    2727#if USE_IOC_RDK
    28 #include <reset_rdk.h>
     28#include <reset_ioc_rdk.h>
    2929#endif
    3030
    3131#if USE_IOC_HBA
    32 #include <reset_hba.h>
     32#include <reset_ioc_hba.h>
     33#endif
     34
     35#if USE_IOC_SPI
     36#include <reset_ioc_spi.h>
    3337#endif
    3438
     
    4751#elif USE_IOC_HBA
    4852    return reset_hba_init();
     53#elif USE_IOC_SPI
     54    return reset_spi_init();
    4955#else
    5056#   error "in reset_ioc_init.c : undefined disk controller in hard_config.h"
     
    7278#elif USE_IOC_HBA
    7379    return reset_hba_read(lba, buffer, count);
     80#elif USE_IOC_SPI
     81    return reset_spi_read(lba, buffer, count);
    7482#else
    7583#   error "in reset_ioc_read.c : undefined disk controller in hard_config.h"
Note: See TracChangeset for help on using the changeset viewer.