summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/inc
diff options
context:
space:
mode:
authordufour2009-08-19 09:13:10 +0000
committerdufour2009-08-19 09:13:10 +0000
commit4dcee62cef452099e20dd7db844b41cb12784ff8 (patch)
treef704987490909f35ea95e0109c22e3293bfb143f /cesar/ce/rx/inc
parentd388847527ccf1cf64c775edf32e401d883bf840 (diff)
* ce/rx:
- add some preprocessor macro to include ce_rx header without eCos support. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5257 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/inc')
-rw-r--r--cesar/ce/rx/inc/rx.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/cesar/ce/rx/inc/rx.h b/cesar/ce/rx/inc/rx.h
index 63e8047608..6b848feb5e 100644
--- a/cesar/ce/rx/inc/rx.h
+++ b/cesar/ce/rx/inc/rx.h
@@ -20,8 +20,10 @@
#include "lib/mbox.h"
#include "lib/slab.h"
-#include <cyg/kernel/kapi.h>
-#include <cyg/hal/hal_arch.h>
+#if defined (ECOS) && ECOS
+# include <cyg/kernel/kapi.h>
+# include <cyg/hal/hal_arch.h>
+#endif
#include "ce/rx/rx.h"
#include "ce/rx/cp/cp.h"
@@ -44,6 +46,7 @@ struct ce_rx_t
* Pointer to the MAC config context.
*/
mac_config_t *mac_config;
+#if defined (ECOS) && ECOS
/**
* Flag to know if the CE in RX thread has something to do.
* Basically, the CE in RX thread sleep until another thread tell it to do
@@ -62,6 +65,7 @@ struct ce_rx_t
* The CE in RX ECos thread.
*/
cyg_thread thread;
+#endif
/**
* Stop the CE in RX.
*/
@@ -90,6 +94,7 @@ struct ce_rx_t
* The callback that need to be called when we need to send a MME.
*/
ce_rx_cp_signal_work_t cp_cb;
+#if defined (ECOS) && ECOS
/**
* eCos real-time clock handler (for real-time clock timers/alarms).
*/
@@ -106,6 +111,7 @@ struct ce_rx_t
* eCos alarm handler.
*/
cyg_handle_t alarm_handler;
+#endif
};
/**
@@ -129,12 +135,14 @@ typedef enum ce_rx_work_flag_t
BEGIN_DECLS
+#if defined (ECOS) && ECOS
/**
* Main function of the CE RX thread.
* \param data the CE RX context.
*/
void
ce_rx_thread (cyg_addrword_t data);
+#endif
/**
* Add work for the CE RX thread.
@@ -158,6 +166,7 @@ ce_rx_process_work_quit (ce_rx_t *ce_rx);
void
ce_rx_process_work_measure (ce_rx_t *ce_rx);
+#if defined (ECOS) && ECOS
/**
* Prevent tone maps expiration.
* This function is called every one second to go through each STA and check
@@ -168,6 +177,7 @@ ce_rx_process_work_measure (ce_rx_t *ce_rx);
void
ce_rx_timer_prevent_tone_map_expiration (cyg_handle_t alarm_handler,
cyg_addrword_t data);
+#endif
END_DECLS