瀏覽代碼

Prettify some code comments

Scott Lahteine 6 年之前
父節點
當前提交
c2b90c44e4

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/Usb.cpp 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 /* USB functions */
25 26
 

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/Usb.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 /* USB functions */
25 26
 #ifndef _usb_h_

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/UsbCore.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #ifndef _usb_h_

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/address.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #if !defined(_usb_h_) || defined(__ADDRESS_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/confdescparser.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 #if !defined(_usb_h_) || defined(__CONFDESCPARSER_H__)
25 26
 #error "Never include confdescparser.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/hexdump.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #if !defined(_usb_h_) || defined(__HEXDUMP_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/macros.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #ifndef _usb_h_

+ 23
- 40
Marlin/src/sd/usb_flashdrive/lib/masstorage.cpp 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #include "../../../inc/MarlinConfigPre.h"
@@ -33,9 +34,7 @@ const uint8_t BulkOnly::epDataOutIndex = 2;
33 34
 const uint8_t BulkOnly::epInterruptInIndex = 3;
34 35
 
35 36
 ////////////////////////////////////////////////////////////////////////////////
36
-
37 37
 // Interface code
38
-
39 38
 ////////////////////////////////////////////////////////////////////////////////
40 39
 
41 40
 /**
@@ -225,9 +224,7 @@ again:
225 224
 // Only developer serviceable parts below!
226 225
 
227 226
 ////////////////////////////////////////////////////////////////////////////////
228
-
229 227
 // Main driver code
230
-
231 228
 ////////////////////////////////////////////////////////////////////////////////
232 229
 
233 230
 BulkOnly::BulkOnly(USB *p) :
@@ -328,7 +325,6 @@ FailGetDevDescr:
328 325
 };
329 326
 
330 327
 /**
331
- *
332 328
  * @param parent (not used)
333 329
  * @param port (not used)
334 330
  * @param lowspeed true if device is low speed
@@ -692,11 +688,7 @@ uint8_t BulkOnly::Poll() {
692 688
 }
693 689
 
694 690
 ////////////////////////////////////////////////////////////////////////////////
695
-
696
-
697 691
 // SCSI code
698
-
699
-
700 692
 ////////////////////////////////////////////////////////////////////////////////
701 693
 
702 694
 /**
@@ -836,11 +828,7 @@ uint8_t BulkOnly::RequestSense(uint8_t lun, uint16_t size, uint8_t *buf) {
836 828
 
837 829
 
838 830
 ////////////////////////////////////////////////////////////////////////////////
839
-
840
-
841 831
 // USB code
842
-
843
-
844 832
 ////////////////////////////////////////////////////////////////////////////////
845 833
 
846 834
 /**
@@ -1241,13 +1229,8 @@ void BulkOnly::PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR * ep_ptr) {
1241 1229
         Notify(PSTR("\r\n"), 0x80);
1242 1230
 }
1243 1231
 
1244
-
1245 1232
 ////////////////////////////////////////////////////////////////////////////////
1246
-
1247
-
1248 1233
 // misc/to kill/to-do
1249
-
1250
-
1251 1234
 ////////////////////////////////////////////////////////////////////////////////
1252 1235
 
1253 1236
 /* We won't be needing this... */

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/masstorage.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #pragma once

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/max3421e.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 #if !defined(_usb_h_) || defined(_max3421e_h_)
25 26
 #error "Never include max3421e.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/message.cpp 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #include "../../../inc/MarlinConfigPre.h"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/message.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 #if !defined(_usb_h_) || defined(__MESSAGE_H__)
25 26
 #error "Never include message.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/parsetools.cpp 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #include "../../../inc/MarlinConfigPre.h"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/parsetools.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/printhex.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #if !defined(_usb_h_) || defined(__PRINTHEX_H__)

+ 25
- 22
Marlin/src/sd/usb_flashdrive/lib/settings.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #pragma once
@@ -43,9 +44,11 @@ e-mail   :  support@circuitsathome.com
43 44
   /* Since Marlin only cares about USB flash drives, we only need one LUN. */
44 45
   #define MASS_MAX_SUPPORTED_LUN 1
45 46
 #endif
47
+
46 48
 ////////////////////////////////////////////////////////////////////////////////
47 49
 // SPI Configuration
48 50
 ////////////////////////////////////////////////////////////////////////////////
51
+
49 52
 #ifndef USB_SPI
50 53
   #define USB_SPI SPI
51 54
   //#define USB_SPI SPI1

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/usb_ch9.h 查看文件

@@ -1,25 +1,26 @@
1
-/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
-
3
-This program is free software; you can redistribute it and/or modify
4
-it under the terms of the GNU General Public License as published by
5
-the Free Software Foundation; either version 2 of the License, or
6
-(at your option) any later version.
7
-
8
-This program is distributed in the hope that it will be useful,
9
-but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
-GNU General Public License for more details.
12
-
13
-You should have received a copy of the GNU General Public License
14
-along with this program; if not, write to the Free Software
15
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
-
17
-Contact information
18
--------------------
19
-
20
-Circuits At Home, LTD
21
-Web      :  http://www.circuitsathome.com
22
-e-mail   :  support@circuitsathome.com
1
+/**
2
+ * Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
+ *
18
+ * Contact information
19
+ * -------------------
20
+ *
21
+ * Circuits At Home, LTD
22
+ * Web      :  http://www.circuitsathome.com
23
+ * e-mail   :  support@circuitsathome.com
23 24
  */
24 25
 
25 26
 #if !defined(_usb_h_) || defined(_ch9_h_)

Loading…
取消
儲存