1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-14 I2C: Remove delay in I2C IRQ handlers

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2378 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2011-01-11 03:50:23 +00:00 committed by peabody124
parent 53627014d0
commit d846288cec

View File

@ -926,9 +926,7 @@ void PIOS_I2C_EV_IRQ_Handler(uint8_t i2c)
i2c_adapter = find_i2c_adapter_by_id(i2c);
PIOS_DEBUG_Assert(i2c_adapter);
PIOS_DELAY_WaituS(1);
uint32_t event = I2C_GetLastEvent(i2c_adapter->cfg->regs);
#if defined(PIOS_I2C_DIAGNOSTICS)
@ -1049,10 +1047,7 @@ void PIOS_I2C_ER_IRQ_Handler(uint8_t i2c)
i2c_adapter = find_i2c_adapter_by_id(i2c);
PIOS_DEBUG_Assert(i2c_adapter);
PIOS_DELAY_WaituS(1);
#if defined(PIOS_I2C_DIAGNOSTICS)
uint32_t event = I2C_GetLastEvent(i2c_adapter->cfg->regs);