My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

conf_access.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**
  2. * \file
  3. *
  4. * \brief Memory access control configuration file.
  5. *
  6. * Copyright (c) 2012-2015 Atmel Corporation. All rights reserved.
  7. *
  8. * \asf_license_start
  9. *
  10. * \page License
  11. *
  12. * Redistribution and use in source and binary forms, with or without
  13. * modification, are permitted provided that the following conditions are met:
  14. *
  15. * 1. Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. *
  18. * 2. Redistributions in binary form must reproduce the above copyright notice,
  19. * this list of conditions and the following disclaimer in the documentation
  20. * and/or other materials provided with the distribution.
  21. *
  22. * 3. The name of Atmel may not be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * 4. This software may only be redistributed and used in connection with an
  26. * Atmel microcontroller product.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
  29. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  30. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
  31. * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
  32. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  36. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  37. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  38. * POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. * \asf_license_stop
  41. *
  42. */
  43. /*
  44. * Support and FAQ: visit <a href="https://www.atmel.com/design-support/">Atmel Support</a>
  45. */
  46. #ifndef _CONF_ACCESS_H_
  47. #define _CONF_ACCESS_H_
  48. #include "compiler.h"
  49. #include "../../../inc/MarlinConfigPre.h"
  50. /*! \name Activation of Logical Unit Numbers
  51. */
  52. //! @{
  53. #define LUN_0 ENABLE //!< SD/MMC Card over MCI Slot 0.
  54. #define LUN_1 DISABLE
  55. #define LUN_2 DISABLE
  56. #define LUN_3 DISABLE
  57. #define LUN_4 DISABLE
  58. #define LUN_5 DISABLE
  59. #define LUN_6 DISABLE
  60. #define LUN_7 DISABLE
  61. #define LUN_USB DISABLE
  62. //! @}
  63. /*! \name LUN 0 Definitions
  64. */
  65. //! @{
  66. #define SD_MMC_SPI_MEM LUN_0
  67. #define LUN_ID_SD_MMC_SPI_MEM LUN_ID_0
  68. #define LUN_0_INCLUDE "sd_mmc_spi_mem.h"
  69. #define Lun_0_test_unit_ready sd_mmc_spi_test_unit_ready
  70. #define Lun_0_read_capacity sd_mmc_spi_read_capacity
  71. #define Lun_0_unload sd_mmc_spi_unload
  72. #define Lun_0_wr_protect sd_mmc_spi_wr_protect
  73. #define Lun_0_removal sd_mmc_spi_removal
  74. #define Lun_0_usb_read_10 sd_mmc_spi_usb_read_10
  75. #define Lun_0_usb_write_10 sd_mmc_spi_usb_write_10
  76. #define LUN_0_NAME "\"SD/MMC Card\""
  77. //! @}
  78. /*! \name Actions Associated with Memory Accesses
  79. *
  80. * Write here the action to associate with each memory access.
  81. *
  82. * \warning Be careful not to waste time in order not to disturb the functions.
  83. */
  84. //! @{
  85. #define memory_start_read_action(nb_sectors)
  86. #define memory_stop_read_action()
  87. #define memory_start_write_action(nb_sectors)
  88. #define memory_stop_write_action()
  89. //! @}
  90. /*! \name Activation of Interface Features
  91. */
  92. //! @{
  93. #define ACCESS_USB true //!< MEM <-> USB interface.
  94. #define ACCESS_MEM_TO_RAM false //!< MEM <-> RAM interface.
  95. #define ACCESS_STREAM false //!< Streaming MEM <-> MEM interface.
  96. #define ACCESS_STREAM_RECORD false //!< Streaming MEM <-> MEM interface in record mode.
  97. #define ACCESS_MEM_TO_MEM false //!< MEM <-> MEM interface.
  98. #define ACCESS_CODEC false //!< Codec interface.
  99. //! @}
  100. /*! \name Specific Options for Access Control
  101. */
  102. //! @{
  103. #define GLOBAL_WR_PROTECT false //!< Management of a global write protection.
  104. //! @}
  105. #endif // _CONF_ACCESS_H_