Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
43b9d552
Commit
43b9d552
authored
Jan 30, 2011
by
Dean Camera
Browse files
Renamed all driver termination *_ShutDown() functions to the more logical name *_Disable().
parent
9051d3be
Changes
37
Hide whitespace changes
Inline
Side-by-side
Bootloaders/DFU/BootloaderDFU.c
View file @
43b9d552
...
...
@@ -155,7 +155,7 @@ void SetupHardware(void)
void
ResetHardware
(
void
)
{
/* Shut down the USB subsystem */
USB_
ShutDown
();
USB_
Disable
();
/* Relocate the interrupt vector table back to the application section */
MCUCR
=
(
1
<<
IVCE
);
...
...
Demos/DualRole/ClassDriver/MouseHostDevice/HostFunctions.c
View file @
43b9d552
...
...
@@ -81,7 +81,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/JoystickHostWithParser/JoystickHostWithParser.c
View file @
43b9d552
...
...
@@ -219,7 +219,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
View file @
43b9d552
...
...
@@ -211,7 +211,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
View file @
43b9d552
...
...
@@ -237,7 +237,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/MIDIHost/MIDIHost.c
View file @
43b9d552
...
...
@@ -243,7 +243,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
View file @
43b9d552
...
...
@@ -280,7 +280,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/MouseHost/MouseHost.c
View file @
43b9d552
...
...
@@ -198,7 +198,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
View file @
43b9d552
...
...
@@ -228,7 +228,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/PrinterHost/PrinterHost.c
View file @
43b9d552
...
...
@@ -202,7 +202,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
View file @
43b9d552
...
...
@@ -227,7 +227,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
View file @
43b9d552
...
...
@@ -196,7 +196,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/ClassDriver/VirtualSerialHost/VirtualSerialHost.c
View file @
43b9d552
...
...
@@ -172,7 +172,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
View file @
43b9d552
...
...
@@ -114,7 +114,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
View file @
43b9d552
...
...
@@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/JoystickHostWithParser/JoystickHostWithParser.c
View file @
43b9d552
...
...
@@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
View file @
43b9d552
...
...
@@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
View file @
43b9d552
...
...
@@ -103,7 +103,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/MIDIHost/MIDIHost.c
View file @
43b9d552
...
...
@@ -105,7 +105,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Demos/Host/LowLevel/MassStorageHost/MassStorageHost.c
View file @
43b9d552
...
...
@@ -108,7 +108,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
/** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
void
EVENT_USB_Host_HostError
(
const
uint8_t
ErrorCode
)
{
USB_
ShutDown
();
USB_
Disable
();
printf_P
(
PSTR
(
ESC_FG_RED
"Host Mode Error
\r\n
"
" -- Error Code %d
\r\n
"
ESC_FG_WHITE
),
ErrorCode
);
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment