AP_HAL: added optional set_timer_speed() scheduler API

will be used by copter to reduce interrupt load on APM2
This commit is contained in:
Andrew Tridgell 2013-10-12 18:22:57 +11:00 committed by Randy Mackay
parent 09a1d35e62
commit 7ef187fcfd

View File

@ -38,6 +38,11 @@ public:
virtual void panic(const prog_char_t *errormsg) = 0;
virtual void reboot(bool hold_in_bootloader) = 0;
/**
optional function to set timer speed in Hz
*/
virtual void set_timer_speed(uint16_t speed_hz) {}
};
#endif // __AP_HAL_SCHEDULER_H__