//------------------------------------------------------------------------------ /// Wait for transfer to finish calling the SPI driver ISR (interrupts are /// disabled). /// \param pAt45 Pointer to an AT45 driver instance. //------------------------------------------------------------------------------ static void AT45D_Wait(At45 *pAt45) { SANITY_CHECK(pAt45); // Wait for transfer to finish while (AT45_IsBusy(pAt45)) SPID_Handler(pAt45->pSpid); }
/** * \brief Check if the At45 driver is in busy. * * \param pAt45 Pointer to the At45 instance to initialize. * \return 1 if the At45 driver is not executing any command,otherwise it returns 0. */ extern uint32_t AT45_IsBusy( At45* pAt45 ) { if (pAt45->pollingMode) { SPID_Handler(pAt45->pSpid); SPID_DmaHandler(pAt45->pSpid); } return SPID_IsBusy( pAt45->pSpid ) ; }
/** * \brief Wait for transfer to finish calling the SPI driver ISR (interrupts are * disabled). * * \param pAt45 Pointer to an AT45 driver instance. */ static void AT45D_Wait( At45* pAt45 ) { assert( pAt45 != NULL ) ; /* Wait for transfer to finish */ while ( AT45_IsBusy( pAt45 ) ) { SPID_Handler( pAt45->pSpid ) ; } }
//------------------------------------------------------------------------------ /// Wait for transfer to finish calling the SPI driver ISR. (interrupts are disabled) /// \param pAt26 Pointer to an AT26 driver instance. //------------------------------------------------------------------------------ static void AT26D_Wait(At26 *pAt26) { // Wait for transfer to finish while (AT26_IsBusy(pAt26)) SPID_Handler(pAt26->pSpid); }
/** * \brief Wait for transfer to finish calling the SPI driver ISR. (interrupts are disabled) * * \param pAt25 Pointer to an AT25 driver instance. */ static void AT25D_Wait(At25 *pAt25) { /* Wait for transfer to finish */ while (AT25_IsBusy(pAt25)) SPID_Handler(pAt25->pSpid); }