forked from chrisandreae/keyboard-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usb.h
28 lines (24 loc) · 795 Bytes
/
usb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Name: usb.h
* Project: Kinesis Ergonomic Keyboard Firmware Replacement
* Author: Chris Andreae
* Creation Date: 2012-10-17
* Tabsize: 4
* License: GNU GPL v2 (see GPL2.txt)
*/
#ifndef __USB_H
#define __USB_H
#include <stdint.h>
/**
* Call from long-running operations to keep our watchdog and timers
* up to date. Optionally call usbPoll() (with check to avoid
* reentrancy). Be aware that calling usbPoll() means that we could
* hit our control transfer handlers, so avoid this if we're in a
* state where this would be a bad thing.
*/
void USB_KeepAlive(uint8_t poll);
/**
* Performs a USB update, scanning keyboard/mouse and responding
* to interrupt requests. Includes KeepAlive.
*/
void USB_Perform_Update(uint8_t update_kbd, uint8_t update_mouse);
#endif // __USB_H