global: add I²C macros
This commit is contained in:
parent
4c6e9a4fda
commit
a449b9b7ff
4
global.h
4
global.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user