From e545251b27003176f5f8560542fb0dcdb8074405 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 17 May 2025 10:48:39 +0200 Subject: [PATCH] moved timer setup code into hardware include file. --- avr/devices/all/hw_tn84.asm | 58 ++++++++++++++++++++++++++++++++++ avr/devices/all/hw_tn841.asm | 58 ++++++++++++++++++++++++++++++++++ avr/devices/all/hw_tn85.asm | 58 ++++++++++++++++++++++++++++++++++ avr/modules/basetimer/main.asm | 50 +---------------------------- 4 files changed, 175 insertions(+), 49 deletions(-) diff --git a/avr/devices/all/hw_tn84.asm b/avr/devices/all/hw_tn84.asm index 3218867..b093245 100644 --- a/avr/devices/all/hw_tn84.asm +++ b/avr/devices/all/hw_tn84.asm @@ -85,3 +85,61 @@ systemSleep: +; --------------------------------------------------------------------------- +; @routine systemSetupTimer0 +; + +systemSetupTimer0: ; setup timer for IRQ every 100ms + ldi r16, (1<