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.
22 lines
530 B
22 lines
530 B
13 years ago
|
|
||
|
#ifndef __AP_PERIODIC_PROCESS_STUB_H__
|
||
|
#define __AP_PERIODIC_PROCESS_STUB_H__
|
||
|
|
||
|
#include "PeriodicProcess.h"
|
||
|
#include "../Arduino_Mega_ISR_Registry/Arduino_Mega_ISR_Registry.h"
|
||
|
|
||
|
|
||
|
class AP_PeriodicProcessStub : public AP_PeriodicProcess
|
||
|
{
|
||
|
public:
|
||
|
AP_PeriodicProcessStub(int period = 0);
|
||
|
void init( Arduino_Mega_ISR_Registry * isr_reg );
|
||
|
void register_process(void (* proc)(void));
|
||
|
static void run(void);
|
||
|
protected:
|
||
|
static int _period;
|
||
|
static void (*_proc)(void);
|
||
|
};
|
||
|
|
||
|
#endif
|