; *************************************************************************** ; 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_COM2W_H #define AVR_MODULES_COM2W_COM2W_H .dseg com2w_iface: .byte COM2W_IFACE_SIZE .cseg ; --------------------------------------------------------------------------- ; @routine COM2W_Init ; ; @clobbers COM2W_Init: ldi yl, LOW(com2w_iface) ldi yh, HIGH(com2w_iface) rcall NET_Interface_Init ; (R16, R17, X) ; setup CLK line (as input, disable internal pull-up resistor) cbi COM_CLK_DDR, COM_CLK_PIN ; set CLK as input .ifdef COM_CLK_PUE inr r16, COM_CLK_PUE cbr r16, (1<