changes function name keyboard_proc to keyboard_task
This commit is contained in:
parent
4edc5ab99c
commit
ef7ad7ac66
@ -166,7 +166,7 @@ int main(void)
|
|||||||
if (host_get_driver() == vusb_driver())
|
if (host_get_driver() == vusb_driver())
|
||||||
usbPoll();
|
usbPoll();
|
||||||
#endif
|
#endif
|
||||||
keyboard_proc();
|
keyboard_task();
|
||||||
#ifdef HOST_VUSB
|
#ifdef HOST_VUSB
|
||||||
if (host_get_driver() == vusb_driver())
|
if (host_get_driver() == vusb_driver())
|
||||||
vusb_transfer_keyboard();
|
vusb_transfer_keyboard();
|
||||||
|
@ -86,6 +86,6 @@ int main(void)
|
|||||||
|
|
||||||
host_set_driver(pjrc_driver());
|
host_set_driver(pjrc_driver());
|
||||||
while (1) {
|
while (1) {
|
||||||
keyboard_proc();
|
keyboard_task();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ int main(void)
|
|||||||
// TODO: configuration process is incosistent. it sometime fails.
|
// TODO: configuration process is incosistent. it sometime fails.
|
||||||
// To prevent failing to configure NOT scan keyboard during configuration
|
// To prevent failing to configure NOT scan keyboard during configuration
|
||||||
if (usbConfiguration && usbInterruptIsReady()) {
|
if (usbConfiguration && usbInterruptIsReady()) {
|
||||||
keyboard_proc();
|
keyboard_task();
|
||||||
}
|
}
|
||||||
vusb_transfer_keyboard();
|
vusb_transfer_keyboard();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user