Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:c9dd27c3919d, committed 2016-06-08
- 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 |
--- /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
--- /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
+