123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef ADB_H
- #define ADB_H
- #include <stdint.h>
- #include <stdbool.h>
- #if !(defined(ADB_PORT) && \
- defined(ADB_PIN) && \
- defined(ADB_DDR) && \
- defined(ADB_DATA_BIT))
- # error "ADB port setting is required in config.h"
- #endif
- #define ADB_POWER 0x7F
- #define ADB_CAPS 0x39
- void adb_host_init(void);
- bool adb_host_psw(void);
- uint16_t adb_host_kbd_recv(void);
- uint16_t adb_host_mouse_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);
- void adb_mouse_task(void);
- void adb_mouse_init(void);
- #endif
|