summaryrefslogtreecommitdiff
path: root/hal/phy/maximus/inc
diff options
context:
space:
mode:
authorburet2008-03-03 13:03:25 +0000
committerburet2008-03-03 13:03:25 +0000
commitc63876786246cf6a2aef156ec4360af9d21f9bf6 (patch)
tree53088b8139a68ed41c607fc34ef37ae0461bfbfd /hal/phy/maximus/inc
parentaeb20d2eb252a410a1c18009c3d5ceb4daa84129 (diff)
Maximus V2: HAL PHY -> initialize the random library once with a constant value.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1526 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/phy/maximus/inc')
-rw-r--r--hal/phy/maximus/inc/maximus_defs.h6
-rw-r--r--hal/phy/maximus/inc/maximus_phy_ctx.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/hal/phy/maximus/inc/maximus_defs.h b/hal/phy/maximus/inc/maximus_defs.h
index e544a5edfa..a155fac59e 100644
--- a/hal/phy/maximus/inc/maximus_defs.h
+++ b/hal/phy/maximus/inc/maximus_defs.h
@@ -26,8 +26,12 @@
*/
#define MAXIMUS_PHY_MPDU_RECEPTION_DELAY_TCK ((5 + 5) * 25) // (5 microseconds + 5 microseconds) * 25 ticks per microsecond
-/** Threshold used to determinate if a netclock msg is considered to be programmed in the past
+/** Threshold used to determinate if a netclock msg is considered to be programmed in the past.
*/
#define MAXIMUS_PHY_DATE_TOLERANCE 0x10000000 // 2^28
+/** Init value for random library (u32).
+ */
+#define MAXIMUS_PHY_LIB_RND_SEED 123
+
#endif /* hal_phy_maximus_inc_maximus_defs_h */
diff --git a/hal/phy/maximus/inc/maximus_phy_ctx.h b/hal/phy/maximus/inc/maximus_phy_ctx.h
index c7cba65c7b..a84352130f 100644
--- a/hal/phy/maximus/inc/maximus_phy_ctx.h
+++ b/hal/phy/maximus/inc/maximus_phy_ctx.h
@@ -22,6 +22,7 @@
#include "host/station.h"
#include "host/netclock.h"
#include "hal/phy/maximus/inc/maximus_trace.h"
+#include "lib/rnd.h" // for 'lib_rnd_t'
#ifdef ECOS
#include <cyg/hal/drv_api.h>
#endif /* ECOS */
@@ -199,6 +200,8 @@ struct maximus_phy_ctrl_t
netclock_id_t extra_timer_program_netclock_id;
/** Callback context to insert into callback queue. */
netclock_callback_t *extra_timer_program_netclock_cb;
+ /** Random library context.*/
+ lib_rnd_t *rnd;
#ifdef ECOS
/** phy interrupt descriptor for eCos: relates to rx_fc, access and access_conf and extra_timer events */
cyg_interrupt phy_interrupt;