summaryrefslogtreecommitdiff
path: root/cesar/hal/phy
diff options
context:
space:
mode:
authorlefranc2009-12-03 10:45:15 +0000
committerlefranc2009-12-03 10:45:15 +0000
commitb812830862389c93be21c12f1a9a800fbf337c83 (patch)
treedc3784e091e0882c3e736277d3c5c42c62cc4d5f /cesar/hal/phy
parent294303e3ffc3bed296615da5200ac642c37b8189 (diff)
cesar/hal/phy: remove bridgeDMA process delay in maximus
- closes #845 git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6517 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/hal/phy')
-rw-r--r--cesar/hal/phy/maximus/src/maximus_bridgedma.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/cesar/hal/phy/maximus/src/maximus_bridgedma.c b/cesar/hal/phy/maximus/src/maximus_bridgedma.c
index b3fcd8e79c..09870fc5a1 100644
--- a/cesar/hal/phy/maximus/src/maximus_bridgedma.c
+++ b/cesar/hal/phy/maximus/src/maximus_bridgedma.c
@@ -310,24 +310,13 @@ _job_process(phy_bridgedma_t *ctx, phy_bridgedma_job_t *job)
icv_final = crc_compute_end(&ctx->crc_ctx, ctx->icv_current);
_pb_data_add(&pb_current, &data_ptr, job->segment_len, (unsigned char *)&icv_compare, 4, PB_TO_MACFRAME); /* we are in little endian for simulator... */
job->crc_error = (icv_compare != icv_final);
- }
- }
-
- /* schedule the process duration */
- duration = _compute_duration(job->data_len + job->header_len + sizeof(unsigned long));
- if (-1 == netclock_schedule(ctx->station->netclock,
- &ctx->netclock_cb,
- NETWORK_CLOCK_TYPE_STATION,
- ctx->station->current_tick_tck + duration,
- _job_process_cb,
- ctx,
- &netclock_id))
- {
- station_log(&my_station, STATION_LOG_ERROR, STATION_LOGTYPE_PHY,
- "%s: errno = %d", __FUNCTION__, errno);
- dbg_assert_print(false, "errno = %d when scheduling a netclock message", errno);
+ }
}
+ /* job is processed without any delay (because real hardware is
+ very fast */
+ _job_process_cb (ctx);
+
return 0;
}