diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-09-12 12:37:16 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-09-12 12:37:16 +0000 |
| commit | 3d8cb674dcfcb3fcbbae04582ea034b97db11d60 (patch) | |
| tree | 4b4f1c95b376294c9d741372d0742dc4f766a6e1 /Bootloaders/DFU/BootloaderDFU.c | |
| parent | f8322629226c979743554f24c470415d35fae9df (diff) | |
Add the "REQ_" prefix to the DFU class bootloader class-specific request constants.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1474 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders/DFU/BootloaderDFU.c')
| -rw-r--r-- | Bootloaders/DFU/BootloaderDFU.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 7136b972..6f8acc80 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -156,7 +156,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) switch (USB_ControlRequest.bRequest) { - case DFU_DNLOAD: + case REQ_DFU_DNLOAD: Endpoint_ClearSETUP(); /* Check if bootloader is waiting to terminate */ @@ -309,7 +309,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) Endpoint_ClearStatusStage(); break; - case DFU_UPLOAD: + case REQ_DFU_UPLOAD: Endpoint_ClearSETUP(); while (!(Endpoint_IsINReady())) @@ -408,7 +408,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) Endpoint_ClearStatusStage(); break; - case DFU_GETSTATUS: + case REQ_DFU_GETSTATUS: Endpoint_ClearSETUP(); /* Write 8-bit status value */ @@ -428,7 +428,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) Endpoint_ClearStatusStage(); break; - case DFU_CLRSTATUS: + case REQ_DFU_CLRSTATUS: Endpoint_ClearSETUP(); /* Reset the status value variable to the default OK status */ @@ -436,7 +436,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) Endpoint_ClearStatusStage(); break; - case DFU_GETSTATE: + case REQ_DFU_GETSTATE: Endpoint_ClearSETUP(); /* Write the current device state to the endpoint */ @@ -446,7 +446,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void) Endpoint_ClearStatusStage(); break; - case DFU_ABORT: + case REQ_DFU_ABORT: Endpoint_ClearSETUP(); /* Reset the current state variable to the default idle state */ |
