; *************************************************************************** ; 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_MAIN_H #define AVR_MODULES_COM2W2_MAIN_H .cseg ; --------------------------------------------------------------------------- ; @routine COM2W2_Init ; ; @clobbers COM2W2_Init: ldi yl, LOW(com2w2_iface) ldi yh, HIGH(com2w2_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<