Recover fix for and enabling of interrupt-driven I2C.

This commit is contained in:
px4dev 2013-01-11 02:33:02 -08:00
parent fbf4c44230
commit 41987c7848
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ CONFIG_CAN2_BAUD=700000
# I2C configuration
#
CONFIG_I2C=y
CONFIG_I2C_POLLED=y
#CONFIG_I2C_POLLED=y
CONFIG_I2C_TRANSFER=y
CONFIG_I2C_TRACE=n
CONFIG_I2C_RESET=y

View File

@ -97,6 +97,6 @@ int clock_time2ticks(FAR const struct timespec *reltime, FAR int *ticks)
/* Convert microseconds to clock ticks */
*ticks = relusec / USEC_PER_TICK;
*ticks = (relusec + USEC_PER_TICK - 1) / USEC_PER_TICK;
return OK;
}