X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=protocol%2Fadb.h;h=bfe598bbf1a1bba7f470d03f5b553b40086d7613;hb=cb3a547ebff8e09401c7d635ed24585a7521bb19;hp=177f413944bc2a636299dddcf84409012077fde7;hpb=62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26;p=max%2Ftmk_keyboard.git diff --git a/protocol/adb.h b/protocol/adb.h index 177f4139..bfe598bb 100644 --- a/protocol/adb.h +++ b/protocol/adb.h @@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE. #ifndef ADB_H #define ADB_H +#include #include #if !(defined(ADB_PORT) && \ @@ -47,10 +48,15 @@ POSSIBILITY OF SUCH DAMAGE. # error "ADB port setting is required in config.h" #endif +#define ADB_POWER 0x7F +#define ADB_CAPS 0x39 + + // ADB host void adb_host_init(void); bool adb_host_psw(void); uint16_t adb_host_kbd_recv(void); +void adb_host_listen(uint8_t cmd, uint8_t data_h, uint8_t data_l); void adb_host_kbd_led(uint8_t led); #endif