blob: e5d8e907abcb54cd75dae463dcdb8be85690d953 [file] [log] [blame]
/*
* Copyright (c) 2019 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef APP_SHARED_H
#define APP_SHARED_H
#include <kernel.h>
#include <app_memory/app_memdomain.h>
#include <sys/sys_heap.h>
#include "sample_driver.h"
#define BLK_SIZE (SAMPLE_DRIVER_MSG_SIZE + sizeof(void *))
#define HEAP_BYTES (BLK_SIZE * 16)
extern struct k_mem_partition shared_partition;
extern struct sys_heap shared_pool;
extern uint8_t shared_pool_mem[HEAP_BYTES];
extern struct k_queue shared_queue_incoming;
extern struct k_queue shared_queue_outgoing;
#define NUM_LOOPS 10
#endif