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

@@ -17,6 +17,8 @@
#include "tos_k.h"
#if TOS_CFG_COMPLETION_EN > 0
__API__ k_err_t tos_completion_create(k_completion_t *completion)
{
TOS_PTR_SANITY_CHECK(completion);
@@ -155,3 +157,4 @@ __API__ int tos_completion_is_done(k_completion_t *completion)
return is_done;
}
#endif /* TOS_CFG_COMPLETION_EN */