summaryrefslogtreecommitdiff
path: root/cesar/interface/inc
diff options
context:
space:
mode:
authorlaranjeiro2009-04-06 14:45:23 +0000
committerlaranjeiro2009-04-06 14:45:23 +0000
commit0afb4103e4a2ee7e2d091d8f6e16589555a23ccc (patch)
tree041169b304cabced97d517c6a2fc84407dccc0ef /cesar/interface/inc
parentce9a97099d9d062c8c6e47962a9cb54bcd5281e3 (diff)
interface:
Replaced the circular buffer by a mailbox. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4415 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/interface/inc')
-rw-r--r--cesar/interface/inc/context.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/cesar/interface/inc/context.h b/cesar/interface/inc/context.h
index 9c2c863be1..9361ef188b 100644
--- a/cesar/interface/inc/context.h
+++ b/cesar/interface/inc/context.h
@@ -16,7 +16,7 @@
#include <cyg/kernel/kapi.h>
#include <cyg/hal/hal_arch.h>
#include "hle/hle.h"
-#include "lib/circular_buffer.h"
+#include "lib/mbox.h"
#include "mac/common/config.h"
#include "interface/interface.h"
@@ -30,7 +30,7 @@
#define INTERFACE_THREAD_STACK CYGNUM_HAL_STACK_SIZE_TYPICAL
-#define INTERFACE_THREAD_PRIORITY 9
+#define INTERFACE_THREAD_PRIORITY 9
struct interface_t
{
@@ -63,12 +63,8 @@ struct interface_t
interface_beacon_add_cb_t beacon_add_cb;
/** beacon user data. */
void *beacon_user_data;
-
- /** Buffer management. */
- u8 *buffer_list[INTERFACE_BUFFER_LIST_NUM_SLOTS];
- circular_buffer_t buffers;
-
- cyg_mutex_t buffer_mutex;
+ /** Buffer mailbox. */
+ mbox_t buffers_mbox;
/** Thread. */
cyg_thread thread;