comparison src/sleepmode.asm @ 28:fcaf94b913db

rx isr
author heinrichsweikamp
date Sat, 20 Jul 2013 16:02:35 +0200
parents 11d4fc797f74
children e4e91fe8b09d
comparison
equal deleted inserted replaced
27:a0fc5d6c207e 28:fcaf94b913db
21 #include "wait.inc" 21 #include "wait.inc"
22 #include "eeprom_rs232.inc" 22 #include "eeprom_rs232.inc"
23 #include "external_flash.inc" 23 #include "external_flash.inc"
24 #include "ghostwriter.inc" 24 #include "ghostwriter.inc"
25 #include "i2c.inc" 25 #include "i2c.inc"
26 #include "mcp.inc"
26 27
27 gui CODE 28 gui CODE
28 29
29 global sleeploop 30 global sleeploop
30 sleeploop: ; enter sleepmode! 31 sleeploop: ; enter sleepmode!
31 call disable_ir ; IR off 32 call disable_ir ; IR off
32 bcf mcp_power ; RX off 33 call mcp_sleep
33 btfsc mcp_power
34 bra $-4
35 bcf LEDg 34 bcf LEDg
36 bcf LEDr 35 bcf LEDr
37 call TFT_Display_FadeOut 36 call TFT_Display_FadeOut
38 call TFT_DisplayOff ; display off 37 call TFT_DisplayOff ; display off
39 call disable_rs232 ; USB off 38 call disable_rs232 ; USB off