bra txfc_disable
; tx enable:
+ ;pin_h pall_perpicled
+ call led_green ; we're transmitting
bs_f PIE1, TXIE
return
;----------
txfc_disable
bc_f PIE1, TXIE
+ ;pin_l pall_perpicled
goto led_red ; flow control forces us not to transmit
;----------------------------------------------------------------------
;======================================================================
; ACTUAL TRANSMISSION
-boo
- panic morse_TI1
-
;----------------------------------------------------------------------
serialtx_intrl @
; are we ready to transmit ?
xor_wfw outmsg_end
bra_z tx_bufempty
- mov_fw INDF0
- xor_lw 0xbb
- bra_z boo
mov_fw INDF0
mov_wf TXREG
bra_n tx_justsent_noacknmra
bc_f outmsg_begin, outbuf_szln2
call i2c_consider_restartread
tx_alliswell
- call led_green ; we're transmitting
intrl_handled_nostack
;----------
bra_nz tx_acknmra_send
; nothing at all to do:
bc_f PIE1, TXIE
+ ;pin_z pall_perpicled
call led_black ; we're not transmitting
intrl_handled_nostack