Skip to content

Commit

Permalink
fixup! UTEST Spi Asynch
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent MEUNIER committed Sep 21, 2016
1 parent 04fe4d2 commit b7a39d0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libraries/tests/utest/spi_asynch/spi_master_asynch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ TEST(SPI_Master_Asynchronous, short_tx_0_rx)
{
int rc;
// Write a buffer of Short Transfer length.
rc = obj->transfer( (const uint8_t *) tx_buf, SHORT_XFR, (uint8_t *) NULL, 0, callback, 255);
rc = obj->transfer( (const uint8_t *) tx_buf, SHORT_XFR, (uint8_t *) NULL, 0, callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -183,7 +183,7 @@ TEST(SPI_Master_Asynchronous, short_tx_0_rx_nn)
{
int rc;
// Write a buffer of Short Transfer length.
rc = obj->transfer( (const uint8_t *)tx_buf,SHORT_XFR,(uint8_t *) rx_buf, 0,callback, -1);
rc = obj->transfer( (const uint8_t *)tx_buf,SHORT_XFR,(uint8_t *) rx_buf, 0,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -201,7 +201,7 @@ TEST(SPI_Master_Asynchronous, 0_tx_short_rx)
{
int rc;
// Read a buffer of Short Transfer length.
rc = obj->transfer( (const uint8_t *)NULL,0,(uint8_t *) rx_buf,SHORT_XFR,callback, -1);
rc = obj->transfer( (const uint8_t *)NULL,0,(uint8_t *) rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -222,7 +222,7 @@ TEST(SPI_Master_Asynchronous, 0_tx_nn_short_rx)
{
int rc;
// Read a buffer of Short Transfer length.
rc = obj->transfer(tx_buf,0,rx_buf,SHORT_XFR,callback, -1);
rc = obj->transfer(tx_buf,0,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -242,7 +242,7 @@ TEST(SPI_Master_Asynchronous, short_tx_short_rx)
{
int rc;
// Write/Read a buffer of Long Transfer length.
rc = obj->transfer( tx_buf,SHORT_XFR,rx_buf,SHORT_XFR,callback, -1);
rc = obj->transfer( tx_buf,SHORT_XFR,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -261,7 +261,7 @@ TEST(SPI_Master_Asynchronous, long_tx_long_rx)
{
int rc;
// Write/Read a buffer of Long Transfer length.
rc = obj->transfer(tx_buf,LONG_XFR,rx_buf,LONG_XFR,callback, -1);
rc = obj->transfer(tx_buf,LONG_XFR,rx_buf,LONG_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -282,7 +282,7 @@ TEST(SPI_Master_Asynchronous, long_tx_short_rx)
{
int rc;
// Write a buffer of Short Transfer length.
rc = obj->transfer(tx_buf,LONG_XFR,rx_buf,SHORT_XFR,callback, -1);
rc = obj->transfer(tx_buf,LONG_XFR,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -302,7 +302,7 @@ TEST(SPI_Master_Asynchronous, short_tx_long_rx)
{
int rc;
// Write a buffer of Short Transfer length.
rc = obj->transfer(tx_buf,SHORT_XFR,rx_buf,LONG_XFR,callback, -1);
rc = obj->transfer(tx_buf,SHORT_XFR,rx_buf,LONG_XFR,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand All @@ -327,7 +327,7 @@ TEST(SPI_Master_Asynchronous, queue_test)
CHECK_EQUAL(0, rc);
rc = obj->transfer( &tx_buf[4],4, &rx_buf[4],4,callback, 0);
CHECK_EQUAL(0, rc);
rc = obj->transfer( &tx_buf[8],4, &rx_buf[8],4,callback, -1);
rc = obj->transfer( &tx_buf[8],4, &rx_buf[8],4,callback, SPI_EVENT_ALL);
CHECK_EQUAL(0, rc);

while (!complete);
Expand Down

0 comments on commit b7a39d0

Please sign in to comment.