i2c: Fix bugs in recent slave mode
usart: add TX ring buffer. Fix bugs in transmit interrupts