A small library that's provide helpers for programmers
Diff: MyThread.h
- Revision:
- 0:11d8781f1013
- Child:
- 1:ee7a5f05513d
diff -r 000000000000 -r 11d8781f1013 MyThread.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyThread.h Mon Feb 16 16:30:36 2015 +0000 @@ -0,0 +1,25 @@ + +#ifndef MYTHREADS_H +#define MYTHREADS_H + +#include "mbed.h" +#include "rtos.h" + +#define ENDSIG 0x01 + +class MyThread{ +public: + const char* tName; + bool running; + Thread *t; + MyThread(const char* name); + virtual ~MyThread(); + virtual void Start(); + virtual void Stop(); + virtual void Run(); + virtual void Main(void) = 0; + virtual void Wait(int32_t ms); + virtual void WaitEnd(); +}; + +#endif \ No newline at end of file