ZuluSCSI_platform_config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * ZuluSCSI™ - Copyright (c) 2024 Rabbit Hole Computing™
  3. *
  4. * ZuluSCSI™ firmware is licensed under the GPL version 3 or any later version. 
  5. *
  6. * https://www.gnu.org/licenses/gpl-3.0.html
  7. * ----
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version. 
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. * GNU General Public License for more details. 
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  20. **/
  21. #pragma once
  22. #if defined(ZULUSCSI_V1_4)
  23. # define PLATFORM_NAME "ZuluSCSI v1.4"
  24. # define PLATFORM_REVISION "1.4"
  25. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_10
  26. # define PLATFORM_OPTIMAL_MIN_SD_WRITE_SIZE 4096
  27. # define PLATFORM_OPTIMAL_MAX_SD_WRITE_SIZE 65536
  28. # define PLATFORM_OPTIMAL_LAST_SD_WRITE_SIZE 8192
  29. # define PLATFORM_FLASH_SECTOR_ERASE
  30. # include "ZuluSCSI_v1_4_gpio.h"
  31. #endif
  32. #ifndef PLATFORM_VDD_WARNING_LIMIT_mV
  33. #define PLATFORM_VDD_WARNING_LIMIT_mV 2800
  34. #endif
  35. #define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 10