[ancs] add high level getMessageSize(),
implement using AdaMsg
This commit is contained in:
1 parent
73482c59e0
commit
89647bd02c
6 files changed
+71
-73
No files matched your search
@@ -49,7 +49,10 @@ AdaMsg::AdaMsg(void)
|
||||
void AdaMsg::begin(bool dynamic)
|
||||
{
|
||||
_dynamic = dynamic;
|
||||
if ( !_dynamic ) _sem = xSemaphoreCreateBinary();
|
||||
if ( !_dynamic )
|
||||
{
|
||||
_sem = xSemaphoreCreateCounting(10, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void AdaMsg::stop(void)
|
||||
|
||||
Reference in new issue
Block a user