comparison src/comm.asm @ 378:7faa688db105

BUGFIX: BLE timings for MAC issues
author heinrichsweikamp
date Tue, 15 Sep 2015 18:11:08 +0200
parents 57e349960ef4
children 682199d87b5c
comparison
equal deleted inserted replaced
377:f0828110d864 378:7faa688db105
129 bra comm_service_exit 129 bra comm_service_exit
130 130
131 btfsc onesecupdate 131 btfsc onesecupdate
132 bra comm_mode1 132 bra comm_mode1
133 133
134 btfsc rs232_recieve_overflow
135 bra comm_mode2 ; Cycle
136
134 movlw 0xAA ; start byte=0xAA? 137 movlw 0xAA ; start byte=0xAA?
135 cpfseq RCREG1 138 cpfseq RCREG1
136 bra comm_mode2a 139 bra comm_mode2a
137 bra comm_mode2b ; Startbyte for service mode found 140 bra comm_mode2b ; Startbyte for service mode found
138 comm_mode2a: 141 comm_mode2a:
481 bra comm_set_time ; Read time and date from the PC and set clock 484 bra comm_set_time ; Read time and date from the PC and set clock
482 movlw "c" 485 movlw "c"
483 cpfseq RCREG1 486 cpfseq RCREG1
484 bra $+4 487 bra $+4
485 bra comm_set_custom_text ; Send a opt_name_length byte string of custom text. 488 bra comm_set_custom_text ; Send a opt_name_length byte string of custom text.
486 movlw "f" 489 movlw "f" ; 0x66
487 cpfseq RCREG1 490 cpfseq RCREG1
488 bra $+4 491 bra $+4
489 bra comm_send_dive ; Send header and profile for one dive 492 bra comm_send_dive ; Send header and profile for one dive
490 movlw "i" 493 movlw "i"
491 cpfseq RCREG1 494 cpfseq RCREG1
820 bra comm_download_mode0 ; Done. 823 bra comm_download_mode0 ; Done.
821 824
822 ;----------------------------------------------------------------------------- 825 ;-----------------------------------------------------------------------------
823 826
824 comm_send_dive: 827 comm_send_dive:
825 movlw "f" ; send echo 828 movlw "f"; 0x66 ; send echo
826 movwf TXREG1 829 movwf TXREG1
827 830
828 rcall comm_write_get_byte 831 rcall comm_write_get_byte
829 btfsc rs232_recieve_overflow ; Got byte? 832 btfsc rs232_recieve_overflow ; Got byte?
830 bra comm_download_mode0 ; No, abort! 833 bra comm_download_mode0 ; No, abort!