Changeset 590 for trunk/softs/tsar_boot/include/spi.h
- Timestamp:
- Dec 5, 2013, 4:40:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/include/spi.h
r398 r590 36 36 */ 37 37 unsigned int ss; 38 unsigned int dma_base; 39 unsigned int dma_baseh; 40 unsigned int dma_count; 38 41 }; 39 42 … … 130 133 #define SPI_CTRL_RXN_EN ( 1 << 9 ) /**< MISO is latched on neg edge */ 131 134 #define SPI_CTRL_GO_BSY ( 1 << 8 ) /**< Start the transfer */ 135 #define SPI_CTRL_DMA_BSY (1 << 16) /*** DMA in progress */ 132 136 #define SPI_CTRL_CHAR_LEN_MASK ( 0xFF ) /**< Bits transmited in 1 transfer */ 133 137 #define SPI_RXTX_MASK ( 0xFF ) /**< Mask for the an RX/TX value */ 138 139 #define SPI_DMA_COUNT_READ (1 << 0) /* operation is a read (else write) */ 134 140 135 141 /** … … 140 146 * \brief Check the GO_BUSY bit of the SPI Controller 141 147 */ 142 #define SPI_IS_BUSY(x) ((ioread32(&x->ctrl) & SPI_CTRL_GO_BSY) != 0) ? 1 : 0148 #define SPI_IS_BUSY(x) ((ioread32(&x->ctrl) & (SPI_CTRL_GO_BSY|SPI_CTRL_DMA_BSY)) != 0) ? 1 : 0 143 149 144 150 #endif
Note: See TracChangeset
for help on using the changeset viewer.