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.
Dependencies: mbed
Task.h
- Committer:
- solcager
- Date:
- 2017-03-31
- Revision:
- 1:08ca9b208045
File content as of revision 1:08ca9b208045:
/*
* Task.h
* Copyright (c) 2017, ZHAW
* All rights reserved.
*/
#ifndef TASK_H_
#define TASK_H_
#include <cstdlib>
/**
* This is an abstract task class with a method that
* is called periodically by a task sequencer.
*/
class Task {
public:
static const int FAULT = -1; /**< Task return value. */
static const int RUNNING = 0; /**< Task return value. */
static const int DONE = 1; /**< Task return value. */
Task();
virtual ~Task();
virtual int run(float period);
};
#endif /* TASK_H_ */