123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef NRF_DRV_QSPI_H__
- #define NRF_DRV_QSPI_H__
- #include <nrfx_qspi.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef nrfx_qspi_config_t nrf_drv_qspi_config_t;
- #if QSPI_PIN_SCK == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_SCK
- #define QSPI_PIN_SCK BSP_QSPI_SCK_PIN
- #endif
- #if QSPI_PIN_CSN == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_CSN
- #define QSPI_PIN_CSN BSP_QSPI_CSN_PIN
- #endif
- #if QSPI_PIN_IO0 == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_IO0
- #define QSPI_PIN_IO0 BSP_QSPI_IO0_PIN
- #endif
- #if QSPI_PIN_IO1 == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_IO1
- #define QSPI_PIN_IO1 BSP_QSPI_IO1_PIN
- #endif
- #if QSPI_PIN_IO2 == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_IO2
- #define QSPI_PIN_IO2 BSP_QSPI_IO2_PIN
- #endif
- #if QSPI_PIN_IO3 == NRF_QSPI_PIN_NOT_CONNECTED
- #undef QSPI_PIN_IO3
- #define QSPI_PIN_IO3 BSP_QSPI_IO3_PIN
- #endif
- #define NRF_DRV_QSPI_DEFAULT_CONFIG NRFX_QSPI_DEFAULT_CONFIG
- #define NRF_DRV_QSPI_DEFAULT_CINSTR NRFX_QSPI_DEFAULT_CINSTR
- #define NRF_DRV_QSPI_EVENT_DONE NRFX_QSPI_EVENT_DONE
- #define nrf_drv_qspi_evt_t nrfx_qspi_evt_t
- #define nrf_drv_qspi_handler_t nrfx_qspi_handler_t
- #define nrf_drv_qspi_init nrfx_qspi_init
- #define nrf_drv_qspi_uninit nrfx_qspi_uninit
- #define nrf_drv_qspi_read nrfx_qspi_read
- #define nrf_drv_qspi_write nrfx_qspi_write
- #define nrf_drv_qspi_erase nrfx_qspi_erase
- #define nrf_drv_qspi_chip_erase nrfx_qspi_chip_erase
- #define nrf_drv_qspi_mem_busy_check nrfx_qspi_mem_busy_check
- #define nrf_drv_qspi_cinstr_xfer nrfx_qspi_cinstr_xfer
- #define nrf_drv_qspi_cinstr_quick_send nrfx_qspi_cinstr_quick_send
- #ifdef __cplusplus
- }
- #endif
- #endif
|