//------------------------------------------------------------------------------ /// Waits for the At45 to be ready to accept new commands. /// \param pAt45 Pointer to a At45 driver instance. //------------------------------------------------------------------------------ void AT45D_WaitReady(At45 *pAt45) { unsigned char ready = 0; SANITY_CHECK(pAt45); // Poll device until it is ready while (!ready) ready = AT45_STATUS_READY(AT45D_GetStatus(pAt45)); }
/** * \brief Waits for the At45 to be ready to accept new commands. * * \param pAt45 Pointer to an AT45 driver instance. */ void AT45D_WaitReady(At45 *pAt45) { uint8_t ready = 0; SANITY_CHECK(pAt45); /* Poll device until it is ready.*/ while (!ready) { ready = AT45_STATUS_READY(AT45D_GetStatus(pAt45)); } }
/** * \brief Waits for the At45 to be ready to accept new commands. * * \param pAt45 Pointer to an AT45 driver instance. */ extern void AT45D_WaitReady( At45* pAt45 ) { uint8_t ready = 0; assert( pAt45 != NULL ) ; /* Poll device until it is ready. */ while (!ready) { ready = AT45_STATUS_READY(AT45D_GetStatus(pAt45)); } }