mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
d288b8870d
this library provides a clean API for drivers to request periodic timer driven calls at whatever rate they need
20 lines
460 B
C++
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__
|