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

Fix missing variable, types, includes and comments

parent c5da7c7b
No related branches found
No related tags found
No related merge requests found
void* api_call_start (uint32_t id, void* args, size_t size)
{
int ret;
// aquire semaphore
ret = SEMA_GetSema (API_CALL_SEMA);
......
#include "api_common.h"
int api_call (uint32_t id, void *args);
void* api_call (uint32_t id, void *args, size_t size);
void* api_call_bother_dispatcher (void* buf);
#include <stdint.h>
#define API_CALL_SEMA 0
struct api_call
{
uint32_t id;
uint8_t returning;
unsigned char *buf;
unsigned char buf[1];
};
static struct api_call **ApiCallSpace = (void*)0x20080001;
......@@ -6,6 +6,10 @@ api_init (sys_cfg_sema_t *sys_cfg)
int ret;
ret = SEMA_Init (sys_cfg);
/* Set the status of the flag to a valid initial state (right before
* api-calls are made) */
ApiCallSpace->returning = 1;
return ret;
}
#include "api_common.h"
#include "mxc_sys.h"
int
api_init (sys_cfg_sema_t *sys_cfg);
......
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