diff options
Diffstat (limited to 'demos/ARM7-LPC214x-G++/main.cpp')
-rw-r--r-- | demos/ARM7-LPC214x-G++/main.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/demos/ARM7-LPC214x-G++/main.cpp b/demos/ARM7-LPC214x-G++/main.cpp index 39b31e89a..b96a8271f 100644 --- a/demos/ARM7-LPC214x-G++/main.cpp +++ b/demos/ARM7-LPC214x-G++/main.cpp @@ -73,17 +73,14 @@ static const seqop_t LED3_sequence[] = /**
* Sequencer thread class. It can drive LEDs or other output pins.
*/
-class SequencerThread : BaseThread {
+class SequencerThread : EnhancedThread<64> {
private:
-
- WorkingArea(wa, 64); // Thread working area.
const seqop_t *base, *curr; // Thread local variables.
protected:
-
virtual msg_t Main(void) {
- while (TRUE) {
+ while (true) {
switch(curr->action) {
case SLEEP:
Sleep(curr->value);
@@ -105,7 +102,8 @@ protected: }
public:
- SequencerThread(const seqop_t *sequence) : BaseThread(NORMALPRIO, 0, wa, sizeof wa) {
+ SequencerThread(const seqop_t *sequence):
+ EnhancedThread<64>("sequencer", NORMALPRIO, 0) {
base = curr = sequence;
}
|