diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-09 07:21:53 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-08-09 07:21:53 +0000 |
| commit | fc542edf3d9b6ba2fdd5433aa5274f6cb89784f0 (patch) | |
| tree | 6ae17309161c00e8240d717384e74f106047d98e /Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c | |
| parent | dac2fbe8bf5964f3f289afbcd7765b6ed26223fa (diff) | |
Add notification endpoint to the incomplete TMC demo.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1437 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c')
| -rw-r--r-- | Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c index 040cb345..e174aa99 100644 --- a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c +++ b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c @@ -120,7 +120,7 @@ void EVENT_USB_Device_ConfigurationChanged(void) {
LEDs_SetAllLEDs(LEDMASK_USB_READY);
- /* Setup TMC In and Out Endpoints */
+ /* Setup TMC In, Out and Notification Endpoints */
if (!(Endpoint_ConfigureEndpoint(TMC_IN_EPNUM, EP_TYPE_BULK,
ENDPOINT_DIR_IN, TMC_IO_EPSIZE,
ENDPOINT_BANK_SINGLE)))
@@ -134,6 +134,13 @@ void EVENT_USB_Device_ConfigurationChanged(void) {
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
+
+ if (!(Endpoint_ConfigureEndpoint(TMC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
+ ENDPOINT_DIR_IN, TMC_NOTIFICATION_EPSIZE,
+ ENDPOINT_BANK_SINGLE)))
+ {
+ LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
+ }
}
/** Event handler for the USB_UnhandledControlRequest event. This is used to catch standard and class specific
|
