Browse Source

Prettify some code comments

pull/1/head
Scott Lahteine 5 years ago
parent
commit
c2b90c44e4
  1. 45
      Marlin/src/sd/usb_flashdrive/lib/Usb.cpp
  2. 45
      Marlin/src/sd/usb_flashdrive/lib/Usb.h
  3. 45
      Marlin/src/sd/usb_flashdrive/lib/UsbCore.h
  4. 45
      Marlin/src/sd/usb_flashdrive/lib/address.h
  5. 45
      Marlin/src/sd/usb_flashdrive/lib/confdescparser.h
  6. 45
      Marlin/src/sd/usb_flashdrive/lib/hexdump.h
  7. 45
      Marlin/src/sd/usb_flashdrive/lib/macros.h
  8. 63
      Marlin/src/sd/usb_flashdrive/lib/masstorage.cpp
  9. 45
      Marlin/src/sd/usb_flashdrive/lib/masstorage.h
  10. 45
      Marlin/src/sd/usb_flashdrive/lib/max3421e.h
  11. 45
      Marlin/src/sd/usb_flashdrive/lib/message.cpp
  12. 45
      Marlin/src/sd/usb_flashdrive/lib/message.h
  13. 45
      Marlin/src/sd/usb_flashdrive/lib/parsetools.cpp
  14. 45
      Marlin/src/sd/usb_flashdrive/lib/parsetools.h
  15. 45
      Marlin/src/sd/usb_flashdrive/lib/printhex.h
  16. 47
      Marlin/src/sd/usb_flashdrive/lib/settings.h
  17. 45
      Marlin/src/sd/usb_flashdrive/lib/usb_ch9.h

45
Marlin/src/sd/usb_flashdrive/lib/Usb.cpp

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

45
Marlin/src/sd/usb_flashdrive/lib/Usb.h

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

45
Marlin/src/sd/usb_flashdrive/lib/UsbCore.h

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

45
Marlin/src/sd/usb_flashdrive/lib/address.h

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

45
Marlin/src/sd/usb_flashdrive/lib/confdescparser.h

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

45
Marlin/src/sd/usb_flashdrive/lib/hexdump.h

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

45
Marlin/src/sd/usb_flashdrive/lib/macros.h

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

63
Marlin/src/sd/usb_flashdrive/lib/masstorage.cpp

@ -1,25 +1,26 @@
/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved. /**
* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by * This program is free software; you can redistribute it and/or modify
the Free Software Foundation; either version 2 of the License, or * it under the terms of the GNU General Public License as published by
(at your option) any later version. * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
This program is distributed in the hope that it will be useful, *
but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
You should have received a copy of the GNU General Public License *
along with this program; if not, write to the Free Software * You should have received a copy of the GNU General Public License
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact information *
------------------- * Contact information
* -------------------
Circuits At Home, LTD *
Web : http://www.circuitsathome.com * Circuits At Home, LTD
e-mail : support@circuitsathome.com * Web : http://www.circuitsathome.com
* e-mail : support@circuitsathome.com
*/ */
#include "../../../inc/MarlinConfigPre.h" #include "../../../inc/MarlinConfigPre.h"
@ -33,9 +34,7 @@ const uint8_t BulkOnly::epDataOutIndex = 2;
const uint8_t BulkOnly::epInterruptInIndex = 3; const uint8_t BulkOnly::epInterruptInIndex = 3;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Interface code // Interface code
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/** /**
@ -225,9 +224,7 @@ again:
// Only developer serviceable parts below! // Only developer serviceable parts below!
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Main driver code // Main driver code
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
BulkOnly::BulkOnly(USB *p) : BulkOnly::BulkOnly(USB *p) :
@ -328,7 +325,6 @@ FailGetDevDescr:
}; };
/** /**
*
* @param parent (not used) * @param parent (not used)
* @param port (not used) * @param port (not used)
* @param lowspeed true if device is low speed * @param lowspeed true if device is low speed
@ -692,11 +688,7 @@ uint8_t BulkOnly::Poll() {
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// SCSI code // SCSI code
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/** /**
@ -836,11 +828,7 @@ uint8_t BulkOnly::RequestSense(uint8_t lun, uint16_t size, uint8_t *buf) {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// USB code // USB code
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/** /**
@ -1241,13 +1229,8 @@ void BulkOnly::PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR * ep_ptr) {
Notify(PSTR("\r\n"), 0x80); Notify(PSTR("\r\n"), 0x80);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// misc/to kill/to-do // misc/to kill/to-do
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/* We won't be needing this... */ /* We won't be needing this... */

45
Marlin/src/sd/usb_flashdrive/lib/masstorage.h

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

45
Marlin/src/sd/usb_flashdrive/lib/max3421e.h

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

45
Marlin/src/sd/usb_flashdrive/lib/message.cpp

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

45
Marlin/src/sd/usb_flashdrive/lib/message.h

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

45
Marlin/src/sd/usb_flashdrive/lib/parsetools.cpp

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

45
Marlin/src/sd/usb_flashdrive/lib/parsetools.h

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

45
Marlin/src/sd/usb_flashdrive/lib/printhex.h

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

47
Marlin/src/sd/usb_flashdrive/lib/settings.h

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

45
Marlin/src/sd/usb_flashdrive/lib/usb_ch9.h

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

Loading…
Cancel
Save