projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed NO_CLEARSET_FEATURE_REQUEST compile time token to NO_FEATURELESS_CONTROL_ONLY...
[pub/USBasp.git]
/
Demos
/
KeyboardMouse
/
KeyboardMouse.c
diff --git
a/Demos/KeyboardMouse/KeyboardMouse.c
b/Demos/KeyboardMouse/KeyboardMouse.c
index
383c66a
..
3ee101b
100644
(file)
--- a/
Demos/KeyboardMouse/KeyboardMouse.c
+++ b/
Demos/KeyboardMouse/KeyboardMouse.c
@@
-67,8
+67,8
@@
int main(void)
MCUSR &= ~(1 << WDRF);
\r
wdt_disable();
\r
\r
MCUSR &= ~(1 << WDRF);
\r
wdt_disable();
\r
\r
- /* Disable
Clock D
ivision */
\r
-
SetSystemClockPrescaler(0
);
\r
+ /* Disable
clock d
ivision */
\r
+
clock_prescale_set(clock_div_1
);
\r
\r
/* Hardware Initialization */
\r
Joystick_Init();
\r
\r
/* Hardware Initialization */
\r
Joystick_Init();
\r
@@
-213,10
+213,8
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
/* Clear the endpoint data */
\r
Endpoint_ClearSetupOUT();
\r
\r
/* Clear the endpoint data */
\r
Endpoint_ClearSetupOUT();
\r
\r
- /*
Wait until the host is ready to receive the request confirmation
*/
\r
+ /*
Acknowledge status stage
*/
\r
while (!(Endpoint_IsSetupINReady()));
\r
while (!(Endpoint_IsSetupINReady()));
\r
-
\r
- /* Handshake the request by sending an empty IN packet */
\r
Endpoint_ClearSetupIN();
\r
}
\r
\r
Endpoint_ClearSetupIN();
\r
}
\r
\r