avr: added com2w2 (slightly improved version of com2w).

- move IRQ control to main code (only the main code knows exactly which
  combination of pins is used for com2)
- split one big module into multiple smaller files (easier to maintain)
This commit is contained in:
Martin Preuss
2026-07-05 20:06:00 +02:00
parent b863e29612
commit db3f88f3af
11 changed files with 992 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
; ***************************************************************************
; copyright : (C) 2026 by Martin Preuss
; email : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome". *
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef AVR_MODULES_COM2W2_DEFS_H
#define AVR_MODULES_COM2W2_DEFS_H
.equ COM2W2_WAITTIME1 = 25000
.equ COM2W2_WAITTIME2 = 15000
.equ COM2W2_BUFFER_SIZE = NET_BUFFERS_SIZE-1
.equ COM2W2_IFACE_OFFS_BEGIN = NET_IFACE_SIZE
.equ COM2W2_IFACE_OFFS_BUFFER = COM2W2_IFACE_OFFS_BEGIN+0
.equ COM2W2_IFACE_SIZE = COM2W2_IFACE_OFFS_BUFFER+COM2W2_BUFFER_SIZE
#endif