aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/serialqueue.c
Commit message (Collapse)AuthorAgeFilesLines
* serialqueue: Increase receive message debug queue to 100 messagesKevin O'Connor2018-09-021-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Compile with gcc -fwhole-program optionKevin O'Connor2018-06-201-13/+14
| | | | | | | Use the -fwhole-program option when compiling the host C code. This makes it easier to support inlining across C files. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Limit message transmission to available receive buffer sizeKevin O'Connor2018-05-281-3/+20
| | | | | | | | | If the mcu is using a traditional serial port, then only send a new message block if there is space available in the mcu receive buffer. This should make it significantly less likely that high load on the mcu will result in retransmits. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Wait to send ack until after processing commandsKevin O'Connor2018-05-281-5/+9
| | | | | | | Send the ack after processing commands - this gives the host code more information on serial buffer utilization. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Fix batching of BACKGROUND_PRIORITY_CLOCK messagesKevin O'Connor2018-05-051-1/+2
| | | | | | | | | In order to properly delay BACKGROUND_PRIORITY_CLOCK messages, they must be 5ms beyond the minimum defined by MIN_REQTIME_DELTA. So, add both MIN_REQTIME_DELTA and MIN_BACKGROUND_DELTA to the timing of these messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Move the host C code to a new klippy/chelper/ directoryKevin O'Connor2018-04-301-0/+1090
Move the C code out of the main klippy/ directory and into its own directory. This reduces the clutter in the main klippy directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>