ardupilot/libraries/AP_PeriodicProcess/AP_TimerAperiodicProcess.h
Pat Hickey d288b8870d purple: added PeriodicProcess library
this library provides a clean API for drivers to request periodic
timer driven calls at whatever rate they need
2011-11-25 20:00:16 -08:00

20 lines
460 B
C++

#ifndef __AP_TIMER_APERIODIC_PROCESS_H__
#define __AP_TIMER_APERIODIC_PROCESS_H__
#include <stdint.h>
#include "../Arduino_Mega_ISR_Registry/Arduino_Mega_ISR_Registry.h"
#include "AP_TimerProcess.h"
class AP_TimerAperiodicProcess : public AP_TimerProcess
{
public:
void init( Arduino_Mega_ISR_Registry * isr_reg );
static void run(void);
private:
static uint8_t _timer_offset;
};
#endif // __AP_TIMER_APERIODIC_PROCESS_H__