diff options
| author | tmk <nobody@nowhere> | 2011-01-13 01:26:33 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2011-01-13 01:51:59 +0900 |
| commit | 56e098d76e7d2a843a66f3a6e409f1d38fe7feac (patch) | |
| tree | ffbf7b0ca3ca0b8717528748a7d0f1e973584624 /adb.h | |
| parent | 1f5cd6d7dcbd18f2b647631600df13a0f6d64d25 (diff) | |
| download | qmk_firmware-56e098d76e7d2a843a66f3a6e409f1d38fe7feac.tar.gz qmk_firmware-56e098d76e7d2a843a66f3a6e409f1d38fe7feac.zip | |
ADB to USB keyboard converter
Diffstat (limited to 'adb.h')
| -rw-r--r-- | adb.h | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -0,0 +1,18 @@ | |||
| 1 | #ifndef ADB_H | ||
| 2 | #define ADB_H | ||
| 3 | |||
| 4 | #include <stdbool.h> | ||
| 5 | |||
| 6 | #if !(defined(ADB_PORT) && \ | ||
| 7 | defined(ADB_PIN) && \ | ||
| 8 | defined(ADB_DDR) && \ | ||
| 9 | defined(ADB_DATA_BIT)) | ||
| 10 | # error "ADB port setting is required in config.h" | ||
| 11 | #endif | ||
| 12 | |||
| 13 | // ADB host | ||
| 14 | void adb_host_init(void); | ||
| 15 | bool adb_host_psw(void); | ||
| 16 | uint16_t adb_host_kbd_recv(void); | ||
| 17 | |||
| 18 | #endif | ||
