comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 416:3abf9d7dafae

diabling uart module when no USB is attached
author heinrichsweikamp
date Mon, 18 Jul 2011 09:44:25 +0200
parents d022c62a1df5
children b63a90a87fe2
comparison
equal deleted inserted replaced
415:d022c62a1df5 416:3abf9d7dafae
381 381
382 read_int_eeprom d'32' ; read gas_change_depth Gas5 382 read_int_eeprom d'32' ; read gas_change_depth Gas5
383 btfss gaslist_active,4 ; Apply depth? 383 btfss gaslist_active,4 ; Apply depth?
384 clrf EEDATA ; No, clear! 384 clrf EEDATA ; No, clear!
385 movff EEDATA,char_I_deco_gas_change+4 ; Yes! 385 movff EEDATA,char_I_deco_gas_change+4 ; Yes!
386
387 ; Debugger
388 ; call enable_rs232
389 ; movff char_I_deco_He_ratio+4,TXREG
390 ; call rs232_wait_tx ; wait for UART
391 ; movff char_I_deco_N2_ratio+4,TXREG
392 ; call rs232_wait_tx ; wait for UART
393 ; movff char_I_deco_He_ratio+3,TXREG
394 ; call rs232_wait_tx ; wait for UART
395 ; movff char_I_deco_N2_ratio+3,TXREG
396 ; call rs232_wait_tx ; wait for UART
397 ; movff char_I_deco_He_ratio+2,TXREG
398 ; call rs232_wait_tx ; wait for UART
399 ; movff char_I_deco_N2_ratio+2,TXREG
400 ; call rs232_wait_tx ; wait for UART
401 ; movff char_I_deco_He_ratio+1,TXREG
402 ; call rs232_wait_tx ; wait for UART
403 ; movff char_I_deco_N2_ratio+1,TXREG
404 ; call rs232_wait_tx ; wait for UART
405 ; movff char_I_deco_He_ratio,TXREG
406 ; call rs232_wait_tx ; wait for UART
407 ; movff char_I_deco_N2_ratio,TXREG
408 ; call rs232_wait_tx ; wait for UART
409 ; movff char_I_deco_gas_change5,TXREG
410 ; call rs232_wait_tx ; wait for UART
411 ; movff char_I_deco_gas_change4,TXREG
412 ; call rs232_wait_tx ; wait for UART
413 ; movff char_I_deco_gas_change3,TXREG
414 ; call rs232_wait_tx ; wait for UART
415 ; movff char_I_deco_gas_change2,TXREG
416 ; call rs232_wait_tx ; wait for UART
417 ; movff char_I_deco_gas_change,TXREG
418 ; call rs232_wait_tx ; wait for UART
419
420 return 386 return
421 387
422 ;----------------------------------------------------------------------------- 388 ;-----------------------------------------------------------------------------
423 ; calculate ppO2 in 0.01bar (e.g. 150 = 1.50 bar ppO2) 389 ; calculate ppO2 in 0.01bar (e.g. 150 = 1.50 bar ppO2)
424 set_actual_ppo2: 390 set_actual_ppo2: