Bluetooth: mesh: Convert bluetooth mesh to using k_timeout struct

Convert bluetooth mesh to using k_timeout struct. Many of the mesh
modules uses timeout calculations, so it is most practical to keep
the s32_t type and only initialize a k_timeout_t struct when
calling the kernel.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-04-06 13:56:14 +02:00 committed by Johan Hedberg
commit 87d9eadf50
20 changed files with 120 additions and 122 deletions

View file

@ -832,7 +832,7 @@ int bt_mesh_cfg_hb_pub_get(u16_t net_idx, u16_t addr,
/** @brief Get the current transmission timeout value.
*
* @return The configured transmission timeout.
* @return The configured transmission timeout in milliseconds.
*/
s32_t bt_mesh_cfg_cli_timeout_get(void);

View file

@ -182,7 +182,7 @@ int bt_mesh_health_attention_set(u16_t addr, u16_t app_idx, u8_t attention,
/** @brief Get the current transmission timeout value.
*
* @return The configured transmission timeout.
* @return The configured transmission timeout in milliseconds.
*/
s32_t bt_mesh_health_cli_timeout_get(void);