summaryrefslogtreecommitdiff
path: root/cp
diff options
context:
space:
mode:
authorGuillaume2007-09-04 13:44:09 +0000
committerGuillaume2007-09-04 13:44:09 +0000
commit884d3bc9298454f12a0d0d79f9c8ea2faf04e768 (patch)
tree338d06c19caaa21b5d3eb950b99abd5d2f8bf07d /cp
parentf9207b03c80a5bbbcc9168b6eb9cd3bbf6f570ab (diff)
cp unit test module : work in progress...
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@655 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cp')
-rw-r--r--cp/test/src/test_cp.c33
-rw-r--r--cp/test/src/test_interf.c2
2 files changed, 33 insertions, 2 deletions
diff --git a/cp/test/src/test_cp.c b/cp/test/src/test_cp.c
index 265f7a60eb..5c25544c06 100644
--- a/cp/test/src/test_cp.c
+++ b/cp/test/src/test_cp.c
@@ -16,14 +16,45 @@
#include <cyg/kernel/kapi.h>
#include "common/std.h"
+#include "cp/station/station.h"
//#include "cp/test/test_secu.h"
#include "cp/test/inc/test_msg.h"
#include "cp/test/inc/test_interf.h"
+/*
+ * sta thread constantes
+ */
+#define STA_PRIORITY 30
+
+static unsigned char sta_stack[CYGNUM_HAL_STACK_SIZE_TYPICAL];
+static cyg_handle_t sta_handle;
+static cyg_thread sta_thread;
+
+static void
+sta_entry(cyg_addrword_t data)
+{
+ //station_init();
+ station_wait_event();
+}
+
+
int main(void)
{
-
+ char thread_name[] = "sta";
+
+ station_init();
+ // create a station thread
+ cyg_thread_create( STA_PRIORITY,
+ &sta_entry,
+ 0,
+ thread_name,
+ sta_stack,
+ sizeof(sta_stack),
+ &sta_handle,
+ &sta_thread
+ );
+
// SECU_Test();
msg_test();
interf_test();
diff --git a/cp/test/src/test_interf.c b/cp/test/src/test_interf.c
index 755faf3d9c..563412e09c 100644
--- a/cp/test/src/test_interf.c
+++ b/cp/test/src/test_interf.c
@@ -189,7 +189,7 @@ int interf_release_buf_test(void)
interf_release_buf(msg[i]);
}
// et hop on vide !
- interf_released_buf();
+ interf_buf_to_release();
return Success;
}