1 /*
2  * Copyright (c) 2019 Intel Corporation.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef APP_SHARED_H
8 #define APP_SHARED_H
9 
10 #include <zephyr/kernel.h>
11 #include <zephyr/app_memory/app_memdomain.h>
12 #include <zephyr/sys/sys_heap.h>
13 
14 #include "sample_driver.h"
15 
16 #define BLK_SIZE (SAMPLE_DRIVER_MSG_SIZE + sizeof(void *))
17 
18 #define HEAP_BYTES (BLK_SIZE * 16)
19 
20 extern struct k_mem_partition shared_partition;
21 
22 extern struct sys_heap shared_pool;
23 extern uint8_t shared_pool_mem[HEAP_BYTES];
24 extern struct k_queue shared_queue_incoming;
25 extern struct k_queue shared_queue_outgoing;
26 
27 #define NUM_LOOPS	10
28 
29 #endif
30