projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed HWB board driver to Buttons driver, to allow for the support of future boards...
[pub/USBasp.git]
/
Demos
/
Device
/
Mouse
/
Mouse.c
diff --git
a/Demos/Device/Mouse/Mouse.c
b/Demos/Device/Mouse/Mouse.c
index
669b576
..
7fff291
100644
(file)
--- a/
Demos/Device/Mouse/Mouse.c
+++ b/
Demos/Device/Mouse/Mouse.c
@@
-81,7
+81,7
@@
int main(void)
/* Hardware Initialization */
\r
Joystick_Init();
\r
LEDs_Init();
\r
/* Hardware Initialization */
\r
Joystick_Init();
\r
LEDs_Init();
\r
-
HWB
_Init();
\r
+
Buttons
_Init();
\r
\r
/* Millisecond timer initialization, with output compare interrupt enabled for the idle timing */
\r
OCR0A = 0x7D;
\r
\r
/* Millisecond timer initialization, with output compare interrupt enabled for the idle timing */
\r
OCR0A = 0x7D;
\r
@@
-305,7
+305,7
@@
void CreateMouseReport(USB_MouseReport_Data_t* ReportData)
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 0);
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 0);
\r
\r
- if (
HWB_GetStatus()
)
\r
+ if (
Buttons_GetStatus() & BUTTONS_BUTTON1
)
\r
ReportData->Button |= (1 << 1);
\r
}
\r
\r
ReportData->Button |= (1 << 1);
\r
}
\r
\r