call power_polarising_init
call power_fault_init
call watchdog_init
+ call i2c_consider_restartread ; sends hello when all slaves ack'd
return
;----------------------------------------
master_interrupt_low @
enter_interrupt_low
Dl 0x80
+ Df INTCON
+ Df INTCON2
+ Df INTCON3
+ Df PIR1
+ Df PIR2
+ Df PIR3
+ Dl 0x8d
call tick_intrl
call nmra_serialrx_intrl
call power_fault_intrl
call serialtx_intrl
call points_local_intrl
call i2cm_intrl
+ Dl 0x8e
+ Df INTCON
+ Df INTCON2
+ Df INTCON3
+ Df PIR1
+ Df PIR2
+ Df PIR3
+ Dl 0x8f
panic morse_IL
;----------------------------------------------------------------------
serialrx_table_section code 0x2000
+;--------------------
+command_tellmode
+ mov_lw 0x09
+ goto serial_addbyte
+
;--------------------
serialrx_generalmsg @
;command_<something> has same calling convention:
bra_n serialrx_if_multibyte
bra_z command_crashed
- xor_lw 0x21
+ xor_lw 0x11
bra_z command_power_on
- xor_lw 0x01
+ xor_lw 0x10 ^ 0x11
bra_z command_power_off
+ xor_lw 0x0a ^ 0x10
+ bra_z command_tellmode
bra serialrx_bad
;-----