projects
/
pub
/
lufa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0381399
)
Fix a few more incorrectly ordered endpoint initialisations in the device demos.
author
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 17 Dec 2010 20:26:14 +0000
(20:26 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 17 Dec 2010 20:26:14 +0000
(20:26 +0000)
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
patch
|
blob
|
blame
|
history
LUFA/ManPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
Projects/TempDataLogger/TempDataLogger.c
patch
|
blob
|
blame
|
history
diff --git
a/Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
b/Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
index
2780a41
..
10b1ac0
100644
(file)
--- a/
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
+++ b/
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.h
@@
-42,23
+42,23
@@
#include <LUFA/Drivers/USB/USB.h>
/* Macros: */
#include <LUFA/Drivers/USB/USB.h>
/* Macros: */
- /** Endpoint number of the first CDC interface's device-to-host notification IN endpoint. */
- #define CDC1_NOTIFICATION_EPNUM 3
-
/** Endpoint number of the first CDC interface's device-to-host data IN endpoint. */
#define CDC1_TX_EPNUM 1
/** Endpoint number of the first CDC interface's host-to-device data OUT endpoint. */
#define CDC1_RX_EPNUM 2
/** Endpoint number of the first CDC interface's device-to-host data IN endpoint. */
#define CDC1_TX_EPNUM 1
/** Endpoint number of the first CDC interface's host-to-device data OUT endpoint. */
#define CDC1_RX_EPNUM 2
- /** Endpoint number of the
second
CDC interface's device-to-host notification IN endpoint. */
- #define CDC
2_NOTIFICATION_EPNUM 4
+ /** Endpoint number of the
first
CDC interface's device-to-host notification IN endpoint. */
+ #define CDC
1_NOTIFICATION_EPNUM 3
/** Endpoint number of the second CDC interface's device-to-host data IN endpoint. */
/** Endpoint number of the second CDC interface's device-to-host data IN endpoint. */
- #define CDC2_TX_EPNUM
5
+ #define CDC2_TX_EPNUM
4
/** Endpoint number of the second CDC interface's host-to-device data OUT endpoint. */
/** Endpoint number of the second CDC interface's host-to-device data OUT endpoint. */
- #define CDC2_RX_EPNUM 6
+ #define CDC2_RX_EPNUM 5
+
+ /** Endpoint number of the second CDC interface's device-to-host notification IN endpoint. */
+ #define CDC2_NOTIFICATION_EPNUM 6
/** Size in bytes of the CDC device-to-host notification IN endpoints. */
#define CDC_NOTIFICATION_EPSIZE 8
/** Size in bytes of the CDC device-to-host notification IN endpoints. */
#define CDC_NOTIFICATION_EPSIZE 8
diff --git
a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
index
d15737b
..
3336b22
100644
(file)
--- a/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
+++ b/
Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c
@@
-138,8
+138,8
@@
void EVENT_USB_Device_ConfigurationChanged(void)
{
bool ConfigSuccess = true;
{
bool ConfigSuccess = true;
- ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface);
+ ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
USB_Device_EnableSOFEvents();
USB_Device_EnableSOFEvents();
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
index
7c0539a
..
9c63e99
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
@@
-166,8
+166,8
@@
void EVENT_USB_Device_ConfigurationChanged(void)
{
bool ConfigSuccess = true;
{
bool ConfigSuccess = true;
- ConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Mouse_HID_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Mouse_HID_Interface);
+ ConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
USB_Device_EnableSOFEvents();
USB_Device_EnableSOFEvents();
diff --git
a/LUFA/ManPages/ChangeLog.txt
b/LUFA/ManPages/ChangeLog.txt
index
8f33d53
..
34e772d
100644
(file)
--- a/
LUFA/ManPages/ChangeLog.txt
+++ b/
LUFA/ManPages/ChangeLog.txt
@@
-28,7
+28,7
@@
* - Fixed broken USBFOO board drivers due to missing BOARD_USBFOO define
* - Fixed HID host class driver incorrectly binding to HID devices that do not have an OUT endpoint
* - Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.)
* - Fixed broken USBFOO board drivers due to missing BOARD_USBFOO define
* - Fixed HID host class driver incorrectly binding to HID devices that do not have an OUT endpoint
* - Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID class driver (thanks to Opendous Inc.)
- * - Fixed incorrect endpoint initialisation order in the
LowLevel DualVirtualSerial demo
(thanks to Rick Drolet)
+ * - Fixed incorrect endpoint initialisation order in the
several device demos
(thanks to Rick Drolet)
* - Library Applications:
* - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
* - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground
* - Library Applications:
* - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
* - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground
diff --git
a/Projects/TempDataLogger/TempDataLogger.c
b/Projects/TempDataLogger/TempDataLogger.c
index
c3cfd65
..
e374427
100644
(file)
--- a/
Projects/TempDataLogger/TempDataLogger.c
+++ b/
Projects/TempDataLogger/TempDataLogger.c
@@
-239,8
+239,8
@@
void EVENT_USB_Device_ConfigurationChanged(void)
{
bool ConfigSuccess = true;
{
bool ConfigSuccess = true;
- ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Generic_HID_Interface);
ConfigSuccess &= HID_Device_ConfigureEndpoints(&Generic_HID_Interface);
+ ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
}
LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
}