ardupilot/libraries/AP_HAL
Lucas De Marchi 37de995960 AP_HAL: update Device interface for periodic tasks
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
2016-07-30 00:55:27 -03:00
..
examples AP_HAL: fixed and updated RCInput example. 2016-07-27 00:52:13 -03:00
utility AP_HAL: sparse-endian: unconditionally use byteswap.h 2016-07-08 19:49:32 -03:00
AnalogIn.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
AP_HAL_Boards.h AP_HAL: define bus for Lightware rangefinder 2016-07-26 00:52:54 -03:00
AP_HAL_Macros.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
AP_HAL_Main.h AP_HAL: remove support for main without argc 2016-05-23 21:49:45 -03:00
AP_HAL_Namespace.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
AP_HAL.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
Device.h AP_HAL: update Device interface for periodic tasks 2016-07-30 00:55:27 -03:00
GPIO.h AP_HAL: GPIO: remove unused functions 2016-06-21 12:16:32 -03:00
HAL.cpp AP_HAL: add run() method 2015-10-21 09:16:07 +11:00
HAL.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
I2CDevice.h AP_HAL: update Device interface for periodic tasks 2016-07-30 00:55:27 -03:00
OpticalFlow.h AP_HAL: follow coding style 2015-12-18 17:56:03 +11:00
RCInput.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00
RCOutput.h AP_HAL: defer calls to safety_state switch to queue an async attempt. 2016-05-27 21:34:40 +10:00
Scheduler.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
Semaphores.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
SPIDevice.h AP_HAL: update Device interface for periodic tasks 2016-07-30 00:55:27 -03:00
Storage.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
system.h Global: Rename printf format attribute 2015-12-01 07:22:12 +11:00
UARTDriver.cpp AP_HAL: remove unused in_progmem flag to print_vprintf 2015-12-27 15:58:12 -02:00
UARTDriver.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00
Util.cpp AP_HAL: add support for get realtime on Darwin systems 2016-07-07 11:35:17 -03:00
Util.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00