summaryrefslogtreecommitdiff
path: root/hal/phy/maximus/test
diff options
context:
space:
mode:
authorburet2008-01-25 10:40:28 +0000
committerburet2008-01-25 10:40:28 +0000
commitc69a05462880585f026da608b0509577a8711a32 (patch)
treed94cf46260db2443637470186c3595ac4510e935 /hal/phy/maximus/test
parentac1ebb0d235ffb26987bd2216349e230d3c5de02 (diff)
Maximus V2: HAL PHY chandata transfer error correction.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1330 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/phy/maximus/test')
-rw-r--r--hal/phy/maximus/test/src/test_pbdma.c8
-rw-r--r--hal/phy/maximus/test/src/test_phy_ctrl.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/hal/phy/maximus/test/src/test_pbdma.c b/hal/phy/maximus/test/src/test_pbdma.c
index 8f9e1c13d6..270cc47607 100644
--- a/hal/phy/maximus/test/src/test_pbdma.c
+++ b/hal/phy/maximus/test/src/test_pbdma.c
@@ -77,7 +77,7 @@ void phy_pbdma_start_test_case(test_t t)
&& (nb_ready == ctx->pbdma.nb_ready)
&& (nb_pb_it == ctx->pbdma.nb_pb_it)
&& (pb == ctx->pbdma.first_pb)
- && (!ctx->pbdma.transfer_mode)
+ && (!ctx->pbdma.chandata_transfer)
&& (ctx->pbdma.current_pb == &ctx->pbdma.first_pb->pb_rx));
phy_pb_tx_t * current_pb = &ctx->pbdma.first_pb->pb_tx;
for (i=0; i<PHY_PB_MAX_NB; i++)
@@ -121,7 +121,7 @@ void phy_pbdma_start_test_case(test_t t)
&& (nb_ready == ctx->pbdma.nb_ready)
&& (nb_pb_it == ctx->pbdma.nb_pb_it)
&& (pb == ctx->pbdma.first_pb)
- && (!ctx->pbdma.transfer_mode)
+ && (!ctx->pbdma.chandata_transfer)
&& (ctx->pbdma.current_pb == &ctx->pbdma.first_pb->pb_rx));
} test_end;
}
@@ -271,7 +271,7 @@ void phy_pbdma_start_chandata_test_case(test_t t)
test_fail_unless ((EINVAL != errno)
&& (&chandata == ctx->pbdma.first_chandata)
&& (0 == memcmp(chandata_data, ctx->pbdma.first_chandata->blk.data, 4*chandata_size))
- && (ctx->pbdma.transfer_mode));
+ && (ctx->pbdma.chandata_transfer));
} test_end;
test_begin(t, "pbdma start chandata in Rx")
@@ -279,7 +279,7 @@ void phy_pbdma_start_chandata_test_case(test_t t)
phy_pbdma_start_chandata (ctx, &chandata);
test_fail_unless ((EINVAL != errno)
&& (&chandata == ctx->pbdma.first_chandata)
- && (ctx->pbdma.transfer_mode));
+ && (ctx->pbdma.chandata_transfer));
} test_end;
}
diff --git a/hal/phy/maximus/test/src/test_phy_ctrl.c b/hal/phy/maximus/test/src/test_phy_ctrl.c
index 1858094e2c..887b0e784c 100644
--- a/hal/phy/maximus/test/src/test_phy_ctrl.c
+++ b/hal/phy/maximus/test/src/test_phy_ctrl.c
@@ -575,8 +575,8 @@ void maximus_phy_recv_test_case(test_t t)
// set tx id
phy_hdr.tx_id = 10;
- // set transfer mode
- ctx->pbdma.transfer_mode = true;
+ // set chandata transfer
+ ctx->pbdma.chandata_transfer = true;
// frequency noise
ctx->pbdma.first_chandata = freq_noise_chandata;
@@ -813,7 +813,7 @@ void phy_init_test_case(test_t t)
&& (&phy_access_conf_cb == ctx->control.access_conf_cb)
&& (&phy_pbdma_cb == ctx->control.pbdma_cb)
&& (&phy_deferred_cb == ctx->control.deferred_cb)
- && !ctx->pbdma.transfer_mode);
+ && !ctx->pbdma.chandata_transfer);
ctx->warning_assert = true;
} test_end;