mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 00:43:58 -04:00
Replace the previous not-implemented interface with a set of new methods that can be resonably implemented: - register_periodic_callback() now receives a functor returning bool to easily allow "oneshot" timers - adjust_periodic_callback() allows the caller to change the timer for a specific handle. This way drivers like MS5611 can adjust the timer depending on its state machine: the time to sample temperature is smaller than the time to get a pressure sample - add unregister_callback(): since we have an opaque pointer, we can't tell the user to just delete it in order to unregister the callback |
||
---|---|---|
.. | ||
examples | ||
utility | ||
AnalogIn.h | ||
AP_HAL_Boards.h | ||
AP_HAL_Macros.h | ||
AP_HAL_Main.h | ||
AP_HAL_Namespace.h | ||
AP_HAL.h | ||
Device.h | ||
GPIO.h | ||
HAL.cpp | ||
HAL.h | ||
I2CDevice.h | ||
OpticalFlow.h | ||
RCInput.h | ||
RCOutput.h | ||
Scheduler.h | ||
Semaphores.h | ||
SPIDevice.h | ||
Storage.h | ||
system.h | ||
UARTDriver.cpp | ||
UARTDriver.h | ||
Util.cpp | ||
Util.h |