diff options
author | Dean Camera <[email protected]> | 2009-07-27 23:19:17 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2009-07-27 23:19:17 +0000 |
commit | 864196c884ef3602aee44f1a68aceb5819a07f21 (patch) | |
tree | f3042aeb3e58a886739f96bac2a2a6543c8f2cbe /Demos/Device/ClassDriver | |
parent | b9dd51cd632c1a8cff18f77b4f09c33bdf804768 (diff) | |
download | qmk_firmware-864196c884ef3602aee44f1a68aceb5819a07f21.tar.gz qmk_firmware-864196c884ef3602aee44f1a68aceb5819a07f21.zip |
State information for class drivers is now zeroed out during enumeration (both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved.
Diffstat (limited to 'Demos/Device/ClassDriver')
-rw-r--r-- | Demos/Device/ClassDriver/AudioInput/AudioInput.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/AudioOutput/AudioOutput.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/CDC/CDC.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/DualCDC/DualCDC.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/GenericHID/GenericHID.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/Joystick/Joystick.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/Keyboard/Keyboard.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/MIDI/MIDI.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/MassStorage/MassStorage.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/Mouse/Mouse.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c | 5 | ||||
-rw-r--r-- | Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c | 5 |
13 files changed, 0 insertions, 65 deletions
diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.c b/Demos/Device/ClassDriver/AudioInput/AudioInput.c index af0f6d2c78..7b7ca2c11b 100644 --- a/Demos/Device/ClassDriver/AudioInput/AudioInput.c +++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.c @@ -49,11 +49,6 @@ USB_ClassInfo_Audio_Device_t Microphone_Audio_Interface = .DataINEndpointNumber = AUDIO_STREAM_EPNUM,
.DataINEndpointSize = AUDIO_STREAM_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c index f859c7c6e6..129fca5f1d 100644 --- a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c +++ b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c @@ -49,11 +49,6 @@ USB_ClassInfo_Audio_Device_t Speaker_Audio_Interface = .DataINEndpointNumber = AUDIO_STREAM_EPNUM,
.DataINEndpointSize = AUDIO_STREAM_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c index 95e1a69195..3e83ec2696 100644 --- a/Demos/Device/ClassDriver/CDC/CDC.c +++ b/Demos/Device/ClassDriver/CDC/CDC.c @@ -55,11 +55,6 @@ USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface = .NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/DualCDC/DualCDC.c b/Demos/Device/ClassDriver/DualCDC/DualCDC.c index adc17aed36..0de83e1d9f 100644 --- a/Demos/Device/ClassDriver/DualCDC/DualCDC.c +++ b/Demos/Device/ClassDriver/DualCDC/DualCDC.c @@ -56,11 +56,6 @@ USB_ClassInfo_CDC_Device_t VirtualSerial1_CDC_Interface = .NotificationEndpointNumber = CDC1_NOTIFICATION_EPNUM,
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** LUFA CDC Class driver interface configuration and state information. This structure is
diff --git a/Demos/Device/ClassDriver/GenericHID/GenericHID.c b/Demos/Device/ClassDriver/GenericHID/GenericHID.c index 3f9c40281f..72063b6fa7 100644 --- a/Demos/Device/ClassDriver/GenericHID/GenericHID.c +++ b/Demos/Device/ClassDriver/GenericHID/GenericHID.c @@ -51,11 +51,6 @@ USB_ClassInfo_HID_Device_t Generic_HID_Interface = .ReportINBufferSize = GENERIC_REPORT_SIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/Joystick/Joystick.c b/Demos/Device/ClassDriver/Joystick/Joystick.c index 1e13e9933a..9a1080c539 100644 --- a/Demos/Device/ClassDriver/Joystick/Joystick.c +++ b/Demos/Device/ClassDriver/Joystick/Joystick.c @@ -51,11 +51,6 @@ USB_ClassInfo_HID_Device_t Joystick_HID_Interface = .ReportINBufferSize = sizeof(USB_JoystickReport_Data_t),
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/Keyboard/Keyboard.c b/Demos/Device/ClassDriver/Keyboard/Keyboard.c index af56a228cb..ba0d2396fc 100644 --- a/Demos/Device/ClassDriver/Keyboard/Keyboard.c +++ b/Demos/Device/ClassDriver/Keyboard/Keyboard.c @@ -52,11 +52,6 @@ USB_ClassInfo_HID_Device_t Keyboard_HID_Interface = .ReportINBufferSize = sizeof(USB_KeyboardReport_Data_t),
},
-
- .State =
- {
- .IdleCount = 500,
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c b/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c index 5c33eebe16..241553c2a5 100644 --- a/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c +++ b/Demos/Device/ClassDriver/KeyboardMouse/KeyboardMouse.c @@ -53,11 +53,6 @@ USB_ClassInfo_HID_Device_t Keyboard_HID_Interface = .ReportINBufferSize = sizeof(USB_KeyboardReport_Data_t),
},
-
- .State =
- {
- .IdleCount = 500,
- }
};
/** LUFA HID Class driver interface configuration and state information. This structure is
diff --git a/Demos/Device/ClassDriver/MIDI/MIDI.c b/Demos/Device/ClassDriver/MIDI/MIDI.c index a6c31ee478..243ae9ec8a 100644 --- a/Demos/Device/ClassDriver/MIDI/MIDI.c +++ b/Demos/Device/ClassDriver/MIDI/MIDI.c @@ -52,11 +52,6 @@ USB_ClassInfo_MIDI_Device_t Keyboard_MIDI_Interface = .DataOUTEndpointNumber = MIDI_STREAM_OUT_EPNUM,
.DataOUTEndpointSize = MIDI_STREAM_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/MassStorage/MassStorage.c b/Demos/Device/ClassDriver/MassStorage/MassStorage.c index 0a6604cfb2..6a4612e4cd 100644 --- a/Demos/Device/ClassDriver/MassStorage/MassStorage.c +++ b/Demos/Device/ClassDriver/MassStorage/MassStorage.c @@ -54,11 +54,6 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface = .TotalLUNs = TOTAL_LUNS,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/Mouse/Mouse.c b/Demos/Device/ClassDriver/Mouse/Mouse.c index 45d14a38ef..4bb1fa1dc0 100644 --- a/Demos/Device/ClassDriver/Mouse/Mouse.c +++ b/Demos/Device/ClassDriver/Mouse/Mouse.c @@ -51,11 +51,6 @@ USB_ClassInfo_HID_Device_t Mouse_HID_Interface = .ReportINBufferSize = sizeof(USB_MouseReport_Data_t),
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c index ed07184556..81d31c9cd5 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c +++ b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c @@ -58,11 +58,6 @@ USB_ClassInfo_RNDIS_Device_t Ethernet_RNDIS_Interface = .AdapterVendorDescription = "LUFA RNDIS Demo Adapter",
.AdapterMACAddress = {ADAPTER_MAC_ADDRESS},
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
diff --git a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c index 637071a7e3..e51963c7a4 100644 --- a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c +++ b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c @@ -61,11 +61,6 @@ USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface = .NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
},
-
- .State =
- {
- // Leave all state values to their defaults
- }
};
/** Main program entry point. This routine contains the overall program flow, including initial
|