To prevent key stuck clear matrix array when ADB error occurs.
This commit is contained in:
parent
dd0017558e
commit
d8ce19abd0
2 changed files with 40 additions and 34 deletions
|
@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#ifndef ADB_H
|
||||
#define ADB_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !(defined(ADB_PORT) && \
|
||||
|
@ -47,6 +48,10 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue