My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UHS_host.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /* Copyright (C) 2015-2016 Andrew J. Kroll
  2. and
  3. Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
  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. 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. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. Contact information
  16. -------------------
  17. Circuits At Home, LTD
  18. Web : https://www.circuitsathome.com
  19. e-mail : support@circuitsathome.com
  20. */
  21. /* USB functions */
  22. #ifndef _UHS_host_h_
  23. #define _UHS_host_h_
  24. // WARNING: Do not change the order of includes, or stuff will break!
  25. #include <inttypes.h>
  26. #include <stddef.h>
  27. #include <stdio.h>
  28. #include <stdint.h>
  29. #if DISABLED(USE_UHS3_USB)
  30. #include <ISR_safe_memory.h>
  31. #include <Wire.h>
  32. #include <SPI.h>
  33. #include <UHS_ByteBuffer.h>
  34. #endif
  35. #include "UHS_macros.h"
  36. // None of these should ever be directly included by a driver, or a user's sketch.
  37. #include "../dyn_SWI/dyn_SWI.h"
  38. #include "UHS_USB_IDs.h"
  39. #include "UHS_settings.h"
  40. #include "UHS_usb_ch9.h"
  41. #include "UHS_UsbCore.h"
  42. #include "UHS_address.h"
  43. #include "UHS_usbhost.h"
  44. #include "UHS_printhex.h"
  45. #include "UHS_message.h"
  46. // Load system components as required
  47. #if defined(LOAD_USB_HOST_SYSTEM) && !defined(USB_HOST_SYSTEM_LOADED)
  48. #include "UHS_util_INLINE.h"
  49. #include "UHS_host_INLINE.h"
  50. #include "UHS_printf_HELPER.h"
  51. #ifdef LOAD_USB_HOST_SHIELD
  52. #include "USB_HOST_SHIELD/USB_HOST_SHIELD.h"
  53. #endif
  54. #if defined(LOAD_UHS_KINETIS_FS_HOST) && !defined(UHS_KINETIS_FS_HOST_LOADED)
  55. #include "UHS_KINETIS_FS_HOST/UHS_KINETIS_FS_HOST.h"
  56. #endif
  57. #if defined(LOAD_UHS_KINETIS_EHCI) && !defined(UHS_KINETIS_EHCI_LOADED)
  58. #include "UHS_KINETIS_EHCI/UHS_KINETIS_EHCI.h"
  59. #endif
  60. // Load USB drivers and multiplexers
  61. #ifdef LOAD_UHS_HUB
  62. #include "UHS_HUB/UHS_HUB.h"
  63. #endif // HUB loaded
  64. #ifdef LOAD_UHS_BULK_STORAGE
  65. #include "UHS_BULK_STORAGE/UHS_BULK_STORAGE.h"
  66. #endif
  67. #ifdef LOAD_GENERIC_STORAGE
  68. #include "../UHS_FS/UHS_FS.h"
  69. #endif
  70. // Add BT and optionally HID if directed to do so
  71. #ifdef LOAD_UHS_BT
  72. #include "UHS_BT/UHS_BT.h"
  73. #endif // BT and optionally HID loaded
  74. // Add HID
  75. #ifdef LOAD_UHS_HID
  76. #include "UHS_HID/UHS_HID.h"
  77. #endif // HID loaded
  78. // Add CDC multiplexers (currently only ACM)
  79. #if defined(LOAD_UHS_CDC_ACM) || defined(LOAD_UHS_CDC_ACM_FTDI) || defined(LOAD_UHS_CDC_ACM_PROLIFIC) || defined(LOAD_UHS_CDC_ACM_XR21B1411)
  80. #include "UHS_CDC/UHS_CDC.h"
  81. #endif // CDC loaded
  82. #ifdef LOAD_UHS_ADK
  83. #include "UHS_ADK/UHS_ADK.h"
  84. #endif
  85. #ifdef LOAD_UHS_MIDI
  86. #include "UHS_MIDI/UHS_MIDI.h"
  87. #endif
  88. #endif // System code loaded
  89. #endif // _UHS_host_h_