summaryrefslogtreecommitdiff
path: root/cp/station/src/station_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'cp/station/src/station_core.c')
-rw-r--r--cp/station/src/station_core.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/cp/station/src/station_core.c b/cp/station/src/station_core.c
index be94f84da7..ecc40337de 100644
--- a/cp/station/src/station_core.c
+++ b/cp/station/src/station_core.c
@@ -63,25 +63,22 @@ station_init (void)
sta_initialize_handler();
// initialize the station data
station_data_init();
- // TODO init station_seed
-
- // 2) init the others modules
- interf_init ();
- beacon_init();
- // TODO init the others modules
-
+ // TODO init station_seed
// wait 60 ms for some zero cross (to calculate network frequency)
- #if DEBUG == 0
- cyg_thread_delay (interf_ms_to_cyg_tick (60));
- #endif
+// #if DEBUG == 0
+// cyg_thread_delay (interf_ms_to_cyg_tick (60));
+// #endif
station_init_fsm();
- station_wait_event ();
+ #if DEBUG == 1
+ // TODO remove the following event when not in debug mode
+ if(sta_add_event(RECEIVE_DRV_MAC_START_REQ, NULL) != EV_OK) dbg_assert(0);
+ #endif
}
void
-station_wait_event (void)
+station_wait_event (cyg_addrword_t data)
{
cyg_flag_value_t flag_value, flag_mask;
uint i;