projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move new Class Driver powered demos to a new ClassDriver subdirectory, re-add old...
[pub/USBasp.git]
/
Bootloaders
/
DFU
/
BootloaderDFU.c
diff --git
a/Bootloaders/DFU/BootloaderDFU.c
b/Bootloaders/DFU/BootloaderDFU.c
index
289b4eb
..
11177c5
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.c
+++ b/
Bootloaders/DFU/BootloaderDFU.c
@@
-139,7
+139,7
@@
int main (void)
/** Event handler for the USB_Disconnect event. This indicates that the bootloader should exit and the user
\r
* application started.
\r
*/
\r
/** Event handler for the USB_Disconnect event. This indicates that the bootloader should exit and the user
\r
* application started.
\r
*/
\r
-
EVENT_HANDLER(USB_Disconnect
)
\r
+
void EVENT_USB_Disconnect(void
)
\r
{
\r
/* Upon disconnection, run user application */
\r
RunBootloader = false;
\r
{
\r
/* Upon disconnection, run user application */
\r
RunBootloader = false;
\r
@@
-149,18
+149,12
@@
EVENT_HANDLER(USB_Disconnect)
* control requests that are not handled internally by the USB library (including the DFU commands, which are
\r
* all issued via the control endpoint), so that they can be handled appropriately for the application.
\r
*/
\r
* control requests that are not handled internally by the USB library (including the DFU commands, which are
\r
* all issued via the control endpoint), so that they can be handled appropriately for the application.
\r
*/
\r
-
EVENT_HANDLER(USB_UnhandledControlPacket
)
\r
+
void EVENT_USB_UnhandledControlPacket(void
)
\r
{
\r
{
\r
- /* Discard unused wIndex value */
\r
- Endpoint_Discard_Word();
\r
-
\r
- /* Discard unused wValue value */
\r
- Endpoint_Discard_Word();
\r
-
\r
/* Get the size of the command and data from the wLength value */
\r
/* Get the size of the command and data from the wLength value */
\r
- SentCommand.DataSize =
Endpoint_Read_Word_LE()
;
\r
+ SentCommand.DataSize =
USB_ControlRequest.wLength
;
\r
\r
\r
- switch (bRequest)
\r
+ switch (
USB_ControlRequest.
bRequest)
\r
{
\r
case DFU_DNLOAD:
\r
Endpoint_ClearSETUP();
\r
{
\r
case DFU_DNLOAD:
\r
Endpoint_ClearSETUP();
\r