test2
TUTK_output.cpp@0:c9dd27c3919d, 2016-06-08 (annotated)
- Committer:
- roger_hu
- Date:
- Wed Jun 08 03:30:57 2016 +0000
- Revision:
- 0:c9dd27c3919d
test2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
roger_hu | 0:c9dd27c3919d | 1 | #include "TUTK_output.h" |
roger_hu | 0:c9dd27c3919d | 2 | #include "rtos.h" |
roger_hu | 0:c9dd27c3919d | 3 | #include "mbed.h" |
roger_hu | 0:c9dd27c3919d | 4 | #include "cmsis_os.h" |
roger_hu | 0:c9dd27c3919d | 5 | |
roger_hu | 0:c9dd27c3919d | 6 | extern Serial pc; |
roger_hu | 0:c9dd27c3919d | 7 | |
roger_hu | 0:c9dd27c3919d | 8 | void dump(const char* out){ |
roger_hu | 0:c9dd27c3919d | 9 | pc.printf("\n\r%s\r\n",out); |
roger_hu | 0:c9dd27c3919d | 10 | } |
roger_hu | 0:c9dd27c3919d | 11 | |
roger_hu | 0:c9dd27c3919d | 12 | void tutkcreatthread(void (*task)(void const *argument), void *argument,osPriority priority, uint32_t stack_size, unsigned char *stack_pointer){ |
roger_hu | 0:c9dd27c3919d | 13 | Thread *thread; |
roger_hu | 0:c9dd27c3919d | 14 | new Thread(task,NULL,priority,stack_size,NULL); |
roger_hu | 0:c9dd27c3919d | 15 | |
roger_hu | 0:c9dd27c3919d | 16 | } |