Mercurial > public > hwos_code
comparison src/surfmode.asm @ 354:043890f06bce
some cleanups
author | heinrichsweikamp |
---|---|
date | Wed, 29 Jul 2015 20:39:35 +0200 |
parents | 5c6da9fa5cb0 |
children | a9e35c1327aa |
comparison
equal
deleted
inserted
replaced
353:573f2251cf49 | 354:043890f06bce |
---|---|
85 call I2C_init_accelerometer | 85 call I2C_init_accelerometer |
86 clrf ext_flash_address+0 | 86 clrf ext_flash_address+0 |
87 clrf ext_flash_address+1 | 87 clrf ext_flash_address+1 |
88 clrf ext_flash_address+2 | 88 clrf ext_flash_address+2 |
89 | 89 |
90 movlw surface_sp ; in cbar | |
91 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics | |
90 btfsc rechargeable | 92 btfsc rechargeable |
91 call piezo_config ; Configure buttons | 93 call piezo_config ; Configure buttons |
92 | 94 |
93 clrf timeout_counter2 | 95 clrf timeout_counter2 |
94 clrf timeout_counter3 | 96 clrf timeout_counter3 |
95 bcf menubit ; clear menu flag | 97 bcf menubit ; clear menu flag |
96 clrf last_pressure+0 | 98 clrf last_pressure+0 |
135 movwf TBLPTRH | 137 movwf TBLPTRH |
136 movlw UPPER(ostc_logo_block) | 138 movlw UPPER(ostc_logo_block) |
137 movwf TBLPTRU | 139 movwf TBLPTRU |
138 call color_image | 140 call color_image |
139 | 141 |
140 movlw surface_sp ; in cbar | |
141 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics | |
142 call TFT_clock ; display time | 142 call TFT_clock ; display time |
143 call update_surfloop60 | 143 call update_surfloop60 |
144 call get_battery_voltage ; get battery voltage | 144 call get_battery_voltage ; get battery voltage |
145 call TFT_update_batt_voltage ; display battery voltage | 145 call TFT_update_batt_voltage ; display battery voltage |
146 call TFT_update_surf_press ; display surface pressure | 146 call TFT_update_surf_press ; display surface pressure |