drivers: clock_control: Clarify allowed calling context of API calls
Clarified that clock_control_off and clock_control_async_on can be called from any context since they are non-blocking. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
c53166a8c5
commit
16ba258052
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,10 @@ static inline int clock_control_on(struct device *dev,
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Disable the clock of a sub-system controlled by the device
|
||||
* @brief Disable the clock of a sub-system controlled by the device.
|
||||
*
|
||||
* Function is non-blocking and can be called from any context.
|
||||
*
|
||||
* @param dev Pointer to the device structure for the clock controller driver
|
||||
* instance
|
||||
* @param sys A pointer to an opaque data representing the sub-system
|
||||
|
@ -134,6 +137,7 @@ static inline int clock_control_off(struct device *dev,
|
|||
/**
|
||||
* @brief Request clock to start with notification when clock has been started.
|
||||
*
|
||||
* Function is non-blocking and can be called from any context.
|
||||
* When clock is already running user callback will be called from the context
|
||||
* of the function call else it is called from other context (e.g. clock
|
||||
* interrupt).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue