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:
26
avr/modules/com2w2/defs.asm
Normal file
26
avr/modules/com2w2/defs.asm
Normal 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
|
||||
Reference in New Issue
Block a user