1 // Copyright (C) 2013 Michael McMaster <michael@codesrc.com>
\r
3 // This file is part of SCSI2SD.
\r
5 // SCSI2SD is free software: you can redistribute it and/or modify
\r
6 // it under the terms of the GNU General Public License as published by
\r
7 // the Free Software Foundation, either version 3 of the License, or
\r
8 // (at your option) any later version.
\r
10 // SCSI2SD is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with SCSI2SD. If not, see <http://www.gnu.org/licenses/>.
\r
17 #include <project.h>
\r
19 static void resetSCSI()
\r
21 CyPins_ClearPin(SCSI_Out_IO_raw);
\r
22 CyPins_ClearPin(SCSI_Out_ATN);
\r
23 CyPins_ClearPin(SCSI_Out_BSY);
\r
24 CyPins_ClearPin(SCSI_Out_ACK);
\r
25 CyPins_ClearPin(SCSI_Out_RST);
\r
26 CyPins_ClearPin(SCSI_Out_SEL);
\r
27 CyPins_ClearPin(SCSI_Out_REQ);
\r
28 CyPins_ClearPin(SCSI_Out_MSG);
\r
29 CyPins_ClearPin(SCSI_Out_CD);
\r
30 CyPins_ClearPin(SCSI_Out_DBx_DB0);
\r
31 CyPins_ClearPin(SCSI_Out_DBx_DB1);
\r
32 CyPins_ClearPin(SCSI_Out_DBx_DB2);
\r
33 CyPins_ClearPin(SCSI_Out_DBx_DB3);
\r
34 CyPins_ClearPin(SCSI_Out_DBx_DB4);
\r
35 CyPins_ClearPin(SCSI_Out_DBx_DB5);
\r
36 CyPins_ClearPin(SCSI_Out_DBx_DB6);
\r
37 CyPins_ClearPin(SCSI_Out_DBx_DB7);
\r
38 CyPins_ClearPin(SCSI_Out_DBP_raw);
\r
45 // The call to the bootloader should not return
\r
48 /* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
\r
51 /* Place your application code here. */
\r