Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 813:c87b9f2fb2f6
wakeup from deep sleep mode automatically upon USB connect
author | heinrichsweikamp |
---|---|
date | Tue, 14 Apr 2015 14:50:11 +0200 |
parents | c50296c3059e |
children | 2a0e5d884fc3 |
comparison
equal
deleted
inserted
replaced
812:86efd57c158c | 813:c87b9f2fb2f6 |
---|---|
141 call DISP_display_cns_surface ; Display CNS (if > CF15). | 141 call DISP_display_cns_surface ; Display CNS (if > CF15). |
142 btfss secs,1 | 142 btfss secs,1 |
143 call DISP_display_gf_surface ; Display GF (if > CF8). | 143 call DISP_display_gf_surface ; Display GF (if > CF8). |
144 | 144 |
145 btfsc enter_error_sleep ; Enter Fatal Error Routine? | 145 btfsc enter_error_sleep ; Enter Fatal Error Routine? |
146 call fatal_error_sleep ; Yes (In Sleepmode.asm!) | 146 goto fatal_error_sleep ; Yes (In Sleepmode.asm!) |
147 bcf onesecupdate ; every second tasks done | 147 bcf onesecupdate ; every second tasks done |
148 | 148 |
149 surfloop_loop2: | 149 surfloop_loop2: |
150 ; Tasks approx. every 50ms for all modes | 150 ; Tasks approx. every 50ms for all modes |
151 call test_switches_surfmode ; check switches | 151 call test_switches_surfmode ; check switches |