chiark / gitweb /
incoming point commands and outgoing to slave; ping commands
[trains.git] / detpic / morse.messages
1 # This is the list of morse panic messages.  Each line consists of:
2 #    <morse>  [<address>,<address>...]   [; <description>]
3 # This file is converted to morse.asm by the Perl script morse.asm-gen.
4 # See morse.asm-gen for information about the format of the data stored
5 # in flash.  Only addresses in the Access Bank are supported.
6
7 # Suggested output by on the per-pic-led is:
8 #    morse (red/black)   contents of one address
9 #    morse (red/black)   contents of next address
10 #    ...
11 #    morse (red/black)   contents of last address
12 #    long pause
13 #    go back to start
14 # Contents of addresses should preferably be read into a temporary
15 # buffer space somewhere so that each one is read once and that value
16 # remembered.
17
18 # Main message listing.  Kept sorted by morse for easy reference.
19 # ---------------------------------------------------------------
20
21 # Miscellaneous
22 E                               ; `expected'; we were told to panic
23 T                               ; master paniced because slave paniced
24
25 # Regarding communications from the host
26 HX      ::t                     ; host sent unknown command
27 HW      ::t                     ; host sent message which was too long
28 HO                              ; host RS232 read overrun
29 HF                              ; host RS232 framing error
30 HN                              ; host sent too much NMRA - buffers full
31 HM                              ; host sent too much NMRA - ack count overflow
32 HB                              ; data for host overran buffer
33 HP                              ; host sent >2-byte PING command
34
35 # Regarding communications by master with slaves
36 MX                              ; slave (or intern) sent bad extra byte
37 MR      mascan:b,mascan:cslot   ; reversers set byte with zz bit set
38 MD                              ; i2cmu_done !
39
40 # Problematic interrupts
41 IH      INTCON,INTCON3,PIR1,PIR2,PIR3 ; Interrupt source not found (high pri.)
42 IL      INTCON,INTCON3,PIR1,PIR2,PIR3 ; Interrupt source not found (low pri.)
43 IP      INTCON                  ; Interrupt of priority supposedly disabled
44
45 # Temporary entries for testing and development
46 TM      PIE1,SSPSTAT,SSPCON1,SSPCON2 ; Master got I2C interrupt
47 TI1                             ; for iwj
48 TI2                             ; for iwj
49 TI3                             ; for iwj
50 TI4                             ; for iwj
51 TI5                             ; for iwj
52 ZM      i2clib:st,:sspstat,:sspcon1,:sspcon2 ; for testing
53
54 # Unimplemented things
55 UL
56 UM
57 UE
58 UC
59 UI
60 UG
61 UX
62 UES
63 UER
64 UEC
65 URM
66 UCI
67 UCP
68 USP
69
70 # Messages for i2clib, S*
71 SM      i2clib:st,:sspstat,:sspcon1,:sspcon2 ; m.,i., ctrlr bad state
72 SS      SSPSTAT,SSPCON1                 ; s.,i., controller bad state
73 SK      i2clib:slave                    ; m. couldn't address slave (no ack)
74 SN      i2clib:slave                    ; improper slave number
75 SB      i2clib:st                       ; improper i2cm_{read,write}_start
76 SF      i2clib:st                       ; improper i2cmu_write_next_byte Z
77 SA      i2clib:st                       ; improper i2cm_read_another
78 SD      i2clib:st                       ; impr. i2cm_read_done/i2cs_read_data
79
80 # Messages for slave detection/i2c
81 DQ      FSR2L,::outmsg_end              ; previous slave read incomplete
82 DR      FSR2L,::outmsg_end              ; slave read overrun
83 DX      ::t                             ; slave received wrong message byte
84 DB      detect:message_buffer           ; slave_add_short_message overrun
85 DF      ::t                             ; slave pic2detinfo[0] invalid bits
86 DG      ::t                             ; too many slaves in pic2detinfo
87 DM      ::buf0                          ; master has MM bit set in buf0
88
89 # Messages for specific peripherals:
90 # R - Reversers (polarity)
91 RS      FSR0L                           ; POLARITY message too short
92 RL      FSR0L                           ; POLARITY message too long
93
94 # P - Points
95 PB      points:pointmsg                 ; Firing point when already busy
96 PI      points:pointmsg,T3CON           ; Unexpected Timer 3 interrupt
97 PU      points:pointmsg                 ; Firing nonexistent point
98 PF      ::t                             ; Flash mentions point not on board
99 PX                                      ; Host sent >2-byte POINT command
100 PM                                      ; Firing point when master/CDU busy