Пример #1
0
/**
 * Main entry point for the SPI automated test.
 * @return
 * - ERROR: Indicates that the test has failed.
 * - SUCCESS: Test has passed
 */
int dspal_tester_spi_test(void)
{
	int result;

	LOG_INFO("beginning spi loopback test");

	if ((result = dspal_tester_spi_loopback_test()) < SUCCESS) {
		LOG_ERR("error: spi loopback test failed: %d", result);
		return result;
	}

	LOG_INFO("beginning spi exceed max write length test");

	if ((result = dspal_tester_spi_exceed_max_length_test()) < SUCCESS) {
		LOG_ERR("error: spi exceed max write length test failed: %d", result);
		return result;
	}

// This test is disabled for the ADSP since it causes conflicts with the serial I/O test
// when executed multiple times in succession.  This is most likely
// related to a known issue with the serial driver which must remain
// open even after the close function is executed.
#if defined(DSP_TYPE_SLPI)
	LOG_INFO("beginning whoami test");
	if ((result = dspal_tester_spi_whoami_test()) < SUCCESS) {
		LOG_ERR("error: spi whoami test failed: %d", result);
		return result;
	}
#endif
	return SUCCESS;
}
Пример #2
0
/**
 * Main entry point for the SPI automated test.
 * @return
 * - ERROR: Indicates that the test has failed.
 * - SUCCESS: Test has passed
 */
int dspal_tester_spi_test(void)
{
	int result;

	LOG_INFO("beginning spi loopback test");

	if ((result = dspal_tester_spi_loopback_test()) < SUCCESS) {
		LOG_ERR("error: spi loopback test failed: %d", result);
		return result;
	}

	LOG_INFO("beginning spi exceed max write length test");

	if ((result = dspal_tester_spi_exceed_max_length_test()) < SUCCESS) {
		LOG_ERR("error: spi exceed max write length test failed: %d", result);
		return result;
	}

	return SUCCESS;
}
Пример #3
0
/**
 * Main entry point for the SPI automated test.
 * @return
 * - ERROR: Indicates that the test has failed.
 * - SUCCESS: Test has passed
 */
int dspal_tester_spi_test(void)
{
    int result;

    FARF(ALWAYS, "beginning spi loopback test");

    if ((result = dspal_tester_spi_loopback_test()) < SUCCESS) {
        FARF(ALWAYS, "error: spi loopback test failed: %d", result);
        return result;
    }

    FARF(ALWAYS, "beginning spi exceed max write length test");

    if ((result = dspal_tester_spi_exceed_max_length_test()) < SUCCESS) {
        FARF(ALWAYS, "error: spi exceed max write length test failed: %d", result);
        return result;
    }

    return SUCCESS;
}