RKH
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rkhcfg.h
Go to the documentation of this file.
1 /*
2  * --------------------------------------------------------------------------
3  *
4  * Framework RKH
5  * -------------
6  *
7  * State-machine framework for reactive embedded systems
8  *
9  * Copyright (C) 2010 Leandro Francucci.
10  * All rights reserved. Protected by international copyright laws.
11  *
12  *
13  * RKH is free software: you can redistribute it and/or modify it under the
14  * terms of the GNU General Public License as published by the Free Software
15  * Foundation, either version 3 of the License, or (at your option) any
16  * later version.
17  *
18  * RKH is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21  * more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with RKH, see copying.txt file.
25  *
26  * Contact information:
27  * RKH web site: http://sourceforge.net/projects/rkh-reactivesys/
28  * e-mail: francuccilea@gmail.com
29  * ---------------------------------------------------------------------------
30  */
31 
42 /* -------------------------- Development history -------------------------- */
43 /*
44  * 2015.10.24 LeFr v2.4.05 Initial version
45  */
46 
47 /* -------------------------------- Authors -------------------------------- */
48 /*
49  * LeFr Leandro Francucci francuccilea@gmail.com
50  */
51 
52 /* --------------------------------- Notes --------------------------------- */
53 /* --------------------------------- Module -------------------------------- */
54 
55 #ifndef __RKHCFG_H__
56 #define __RKHCFG_H__
57 
58 /* ----------------------------- Include files ----------------------------- */
59 
60 #include "rkhdef.h"
61 
62 /* ---------------------- External C language linkage ---------------------- */
63 
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
67 
68 /* --------------------------------- Macros -------------------------------- */
69 /* -------------------------------- Constants ------------------------------ */
70 
86 #define RKH_CFG_FWK_MAX_SMA 4u
87 
98 #define RKH_CFG_FWK_DYN_EVT_EN RKH_ENABLED
99 
112 #define RKH_CFG_FWK_MAX_EVT_POOL 0u
113 
125 #define RKH_CFG_FWK_SIZEOF_EVT 8u
126 
136 #define RKH_CFG_FWK_MAX_SIGNALS 16u
137 
149 #define RKH_CFG_FWK_SIZEOF_EVT_SIZE 8u
150 
161 #define RKH_CFG_FWK_DEFER_EVT_EN RKH_ENABLED
162 
177 #define RKH_CFG_FWK_ASSERT_EN RKH_ENABLED
178 
190 #define RKH_CFG_HOOK_DISPATCH_EN RKH_ENABLED
191 
203 #define RKH_CFG_HOOK_SIGNAL_EN RKH_ENABLED
204 
217 #define RKH_CFG_HOOK_TIMEOUT_EN RKH_ENABLED
218 
231 #define RKH_CFG_HOOK_START_EN RKH_ENABLED
232 
245 #define RKH_CFG_HOOK_EXIT_EN RKH_ENABLED
246 
265 #define RKH_CFG_HOOK_TIMETICK_EN RKH_ENABLED
266 
280 #define RKH_CFG_HOOK_PUT_TRCEVT_EN RKH_DISABLED
281 
294 #define RKH_CFG_FWK_TICK_RATE_HZ 100u
295 
313 #define RKH_CFG_SMA_GET_INFO_EN RKH_ENABLED
314 
329 #define RKH_CFG_SMA_PPRO_EN RKH_ENABLED
330 
342 #define RKH_CFG_SMA_HCAL_EN RKH_ENABLED
343 
355 #define RKH_CFG_SMA_MAX_HCAL_DEPTH 4u
356 
368 #define RKH_CFG_SMA_MAX_TRC_SEGS 4u
369 
379 #define RKH_CFG_SMA_PSEUDOSTATE_EN RKH_ENABLED
380 
390 #define RKH_CFG_SMA_DEEP_HIST_EN RKH_ENABLED
391 
401 #define RKH_CFG_SMA_SHALLOW_HIST_EN RKH_ENABLED
402 
412 #define RKH_CFG_SMA_CHOICE_EN RKH_ENABLED
413 
423 #define RKH_CFG_SMA_CONDITIONAL_EN RKH_ENABLED
424 
434 #define RKH_CFG_SMA_SUBMACHINE_EN RKH_ENABLED
435 
445 #define RKH_CFG_SMA_TRC_SNDR_EN RKH_ENABLED
446 
458 #define RKH_CFG_SMA_INIT_EVT_EN RKH_ENABLED
459 
478 #define RKH_CFG_SMA_INIT_ARG_SMA_EN RKH_ENABLED
479 
490 #define RKH_CFG_SMA_ENT_ARG_SMA_EN RKH_ENABLED
491 
502 #define RKH_CFG_SMA_ENT_ARG_STATE_EN RKH_DISABLED
503 
514 #define RKH_CFG_SMA_EXT_ARG_SMA_EN RKH_ENABLED
515 
526 #define RKH_CFG_SMA_EXT_ARG_STATE_EN RKH_DISABLED
527 
538 #define RKH_CFG_SMA_ACT_ARG_SMA_EN RKH_ENABLED
539 
550 #define RKH_CFG_SMA_ACT_ARG_EVT_EN RKH_ENABLED
551 
562 #define RKH_CFG_SMA_GRD_ARG_EVT_EN RKH_ENABLED
563 
574 #define RKH_CFG_SMA_GRD_ARG_SMA_EN RKH_ENABLED
575 
587 #define RKH_CFG_SMA_PPRO_ARG_SMA_EN RKH_ENABLED
588 
606 #define RKH_CFG_SMA_SM_CONST_EN RKH_ENABLED
607 
618 #define RKH_CFG_SMA_RT_CTOR_EN RKH_DISABLED
619 
631 #define RKH_CFG_SMA_VFUNCT_EN RKH_DISABLED
632 
651 #define RKH_CFG_TRC_EN RKH_ENABLED
652 
667 #define RKH_CFG_TRC_RTFIL_EN RKH_ENABLED
668 
679 #define RKH_CFG_TRC_RTFIL_SMA_EN RKH_ENABLED
680 
691 #define RKH_CFG_TRC_RTFIL_SIGNAL_EN RKH_ENABLED
692 
703 #define RKH_CFG_TRC_USER_TRACE_EN RKH_ENABLED
704 
714 #define RKH_CFG_TRC_ALL_EN RKH_ENABLED
715 
725 #define RKH_CFG_TRC_MP_EN RKH_ENABLED
726 
736 #define RKH_CFG_TRC_RQ_EN RKH_ENABLED
737 
747 #define RKH_CFG_TRC_SMA_EN RKH_ENABLED
748 
758 #define RKH_CFG_TRC_TMR_EN RKH_ENABLED
759 
770 #define RKH_CFG_TRC_SM_EN RKH_ENABLED
771 
781 #define RKH_CFG_TRC_FWK_EN RKH_ENABLED
782 
792 #define RKH_CFG_TRC_ASSERT_EN RKH_ENABLED
793 
803 #define RKH_CFG_TRC_SM_INIT_EN RKH_ENABLED
804 
814 #define RKH_CFG_TRC_SMA_DCH_EN RKH_ENABLED
815 
825 #define RKH_CFG_TRC_SM_CLRH_EN RKH_ENABLED
826 
836 #define RKH_CFG_TRC_SM_TRN_EN RKH_ENABLED
837 
847 #define RKH_CFG_TRC_SM_STATE_EN RKH_ENABLED
848 
858 #define RKH_CFG_TRC_SM_ENSTATE_EN RKH_ENABLED
859 
869 #define RKH_CFG_TRC_SM_EXSTATE_EN RKH_ENABLED
870 
881 #define RKH_CFG_TRC_SM_NENEX_EN RKH_ENABLED
882 
893 #define RKH_CFG_TRC_SM_NTRNACT_EN RKH_ENABLED
894 
905 #define RKH_CFG_TRC_SM_TS_STATE_EN RKH_ENABLED
906 
916 #define RKH_CFG_TRC_SM_PROCESS_EN RKH_ENABLED
917 
928 #define RKH_CFG_TRC_SM_EXE_ACT_EN RKH_DISABLED
929 
940 #define RKH_CFG_TRC_NSEQ_EN RKH_ENABLED
941 
951 #define RKH_CFG_TRC_CHK_EN RKH_ENABLED
952 
963 #define RKH_CFG_TRC_TSTAMP_EN RKH_ENABLED
964 
974 #define RKH_CFG_TRC_SIZEOF_STREAM 128u
975 
993 #define RKH_CFG_RQ_EN RKH_ENABLED
994 
1005 #define RKH_CFG_RQ_SIZEOF_NELEM 8u
1006 
1018 #define RKH_CFG_RQ_GET_LWMARK_EN RKH_ENABLED
1019 
1030 #define RKH_CFG_RQ_GET_INFO_EN RKH_ENABLED
1031 
1042 #define RKH_CFG_RQ_READ_EN RKH_ENABLED
1043 
1055 #define RKH_CFG_RQ_DEPLETE_EN RKH_ENABLED
1056 
1067 #define RKH_CFG_RQ_IS_FULL_EN RKH_ENABLED
1068 
1080 #define RKH_CFG_RQ_GET_NELEMS_EN RKH_ENABLED
1081 
1093 #define RKH_CFG_RQ_PUT_LIFO_EN RKH_ENABLED
1094 
1112 #define RKH_CFG_MP_EN RKH_ENABLED
1113 
1123 #define RKH_CFG_MP_REDUCED_EN RKH_DISABLED
1124 
1134 #define RKH_CFG_MP_SIZEOF_BSIZE 8u
1135 
1145 #define RKH_CFG_MP_SIZEOF_NBLOCK 8u
1146 
1157 #define RKH_CFG_MP_GET_BSIZE_EN RKH_ENABLED
1158 
1170 #define RKH_CFG_MP_GET_NFREE_EN RKH_ENABLED
1171 
1184 #define RKH_CFG_MP_GET_LWM_EN RKH_ENABLED
1185 
1196 #define RKH_CFG_MP_GET_INFO_EN RKH_ENABLED
1197 
1215 #define RKH_CFG_TMR_EN RKH_ENABLED
1216 
1227 #define RKH_CFG_TMR_SIZEOF_NTIMER 8u
1228 
1239 #define RKH_CFG_TMR_HOOK_EN RKH_ENABLED
1240 
1251 #define RKH_CFG_TMR_GET_INFO_EN RKH_ENABLED
1252 
1255 /* ------------------------------- Data types ------------------------------ */
1256 /* -------------------------- External variables --------------------------- */
1257 /* -------------------------- Function prototypes -------------------------- */
1258 /* -------------------- External C language linkage end -------------------- */
1259 #ifdef __cplusplus
1260 }
1261 #endif
1262 
1263 /* ------------------------------ Module end ------------------------------- */
1264 #endif
1265 
1267 /* ------------------------------ End of file ------------------------------ */
Platform - independent file that contains standard constants and macros.