diff options
| author | tmk <nobody@nowhere> | 2011-01-17 21:51:51 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2011-01-23 04:10:35 +0900 |
| commit | bf1a37ba712b3c42861e7cfabb174724791b41b6 (patch) | |
| tree | f6df1afe42e3421ae3646fb981727f2e5aa1c3e9 /usb.h | |
| parent | 7ad93f7850cd3d20260628b10a8b123d97736e4e (diff) | |
| download | qmk_firmware-bf1a37ba712b3c42861e7cfabb174724791b41b6.tar.gz qmk_firmware-bf1a37ba712b3c42861e7cfabb174724791b41b6.zip | |
PS/2 to USB keyboard converter
Diffstat (limited to 'usb.h')
| -rw-r--r-- | usb.h | 12 |
1 files changed, 9 insertions, 3 deletions
| @@ -6,6 +6,9 @@ | |||
| 6 | #include <avr/io.h> | 6 | #include <avr/io.h> |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | extern bool remote_wakeup; | ||
| 10 | extern bool suspend; | ||
| 11 | |||
| 9 | void usb_init(void); // initialize everything | 12 | void usb_init(void); // initialize everything |
| 10 | uint8_t usb_configured(void); // is the USB port configured | 13 | uint8_t usb_configured(void); // is the USB port configured |
| 11 | void usb_remote_wakeup(void); | 14 | void usb_remote_wakeup(void); |
| @@ -85,8 +88,11 @@ void usb_remote_wakeup(void); | |||
| 85 | #define ENDPOINT_HALT 0 | 88 | #define ENDPOINT_HALT 0 |
| 86 | #define TEST_MODE 2 | 89 | #define TEST_MODE 2 |
| 87 | 90 | ||
| 88 | 91 | // LEDS | |
| 89 | extern bool remote_wakeup; | 92 | #define USB_LED_NUM_LOCK 0 |
| 90 | extern bool suspend; | 93 | #define USB_LED_CAPS_LOCK 1 |
| 94 | #define USB_LED_SCROLL_LOCK 2 | ||
| 95 | #define USB_LED_COMPOSE 3 | ||
| 96 | #define USB_LED_KANA 4 | ||
| 91 | 97 | ||
| 92 | #endif | 98 | #endif |
