Mercurial > public > hwos_code
comparison src/menu_tree.asm @ 648:aeca5717d9eb
3.17 / 10.72 release
author | heinrichs weikamp |
---|---|
date | Fri, 04 Mar 2022 08:29:36 +0100 |
parents | 357341239438 |
children | ef2ed7e3a895 |
comparison
equal
deleted
inserted
replaced
647:357341239438 | 648:aeca5717d9eb |
---|---|
1311 ; | 1311 ; |
1312 dyn_show_config: | 1312 dyn_show_config: |
1313 STRCAT_TEXT tHardware ; print text | 1313 STRCAT_TEXT tHardware ; print text |
1314 call I2C_init_compass ; start compass to get compass configuration | 1314 call I2C_init_compass ; start compass to get compass configuration |
1315 movf HW_descriptor,W ; copy hardware descriptor to WREG | 1315 movf HW_descriptor,W ; copy hardware descriptor to WREG |
1316 output_hex ; print as hex | 1316 output_hex ; print as hex |
1317 movf HW_variants,W ; copy hardware variants to WREG | 1317 movf HW_variants,W ; copy hardware variants to WREG |
1318 output_hex ; print as hex | 1318 output_hex ; print as hex |
1319 PUTC "-" ; print a separator | 1319 PUTC "-" ; print a separator |
1320 movlw FW_CONF ; get firmware configuration | 1320 movlw FW_CONF ; get firmware configuration |
1321 output_hex ; print as hex | 1321 output_hex ; print as hex |
1322 call get_cpu_version ; get CPU version | 1322 call get_cpu_version ; get CPU version |
1323 output_hex ; print as hex | 1323 output_hex ; print as hex |
1324 return ; done | 1324 btfss less_io_cpu ; =1: OSTC has a CPU with less I/O pins |
1325 return ; Done. | |
1326 PUTC "*" | |
1327 return ; Less I/O CPU done. | |
1325 | 1328 |
1326 | 1329 |
1327 ;----------------------------------------------------------------------------- | 1330 ;----------------------------------------------------------------------------- |
1328 ; dynamic Title - show Pressure Sensor Calibration Data C1 and C5 | 1331 ; dynamic Title - show Pressure Sensor Calibration Data C1 and C5 |
1329 ; | 1332 ; |
1856 | 1859 |
1857 ;----------------------------------------------------------------------------- | 1860 ;----------------------------------------------------------------------------- |
1858 ; Settings Menu - 3rd Layer - System Settings - Reset Menus | 1861 ; Settings Menu - 3rd Layer - System Settings - Reset Menus |
1859 ; | 1862 ; |
1860 do_menu_reset: | 1863 do_menu_reset: |
1861 MENU_BEGIN tResetMenu, .6 | 1864 MENU_BEGIN tResetMenu, .7 |
1862 MENU_CALL tBack, do_return_menu_syssets_more | 1865 MENU_CALL tBack, do_return_menu_syssets_more |
1863 MENU_CALL tReboot, do_menu_reset_reboot ; confirm | 1866 MENU_CALL tReboot, do_menu_reset_reboot ; confirm |
1864 MENU_CALL tResetDeco, do_menu_reset_deco ; confirm | 1867 MENU_CALL tResetDeco, do_menu_reset_deco ; confirm |
1865 MENU_CALL tResetSettings, do_menu_reset_settings ; confirm | 1868 MENU_CALL tResetSettings, do_menu_reset_settings ; confirm |
1866 MENU_CALL tResetLogbook, do_menu_reset_logbook ; confirm | 1869 MENU_CALL tResetLogbook, do_menu_reset_logbook ; confirm |
1867 MENU_CALL tResetBattery, do_menu_reset_battery ; confirm | 1870 MENU_CALL tResetBattery, do_menu_reset_battery ; confirm |
1871 MENU_CALL tResetBLE2, do_menu_reset_ble2 ; Configure the new BLE module | |
1868 MENU_END | 1872 MENU_END |
1869 | 1873 |
1870 | 1874 |
1871 ;----------------------------------------------------------------------------- | 1875 ;----------------------------------------------------------------------------- |
1872 ; Settings Menu - 4th Layer - System Settings - Reset - Reboot / FW Recovery | 1876 ; Settings Menu - 4th Layer - System Settings - Reset - Reboot / FW Recovery |
2060 do_menu_reset_battery: | 2064 do_menu_reset_battery: |
2061 MENU_BEGIN tNewBattTitle, .2 | 2065 MENU_BEGIN tNewBattTitle, .2 |
2062 MENU_CALL tAbort, do_return_menu_syssets_more_more | 2066 MENU_CALL tAbort, do_return_menu_syssets_more_more |
2063 MENU_CALL tYes, do_new_battery_select | 2067 MENU_CALL tYes, do_new_battery_select |
2064 MENU_END | 2068 MENU_END |
2069 | |
2070 ;----------------------------------------------------------------------------- | |
2071 ; Settings Menu - 4th Layer - System Settings - Reset - Reset BLE2 | |
2072 ; | |
2073 do_menu_reset_ble2: | |
2074 call TFT_ClearScreen ; clear screen to show start of activity | |
2075 call ble2_configure | |
2076 goto surfloop ; restart into surface mode | |
2065 | 2077 |
2066 | 2078 |
2067 ;----------------------------------------------------------------------------- | 2079 ;----------------------------------------------------------------------------- |
2068 ; Entry Point for Battery Selection after Power-Outage | 2080 ; Entry Point for Battery Selection after Power-Outage |
2069 ; | 2081 ; |