projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added stdio.h stream examples for the virtual CDC UART in the CDC host demos.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
LowLevel.h
diff --git
a/LUFA/Drivers/USB/LowLevel/LowLevel.h
b/LUFA/Drivers/USB/LowLevel/LowLevel.h
index
df1fa0b
..
b8f7b9d
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/LowLevel.h
+++ b/
LUFA/Drivers/USB/LowLevel/LowLevel.h
@@
-191,7
+191,7
@@
#endif
\r
\r
/** Detaches the device from the USB bus. This has the effect of removing the device from any
\r
#endif
\r
\r
/** Detaches the device from the USB bus. This has the effect of removing the device from any
\r
- *
host if
, ceasing USB communications. If no host is present, this prevents any host from
\r
+ *
attached host
, ceasing USB communications. If no host is present, this prevents any host from
\r
* enumerating the device once attached until \ref USB_Attach() is called.
\r
*/
\r
#define USB_Detach() MACROS{ UDCON |= (1 << DETACH); }MACROE
\r
* enumerating the device once attached until \ref USB_Attach() is called.
\r
*/
\r
#define USB_Detach() MACROS{ UDCON |= (1 << DETACH); }MACROE
\r
@@
-301,6
+301,10
@@
* changed in value.
\r
*/
\r
extern volatile uint8_t USB_CurrentMode;
\r
* changed in value.
\r
*/
\r
extern volatile uint8_t USB_CurrentMode;
\r
+ #elif defined(USB_HOST_ONLY)
\r
+ #define USB_CurrentMode USB_MODE_HOST
\r
+ #elif defined(USB_DEVICE_ONLY)
\r
+ #define USB_CurrentMode USB_MODE_DEVICE
\r
#endif
\r
\r
#if !defined(USE_STATIC_OPTIONS) || defined(__DOXYGEN__)
\r
#endif
\r
\r
#if !defined(USE_STATIC_OPTIONS) || defined(__DOXYGEN__)
\r
@@
-311,6
+315,8
@@
* changed in value.
\r
*/
\r
extern volatile uint8_t USB_Options;
\r
* changed in value.
\r
*/
\r
extern volatile uint8_t USB_Options;
\r
+ #elif defined(USE_STATIC_OPTIONS)
\r
+ #define USB_Options USE_STATIC_OPTIONS
\r
#endif
\r
\r
/* Private Interface - For use in library only: */
\r
#endif
\r
\r
/* Private Interface - For use in library only: */
\r
@@
-334,9
+340,9
@@
#define USB_CLK_Freeze() MACROS{ USBCON |= (1 << FRZCLK); }MACROE
\r
#define USB_CLK_Unfreeze() MACROS{ USBCON &= ~(1 << FRZCLK); }MACROE
\r
\r
#define USB_CLK_Freeze() MACROS{ USBCON |= (1 << FRZCLK); }MACROE
\r
#define USB_CLK_Unfreeze() MACROS{ USBCON &= ~(1 << FRZCLK); }MACROE
\r
\r
- #define USB_
Interface_Enable()
MACROS{ USBCON |= (1 << USBE); }MACROE
\r
- #define USB_
Interface_Disable()
MACROS{ USBCON &= ~(1 << USBE); }MACROE
\r
- #define USB_
Interface_Reset() MACROS{
uint8_t Temp = USBCON; USBCON = (Temp & ~(1 << USBE)); \
\r
+ #define USB_
Controller_Enable()
MACROS{ USBCON |= (1 << USBE); }MACROE
\r
+ #define USB_
Controller_Disable()
MACROS{ USBCON &= ~(1 << USBE); }MACROE
\r
+ #define USB_
Controller_Reset() MACROS{ const
uint8_t Temp = USBCON; USBCON = (Temp & ~(1 << USBE)); \
\r
USBCON = (Temp | (1 << USBE)); }MACROE
\r
\r
/* Inline Functions: */
\r
USBCON = (Temp | (1 << USBE)); }MACROE
\r
\r
/* Inline Functions: */
\r