; *************************************************************************** ; copyright : (C) 2024 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. * ; *************************************************************************** ; *************************************************************************** ; defines .equ APP_MOTION_KEEPUPTIME = 150 ; 15s ; *************************************************************************** ; data .dseg appMotionKeepupData: .byte FILTER_KEEPUP_DATA_SIZE appMotionValSchedData: .byte VALSCHED_DATA_SIZE ; *************************************************************************** ; code .cseg ; --------------------------------------------------------------------------- ; @routine AppMotion_Init @global ; AppMotion_Init: rcall Motion_Init ldi yl, LOW(appMotionKeepupData) ldi yh, HIGH(appMotionKeepupData) rcall FilterKeepUp_Init ldi r16, LOW(APP_MOTION_KEEPUPTIME) ldi r17, HIGH(APP_MOTION_KEEPUPTIME) rcall FilterKeepUp_SetRestartValue ldi yl, LOW(appMotionValSchedData) ldi yh, HIGH(appMotionValSchedData) rcall ValueScheduler_Init ldi r16, (1<