comparison code_part1/OSTC_code_asm_part1/start.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents 2972a06b0785
children dc349e4264bb
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
37 bra clear_rambank ; clear... 37 bra clear_rambank ; clear...
38 38
39 ; Defaults for RTC 39 ; Defaults for RTC
40 call disable_rs232 ; disable UART module 40 call disable_rs232 ; disable UART module
41 call RTCinit ; reset RTC 41 call RTCinit ; reset RTC
42
43 ; Extra power-up testing jDG jDG jDG jDG
44 ifdef TESTING
45 call test_menus
46 endif
47 ; DONE jDG jDG jDG jDG
42 48
43 ; Air pressure compensation after reset 49 ; Air pressure compensation after reset
44 call get_calibration_data ; Get calibration data from pressure sensor 50 call get_calibration_data ; Get calibration data from pressure sensor
45 51
46 bcf pressure_refresh 52 bcf pressure_refresh
149 call PLED_boot ; PLED boot (Incl. Clear Screen!) 155 call PLED_boot ; PLED boot (Incl. Clear Screen!)
150 WIN_TOP .0 156 WIN_TOP .0
151 WIN_LEFT .0 157 WIN_LEFT .0
152 WIN_FONT FT_SMALL 158 WIN_FONT FT_SMALL
153 WIN_INVERT .0 ; Init new Wordprocessor 159 WIN_INVERT .0 ; Init new Wordprocessor
154 movlw 0xFF 160 setf WREG
155 movwf oled1_temp 161 movff WREG,win_color1 ; Beware: win_color1 is bank0, and we are bank1 currently
156 movff oled1_temp,win_color1 162 movff WREG,win_color2
157 movlw 0xFF
158 movwf oled1_temp
159 movff oled1_temp,win_color2
160 call I2CReset ; Just in Case any I2C device blocks the Bus 163 call I2CReset ; Just in Case any I2C device blocks the Bus
161 movff last_surfpressure_30min+0,last_surfpressure+0 ; Use 30min old airpressure 164 movff last_surfpressure_30min+0,last_surfpressure+0 ; Use 30min old airpressure
162 movff last_surfpressure_30min+1,last_surfpressure+1 ; Use 30min old airpressure 165 movff last_surfpressure_30min+1,last_surfpressure+1 ; Use 30min old airpressure
163 166
164 ; Check if new CF were added in the last firmware version 167 ; Check if new CF were added in the last firmware version