summaryrefslogtreecommitdiff
path: root/hal/phy/maximus/test/src/test_phy_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hal/phy/maximus/test/src/test_phy_ctrl.c')
-rw-r--r--hal/phy/maximus/test/src/test_phy_ctrl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/hal/phy/maximus/test/src/test_phy_ctrl.c b/hal/phy/maximus/test/src/test_phy_ctrl.c
index 2600e52b49..4074cb00ff 100644
--- a/hal/phy/maximus/test/src/test_phy_ctrl.c
+++ b/hal/phy/maximus/test/src/test_phy_ctrl.c
@@ -608,12 +608,12 @@ void maximus_phy_recv_test_case(test_t t)
test_fail_unless ((maximus_pending_isrs & (1 << PHY_HAL_INTERRUPT_PBDMA))
&& (0 == ctx->pbdma.status_word.pb_null)
&& (0 == ctx->pbdma.status_word.null_pb_index)
+ && (1 == ctx->pbdma.status_word.pb_it)
&& (1 == ctx->pbdma.status_word.end_rx_pb)
&& !ctx->control.rx_prepared);
+ // pb_it
ctx->pbdma.status_word.end_rx_pb = 0;
(*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
- ctx->pbdma.status_word.end_rx_pb = 1;
- (*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
maximus_pending_isrs &= (0 << PHY_HAL_INTERRUPT_PBDMA);
}
// test PRS
@@ -1449,10 +1449,9 @@ void phy_tx_frame_test_case(test_t t)
&& (0 == ctx->pbdma.status_word.null_pb_index)
&& (1 == ctx->pbdma.status_word.pb_it)
&& (1 == ctx->pbdma.status_word.end_tx_pb));
+ // pb_it
ctx->pbdma.status_word.end_tx_pb = 0;
(*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
- ctx->pbdma.status_word.end_tx_pb = 1;
- (*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
maximus_pending_isrs &= (0 << PHY_HAL_INTERRUPT_PBDMA);
} test_end;
@@ -1705,11 +1704,11 @@ void maximus_phy_send_test_case(test_t t)
&& (maximus_pending_isrs & (1 << PHY_HAL_INTERRUPT_PBDMA))
&& (0 == ctx->pbdma.status_word.pb_null)
&& (0 == ctx->pbdma.status_word.null_pb_index)
+ && (1 == ctx->pbdma.status_word.pb_it)
&& (1 == ctx->pbdma.status_word.end_tx_pb));
+ // pb_it
ctx->pbdma.status_word.end_tx_pb = 0;
(*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
- ctx->pbdma.status_word.end_tx_pb = 1;
- (*ctx->control.pbdma_cb)(ctx->control.user_data, (*(u32*)(void*)&(ctx->pbdma.status_word)));
maximus_pending_isrs &= (0 << PHY_HAL_INTERRUPT_PBDMA);
// check that the correct phy messages have been sent to Maximus