api: counter: Improve documentation of counter_set_alarm().
Previous description of counter_set_alarm() was insufficient and could be ambiguously interpreted. Signed-off-by: Michał Kruszewski <michal.kruszewski@nordicsemi.no>
This commit is contained in:
parent
34278a3a56
commit
7dbbb6fb5a
1 changed files with 3 additions and 2 deletions
|
@ -95,9 +95,10 @@ static inline u32_t counter_read(struct device *dev)
|
|||
/**
|
||||
* @brief Set an alarm.
|
||||
* @param dev Pointer to the device structure for the driver instance.
|
||||
* @param callback Pointer to the callback function. if this is NULL,
|
||||
* @param callback Pointer to the callback function. If this is NULL,
|
||||
* this function unsets the alarm.
|
||||
* @param count Number of counter ticks.
|
||||
* @param count Number of counter ticks. This is relative value, meaning
|
||||
* an alarm will be triggered count ticks in the future.
|
||||
* @param user_data Pointer to user data.
|
||||
*
|
||||
* @retval 0 If successful.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue