File tree 3 files changed +10
-10
lines changed
hardware/arduino/cores/arduino
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 9
9
// ================================================================================
10
10
// USB
11
11
12
- class USB_
12
+ class USBDevice_
13
13
{
14
14
public:
15
- USB_ ();
15
+ USBDevice_ ();
16
16
bool configured ();
17
17
18
18
void attach ();
19
19
void detach (); // Serial port goes down too...
20
20
void poll ();
21
21
};
22
- extern USB_ USB ;
22
+ extern USBDevice_ USBDevice ;
23
23
24
24
// ================================================================================
25
25
// ================================================================================
Original file line number Diff line number Diff line change @@ -627,13 +627,13 @@ u8 USBConnected()
627
627
// =======================================================================
628
628
// =======================================================================
629
629
630
- USB_ USB ;
630
+ USBDevice_ USBDevice ;
631
631
632
- USB_::USB_ ()
632
+ USBDevice_::USBDevice_ ()
633
633
{
634
634
}
635
635
636
- void USB_ ::attach ()
636
+ void USBDevice_ ::attach ()
637
637
{
638
638
_usbConfiguration = 0 ;
639
639
UHWCON = 0x01 ; // power internal reg
@@ -654,18 +654,18 @@ void USB_::attach()
654
654
TX_RX_LED_INIT;
655
655
}
656
656
657
- void USB_ ::detach ()
657
+ void USBDevice_ ::detach ()
658
658
{
659
659
}
660
660
661
661
// Check for interrupts
662
662
// TODO: VBUS detection
663
- bool USB_ ::configured ()
663
+ bool USBDevice_ ::configured ()
664
664
{
665
665
return _usbConfiguration;
666
666
}
667
667
668
- void USB_ ::poll ()
668
+ void USBDevice_ ::poll ()
669
669
{
670
670
}
671
671
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ int main(void)
5
5
init ();
6
6
7
7
#if defined(USBCON)
8
- USB .attach ();
8
+ USBDevice .attach ();
9
9
#endif
10
10
11
11
setup ();
You can’t perform that action at this time.
0 commit comments