This file contains the possible external configuration of the memory access control.
Definition in file conf_access.h.
#include "compiler.h"
#include "board.h"
Go to the source code of this file.
Defines | |
Activation of Interface Features | |
#define | ACCESS_CODEC DISABLED |
Codec interface. | |
#define | ACCESS_MEM_TO_MEM DISABLED |
MEM <-> MEM interface. | |
#define | ACCESS_MEM_TO_RAM ENABLED |
MEM <-> RAM interface. | |
#define | ACCESS_STREAM DISABLED |
Streaming MEM <-> MEM interface. | |
#define | ACCESS_STREAM_RECORD DISABLED |
Streaming MEM <-> MEM interface in record mode. | |
#define | ACCESS_USB DISABLED |
MEM <-> USB interface. | |
LUN 1 Definitions | |
#define | AT45DBX_MEM LUN_1 |
#define | LUN_1_INCLUDE "at45dbx_mem.h" |
#define | Lun_1_mem_2_ram at45dbx_df_2_ram |
#define | LUN_1_NAME "\"AT45DBX Data Flash\"" |
#define | Lun_1_ram_2_mem at45dbx_ram_2_df |
#define | Lun_1_read_capacity at45dbx_read_capacity |
#define | Lun_1_removal at45dbx_removal |
#define | Lun_1_test_unit_ready at45dbx_test_unit_ready |
#define | Lun_1_usb_read_10 at45dbx_usb_read_10 |
#define | Lun_1_usb_write_10 at45dbx_usb_write_10 |
#define | Lun_1_wr_protect at45dbx_wr_protect |
#define | LUN_ID_AT45DBX_MEM LUN_ID_1 |
Specific Options for Access Control | |
#define | GLOBAL_WR_PROTECT DISABLED |
Management of a global write protection. | |
Activation of Logical Unit Numbers | |
#define | LUN_0 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_1 ENABLE |
AT45DBX Data Flash. | |
#define | LUN_2 DISABLE |
SD/MMC Card over SPI. | |
#define | LUN_3 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_4 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_5 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_6 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_7 DISABLE |
On-Chip Virtual Memory. | |
#define | LUN_USB DISABLE |
Host Mass-Storage Memory. | |
LUN 0 Definitions | |
#define | LUN_0_INCLUDE "virtual_mem.h" |
#define | Lun_0_mem_2_ram virtual_mem_2_ram |
#define | LUN_0_NAME "\"On-Chip Virtual Memory\"" |
#define | Lun_0_ram_2_mem virtual_ram_2_mem |
#define | Lun_0_read_capacity virtual_read_capacity |
#define | Lun_0_removal virtual_removal |
#define | Lun_0_test_unit_ready virtual_test_unit_ready |
#define | Lun_0_usb_read_10 virtual_usb_read_10 |
#define | Lun_0_usb_write_10 virtual_usb_write_10 |
#define | Lun_0_wr_protect virtual_wr_protect |
#define | LUN_ID_VIRTUAL_MEM LUN_ID_0 |
#define | VIRTUAL_MEM LUN_0 |
LUN 2 Definitions | |
#define | LUN_2_INCLUDE "sd_mmc_spi_mem.h" |
#define | Lun_2_mem_2_ram sd_mmc_spi_mem_2_ram |
#define | LUN_2_NAME "\"SD/MMC Card over SPI\"" |
#define | Lun_2_ram_2_mem sd_mmc_spi_ram_2_mem |
#define | Lun_2_read_capacity sd_mmc_spi_read_capacity |
#define | Lun_2_removal sd_mmc_spi_removal |
#define | Lun_2_test_unit_ready sd_mmc_spi_test_unit_ready |
#define | Lun_2_usb_read_10 sd_mmc_spi_usb_read_10 |
#define | Lun_2_usb_write_10 sd_mmc_spi_usb_write_10 |
#define | Lun_2_wr_protect sd_mmc_spi_wr_protect |
#define | LUN_ID_SD_MMC_SPI_MEM LUN_ID_2 |
#define | SD_MMC_SPI_MEM LUN_2 |
USB LUNs Definitions | |
#define | LUN_ID_MEM_USB LUN_ID_USB |
#define | LUN_USB_INCLUDE "host_mem.h" |
#define | Lun_usb_mem_2_ram(addr, ram) host_read_10_ram(addr, ram) |
#define | LUN_USB_NAME "\"Host Mass-Storage Memory\"" |
#define | Lun_usb_ram_2_mem(addr, ram) host_write_10_ram(addr, ram) |
#define | Lun_usb_read_capacity(lun, nb_sect) host_read_capacity(lun, nb_sect) |
#define | Lun_usb_read_sector_size(lun) host_read_sector_size(lun) |
#define | Lun_usb_removal() host_removal() |
#define | Lun_usb_test_unit_ready(lun) host_test_unit_ready(lun) |
#define | Lun_usb_wr_protect(lun) host_wr_protect(lun) |
#define | MEM_USB LUN_USB |
Actions Associated with Memory Accesses | |
Write here the action to associate with each memory access.
| |
#define | memory_start_read_action(nb_sectors) |
#define | memory_start_write_action(nb_sectors) |
#define | memory_stop_read_action() |
#define | memory_stop_write_action() |
#define ACCESS_CODEC DISABLED |
#define ACCESS_MEM_TO_MEM DISABLED |
#define ACCESS_MEM_TO_RAM ENABLED |
#define ACCESS_STREAM DISABLED |
#define ACCESS_STREAM_RECORD DISABLED |
#define ACCESS_USB DISABLED |
#define AT45DBX_MEM LUN_1 |
Definition at line 90 of file conf_access.h.
#define GLOBAL_WR_PROTECT DISABLED |
#define LUN_0 DISABLE |
#define LUN_0_INCLUDE "virtual_mem.h" |
Definition at line 75 of file conf_access.h.
#define Lun_0_mem_2_ram virtual_mem_2_ram |
Definition at line 82 of file conf_access.h.
#define LUN_0_NAME "\"On-Chip Virtual Memory\"" |
Definition at line 84 of file conf_access.h.
#define Lun_0_ram_2_mem virtual_ram_2_mem |
Definition at line 83 of file conf_access.h.
#define Lun_0_read_capacity virtual_read_capacity |
Definition at line 77 of file conf_access.h.
#define Lun_0_removal virtual_removal |
Definition at line 79 of file conf_access.h.
#define Lun_0_test_unit_ready virtual_test_unit_ready |
Definition at line 76 of file conf_access.h.
#define Lun_0_usb_read_10 virtual_usb_read_10 |
Definition at line 80 of file conf_access.h.
#define Lun_0_usb_write_10 virtual_usb_write_10 |
Definition at line 81 of file conf_access.h.
#define Lun_0_wr_protect virtual_wr_protect |
Definition at line 78 of file conf_access.h.
#define LUN_1 ENABLE |
#define LUN_1_INCLUDE "at45dbx_mem.h" |
Definition at line 92 of file conf_access.h.
#define Lun_1_mem_2_ram at45dbx_df_2_ram |
Definition at line 99 of file conf_access.h.
#define LUN_1_NAME "\"AT45DBX Data Flash\"" |
Definition at line 101 of file conf_access.h.
#define Lun_1_ram_2_mem at45dbx_ram_2_df |
Definition at line 100 of file conf_access.h.
#define Lun_1_read_capacity at45dbx_read_capacity |
Definition at line 94 of file conf_access.h.
#define Lun_1_removal at45dbx_removal |
Definition at line 96 of file conf_access.h.
#define Lun_1_test_unit_ready at45dbx_test_unit_ready |
Definition at line 93 of file conf_access.h.
#define Lun_1_usb_read_10 at45dbx_usb_read_10 |
Definition at line 97 of file conf_access.h.
#define Lun_1_usb_write_10 at45dbx_usb_write_10 |
Definition at line 98 of file conf_access.h.
#define Lun_1_wr_protect at45dbx_wr_protect |
Definition at line 95 of file conf_access.h.
#define LUN_2 DISABLE |
#define LUN_2_INCLUDE "sd_mmc_spi_mem.h" |
Definition at line 109 of file conf_access.h.
#define Lun_2_mem_2_ram sd_mmc_spi_mem_2_ram |
Definition at line 116 of file conf_access.h.
#define LUN_2_NAME "\"SD/MMC Card over SPI\"" |
Definition at line 118 of file conf_access.h.
#define Lun_2_ram_2_mem sd_mmc_spi_ram_2_mem |
Definition at line 117 of file conf_access.h.
#define Lun_2_read_capacity sd_mmc_spi_read_capacity |
Definition at line 111 of file conf_access.h.
#define Lun_2_removal sd_mmc_spi_removal |
Definition at line 113 of file conf_access.h.
#define Lun_2_test_unit_ready sd_mmc_spi_test_unit_ready |
Definition at line 110 of file conf_access.h.
#define Lun_2_usb_read_10 sd_mmc_spi_usb_read_10 |
Definition at line 114 of file conf_access.h.
#define Lun_2_usb_write_10 sd_mmc_spi_usb_write_10 |
Definition at line 115 of file conf_access.h.
#define Lun_2_wr_protect sd_mmc_spi_wr_protect |
Definition at line 112 of file conf_access.h.
#define LUN_3 DISABLE |
#define LUN_4 DISABLE |
#define LUN_5 DISABLE |
#define LUN_6 DISABLE |
#define LUN_7 DISABLE |
#define LUN_ID_AT45DBX_MEM LUN_ID_1 |
Definition at line 91 of file conf_access.h.
#define LUN_ID_MEM_USB LUN_ID_USB |
Definition at line 125 of file conf_access.h.
#define LUN_ID_SD_MMC_SPI_MEM LUN_ID_2 |
Definition at line 108 of file conf_access.h.
#define LUN_ID_VIRTUAL_MEM LUN_ID_0 |
Definition at line 74 of file conf_access.h.
#define LUN_USB DISABLE |
Host Mass-Storage Memory.
Definition at line 67 of file conf_access.h.
Referenced by mem_name(), and mem_sector_size().
#define LUN_USB_INCLUDE "host_mem.h" |
Definition at line 126 of file conf_access.h.
#define Lun_usb_mem_2_ram | ( | addr, | |||
ram | ) | host_read_10_ram(addr, ram) |
#define LUN_USB_NAME "\"Host Mass-Storage Memory\"" |
#define Lun_usb_ram_2_mem | ( | addr, | |||
ram | ) | host_write_10_ram(addr, ram) |
#define Lun_usb_read_capacity | ( | lun, | |||
nb_sect | ) | host_read_capacity(lun, nb_sect) |
#define Lun_usb_read_sector_size | ( | lun | ) | host_read_sector_size(lun) |
#define Lun_usb_removal | ( | ) | host_removal() |
#define Lun_usb_test_unit_ready | ( | lun | ) | host_test_unit_ready(lun) |
#define Lun_usb_wr_protect | ( | lun | ) | host_wr_protect(lun) |
#define MEM_USB LUN_USB |
Definition at line 124 of file conf_access.h.
#define memory_start_read_action | ( | nb_sectors | ) |
#define memory_start_write_action | ( | nb_sectors | ) |
#define memory_stop_read_action | ( | ) |
#define memory_stop_write_action | ( | ) |
#define SD_MMC_SPI_MEM LUN_2 |
Definition at line 107 of file conf_access.h.
#define VIRTUAL_MEM LUN_0 |
Definition at line 73 of file conf_access.h.