; *************************************************************************** ; 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. * ; *************************************************************************** #ifndef AQH_AVR_DEVICE_C03_TESTWIN_ASM #define AQH_AVR_DEVICE_C03_TESTWIN_ASM ; *************************************************************************** ; defines ; *************************************************************************** ; data .dseg testApp_ramdata: .byte GUIAPP_SD_SIZE testWin_ramdata: .byte WIDGET_SD_SIZE ; *************************************************************************** ; code .cseg testCntrl: ; OBJECT .dw 0 ; next .dw 0 ; parent .dw testApp_flashdata*2 ; first child .dw 0 ; target .dw 0 ; selector (ony lower 8 bits used) .dw testCntrl_signalmap*2 ; signal map testCntrl_signalmap: .db 0, OBJECT_SIGNAL_CREATE, LOW(GuiCntlr_OnCreate), HIGH(GuiCntlr_OnCreate) .db 0, GUIAPP_SIGNAL_RAISE, LOW(GuiCntlr_OnRaise), HIGH(GuiCntlr_OnRaise) .db 0, 0, 0, 0 ; end of table testApp_flashdata: ; OBJECT .dw 0 ; next .dw testCntrl*2 ; parent .dw 0 ; first child .dw testCntrl*2 ; target .dw 0 ; selector (ony lower 8 bits used) .dw testApp_signalmap*2 ; signal map ; GUIAPP .dw testApp_ramdata ; SDRAM data .dw testWin_flashdata*2 ; root widget .dw 0 ; root timer testApp_signalmap: .db 0, OBJECT_SIGNAL_CREATE, LOW(GuiApp_OnCreate), HIGH(GuiApp_OnCreate) .db 0, 0, 0, 0 ; end of table testWin_flashdata: ; OBJECT .dw 0 ; next .dw 0 ; parent .dw 0 ; first child .dw 0 ; target .dw 0 ; selector (ony lower 8 bits used) .dw testWin_signalmap*2 ; signal map ; WIDGET .db 0, 0 ; opts lo, hi .dw 0 ; X .dw 0 ; Y .dw DISPLAY_WIDTH ; W .dw DISPLAY_HEIGHT ; H .dw 0 ; front color .dw DISPLAY_COLOR_PURPLE ; back color ; .dw STYLE_WIN_FONT*2 ; font .dw 0 ; font .dw testWin_ramdata ; ptr to SDRAM testWin_signalmap: .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) .db 0, 0, 0, 0 ; end of table #endif