1 /*  main.h */
2 
3 /*
4  *   SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef MAIN_H
8 #define MAIN_H
9 
10 #include <zephyr/kernel.h>
11 #include <zephyr/sys/printk.h>
12 #include <zephyr/kernel_structs.h>
13 #include <string.h>
14 #include <stdlib.h>
15 
16 #include <zephyr/app_memory/app_memdomain.h>
17 #include <zephyr/sys/util.h>
18 
19 #if defined(CONFIG_ARC)
20 #include <zephyr/arch/arc/v2/mpu/arc_core_mpu.h>
21 #endif
22 
23 void enc(void *p1, void *p2, void *p3);
24 void pt(void *p1, void *p2, void *p3);
25 void ct(void *p1, void *p2, void *p3);
26 
27 #define _app_user_d K_APP_DMEM(user_part)
28 #define _app_user_b K_APP_BMEM(user_part)
29 
30 #define _app_red_d K_APP_DMEM(red_part)
31 #define _app_red_b K_APP_BMEM(red_part)
32 
33 #define _app_enc_d K_APP_DMEM(enc_part)
34 #define _app_enc_b K_APP_BMEM(enc_part)
35 
36 #define _app_blk_d K_APP_DMEM(blk_part)
37 #define _app_blk_b K_APP_BMEM(blk_part)
38 
39 #define _app_ct_d K_APP_DMEM(ct_part)
40 #define _app_ct_b K_APP_BMEM(ct_part)
41 
42 /*
43  * Constant
44  */
45 
46 #define STACKSIZE 1024
47 
48 #define PRIORITY 7
49 
50 #define BYTE unsigned char
51 
52 
53 #define START_WHEEL {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, \
54 	12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}
55 #define START_WHEEL2 {6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, \
56 	17, 18, 19, 20, 21, 22, 23, 24, 25, 5, 0, 4, 1, 3, 2}
57 #define REFLECT {1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, \
58 	15, 14, 17, 16, 19, 18, 21, 20, 23, 22, 25, 24}
59 
60 
61 #endif
62