00001
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef _CONF_ACCESS_H_
00050 #define _CONF_ACCESS_H_
00051
00052 #include "compiler.h"
00053 #include "board.h"
00054
00055
00058
00059 #define LUN_0 DISABLE
00060 #define LUN_1 ENABLE
00061 #define LUN_2 DISABLE
00062 #define LUN_3 DISABLE
00063 #define LUN_4 DISABLE
00064 #define LUN_5 DISABLE
00065 #define LUN_6 DISABLE
00066 #define LUN_7 DISABLE
00067 #define LUN_USB DISABLE
00068
00069
00070
00072
00073 #define VIRTUAL_MEM LUN_0
00074 #define LUN_ID_VIRTUAL_MEM LUN_ID_0
00075 #define LUN_0_INCLUDE "virtual_mem.h"
00076 #define Lun_0_test_unit_ready virtual_test_unit_ready
00077 #define Lun_0_read_capacity virtual_read_capacity
00078 #define Lun_0_wr_protect virtual_wr_protect
00079 #define Lun_0_removal virtual_removal
00080 #define Lun_0_usb_read_10 virtual_usb_read_10
00081 #define Lun_0_usb_write_10 virtual_usb_write_10
00082 #define Lun_0_mem_2_ram virtual_mem_2_ram
00083 #define Lun_0_ram_2_mem virtual_ram_2_mem
00084 #define LUN_0_NAME "\"On-Chip Virtual Memory\""
00086
00087
00089
00090 #define AT45DBX_MEM LUN_1
00091 #define LUN_ID_AT45DBX_MEM LUN_ID_1
00092 #define LUN_1_INCLUDE "at45dbx_mem.h"
00093 #define Lun_1_test_unit_ready at45dbx_test_unit_ready
00094 #define Lun_1_read_capacity at45dbx_read_capacity
00095 #define Lun_1_wr_protect at45dbx_wr_protect
00096 #define Lun_1_removal at45dbx_removal
00097 #define Lun_1_usb_read_10 at45dbx_usb_read_10
00098 #define Lun_1_usb_write_10 at45dbx_usb_write_10
00099 #define Lun_1_mem_2_ram at45dbx_df_2_ram
00100 #define Lun_1_ram_2_mem at45dbx_ram_2_df
00101 #define LUN_1_NAME "\"AT45DBX Data Flash\""
00103
00104
00106
00107 #define SD_MMC_SPI_MEM LUN_2
00108 #define LUN_ID_SD_MMC_SPI_MEM LUN_ID_2
00109 #define LUN_2_INCLUDE "sd_mmc_spi_mem.h"
00110 #define Lun_2_test_unit_ready sd_mmc_spi_test_unit_ready
00111 #define Lun_2_read_capacity sd_mmc_spi_read_capacity
00112 #define Lun_2_wr_protect sd_mmc_spi_wr_protect
00113 #define Lun_2_removal sd_mmc_spi_removal
00114 #define Lun_2_usb_read_10 sd_mmc_spi_usb_read_10
00115 #define Lun_2_usb_write_10 sd_mmc_spi_usb_write_10
00116 #define Lun_2_mem_2_ram sd_mmc_spi_mem_2_ram
00117 #define Lun_2_ram_2_mem sd_mmc_spi_ram_2_mem
00118 #define LUN_2_NAME "\"SD/MMC Card over SPI\""
00120
00121
00123
00124 #define MEM_USB LUN_USB
00125 #define LUN_ID_MEM_USB LUN_ID_USB
00126 #define LUN_USB_INCLUDE "host_mem.h"
00127 #define Lun_usb_test_unit_ready(lun) host_test_unit_ready(lun)
00128 #define Lun_usb_read_capacity(lun, nb_sect) host_read_capacity(lun, nb_sect)
00129 #define Lun_usb_read_sector_size(lun) host_read_sector_size(lun)
00130 #define Lun_usb_wr_protect(lun) host_wr_protect(lun)
00131 #define Lun_usb_removal() host_removal()
00132 #define Lun_usb_mem_2_ram(addr, ram) host_read_10_ram(addr, ram)
00133 #define Lun_usb_ram_2_mem(addr, ram) host_write_10_ram(addr, ram)
00134 #define LUN_USB_NAME "\"Host Mass-Storage Memory\""
00136
00137
00143
00144 #define memory_start_read_action(nb_sectors)
00145 #define memory_stop_read_action()
00146 #define memory_start_write_action(nb_sectors)
00147 #define memory_stop_write_action()
00149
00150
00152
00153 #define ACCESS_USB DISABLED
00154 #define ACCESS_MEM_TO_RAM ENABLED
00155 #define ACCESS_STREAM DISABLED
00156 #define ACCESS_STREAM_RECORD DISABLED
00157 #define ACCESS_MEM_TO_MEM DISABLED
00158 #define ACCESS_CODEC DISABLED
00159
00160
00161
00163
00164 #define GLOBAL_WR_PROTECT DISABLED
00165
00166
00167
00168 #endif // _CONF_ACCESS_H_