global: add SPI IRQ/isr
This commit is contained in:
parent
221db23430
commit
7005889f01
4
global.h
4
global.h
|
@ -565,6 +565,10 @@
|
|||
#define SPI_CRC_TXR(x) CAT3(SPI,x,_TXCRCR)
|
||||
/** get SPI CRC receive register based on SPI identifier */
|
||||
#define SPI_CRC_RXR(x) CAT3(SPI,x,_RXCRCR)
|
||||
/** get SPI IRQ based on SPI identifier */
|
||||
#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 DMA based on SPI identifier */
|
||||
#define DMA_SPI(x) CAT2(DMA_SPI,x)
|
||||
#define DMA_SPI1 DMA1 /**< SPI1 is on DMA1 */
|
||||
|
|
Loading…
Reference in New Issue