Skip to content
Snippets Groups Projects
Commit 7ef187fc authored by Andrew Tridgell's avatar Andrew Tridgell Committed by Randy Mackay
Browse files

AP_HAL: added optional set_timer_speed() scheduler API

will be used by copter to reduce interrupt load on APM2
parent 09a1d35e
No related branches found
No related tags found
No related merge requests found
......@@ -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__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment