|
|
|
|
137
|
// occurs after reading the value of rx_buffer_head but before writing
|
137
|
// occurs after reading the value of rx_buffer_head but before writing
|
138
|
// the value to rx_buffer_tail; the previous value of rx_buffer_head
|
138
|
// the value to rx_buffer_tail; the previous value of rx_buffer_head
|
139
|
// may be written to rx_buffer_tail, making it appear as if the buffer
|
139
|
// may be written to rx_buffer_tail, making it appear as if the buffer
|
140
|
- // don't reverse this or there may be problems if the RX interrupt
|
|
|
141
|
- // occurs after reading the value of rx_buffer_head but before writing
|
|
|
142
|
- // the value to rx_buffer_tail; the previous value of rx_buffer_head
|
|
|
143
|
- // may be written to rx_buffer_tail, making it appear as if the buffer
|
|
|
144
|
// were full, not empty.
|
140
|
// were full, not empty.
|
145
|
CRITICAL_SECTION_START;
|
141
|
CRITICAL_SECTION_START;
|
146
|
rx_buffer.head = rx_buffer.tail;
|
142
|
rx_buffer.head = rx_buffer.tail;
|