I2C. Minor fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3540 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-11-27 19:49:48 +00:00
parent 8ab75bd9f7
commit e5ce81050f
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ static volatile uint16_t dbgCR2 = 0;
/* Driver local functions. */
/*===========================================================================*/
#if I2C_SUPPORTS_CALLBACKS
#if !(STM32_I2C_I2C1_USE_POLLING_WAIT)
#if (!(STM32_I2C_I2C1_USE_POLLING_WAIT)) && STM32_I2C_USE_I2C1
/* I2C1 GPT callback. */
static void i2c1gptcb(GPTDriver *gptp) {
(void)gptp;
@ -120,7 +120,7 @@ static const GPTConfig i2c1gptcfg = {
};
#endif /* STM32_I2C_I2C1_USE_POLLING_WAIT */
#if !(STM32_I2C_I2C2_USE_POLLING_WAIT)
#if (!(STM32_I2C_I2C2_USE_POLLING_WAIT)) && STM32_I2C_USE_I2C2
/* I2C2 GPT callback. */
static void i2c2gptcb(GPTDriver *gptp) {
(void)gptp;