Browse Source

Merge pull request #1289 from haukepetersen/fix_drivers_periph_timer

drivers: added set_absolute to timer interface
dev/timer
Hauke Petersen 8 years ago
parent
commit
33ad7c9499
  1. 11
      drivers/include/periph/timer.h

11
drivers/include/periph/timer.h

@ -74,6 +74,17 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int));
*/
int timer_set(tim_t dev, int channel, unsigned int timeout);
/**
* @brief Set an absolute timeout value for the given channel of the given timer device
*
* @param[in] dev the timer device to set
* @param[in] channel the channel to set
* @param[in] value the absolute compare value when the callback will be triggered
*
* @return 1 on success, -1 on error
*/
int timer_set_absolute(tim_t dev, int channel, unsigned int value);
/**
* @brief Clear the given channel of the given timer device
*

Loading…
Cancel
Save