Ver código fonte

Prettify some code comments

Scott Lahteine 6 anos atrás
pai
commit
c2b90c44e4

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/Usb.cpp Ver arquivo

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
 /* USB functions */
25
 /* USB functions */
25
 
26
 

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/Usb.h Ver arquivo

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
 /* USB functions */
25
 /* USB functions */
25
 #ifndef _usb_h_
26
 #ifndef _usb_h_

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/UsbCore.h Ver arquivo

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
 #ifndef _usb_h_
26
 #ifndef _usb_h_

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/address.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__ADDRESS_H__)
26
 #if !defined(_usb_h_) || defined(__ADDRESS_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/confdescparser.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__CONFDESCPARSER_H__)
25
 #if !defined(_usb_h_) || defined(__CONFDESCPARSER_H__)
25
 #error "Never include confdescparser.h directly; include Usb.h instead"
26
 #error "Never include confdescparser.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/hexdump.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__HEXDUMP_H__)
26
 #if !defined(_usb_h_) || defined(__HEXDUMP_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/macros.h Ver arquivo

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
 #ifndef _usb_h_
26
 #ifndef _usb_h_

+ 23
- 40
Marlin/src/sd/usb_flashdrive/lib/masstorage.cpp Ver arquivo

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
 #include "../../../inc/MarlinConfigPre.h"
26
 #include "../../../inc/MarlinConfigPre.h"
33
 const uint8_t BulkOnly::epInterruptInIndex = 3;
34
 const uint8_t BulkOnly::epInterruptInIndex = 3;
34
 
35
 
35
 ////////////////////////////////////////////////////////////////////////////////
36
 ////////////////////////////////////////////////////////////////////////////////
36
-
37
 // Interface code
37
 // Interface code
38
-
39
 ////////////////////////////////////////////////////////////////////////////////
38
 ////////////////////////////////////////////////////////////////////////////////
40
 
39
 
41
 /**
40
 /**
225
 // Only developer serviceable parts below!
224
 // Only developer serviceable parts below!
226
 
225
 
227
 ////////////////////////////////////////////////////////////////////////////////
226
 ////////////////////////////////////////////////////////////////////////////////
228
-
229
 // Main driver code
227
 // Main driver code
230
-
231
 ////////////////////////////////////////////////////////////////////////////////
228
 ////////////////////////////////////////////////////////////////////////////////
232
 
229
 
233
 BulkOnly::BulkOnly(USB *p) :
230
 BulkOnly::BulkOnly(USB *p) :
328
 };
325
 };
329
 
326
 
330
 /**
327
 /**
331
- *
332
  * @param parent (not used)
328
  * @param parent (not used)
333
  * @param port (not used)
329
  * @param port (not used)
334
  * @param lowspeed true if device is low speed
330
  * @param lowspeed true if device is low speed
692
 }
688
 }
693
 
689
 
694
 ////////////////////////////////////////////////////////////////////////////////
690
 ////////////////////////////////////////////////////////////////////////////////
695
-
696
-
697
 // SCSI code
691
 // SCSI code
698
-
699
-
700
 ////////////////////////////////////////////////////////////////////////////////
692
 ////////////////////////////////////////////////////////////////////////////////
701
 
693
 
702
 /**
694
 /**
836
 
828
 
837
 
829
 
838
 ////////////////////////////////////////////////////////////////////////////////
830
 ////////////////////////////////////////////////////////////////////////////////
839
-
840
-
841
 // USB code
831
 // USB code
842
-
843
-
844
 ////////////////////////////////////////////////////////////////////////////////
832
 ////////////////////////////////////////////////////////////////////////////////
845
 
833
 
846
 /**
834
 /**
1241
         Notify(PSTR("\r\n"), 0x80);
1229
         Notify(PSTR("\r\n"), 0x80);
1242
 }
1230
 }
1243
 
1231
 
1244
-
1245
 ////////////////////////////////////////////////////////////////////////////////
1232
 ////////////////////////////////////////////////////////////////////////////////
1246
-
1247
-
1248
 // misc/to kill/to-do
1233
 // misc/to kill/to-do
1249
-
1250
-
1251
 ////////////////////////////////////////////////////////////////////////////////
1234
 ////////////////////////////////////////////////////////////////////////////////
1252
 
1235
 
1253
 /* We won't be needing this... */
1236
 /* We won't be needing this... */

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/masstorage.h Ver arquivo

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
 #pragma once
26
 #pragma once

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/max3421e.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(_max3421e_h_)
25
 #if !defined(_usb_h_) || defined(_max3421e_h_)
25
 #error "Never include max3421e.h directly; include Usb.h instead"
26
 #error "Never include max3421e.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/message.cpp Ver arquivo

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
 #include "../../../inc/MarlinConfigPre.h"
26
 #include "../../../inc/MarlinConfigPre.h"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/message.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__MESSAGE_H__)
25
 #if !defined(_usb_h_) || defined(__MESSAGE_H__)
25
 #error "Never include message.h directly; include Usb.h instead"
26
 #error "Never include message.h directly; include Usb.h instead"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/parsetools.cpp Ver arquivo

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
 #include "../../../inc/MarlinConfigPre.h"
26
 #include "../../../inc/MarlinConfigPre.h"

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/parsetools.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__)
26
 #if !defined(_usb_h_) || defined(__PARSETOOLS_H__)

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/printhex.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(__PRINTHEX_H__)
26
 #if !defined(_usb_h_) || defined(__PRINTHEX_H__)

+ 25
- 22
Marlin/src/sd/usb_flashdrive/lib/settings.h Ver arquivo

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
 #pragma once
26
 #pragma once
43
   /* Since Marlin only cares about USB flash drives, we only need one LUN. */
44
   /* Since Marlin only cares about USB flash drives, we only need one LUN. */
44
   #define MASS_MAX_SUPPORTED_LUN 1
45
   #define MASS_MAX_SUPPORTED_LUN 1
45
 #endif
46
 #endif
47
+
46
 ////////////////////////////////////////////////////////////////////////////////
48
 ////////////////////////////////////////////////////////////////////////////////
47
 // SPI Configuration
49
 // SPI Configuration
48
 ////////////////////////////////////////////////////////////////////////////////
50
 ////////////////////////////////////////////////////////////////////////////////
51
+
49
 #ifndef USB_SPI
52
 #ifndef USB_SPI
50
   #define USB_SPI SPI
53
   #define USB_SPI SPI
51
   //#define USB_SPI SPI1
54
   //#define USB_SPI SPI1

+ 23
- 22
Marlin/src/sd/usb_flashdrive/lib/usb_ch9.h Ver arquivo

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
 #if !defined(_usb_h_) || defined(_ch9_h_)
26
 #if !defined(_usb_h_) || defined(_ch9_h_)

Carregando…
Cancelar
Salvar