Commit f22c963c authored by Filip Demski's avatar Filip Demski
Browse files

SAMV71: Added missing semaphores

parent c2d07fc4
......@@ -13,10 +13,8 @@
@@-- @_Calling_Threads_@ : Calling threads of the containing block
@@IF@@ @_Kind_@ = PROTECTED_OPERATION
@@IF@@ @_Param_Names'Length_@ = 0 @@-- zero param
// @_Kind_@
void call_protected_@_Parent_Function_@_@_Name_@(void)
@@ELSE@@ @@-- contains param(s)
// @_Kind_@
void call_protected_@_Parent_Function_@_@_Name_@
@@INLINE( \()(,\n )(\)\n)@@
@@TABLE@@
......@@ -28,7 +26,6 @@ void call_protected_@_Parent_Function_@_@_Name_@
@@END_TABLE@@
@@END_INLINE@@
@@END_IF@@
@@END_IF@@
{
extern SemaphoreHandle_t @_LOWER:Parent_Function_@_Semaphore;
......@@ -56,3 +53,4 @@ void call_protected_@_Parent_Function_@_@_Name_@
xSemaphoreGive(@_LOWER:Parent_Function_@_Semaphore);
}
@@END_IF@@
......@@ -9,6 +9,7 @@
#include <FreeRTOS.h>
#include <task.h>
#include <semphr.h>
#include <queue.h>
#include <Init/Init.h>
......@@ -40,6 +41,11 @@ extern void init_@_LOWER:Bound_Functions_@(void);
Uart consoleUart;
@@TABLE@@
SemaphoreHandle_t @_LOWER:Bound_Functions_@_Semaphore = {0};
StaticSemaphore_t prv_@_LOWER:Bound_Functions_@_Semaphore_Buffer = {0};
@@END_TABLE@@
@_Threads_@
int main(void)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment