forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4078f26
commit 34b7342
Showing
32 changed files
with
141 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ Web : http://www.circuitsathome.com | |
e-mail : [email protected] | ||
*/ | ||
|
||
#if !defined(__UHS_BULK_STORAGE_H__) | ||
#ifndef __UHS_BULK_STORAGE_H__ | ||
#define __UHS_BULK_STORAGE_H__ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,11 +33,11 @@ e-mail : [email protected] | |
#define UHS_HOST_MAX_INTERFACE_DRIVERS 0x10U // Default maximum number of USB interface drivers | ||
#endif | ||
|
||
#if !defined(SYSTEM_OR_SPECIAL_YIELD) | ||
#ifndef SYSTEM_OR_SPECIAL_YIELD | ||
#define SYSTEM_OR_SPECIAL_YIELD(...) VOID0 | ||
#endif | ||
|
||
#if !defined(SYSTEM_OR_SPECIAL_YIELD_FROM_ISR) | ||
#ifndef SYSTEM_OR_SPECIAL_YIELD_FROM_ISR | ||
#define SYSTEM_OR_SPECIAL_YIELD_FROM_ISR(...) SYSTEM_OR_SPECIAL_YIELD | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ e-mail : [email protected] | |
#include "UHS_host_INLINE.h" | ||
#include "UHS_printf_HELPER.h" | ||
|
||
#if defined(LOAD_USB_HOST_SHIELD) | ||
#ifdef LOAD_USB_HOST_SHIELD | ||
#include "USB_HOST_SHIELD/USB_HOST_SHIELD.h" | ||
#endif | ||
|
||
|
@@ -72,24 +72,24 @@ e-mail : [email protected] | |
|
||
// Load USB drivers and multiplexers | ||
|
||
#if defined(LOAD_UHS_HUB) | ||
#ifdef LOAD_UHS_HUB | ||
#include "UHS_HUB/UHS_HUB.h" | ||
#endif // HUB loaded | ||
|
||
#if defined(LOAD_UHS_BULK_STORAGE) | ||
#ifdef LOAD_UHS_BULK_STORAGE | ||
#include "UHS_BULK_STORAGE/UHS_BULK_STORAGE.h" | ||
#endif | ||
|
||
#if defined(LOAD_GENERIC_STORAGE) | ||
#ifdef LOAD_GENERIC_STORAGE | ||
#include "../UHS_FS/UHS_FS.h" | ||
#endif | ||
// Add BT and optionally HID if directed to do so | ||
#if defined(LOAD_UHS_BT) | ||
#ifdef LOAD_UHS_BT | ||
#include "UHS_BT/UHS_BT.h" | ||
#endif // BT and optionally HID loaded | ||
|
||
// Add HID | ||
#if defined(LOAD_UHS_HID) | ||
#ifdef LOAD_UHS_HID | ||
#include "UHS_HID/UHS_HID.h" | ||
#endif // HID loaded | ||
|
||
|
@@ -98,11 +98,11 @@ e-mail : [email protected] | |
#include "UHS_CDC/UHS_CDC.h" | ||
#endif // CDC loaded | ||
|
||
#if defined(LOAD_UHS_ADK) | ||
#ifdef LOAD_UHS_ADK | ||
#include "UHS_ADK/UHS_ADK.h" | ||
#endif | ||
|
||
#if defined(LOAD_UHS_MIDI) | ||
#ifdef LOAD_UHS_MIDI | ||
#include "UHS_MIDI/UHS_MIDI.h" | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ Web : http://www.circuitsathome.com | |
e-mail : [email protected] | ||
*/ | ||
|
||
#if !defined(MACROS_H) | ||
#ifndef MACROS_H | ||
#define MACROS_H | ||
#include "macro_logic.h" | ||
/* | ||
|
@@ -49,18 +49,18 @@ e-mail : [email protected] | |
|
||
// Nuke screwed up macro junk from the IDE. | ||
#ifdef __cplusplus | ||
#if defined(true) | ||
#ifdef true | ||
#undef true | ||
#endif | ||
#if defined(false) | ||
#ifdef false | ||
#undef false | ||
#endif | ||
#endif | ||
|
||
|
||
#if !defined(UHS_DEVICE_WINDOWS_USB_SPEC_VIOLATION_DESCRIPTOR_DEVICE) | ||
#ifndef UHS_DEVICE_WINDOWS_USB_SPEC_VIOLATION_DESCRIPTOR_DEVICE | ||
|
||
#if !defined(UHS_BIG_FLASH) | ||
#ifndef UHS_BIG_FLASH | ||
|
||
#if defined(FLASHEND) && defined(FLASHSTART) | ||
#if (FLASHEND - FLASHSTART) > 0x0FFFFU | ||
|
@@ -122,10 +122,10 @@ e-mail : [email protected] | |
// TODO: Fast inline code for AVR and SAM based microcontrollers | ||
// This can be done pretty easily. | ||
// For now, this will just work out-of-the-box. | ||
#if !defined(UHS_PIN_WRITE) | ||
#ifndef UHS_PIN_WRITE | ||
#define UHS_PIN_WRITE(p, v) digitalWrite(p, v) | ||
#endif | ||
#if !defined(UHS_PIN_READ) | ||
#ifndef UHS_PIN_READ | ||
#define UHS_PIN_READ(p) digitalRead(p) | ||
#endif | ||
|
||
|
@@ -134,8 +134,8 @@ e-mail : [email protected] | |
#edfine noInterrupts() __builtin_disable_interrupts() | ||
#endif | ||
|
||
#if !defined(ARDUINO_SAMD_ZERO) | ||
#if defined(ARDUINO_AVR_ADK) | ||
#ifndef ARDUINO_SAMD_ZERO | ||
#ifdef ARDUINO_AVR_ADK | ||
#define UHS_GET_DPI(x) (x == 54 ? 6 : digitalPinToInterrupt(x)) | ||
#else | ||
#define UHS_GET_DPI(x) digitalPinToInterrupt(x) | ||
|
@@ -386,7 +386,7 @@ e-mail : [email protected] | |
#define USBTRACE2X(s,r) (USBTRACE3X((s),(r),0x80)); USB_HOST_SERIAL.flush() | ||
|
||
#define VOID0 ((void)0) | ||
#if !defined(NOTUSED) | ||
#ifndef NOTUSED | ||
#define NOTUSED(...) __VA_ARGS__ __attribute__((unused)) | ||
#endif | ||
#endif /* MACROS_H */ | ||
|
Oops, something went wrong.