; *************************************************************************** ; 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. * ; *************************************************************************** ; Hardware routine for AtTiny 84 devices .cseg ; --------------------------------------------------------------------------- ; @routine systemInitHardware ; systemInitHardware: ; set all ports as inputs and enable internal pull-up resistors ; ldi r16, 0xff clr r17 outr DDRA, r17 ; all input outr PUEA, r17 ; disable pull-up on all outr DDRB, r17 ; all input outr PUEB, r17 ; disable pull-up on all ret ; @end ; --------------------------------------------------------------------------- ; @routine systemSetSpeed ; systemSetSpeed: .if clock == 1000000 ldi r17, 0xd8 ldi r16, (1<