| /* |
| * Copyright (c) 2020 Synopsys, Inc. |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include <zephyr/kernel.h> |
| #include <stdio.h> |
| #include <zephyr/sys/crc.h> |
| #include <zephyr/random/random.h> |
| |
| |
| /* Amount of parallel processed sender/receiver queues of packet headers */ |
| #define QUEUE_NUM 2 |
| |
| /* Amount of execution threads per pair of queues*/ |
| #define THREADS_NUM (CONFIG_MP_MAX_NUM_CPUS+1) |
| |
| /* Amount of packet headers in a queue */ |
| #define SIZE_OF_QUEUE 5000 |
| |
| /* Size of packet header (in bytes) */ |
| #define SIZE_OF_HEADER 24 |
| |
| /* CRC16 polynomial */ |
| #define POLYNOMIAL 0x8005 |
| |
| /* CRC bytes in the packet */ |
| #define CRC_BYTE_1 10 |
| #define CRC_BYTE_2 11 |
| |
| #define STACK_SIZE 2048 |