sensepost / USaBUSe

Universal Serial aBUSe is a project to demonstrate the risks of hardware bypasses of software security by Rogan Dawes at SensePost.
Other
493 stars 86 forks source link

Use ESP GPIO_0 for UART flow control for data sent from ESP to AVR #5

Open RoganDawes opened 8 years ago

RoganDawes commented 8 years ago

Rather than requiring the AVR to explicitly ack receipt of a packet over the UART, indicating space available in the AVR's buffer for more data, make use of GPIO_0 to signal the ESP whether it can transmit data. This will allow the AVR to trigger flow control in UART receive interrupt context, rather than having to wait until the main thread can send the ack. This should help to keep the AVR's receive buffer from stalling, and improve overall throughput.