@@ -164,7 +164,7 @@ TEST(SPI_Master_Asynchronous, short_tx_0_rx)
164
164
{
165
165
int rc;
166
166
// Write a buffer of Short Transfer length.
167
- rc = obj->transfer ( (const uint8_t *) tx_buf, SHORT_XFR, (uint8_t *) NULL , 0 , callback, 255 );
167
+ rc = obj->transfer ( (const uint8_t *) tx_buf, SHORT_XFR, (uint8_t *) NULL , 0 , callback, SPI_EVENT_ALL );
168
168
CHECK_EQUAL (0 , rc);
169
169
170
170
while (!complete);
@@ -183,7 +183,7 @@ TEST(SPI_Master_Asynchronous, short_tx_0_rx_nn)
183
183
{
184
184
int rc;
185
185
// Write a buffer of Short Transfer length.
186
- rc = obj->transfer ( (const uint8_t *)tx_buf,SHORT_XFR,(uint8_t *) rx_buf, 0 ,callback, - 1 );
186
+ rc = obj->transfer ( (const uint8_t *)tx_buf,SHORT_XFR,(uint8_t *) rx_buf, 0 ,callback, SPI_EVENT_ALL );
187
187
CHECK_EQUAL (0 , rc);
188
188
189
189
while (!complete);
@@ -201,7 +201,7 @@ TEST(SPI_Master_Asynchronous, 0_tx_short_rx)
201
201
{
202
202
int rc;
203
203
// Read a buffer of Short Transfer length.
204
- rc = obj->transfer ( (const uint8_t *)NULL ,0 ,(uint8_t *) rx_buf,SHORT_XFR,callback, - 1 );
204
+ rc = obj->transfer ( (const uint8_t *)NULL ,0 ,(uint8_t *) rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL );
205
205
CHECK_EQUAL (0 , rc);
206
206
207
207
while (!complete);
@@ -222,7 +222,7 @@ TEST(SPI_Master_Asynchronous, 0_tx_nn_short_rx)
222
222
{
223
223
int rc;
224
224
// Read a buffer of Short Transfer length.
225
- rc = obj->transfer (tx_buf,0 ,rx_buf,SHORT_XFR,callback, - 1 );
225
+ rc = obj->transfer (tx_buf,0 ,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL );
226
226
CHECK_EQUAL (0 , rc);
227
227
228
228
while (!complete);
@@ -242,7 +242,7 @@ TEST(SPI_Master_Asynchronous, short_tx_short_rx)
242
242
{
243
243
int rc;
244
244
// Write/Read a buffer of Long Transfer length.
245
- rc = obj->transfer ( tx_buf,SHORT_XFR,rx_buf,SHORT_XFR,callback, - 1 );
245
+ rc = obj->transfer ( tx_buf,SHORT_XFR,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL );
246
246
CHECK_EQUAL (0 , rc);
247
247
248
248
while (!complete);
@@ -261,7 +261,7 @@ TEST(SPI_Master_Asynchronous, long_tx_long_rx)
261
261
{
262
262
int rc;
263
263
// Write/Read a buffer of Long Transfer length.
264
- rc = obj->transfer (tx_buf,LONG_XFR,rx_buf,LONG_XFR,callback, - 1 );
264
+ rc = obj->transfer (tx_buf,LONG_XFR,rx_buf,LONG_XFR,callback, SPI_EVENT_ALL );
265
265
CHECK_EQUAL (0 , rc);
266
266
267
267
while (!complete);
@@ -282,7 +282,7 @@ TEST(SPI_Master_Asynchronous, long_tx_short_rx)
282
282
{
283
283
int rc;
284
284
// Write a buffer of Short Transfer length.
285
- rc = obj->transfer (tx_buf,LONG_XFR,rx_buf,SHORT_XFR,callback, - 1 );
285
+ rc = obj->transfer (tx_buf,LONG_XFR,rx_buf,SHORT_XFR,callback, SPI_EVENT_ALL );
286
286
CHECK_EQUAL (0 , rc);
287
287
288
288
while (!complete);
@@ -302,7 +302,7 @@ TEST(SPI_Master_Asynchronous, short_tx_long_rx)
302
302
{
303
303
int rc;
304
304
// Write a buffer of Short Transfer length.
305
- rc = obj->transfer (tx_buf,SHORT_XFR,rx_buf,LONG_XFR,callback, - 1 );
305
+ rc = obj->transfer (tx_buf,SHORT_XFR,rx_buf,LONG_XFR,callback, SPI_EVENT_ALL );
306
306
CHECK_EQUAL (0 , rc);
307
307
308
308
while (!complete);
@@ -327,7 +327,7 @@ TEST(SPI_Master_Asynchronous, queue_test)
327
327
CHECK_EQUAL (0 , rc);
328
328
rc = obj->transfer ( &tx_buf[4 ],4 , &rx_buf[4 ],4 ,callback, 0 );
329
329
CHECK_EQUAL (0 , rc);
330
- rc = obj->transfer ( &tx_buf[8 ],4 , &rx_buf[8 ],4 ,callback, - 1 );
330
+ rc = obj->transfer ( &tx_buf[8 ],4 , &rx_buf[8 ],4 ,callback, SPI_EVENT_ALL );
331
331
CHECK_EQUAL (0 , rc);
332
332
333
333
while (!complete);
0 commit comments