Mercurial > public > hwos_code
comparison src/start.asm @ 633:690c48db7b5b
3.09 beta 2 release
author | heinrichsweikamp |
---|---|
date | Thu, 05 Mar 2020 15:06:14 +0100 |
parents | 185ba2f91f59 |
children | 4050675965ea |
comparison
equal
deleted
inserted
replaced
632:0347acdf6d8e | 633:690c48db7b5b |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File start.asm combined next generation V3.08.8 | 3 ; File start.asm combined next generation V3.09.1 fix |
4 ; | 4 ; |
5 ; Startup subroutines | 5 ; Startup subroutines |
6 ; | 6 ; |
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. | 7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. |
8 ;============================================================================= | 8 ;============================================================================= |
279 clrf DM_flags_deco ; dive deco modes | 279 clrf DM_flags_deco ; dive deco modes |
280 clrf MS_flags_control ; menu system - control | 280 clrf MS_flags_control ; menu system - control |
281 clrf MS_flags_imprint ; menu system - data imprinting | 281 clrf MS_flags_imprint ; menu system - data imprinting |
282 clrf CVT_flags1 ; convert and display functions | 282 clrf CVT_flags1 ; convert and display functions |
283 clrf CVT_flags2 ; convert and display functions | 283 clrf CVT_flags2 ; convert and display functions |
284 | |
285 ; check if option values have changed and thus if the EEPROM needs to be updated | |
286 btfsc options_changed ; do the options need to be stored to EEPROM ? | |
287 call option_check_and_store_all ; YES - check and store all option values in EEPROM | |
288 bcf options_changed ; clear flag | |
289 | 284 |
290 ; configure the OSTC model descriptor (stored in HW_descriptor) | 285 ; configure the OSTC model descriptor (stored in HW_descriptor) |
291 bcf tft_power ; inverted, here needed for I2C_probe_OSTC_rx, to wake-up RX circuity | 286 bcf tft_power ; inverted, here needed for I2C_probe_OSTC_rx, to wake-up RX circuity |
292 bsf ambient_sensor ; set ambient light sensor as available by default | 287 bsf ambient_sensor ; set ambient light sensor as available by default |
293 bsf optical_input ; set optical input as available by default | 288 bsf optical_input ; set optical input as available by default |
431 call ext_flash_disable_protection ; disable write protection for external flash | 426 call ext_flash_disable_protection ; disable write protection for external flash |
432 | 427 |
433 btfsc use_old_batt_flag ; shall reload last battery data? | 428 btfsc use_old_batt_flag ; shall reload last battery data? |
434 call get_battery_data ; YES - get last battery data | 429 call get_battery_data ; YES - get last battery data |
435 | 430 |
431 ; check if option values have changed and thus if the EEPROM needs to be updated | |
432 btfsc options_changed ; do the options need to be stored to EEPROM ? | |
433 call option_check_and_store_all ; YES - check and store all option values in EEPROM | |
434 bcf options_changed ; clear flag | |
435 | |
436 ; set screen orientation | 436 ; set screen orientation |
437 bcf flip_screen ; set default screen orientation | 437 bcf flip_screen ; set default screen orientation |
438 TSTOSC opt_flip_screen ; shall show screen outputs upside down? (=1: flip the screen) | 438 TSTOSC opt_flip_screen ; shall show screen outputs upside down? (=1: flip the screen) |
439 bsf flip_screen ; YES - set upside-down orientation | 439 bsf flip_screen ; YES - set upside-down orientation |
440 | 440 |