ZuluSCSI_platform_config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_0)
  23. # if defined(ZULUSCSI_V1_0_mini)
  24. # define PLATFORM_NAME "ZuluSCSI mini v1.0"
  25. # else
  26. # define PLATFORM_NAME "ZuluSCSI v1.0"
  27. # endif
  28. # define PLATFORM_REVISION "1.0"
  29. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_ASYNC_50
  30. # include "ZuluSCSI_v1_0_gpio.h"
  31. #else
  32. # define PLATFORM_NAME "ZuluSCSI v1.1+"
  33. # define PLATFORM_REVISION "1.1+"
  34. # define PLATFORM_MAX_SCSI_SPEED S2S_CFG_SPEED_SYNC_10
  35. # define PLATFORM_OPTIMAL_MIN_SD_WRITE_SIZE 4096
  36. # define PLATFORM_OPTIMAL_MAX_SD_WRITE_SIZE 65536
  37. # define PLATFORM_OPTIMAL_LAST_SD_WRITE_SIZE 8192
  38. # define PLATFORM_VERSION_1_1_PLUS
  39. # define ZULUSCSI_HARDWARE_CONFIG
  40. # include "ZuluSCSI_v1_1_gpio.h"
  41. #endif
  42. #ifndef PLATFORM_VDD_WARNING_LIMIT_mV
  43. #define PLATFORM_VDD_WARNING_LIMIT_mV 2800
  44. #endif
  45. #define PLATFORM_DEFAULT_SCSI_SPEED_SETTING 10