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

Merge branch 'rahix/api-demo' of card10:open/firmware into rahix/api-demo

parents c3512540 ab6b296c
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)
#include "api/api_caller.h"
void* api_call_start (uint32_t id, void* args, uint32_t size)
{
int ret;
// aquire semaphore
......
#include "api_common.h"
void* api_call (uint32_t id, void *args, size_t size);
void* api_call (uint32_t id, void *args, uint32_t size);
void* api_call_bother_dispatcher (void* buf);
......@@ -9,4 +9,4 @@ struct api_call
unsigned char buf[1];
};
static struct api_call **ApiCallSpace = (void*)0x20080001;
static struct api_call *ApiCallSpace = (struct api_call *)0x20080001;
#include "api_common.h"
#include "api_dispatcher.h"
int
api_init (sys_cfg_sema_t *sys_cfg)
......
......@@ -17,6 +17,7 @@ name = 'api-demo-core0'
executable(
name + '.elf',
'main.c',
'./api/api_caller.c',
api_stubs[0],
dependencies: [libcard10, max32665_startup_core0],
link_whole: [max32665_startup_core0_lib, board_card10_lib],
......@@ -30,6 +31,7 @@ name = 'api-demo-core1'
executable(
name + '.elf',
'test-payload.c',
'./api/api_dispatcher.c',
api_stubs[1],
dependencies: [libcard10, max32665_startup_core1],
link_whole: [max32665_startup_core1_lib, board_card10_lib],
......
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