You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
608 B
27 lines
608 B
#ifndef _TASK_h
|
|
#define _TASK_h
|
|
|
|
/// <summary>
|
|
/// General implementation of something that could be considered a "process"
|
|
/// </summary>
|
|
class Task
|
|
{
|
|
public:
|
|
/// <summary>
|
|
/// Initialize the task after a reset/first boot
|
|
/// </summary>
|
|
virtual void initialize();
|
|
/// <summary>
|
|
/// Start the task after a deep sleep
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is run even on a first boot, but _after_ initialize.
|
|
/// </remarks>
|
|
virtual void start();
|
|
/// <summary>
|
|
/// Prepare the task for the system to shutdown/deep sleep
|
|
/// </summary>
|
|
virtual void suspend();
|
|
};
|
|
|
|
#endif
|