コード例 #1
0
ファイル: at45d.c プロジェクト: gstroe/Arm
//------------------------------------------------------------------------------
/// 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));
}
コード例 #2
0
ファイル: at45d.c プロジェクト: alexrayne/freemodbus
/**
 * \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));
    }
}
コード例 #3
0
ファイル: at45d.c プロジェクト: chenzhengxi/2060-83
/**
 * \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));
    }
}