test2

Files at this revision

API Documentation at this revision

Comitter:
roger_hu
Date:
Wed Jun 08 03:30:57 2016 +0000
Commit message:
test2

Changed in this revision

TUTK_output.cpp Show annotated file Show diff for this revision Revisions of this file
TUTK_output.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r c9dd27c3919d TUTK_output.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TUTK_output.cpp	Wed Jun 08 03:30:57 2016 +0000
@@ -0,0 +1,16 @@
+#include "TUTK_output.h" 
+#include "rtos.h"
+#include "mbed.h"
+#include "cmsis_os.h"
+
+extern Serial pc; 
+
+void dump(const char* out){
+    pc.printf("\n\r%s\r\n",out);
+    }
+    
+void tutkcreatthread(void (*task)(void const *argument), void *argument,osPriority priority, uint32_t stack_size, unsigned char *stack_pointer){
+        Thread *thread;
+        new Thread(task,NULL,priority,stack_size,NULL);
+    
+    }    
\ No newline at end of file
diff -r 000000000000 -r c9dd27c3919d TUTK_output.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TUTK_output.h	Wed Jun 08 03:30:57 2016 +0000
@@ -0,0 +1,15 @@
+
+    #include "cmsis_os.h"
+    #ifdef __cplusplus
+    
+    extern "C" {
+    #endif
+ 
+    void dump(const char *out);
+    //void test_thread();
+    void tutkcreatthread(void (*task)(void const *argument), void *argument,osPriority priority, uint32_t stack_size, unsigned char *stack_pointer);
+ 
+    #ifdef __cplusplus
+    }
+    #endif
+