Changeset 992 for trunk/softs/tsar_boot/src/reset_ioc.c
- Timestamp:
- May 14, 2015, 10:45:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/reset_ioc.c
r962 r992 6 6 * \brief API for accessing the disk controller 7 7 * 8 * \note These functions call the specific disk controller driver depending 9 * on the USE_IOC_BDV, USE_IOC_SDC or USE_IOC_RDK constants8 * \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 10 10 */ 11 11 … … 13 13 #include <defs.h> 14 14 15 #if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA ) != 115 #if (USE_IOC_BDV + USE_IOC_SDC + USE_IOC_RDK + USE_IOC_HBA + USE_IOC_SPI) != 1 16 16 # error "in reset_ioc.c : undefined disk controller in hard_config.h" 17 17 #endif 18 18 19 19 #if USE_IOC_SDC 20 #include <reset_ sdc.h>20 #include <reset_ioc_sdc.h> 21 21 #endif 22 22 23 23 #if USE_IOC_BDV 24 #include <reset_ bdv.h>24 #include <reset_ioc_bdv.h> 25 25 #endif 26 26 27 27 #if USE_IOC_RDK 28 #include <reset_ rdk.h>28 #include <reset_ioc_rdk.h> 29 29 #endif 30 30 31 31 #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> 33 37 #endif 34 38 … … 47 51 #elif USE_IOC_HBA 48 52 return reset_hba_init(); 53 #elif USE_IOC_SPI 54 return reset_spi_init(); 49 55 #else 50 56 # error "in reset_ioc_init.c : undefined disk controller in hard_config.h" … … 72 78 #elif USE_IOC_HBA 73 79 return reset_hba_read(lba, buffer, count); 80 #elif USE_IOC_SPI 81 return reset_spi_read(lba, buffer, count); 74 82 #else 75 83 # error "in reset_ioc_read.c : undefined disk controller in hard_config.h"
Note: See TracChangeset
for help on using the changeset viewer.