summaryrefslogtreecommitdiffstats
path: root/adb.h
blob: 8a9cee10d09fe9b3c469b6359ae387773deb00e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef ADB_H
#define ADB_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

// ADB host
void     adb_host_init(void);
bool     adb_host_psw(void);
uint16_t adb_host_kbd_recv(void);
void     adb_host_kbd_led(uint8_t led);

#endif