global: add SPI IRQ/isr

This commit is contained in:
King Kévin 2020-02-09 18:56:22 +01:00
parent 221db23430
commit 7005889f01
1 changed files with 4 additions and 0 deletions

View File

@ -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 */