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.
21 lines
570 B
21 lines
570 B
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- |
|
|
|
#ifndef __PERIODICPROCESS_H__ |
|
#define __PERIODICPROCESS_H__ |
|
|
|
#include <stdint.h> |
|
|
|
// the callback type for periodic processes. They are passed the time |
|
// in microseconds since boot |
|
typedef void (*ap_procedure)(uint32_t ); |
|
|
|
class AP_PeriodicProcess |
|
{ |
|
public: |
|
virtual void register_process(ap_procedure proc) = 0; |
|
virtual void set_failsafe(ap_procedure proc) = 0; |
|
virtual void suspend_timer(void) = 0; |
|
virtual void resume_timer(void) = 0; |
|
}; |
|
|
|
#endif // __PERIODICPROCESS_H__
|
|
|