conf_access.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 #ifndef _CONF_ACCESS_H_
00016 #define _CONF_ACCESS_H_
00017 
00018 
00019 // Active the Logical Unit
00020 #define  LUN_0                DISABLE   // On-Chip flash vitual memory
00021 #define  LUN_1                DISABLE   // NF 2KB
00022 #define  LUN_2                DISABLE   // NF 512B
00023 #define  LUN_3                ENABLE    // Data Flash
00024 #define  LUN_4                DISABLE
00025 #define  LUN_5                DISABLE
00026 #define  LUN_6                DISABLE
00027 #define  LUN_7                DISABLE
00028 #define  LUN_USB              DISABLE
00029 
00030 // LUN 0 DEFINE
00031 #define  LUN_0_INCLUDE                           "lib_mem\virtual_mem\virtual_mem.h"
00032 #define  Lun_0_test_unit_ready()                 virtual_test_unit_ready()
00033 #define  Lun_0_read_capacity(nb_sect)            virtual_read_capacity(nb_sect)
00034 #define  Lun_0_wr_protect()                      virtual_wr_protect()
00035 #define  Lun_0_removal()                         virtual_removal()
00036 #define  Lun_0_read_10(ad, sec)                  virtual_read_10(ad, sec)
00037 #define  Lun_0_usb_read()                        virtual_usb_read()
00038 #define  Lun_0_write_10(ad, sec)                 virtual_write_10(ad, sec)
00039 #define  Lun_0_usb_write()                       virtual_usb_write()
00040 #define  Lun_0_ram_2_mem(addr , ram)             virtual_ram_2_mem(addr, ram)
00041 #define  Lun_0_ram_2_mem_write()                 virtual_ram_2_mem_write()
00042 #define  Lun_0_mem_2_ram(addr , ram)             virtual_mem_2_ram(addr, ram)
00043 #define  Lun_0_mem_2_ram_read()                  virtual_mem_2_ram_read()
00044 #define  LUN_0_NAME                              "VIRTUAL_MEM_ON_CHIP"
00045 
00046 // LUN 1 DEFINE
00047 #if (LUN_1 == ENABLE)
00048 #define  NF_2K_MEM                               ENABLE
00049 #else
00050 #define   NF_2K_MEM                               DISABLE
00051 #endif
00052 #define  LUN_1_INCLUDE                           "lib_mem\nf_1x_2kb\nf_mem.h"
00053 #define  Lun_1_test_unit_ready()                 nf_test_unit_ready()
00054 #define  Lun_1_read_capacity(nb_sect)            nf_read_capacity(nb_sect)
00055 #define  Lun_1_wr_protect()                      nf_wr_protect()
00056 #define  Lun_1_removal()                         nf_removal()
00057 #define  Lun_1_read_10(ad, sec)                  nf_read_10(ad, sec)
00058 #define  Lun_1_usb_read()                        nf_usb_read()
00059 #define  Lun_1_write_10(ad, sec)                 nf_write_10(ad, sec)
00060 #define  Lun_1_usb_write()                       nf_usb_write()
00061 #define  Lun_1_ram_2_mem(addr , ram)             TODO
00062 #define  Lun_1_ram_2_mem_write()                 TODO
00063 #define  Lun_1_mem_2_ram(addr , ram)             TODO
00064 #define  Lun_1_mem_2_ram_read()                  TODO
00065 
00066 // LUN 2 DEFINE
00067 #if (LUN_2 == ENABLE)
00068 #define  NF_512_MEM                              ENABLE
00069 #else
00070 #define   NF_512_MEM                             DISABLE
00071 #endif
00072 #define  LUN_2_INCLUDE                           "lib_mem\nf_1x_512\nf_mem.h"
00073 #define  Lun_2_test_unit_ready()                 nf_test_unit_ready()
00074 #define  Lun_2_read_capacity(nb_sect)            nf_read_capacity(nb_sect)
00075 #define  Lun_2_wr_protect()                      nf_wr_protect()
00076 #define  Lun_2_removal()                         nf_removal()
00077 #define  Lun_2_read_10(ad, sec)                  nf_read_10(ad, sec)
00078 #define  Lun_2_usb_read()                        nf_usb_read()
00079 #define  Lun_2_write_10(ad, sec)                 nf_write_10(ad, sec)
00080 #define  Lun_2_usb_write()                       nf_usb_write()
00081 #define  Lun_2_ram_2_mem(addr , ram)             TODO
00082 #define  Lun_2_ram_2_mem_write()                 TODO
00083 #define  Lun_2_mem_2_ram(addr , ram)             TODO
00084 #define  Lun_2_mem_2_ram_read()                  TODO
00085 
00086 // LUN 3 DEFINE
00087 #if (LUN_3 == ENABLE)
00088 #define  DF_MEM                                  ENABLE
00089 #else
00090 #define  DF_MEM                                  DISABLE
00091 #endif
00092 #define  LUN_ID_DF                               LUN_ID_3
00093 #define  LUN_3_INCLUDE                           "lib_mem\df\df_mem.h"
00094 #define  Lun_3_test_unit_ready()                 df_test_unit_ready()
00095 #define  Lun_3_read_capacity(nb_sect)            df_read_capacity(nb_sect)
00096 #define  Lun_3_wr_protect()                      df_wr_protect()
00097 #define  Lun_3_removal()                         df_removal()
00098 #define  Lun_3_read_10(ad, sec)                  df_read_10(ad, sec)
00099 #define  Lun_3_usb_read()                        df_usb_read()
00100 #define  Lun_3_write_10(ad, sec)                 df_write_10(ad, sec)
00101 #define  Lun_3_usb_write()                       df_usb_write()
00102 #define  Lun_3_ram_2_mem(addr , ram)             df_ram_2_df(addr, ram)
00103 #define  Lun_3_ram_2_mem_write()                 df_ram_2_df_write()
00104 #define  Lun_3_mem_2_ram(addr , ram)             df_df_2_ram(addr, ram)
00105 #define  Lun_3_mem_2_ram_read()                  df_df_2_ram_read()
00106 #define  LUN_3_NAME                               "\"On board data flash\""
00107 
00108 // LUN USB DEFINE
00109 #if (LUN_USB == ENABLE)
00110 #define  MEM_USB                                  ENABLE
00111 #else
00112 #define  MEM_USB                                  DISABLE
00113 #endif
00114 #define  LUN_USB_INCLUDE                           "lib_mem\host_mem\host_mem.h"
00115 #define  Lun_usb_test_unit_ready(lun)              host_test_unit_ready(lun)
00116 #define  Lun_usb_read_capacity(lun,nb_sect)        host_read_capacity(lun,nb_sect)
00117 #define  Lun_usb_wr_protect(lun)                   host_wr_protect(lun)
00118 #define  Lun_usb_removal()                         host_removal()
00119 #define  Lun_usb_ram_2_mem(addr , ram)             host_write_10_ram(addr, ram)
00120 #define  Lun_usb_mem_2_ram(addr , ram)             host_read_10_ram(addr, ram)
00121 #define  LUN_USB_NAME                              "\"USB Remote memory\""
00122 
00123 
00124 // ATMEL DEFINE - DO NOT MODIFY
00125 
00126 // Active interface fonction
00127 #define  ACCESS_USB           ENABLED  // USB I/O in control access
00128 #define  ACCESS_STREAM        DISABLED  // Stream I/O in control access
00129 #define  ACCESS_STREAM_RECORD DISABLED // Stream I/O in control access AND RECORD MODE
00130 #define  ACCESS_MEM_TO_RAM    DISABLED  // RAM to Mem I/O in control access
00131 #define  ACCESS_MEM_TO_MEM    DISABLED // Mem to Mem I/O in control access
00132 
00133 
00134 
00135 // Specific option control access
00136 #define  GLOBAL_WR_PROTECT    DISABLED // To manage a global write protection
00137 
00138 
00139 #endif  
00140 

Generated on Fri Jun 15 14:07:32 2007 for Atmel by  doxygen 1.5.1-p1