1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #9700 from miri64/stm32_common/fix/unused-function

stm32_common: i2c_2: fix for -Wunused-function
This commit is contained in:
Martine Lenders 2018-08-03 18:43:06 +02:00 committed by GitHub
commit 233935c539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,6 +507,7 @@ static inline int _wait_ready(I2C_TypeDef *i2c)
return 0;
}
#if I2C_0_ISR || I2C_1_ISR
static inline void irq_handler(i2c_t dev)
{
assert(dev < I2C_NUMOF);
@ -541,6 +542,7 @@ static inline void irq_handler(i2c_t dev)
}
core_panic(PANIC_GENERAL_ERROR, "I2C FAULT");
}
#endif
#if I2C_0_ISR
void I2C_0_ISR(void)