/* main.h */ /* * SPDX-License-Identifier: Apache-2.0 */ #ifndef MAIN_H #define MAIN_H #include #include #include #include #include #include #include #if defined(CONFIG_ARC) #include #endif void enc(void *p1, void *p2, void *p3); void pt(void *p1, void *p2, void *p3); void ct(void *p1, void *p2, void *p3); #define _app_user_d K_APP_DMEM(user_part) #define _app_user_b K_APP_BMEM(user_part) #define _app_red_d K_APP_DMEM(red_part) #define _app_red_b K_APP_BMEM(red_part) #define _app_enc_d K_APP_DMEM(enc_part) #define _app_enc_b K_APP_BMEM(enc_part) #define _app_blk_d K_APP_DMEM(blk_part) #define _app_blk_b K_APP_BMEM(blk_part) #define _app_ct_d K_APP_DMEM(ct_part) #define _app_ct_b K_APP_BMEM(ct_part) /* * Constant */ #define STACKSIZE 1024 #define PRIORITY 7 #define BYTE unsigned char #define START_WHEEL {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, \ 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25} #define START_WHEEL2 {6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, \ 17, 18, 19, 20, 21, 22, 23, 24, 25, 5, 0, 4, 1, 3, 2} #define REFLECT {1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, \ 15, 14, 17, 16, 19, 18, 21, 20, 23, 22, 25, 24} #endif