Per Mårtensson hai 4 meses
pai
achega
df10790407
Modificáronse 3 ficheiros con 7 adicións e 9 borrados
  1. 1 1
      sw/include/blacksasi.h
  2. 1 4
      sw/include/scsi.h
  3. 5 4
      sw/src/main.cpp

+ 1 - 1
sw/include/blacksasi.h

@@ -4,7 +4,7 @@
 #include "gpio.h"
 #include "log.h"
 #include "config.h"
-#include "scsi.h"
+
 // Log File
 #define VERSION "0.xx-SNAPSHOT-BLACKSASI-2022-09-28"
 

+ 1 - 4
sw/include/scsi.h

@@ -2,10 +2,7 @@
 #define __BLACKSASI_SCSI_H__
 #include "blacksasi.h"
 
-// Turn on the output only for BSY
-//#define SCSI_BSY_ACTIVE()      { pinMode(BOARD_SCSI_BSY, OUTPUT_OPEN_DRAIN); SCSI_OUT(vBSY,  active) }
-// BSY,REQ,MSG,CD,IO Turn on the output (no change required for OD)
-//#define SCSI_TARGET_ACTIVE()   { }
 
+// HDD image
 
 #endif // __BLACKSASI_SCSI_H__

+ 5 - 4
sw/src/main.cpp

@@ -53,13 +53,14 @@
 #define VERSION "1.2-" VDS "-BLACKSASI"
 #define LOG_FILENAME "LOG.txt"
 
-#include "blacksasi.h"
-#include "config.h"
+
+#include "scsi.h"
 #include "scsi_cmds.h"
 #include "scsi_sense.h"
 #include "scsi_status.h"
 #include "scsi_mode.h"
-
+#include "config.h"
+#include "blacksasi.h"
 #ifdef USE_STM32_DMA
 #warning "warning USE_STM32_DMA"
 #endif
@@ -432,7 +433,7 @@ void findDriveImages(FsFile root) {
   root.getName(path_name, sizeof(path_name));
   SD.chdir(path_name);
   SCSI_DEVICE *dev = NULL;
-
+  LED2_ON();
   while (1) {
     // Directories can not be opened RDWR, so it will fail, but fails the same way with no file/dir, so we need to peek at the file first.
     FsFile file_test = root.openNextFile(O_RDONLY);