We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6f57d commit 7bd77deCopy full SHA for 7bd77de
hardware/arduino/avr/cores/arduino/USBAPI.h
@@ -47,13 +47,13 @@ typedef unsigned long u32;
47
//================================================================================
48
// USB
49
50
-#define EP_TYPE_CONTROL 0x00
51
-#define EP_TYPE_BULK_IN 0x81
52
-#define EP_TYPE_BULK_OUT 0x80
53
-#define EP_TYPE_INTERRUPT_IN 0xC1
54
-#define EP_TYPE_INTERRUPT_OUT 0xC0
55
-#define EP_TYPE_ISOCHRONOUS_IN 0x41
56
-#define EP_TYPE_ISOCHRONOUS_OUT 0x40
+#define EP_TYPE_CONTROL (0x00)
+#define EP_TYPE_BULK_IN ((1<<EPTYPE1) | (1<<EPDIR))
+#define EP_TYPE_BULK_OUT (1<<EPTYPE1)
+#define EP_TYPE_INTERRUPT_IN ((1<<EPTYPE1) | (1<<EPTYPE0) | (1<<EPDIR))
+#define EP_TYPE_INTERRUPT_OUT ((1<<EPTYPE1) | (1<<EPTYPE0))
+#define EP_TYPE_ISOCHRONOUS_IN ((1<<EPTYPE0) | (1<<EPDIR))
+#define EP_TYPE_ISOCHRONOUS_OUT (1<<EPTYPE0)
57
58
class USBDevice_
59
{
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments