From f3cf7a0a24431a364b91602569c6865fa328e0d3 Mon Sep 17 00:00:00 2001 From: Cristian Maglie <c.maglie@arduino.cc> Date: Wed, 10 Sep 2014 12:20:46 +0200 Subject: [PATCH] USBHost, fixed wrong architecture tag (SAM -> SAMD) --- libraries/USBHost/library.properties | 2 +- libraries/USBHost/src/Usb.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/USBHost/library.properties b/libraries/USBHost/library.properties index cfd5eb9b..72798950 100644 --- a/libraries/USBHost/library.properties +++ b/libraries/USBHost/library.properties @@ -5,4 +5,4 @@ maintainer=Arduino <info@arduino.cc> sentence=Allows the communication with USB peripherals like mice, keyboards, and thumbdrives. For Arduino DUE only. paragraph=The USBHost library allows an Arduino Due board to appear as a USB host, enabling it to communicate with peripherals like USB mice and keyboards. USBHost does not support devices that are connected through USB hubs. This includes some keyboards that have an internal hub. url=http://arduino.cc/en/Reference/USBHost -architectures=sam +architectures=samd diff --git a/libraries/USBHost/src/Usb.cpp b/libraries/USBHost/src/Usb.cpp index ea2b8c46..6c1570b8 100644 --- a/libraries/USBHost/src/Usb.cpp +++ b/libraries/USBHost/src/Usb.cpp @@ -21,7 +21,7 @@ e-mail : support@circuitsathome.com #include "Usb.h" -#ifdef ARDUINO_SAM_ZERO +#ifdef ARDUINO_SAMD_ZERO static uint32_t usb_error = 0; static uint32_t usb_task_state = USB_DETACHED_SUBSTATE_INITIALIZE; @@ -854,4 +854,4 @@ uint32_t USBHost::setConf(uint32_t addr, uint32_t ep, uint32_t conf_value) { return ( ctrlReq(addr, ep, bmREQ_SET, USB_REQUEST_SET_CONFIGURATION, conf_value, 0x00, 0x0000, 0x0000, 0x0000, NULL, NULL)); } -#endif //ARDUINO_SAM_ZERO +#endif //ARDUINO_SAMD_ZERO -- GitLab