avr: removed LED, renamed LED_SIMPLE to LED, introduces LED1, LED2, LED3
This commit is contained in:
90
avr/modules/led/led3.asm
Normal file
90
avr/modules/led/led3.asm
Normal file
@@ -0,0 +1,90 @@
|
||||
; ***************************************************************************
|
||||
; 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_LED_LED3_ASM
|
||||
#define AVR_MODULES_LED_LED3_ASM
|
||||
|
||||
|
||||
; ***************************************************************************
|
||||
; data
|
||||
|
||||
.dseg
|
||||
|
||||
led3Timer: .byte 1
|
||||
led3OnTime: .byte 1
|
||||
led3OffTime: .byte 1
|
||||
led3Repeat: .byte 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
; ***************************************************************************
|
||||
; code
|
||||
|
||||
.cseg
|
||||
|
||||
|
||||
|
||||
Led3_Init:
|
||||
M_LED_INIT 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Led3_Every100ms:
|
||||
M_LED_EVERY100MS 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Led3_SetDefaultTiming:
|
||||
M_LED_SETDEFAULTTIMING 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
Led3_SetFastTiming:
|
||||
M_LED_SETFASTTIMING 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Led3_SetIdTiming:
|
||||
M_LED_SETIDTIMING 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Led3_SetActivityTiming:
|
||||
M_LED_SETACTIVITYTIMING 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
Led3_SetTiming:
|
||||
M_LED_SETTIMING 3
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user