added missing adb.h

This commit is contained in:
demik 2021-03-23 23:31:27 +01:00
parent dd2ed96397
commit 355daa2c29
3 changed files with 51 additions and 3 deletions

1
.gitignore vendored
View File

@ -51,3 +51,4 @@ Icon
# Project specific
/build
sdkconfig.old

View File

@ -1,15 +1,18 @@
### v1.2
#### Unreleased
- testing blue PCB
#### PCB 1.2
- moved a few labels around the silk layer
- moved the ADB socket out by 2mm
- tone down LEDs by about 50% (christmas is over)
- replaced TXB0108PWR by TXS0108EPWR
### v1.1
#### PCB 1.1
- added beads to reduce EMI
- fixed missong OE on TXB0108
- tone down LEDs by about 20%
- fixed Pick&Place rotations
- added PCB Antenna
### v1.0
#### PCB 1.0
- Initial board release

44
main/adb.h Normal file
View File

@ -0,0 +1,44 @@
/*
* adb.h
* quack
*
* Created by Michel DEPEIGE on 7/01/2021.
* Copyright (c) 2020 Michel DEPEIGE.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (see the file COPYING); if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
*/
#ifndef ADB_H
#define ADB_H
/* prototypes */
void adb_init(void);
void adb_task_host(void *pvParameters);
void adb_task_mouse(void *pvParameters);
void adb_tx_cmd(unsigned char cmd);
void adb_tx_reset(void);
/* defines */
/* ADB commands values from 00591b.pdf page 16-17 */
#define ADB_MOUSE (3<<4)
#define ADB_TALK 0xC
#define ADB_LISTEN 0x8
#define ADB_REG0 0x0
#endif