diff --git a/.gitignore b/.gitignore index e1c0d0a..fbd5315 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,4 @@ Icon # Project specific /build +sdkconfig.old diff --git a/EDA/ChangeLog b/EDA/ChangeLog.md similarity index 81% rename from EDA/ChangeLog rename to EDA/ChangeLog.md index 06237a3..11eaf67 100644 --- a/EDA/ChangeLog +++ b/EDA/ChangeLog.md @@ -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 diff --git a/main/adb.h b/main/adb.h new file mode 100644 index 0000000..237b852 --- /dev/null +++ b/main/adb.h @@ -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