1 /* 2 * Copyright (c) 2019 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "app_shared.h" 8 9 /* Define the shared partition, which will contain a memory region that 10 * will be accessible by both applications A and B. 11 */ 12 K_APPMEM_PARTITION_DEFINE(shared_partition); 13 14 /* Define a memory pool to place in the shared area. 15 */ 16 K_APP_DMEM(shared_partition) struct sys_heap shared_pool; 17 K_APP_DMEM(shared_partition) uint8_t shared_pool_mem[HEAP_BYTES]; 18 19 /* queues for exchanging data between App A and App B */ 20 K_QUEUE_DEFINE(shared_queue_incoming); 21 K_QUEUE_DEFINE(shared_queue_outgoing); 22