mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
stm32f0: use proper bit checking I2C ISR transmitter empty status
The wrong define was being used when checking the I2C ISR status. The wrong define just so happened to be the correct bit. BUG=chrome-os-partner:30784 BRANCH=None TEST=Built and ran on ryu. Change-Id: I6c7aad34f5e7c7ace4db4442147023346b6285bc Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/212163 Reviewed-by: Alec Berg <alecaberg@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
116080b151
commit
0c635cc73e
@@ -147,7 +147,7 @@ static void i2c_send_response_packet(struct host_packet *pkt)
|
||||
|
||||
/* Transmit data when I2C tx buffer is empty until finished. */
|
||||
while ((i < size + 2) && tx_pending) {
|
||||
if (STM32_I2C_ISR(host_i2c_resp_port) & STM32_I2C_CR1_TXIE)
|
||||
if (STM32_I2C_ISR(host_i2c_resp_port) & STM32_I2C_ISR_TXIS)
|
||||
STM32_I2C_TXDR(host_i2c_resp_port) = host_buffer[i++];
|
||||
|
||||
/* I2C is slow, so let other things run while we wait */
|
||||
|
||||
Reference in New Issue
Block a user