add barrier countdownlatch completion macro define to config

This commit is contained in:
mculover666
2020-12-28 20:03:50 +08:00
parent 25e06a677b
commit 0d9300e65b
6 changed files with 20 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
__CDECLS_BEGIN
#if TOS_CFG_COUNTDOWNLATCH_EN > 0
typedef struct k_countdownlatch_st {
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t knl_obj;
@@ -115,6 +116,8 @@ __API__ k_err_t tos_countdownlatch_post(k_countdownlatch_t *countdownlatch);
*/
__API__ k_err_t tos_countdownlatch_reset(k_countdownlatch_t *countdownlatch, k_countdownlatch_cnt_t count);
#endif /* TOS_CFG_COUNTDOWNLATCH_EN */
__CDECLS_END
#endif /* _TOS_COUNTDOWNLATCH_H_ */