Mercurial > public > hwos_code
comparison src/comm.asm @ 444:d93d75ae01bf
Adjustable timeout for Divemode (Config 0x48)
author | heinrichsweikamp |
---|---|
date | Wed, 17 Aug 2016 09:50:37 +0200 |
parents | 360acdcda0d7 |
children | aadfe9f2edaf |
comparison
equal
deleted
inserted
replaced
443:84bb5cbebe57 | 444:d93d75ae01bf |
---|---|
1073 movff opt_safety_stop_end, TXREG1 ; RCREG1=0x45 | 1073 movff opt_safety_stop_end, TXREG1 ; RCREG1=0x45 |
1074 dcfsnz WREG | 1074 dcfsnz WREG |
1075 movff opt_safety_stop_reset, TXREG1 ; RCREG1=0x46 | 1075 movff opt_safety_stop_reset, TXREG1 ; RCREG1=0x46 |
1076 dcfsnz WREG | 1076 dcfsnz WREG |
1077 clrf TXREG1 ; RCREG1=0x47, ignore conservatism for standard hwOS | 1077 clrf TXREG1 ; RCREG1=0x47, ignore conservatism for standard hwOS |
1078 dcfsnz WREG | |
1079 movff opt_diveTimeout, TXREG1 ; RCREG1=0x48 | |
1080 | |
1078 | 1081 |
1079 comm_read_abort: | 1082 comm_read_abort: |
1080 comm_read_done: | 1083 comm_read_done: |
1081 bra comm_download_mode0 ; Done. Loop with timeout reset | 1084 bra comm_download_mode0 ; Done. Loop with timeout reset |
1082 | 1085 |
1373 movff RCREG1, opt_safety_stop_end ; RCREG1=0x45 | 1376 movff RCREG1, opt_safety_stop_end ; RCREG1=0x45 |
1374 dcfsnz WREG | 1377 dcfsnz WREG |
1375 movff RCREG1, opt_safety_stop_reset ; RCREG1=0x46 | 1378 movff RCREG1, opt_safety_stop_reset ; RCREG1=0x46 |
1376 dcfsnz WREG | 1379 dcfsnz WREG |
1377 nop ; RCREG1=0x47, ignore conservatism for standard hwOS | 1380 nop ; RCREG1=0x47, ignore conservatism for standard hwOS |
1381 dcfsnz WREG | |
1382 movff RCREG1, opt_diveTimeout ; RCREG1=0x48 | |
1378 | 1383 |
1379 | 1384 |
1380 comm_write_abort: | 1385 comm_write_abort: |
1381 ; Check Options, gases and diluents | 1386 ; Check Options, gases and diluents |
1382 call option_check_all ; Check all options (and reset if not within their min/max boundaries) | 1387 call option_check_all ; Check all options (and reset if not within their min/max boundaries) |