Skip to content

Commit 6807fa3

Browse files
gmarulljhedberg
authored andcommitted
drivers: i2c: i2c-priv: document i2c_map_dt_bitrate
Document the helper function. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 4dd6354 commit 6807fa3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/i2c/i2c-priv.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
extern "C" {
1515
#endif
1616

17+
/**
18+
* @brief Map I2C bitrate from DT (in bps) to I2C interface encoding.
19+
*
20+
* @param bitrate I2C bitrate from DT (in bps)
21+
*
22+
* @retval bitrate I2C interface encoded bitrate.
23+
* @retval 0 If given @p bitrate is not valid.
24+
*/
1725
static inline uint32_t i2c_map_dt_bitrate(uint32_t bitrate)
1826
{
1927
switch (bitrate) {

0 commit comments

Comments
 (0)