Skip to content
Snippets Groups Projects
Commit 9da038a2 authored by ch3's avatar ch3
Browse files

Add _bother_dispatcher()

parent 5093cff4
No related branches found
No related tags found
No related merge requests found
#include <stdlib.h>
#include "api/api_caller.h"
void* api_call_start (uint32_t id, void* args, uint32_t size)
{
int ret;
// aquire semaphore
ret = SEMA_GetSema (API_CALL_SEMA);
while (E_BUSY == SEMA_GetSema (API_CALL_SEMA)) ;
ApiCallSpace->id = id;
ApiCallSpace->returning = 0;
return ApiCallSpace;
}
void* api_call_bother_dispatcher (void* buf)
{
SEMA_FreeSema (API_CALL_SEMA);
// set event
return NULL;
}
#include "mxc_errors.h"
#include "api_common.h"
void* api_call (uint32_t id, void *args, uint32_t size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment