SAMV71 QSPI: Use new QSPI interface. Can't use SPI interface as planned; the hardware architectue is too different

This commit is contained in:
Gregory Nutt 2015-08-25 15:23:59 -06:00
parent fa9522da41
commit 768aba20ad
3 changed files with 216 additions and 591 deletions

View File

@ -174,7 +174,7 @@
#define QSPI_INT_OVRES (1 << 3) /* Bit 3: Overrun Error Interrupt */ #define QSPI_INT_OVRES (1 << 3) /* Bit 3: Overrun Error Interrupt */
#define QSPI_INT_CSR (1 << 8) /* Bit 8: Chip Select Rise Interrupt */ #define QSPI_INT_CSR (1 << 8) /* Bit 8: Chip Select Rise Interrupt */
#define QSPI_SR_CSS (1 << 9) /* Bit 9: Chip Select Status Interrupt */ #define QSPI_SR_CSS (1 << 9) /* Bit 9: Chip Select Status Interrupt */
#define QSPI_SR_INTSTRE (1 << 10) /* Bit 10: Instruction End Status Interrupt */ #define QSPI_SR_INSTRE (1 << 10) /* Bit 10: Instruction End Status Interrupt */
#define QSPI_SR_QSPIENS (1 << 24) /* Bit 24: QSPI Enable Status (SR only) */ #define QSPI_SR_QSPIENS (1 << 24) /* Bit 24: QSPI Enable Status (SR only) */
#define QSPI_INT_ALL (0x0000070f) #define QSPI_INT_ALL (0x0000070f)

File diff suppressed because it is too large Load Diff

View File

@ -95,7 +95,8 @@ extern "C"
* *
****************************************************************************/ ****************************************************************************/
FAR struct spi_dev_s *sam_qspi_initialize(int intf); struct qspi_dev_s;
FAR struct qspi_dev_s *sam_qspi_initialize(int intf);
#undef EXTERN #undef EXTERN
#if defined(__cplusplus) #if defined(__cplusplus)