Mercurial > public > hwos_code
comparison src/comm.asm @ 483:afa7b66a6a84
Make opt_PSCR_drop and opt_PSCR_lungratio PC configurable
author | heinrichsweikamp |
---|---|
date | Mon, 20 Feb 2017 11:56:10 +0100 |
parents | 237afdfb4918 |
children | 4e6f5c36f4cc |
comparison
equal
deleted
inserted
replaced
482:c0ee33f1f399 | 483:afa7b66a6a84 |
---|---|
1060 clrf TXREG1 ; RCREG1=0x47, ignore conservatism for standard hwOS | 1060 clrf TXREG1 ; RCREG1=0x47, ignore conservatism for standard hwOS |
1061 dcfsnz WREG | 1061 dcfsnz WREG |
1062 movff opt_diveTimeout, TXREG1 ; RCREG1=0x48 | 1062 movff opt_diveTimeout, TXREG1 ; RCREG1=0x48 |
1063 dcfsnz WREG | 1063 dcfsnz WREG |
1064 movff button_polarity, TXREG1 ; RCREG1=0x49 | 1064 movff button_polarity, TXREG1 ; RCREG1=0x49 |
1065 dcfsnz WREG | |
1066 movff opt_PSCR_drop, TXREG1 ; RCREG1=0x4A | |
1067 dcfsnz WREG | |
1068 movff opt_PSCR_lungratio, TXREG1 ; RCREG1=0x4B | |
1065 | 1069 |
1066 | 1070 |
1067 comm_read_abort: | 1071 comm_read_abort: |
1068 comm_read_done: | 1072 comm_read_done: |
1069 bra comm_download_mode0 ; Done. Loop with timeout reset | 1073 bra comm_download_mode0 ; Done. Loop with timeout reset |
1365 nop ; RCREG1=0x47, ignore conservatism for standard hwOS | 1369 nop ; RCREG1=0x47, ignore conservatism for standard hwOS |
1366 dcfsnz WREG | 1370 dcfsnz WREG |
1367 movff RCREG1, opt_diveTimeout ; RCREG1=0x48 | 1371 movff RCREG1, opt_diveTimeout ; RCREG1=0x48 |
1368 dcfsnz WREG | 1372 dcfsnz WREG |
1369 bra comm_write_button_polarity ; RCREG1=0x49 | 1373 bra comm_write_button_polarity ; RCREG1=0x49 |
1374 dcfsnz WREG | |
1375 movff RCREG1, opt_PSCR_drop ; RCREG1=0x4A | |
1376 dcfsnz WREG | |
1377 movff RCREG1, opt_PSCR_lungratio ; RCREG1=0x4B | |
1370 | 1378 |
1371 | 1379 |
1372 comm_write_abort: | 1380 comm_write_abort: |
1373 ; Check Options, gases and diluents | 1381 ; Check Options, gases and diluents |
1374 call option_check_all ; Check all options (and reset if not within their min/max boundaries) | 1382 call option_check_all ; Check all options (and reset if not within their min/max boundaries) |