avr: started adding com2wn module (multiple com2w devices in one)

This commit is contained in:
Martin Preuss
2025-08-03 00:55:52 +02:00
parent 6c5dc21f6a
commit 8c13f9fdf7
8 changed files with 1305 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
; ***************************************************************************
; copyright : (C) 2025 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_COM2W_COM2WN_DATA_H
#define AVR_MODULES_COM2W_COM2WN_DATA_H
.dseg
com2wnIoRingBuffer: .byte RINGBUFFERY_SIZE+COM2WN_IO_RINGBUFFER_SIZE
com2wnIoCurrentClockStates: .byte 1
com2wnIoLastClockStates: .byte 1
com2wnIoFlags: .byte 1
.if COM_PORTS >0
com2w0_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >1
com2w1_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >2
com2w2_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >3
com2w3_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >4
com2w4_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >5
com2w5_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >6
com2w6_iface: .byte COM2W_IFACE_SIZE
.endif
.if COM_PORTS >7
com2w7_iface: .byte COM2W_IFACE_SIZE
.endif
#endif ; AVR_MODULES_COM2W_COM2WN_DATA_H