mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
fix(spi): Modify enum SpiIntSrc_Done and SpiIntSrc_DoneEn name.
This commit is contained in:
@ -510,11 +510,11 @@ void ICACHE_FLASH_ATTR SPIIntClear(SpiNum spiNum)
|
||||
if (spiNum > SpiNum_HSPI) {
|
||||
return;
|
||||
}
|
||||
CLEAR_PERI_REG_MASK(SPI_SLAVE(spiNum), SpiIntSrc_TransDoneEn
|
||||
| SpiIntSrc_WrStaDoneEn
|
||||
| SpiIntSrc_RdStaDoneEn
|
||||
| SpiIntSrc_WrBufDoneEn
|
||||
| SpiIntSrc_RdBufDoneEn);
|
||||
CLEAR_PERI_REG_MASK(SPI_SLAVE(spiNum), SpiIntSrc_TransDone
|
||||
| SpiIntSrc_WrStaDone
|
||||
| SpiIntSrc_RdStaDone
|
||||
| SpiIntSrc_WrBufDone
|
||||
| SpiIntSrc_RdBufDone);
|
||||
}
|
||||
|
||||
|
||||
|
@ -108,15 +108,24 @@ typedef enum
|
||||
SpiBitOrder_LSBFirst = 1,
|
||||
} SpiBitOrder;
|
||||
|
||||
// @brief SPI interrupt soource defined.
|
||||
// @brief SPI interrupt source done defined.
|
||||
typedef enum
|
||||
{
|
||||
SpiIntSrc_TransDone = SPI_TRANS_DONE,
|
||||
SpiIntSrc_WrStaDone = SPI_SLV_WR_STA_DONE,
|
||||
SpiIntSrc_RdStaDone = SPI_SLV_RD_STA_DONE,
|
||||
SpiIntSrc_WrBufDone = SPI_SLV_WR_BUF_DONE,
|
||||
SpiIntSrc_RdBufDone = SPI_SLV_RD_BUF_DONE,
|
||||
} SpiIntSrc_Done;
|
||||
|
||||
// @brief SPI interrupt source done enable defined.
|
||||
typedef enum {
|
||||
SpiIntSrc_TransDoneEn = SPI_TRANS_DONE_EN,
|
||||
SpiIntSrc_WrStaDoneEn = SPI_SLV_WR_STA_DONE_EN,
|
||||
SpiIntSrc_RdStaDoneEn = SPI_SLV_RD_STA_DONE_EN,
|
||||
SpiIntSrc_WrBufDoneEn = SPI_SLV_WR_BUF_DONE_EN,
|
||||
SpiIntSrc_RdBufDoneEn = SPI_SLV_RD_BUF_DONE_EN,
|
||||
} SpiIntSrc;
|
||||
} SpiIntSrc_DoneEn;
|
||||
|
||||
// @brief SPI CS pin.
|
||||
typedef enum
|
||||
|
Reference in New Issue
Block a user