global: add I²C macros

This commit is contained in:
King Kévin 2020-12-12 14:05:41 +01:00
parent f48408ba7a
commit 707355f161
1 changed files with 4 additions and 0 deletions

View File

@ -476,6 +476,10 @@ int32_t adds32_safe(int32_t a, int32_t b);
#define SPI_IRQ(x) CAT3(NVIC_SPI,x,_IRQ)
/** get SPI ISR based on SPI identifier */
#define SPI_ISR(x) CAT3(spi,x,_isr)
/** get I²C based on I²C identifier */
#define I2C(x) CAT2(I2C,x)
/** get RCC for I²C based on I²C identifier */
#define RCC_I2C(x) CAT2(RCC_I2C,x)
/** @} */
/** @defgroup board_led board LED GPIO