74 #if (((RKH_CFG_TRC_EN == 1) && (RKH_CFG_SMA_TRC_SNDR_EN == 1)) || \
75 (defined(RKH_EN_DOXYGEN) && RKH_EN_DOXYGEN == 1))
92 #define RKH_USE_TRC_SENDER
100 #define RKH_RELEASE rkh_version
124 #define RKH_VERSION(a, b, c) \
125 (((((a) << 12) & 0xF000) | \
126 (((b) << 8) & 0x0F00) | \
127 (((c) & 0xFF) & 0x00FF)) & 0xFFFF)
133 #define RKH_ANY ((RKH_SIG_T)(-1))
144 #define RKH_COMPLETION_EVENT (RKH_ANY - 1)
156 #define RKH_SM_CREATION_EVENT (RKH_ANY - 2)
167 #define RKH_LOWEST_PRIO (RKH_CFG_FWK_MAX_SMA - 1)
174 #error "rkhport.h, Missing RKHROM: Qualifier for ROM data storage. \
175 See Porting chapter in readme file for more information"
178 #define FOREVER for (;; )
183 #define CB(p) ((RKH_BASE_T *)(p))
184 #define CST(p) ((RKH_ST_T *)(p))
185 #define CCMP(p) ((RKH_SCMP_T *)(p))
186 #define CBSC(p) ((RKH_SBSC_T *)(p))
187 #define CCD(p) ((RKH_SCOND_T *)(p))
188 #define CCH(p) ((RKH_SCHOICE_T *)(p))
189 #define CH(p) ((RKH_SHIST_T *)(p))
190 #define CSBM(p) ((RKH_SSBM_T *)(p))
191 #define CRSM(p) ((RKH_RSM_T *)(p))
192 #define CM(p) ((RKHROM RKH_SM_T *)(p))
193 #define CT(p) ((RKHROM RKH_TR_T *)(p))
194 #define CPT(p) ((RKHROM RKH_SCMP_T *)(p))
195 #define CPP(p) ((RKH_PPRO_T)(p))
196 #define CG(p) ((RKH_GUARD_T)(p))
197 #define CA(p) ((RKH_TRN_ACT_T)(p))
198 #define CENP(p) ((RKH_SENP_T *)(p))
199 #define CEXP(p) ((RKH_SEXP_T *)(p))
200 #define CENPCN(p) ((RKH_ENPCN_T *)(p))
201 #define CEXPCN(p) ((RKH_EXPCN_T *)(p))
202 #define CE(p) ((RKH_EVT_T *)(p))
203 #define CCE(p) ((const RKH_EVT_T *)(p))
204 #define CV(p) ((void *)(p))
205 #define CSMA(p) ((const RKH_SMA_T *)(p))
206 #define CQ(p) ((RKH_QUEUE_T *)(p))
207 #define CTA(ta) ((RKH_TRN_ACT_T)(ta))
220 #define RKH_DCLR_PTR_TYPE(type_, me_) \
221 extern type_ * const me_
237 #ifndef RKH_CFG_MP_EN
238 #error "RKH_CFG_MP_EN not #define'd in 'rkhcfg.h'"
239 #error " [MUST be RKH_ENABLED ] "
240 #error " [ || RKH_DISABLED] "
242 #elif ((RKH_CFG_MP_EN != RKH_ENABLED) && \
243 (RKH_CFG_MP_EN != RKH_DISABLED))
244 #error "RKH_CFG_MP_EN illegally #define'd in 'rkhcfg.h'"
245 #error " [MUST be RKH_ENABLED ] "
246 #error " [ || RKH_DISABLED] "
248 #elif (RKH_CFG_MP_EN == RKH_ENABLED)
250 #ifndef RKH_CFG_MP_REDUCED_EN
251 #error "RKH_CFG_MP_REDUCED_EN not #define'd in 'rkhcfg.h'"
252 #error " [MUST be RKH_ENABLED ] "
253 #error " [ || RKH_DISABLED] "
255 #elif ((RKH_CFG_MP_REDUCED_EN != RKH_ENABLED) && \
256 (RKH_CFG_MP_REDUCED_EN != RKH_DISABLED))
257 #error "RKH_CFG_MP_REDUCED_EN illegally #define'd in 'rkhcfg.h'"
258 #error " [MUST be RKH_ENABLED ] "
259 #error " [ || RKH_DISABLED] "
262 #ifndef RKH_CFG_MP_SIZEOF_BSIZE
263 #error "RKH_CFG_MP_SIZEOF_BSIZE not #define'd in 'rkhcfg.h'"
264 #error " [MUST be 8 ( 8-bit size)] "
265 #error " [ || 16 (16-bit size)] "
266 #error " [ || 32 (32-bit size)] "
268 #elif ((RKH_CFG_MP_SIZEOF_BSIZE != 8) && \
269 (RKH_CFG_MP_SIZEOF_BSIZE != 16) && \
270 (RKH_CFG_MP_SIZEOF_BSIZE != 32))
271 #error "RKH_CFG_MP_SIZEOF_BSIZE illegally #define'd in 'rkhcfg.h'"
272 #error " [MUST be 8 ( 8-bit size)] "
273 #error " [ || 16 (16-bit size)] "
274 #error " [ || 32 (32-bit size)] "
277 #ifndef RKH_CFG_MP_SIZEOF_NBLOCK
278 #error "RKH_CFG_MP_SIZEOF_NBLOCK not #define'd in 'rkhcfg.h'"
279 #error " [MUST be 8 ( 8-bit size)] "
280 #error " [ || 16 (16-bit size)] "
281 #error " [ || 32 (32-bit size)] "
283 #elif ((RKH_CFG_MP_SIZEOF_NBLOCK != 8) && \
284 (RKH_CFG_MP_SIZEOF_NBLOCK != 16) && \
285 (RKH_CFG_MP_SIZEOF_NBLOCK != 32))
286 #error "RKH_CFG_MP_SIZEOF_NBLOCK illegally #define'd in 'rkhcfg.h'"
287 #error " [MUST be 8 ( 8-bit size)] "
288 #error " [ || 16 (16-bit size)] "
289 #error " [ || 32 (32-bit size)] "
292 #ifndef RKH_CFG_MP_GET_BSIZE_EN
293 #error "RKH_CFG_MP_GET_BSIZE_EN not #define'd in 'rkhcfg.h'"
294 #error " [MUST be RKH_ENABLED ] "
295 #error " [ || RKH_DISABLED] "
297 #elif ((RKH_CFG_MP_GET_BSIZE_EN != RKH_ENABLED) && \
298 (RKH_CFG_MP_GET_BSIZE_EN != RKH_DISABLED))
299 #error "RKH_CFG_MP_GET_BSIZE_EN illegally #define'd in 'rkhcfg.h'"
300 #error " [MUST be RKH_ENABLED ] "
301 #error " [ || RKH_DISABLED] "
304 #ifndef RKH_CFG_MP_GET_NFREE_EN
305 #error "RKH_CFG_MP_GET_NFREE_EN not #define'd in 'rkhcfg.h'"
306 #error " [MUST be RKH_ENABLED ] "
307 #error " [ || RKH_DISABLED] "
309 #elif ((RKH_CFG_MP_GET_NFREE_EN != RKH_ENABLED) && \
310 (RKH_CFG_MP_GET_NFREE_EN != RKH_DISABLED))
311 #error "RKH_CFG_MP_GET_NFREE_EN illegally #define'd in 'rkhcfg.h'"
312 #error " [MUST be RKH_ENABLED ] "
313 #error " [ || RKH_DISABLED] "
316 #ifndef RKH_CFG_MP_GET_LWM_EN
317 #error "RKH_CFG_MP_GET_LWM_EN not #define'd in 'rkhcfg.h'"
318 #error " [MUST be RKH_ENABLED ] "
319 #error " [ || RKH_DISABLED] "
321 #elif ((RKH_CFG_MP_GET_LWM_EN != RKH_ENABLED) && \
322 (RKH_CFG_MP_GET_LWM_EN != RKH_DISABLED))
323 #error "RKH_CFG_MP_GET_LWM_EN illegally #define'd in 'rkhcfg.h'"
324 #error " [MUST be RKH_ENABLED ] "
325 #error " [ || RKH_DISABLED] "
328 #ifndef RKH_CFG_MP_GET_INFO_EN
329 #error "RKH_CFG_MP_GET_INFO_EN not #define'd in 'rkhcfg.h'"
330 #error " [MUST be RKH_ENABLED ] "
331 #error " [ || RKH_DISABLED] "
333 #elif ((RKH_CFG_MP_GET_INFO_EN != RKH_ENABLED) && \
334 (RKH_CFG_MP_GET_INFO_EN != RKH_DISABLED))
335 #error "RKH_CFG_MP_GET_INFO_EN illegally #define'd in 'rkhcfg.h'"
336 #error " [MUST be RKH_ENABLED ] "
337 #error " [ || RKH_DISABLED] "
343 #ifndef RKH_CFG_QUE_EN
344 #error "RKH_CFG_QUE_EN not #define'd in 'rkhcfg.h'"
345 #error " [MUST be RKH_ENABLED ] "
346 #error " [ || RKH_DISABLED] "
348 #elif ((RKH_CFG_QUE_EN != RKH_ENABLED) && \
349 (RKH_CFG_QUE_EN != RKH_DISABLED))
350 #error "RKH_CFG_QUE_EN illegally #define'd in 'rkhcfg.h'"
351 #error " [MUST be RKH_ENABLED ] "
352 #error " [ || RKH_DISABLED] "
356 #ifndef RKH_CFG_QUE_SIZEOF_NELEM
357 #error "RKH_CFG_QUE_SIZEOF_NELEM not #define'd in 'rkhcfg.h'"
358 #error " [MUST be 8 ( 8-bit size)] "
359 #error " [ || 16 (16-bit size)] "
360 #error " [ || 32 (32-bit size)] "
362 #elif ((RKH_CFG_QUE_SIZEOF_NELEM != 8) && \
363 (RKH_CFG_QUE_SIZEOF_NELEM != 16) && \
364 (RKH_CFG_QUE_SIZEOF_NELEM != 32))
365 #error "RKH_CFG_QUE_SIZEOF_NELEM illegally #define'd in 'rkhcfg.h'"
366 #error " [MUST be 8 ( 8-bit size)] "
367 #error " [ || 16 (16-bit size)] "
368 #error " [ || 32 (32-bit size)] "
372 #ifndef RKH_CFG_QUE_GET_LWMARK_EN
373 #error "RKH_CFG_QUE_GET_LWMARK_EN not #define'd in 'rkhcfg.h'"
374 #error " [MUST be RKH_ENABLED ] "
375 #error " [ || RKH_DISABLED] "
377 #elif ((RKH_CFG_QUE_GET_LWMARK_EN != RKH_ENABLED) && \
378 (RKH_CFG_QUE_GET_LWMARK_EN != RKH_DISABLED))
379 #error "RKH_CFG_QUE_GET_LWMARK_EN illegally #define'd in 'rkhcfg.h'"
380 #error " [MUST be RKH_ENABLED ] "
381 #error " [ || RKH_DISABLED] "
385 #ifndef RKH_CFG_QUE_READ_EN
386 #error "RKH_CFG_QUE_READ_EN not #define'd in 'rkhcfg.h'"
387 #error " [MUST be RKH_ENABLED ] "
388 #error " [ || RKH_DISABLED] "
390 #elif ((RKH_CFG_QUE_READ_EN != RKH_ENABLED) && \
391 (RKH_CFG_QUE_READ_EN != RKH_DISABLED))
392 #error "RKH_CFG_QUE_READ_EN illegally #define'd in 'rkhcfg.h'"
393 #error " [MUST be RKH_ENABLED ] "
394 #error " [ || RKH_DISABLED] "
398 #ifndef RKH_CFG_QUE_DEPLETE_EN
399 #error "RKH_CFG_QUE_DEPLETE_EN not #define'd in 'rkhcfg.h'"
400 #error " [MUST be RKH_ENABLED ] "
401 #error " [ || RKH_DISABLED] "
403 #elif ((RKH_CFG_QUE_DEPLETE_EN != RKH_ENABLED) && \
404 (RKH_CFG_QUE_DEPLETE_EN != RKH_DISABLED))
405 #error "RKH_CFG_QUE_DEPLETE_EN illegally #define'd in 'rkhcfg.h'"
406 #error " [MUST be RKH_ENABLED ] "
407 #error " [ || RKH_DISABLED] "
411 #ifndef RKH_CFG_QUE_IS_FULL_EN
412 #error "RKH_CFG_QUE_IS_FULL_EN not #define'd in 'rkhcfg.h'"
413 #error " [MUST be RKH_ENABLED ] "
414 #error " [ || RKH_DISABLED] "
416 #elif ((RKH_CFG_QUE_IS_FULL_EN != RKH_ENABLED) && \
417 (RKH_CFG_QUE_IS_FULL_EN != RKH_DISABLED))
418 #error "RKH_CFG_QUE_IS_FULL_EN illegally #define'd in 'rkhcfg.h'"
419 #error " [MUST be RKH_ENABLED ] "
420 #error " [ || RKH_DISABLED] "
424 #ifndef RKH_CFG_QUE_GET_NELEMS_EN
425 #error "RKH_CFG_QUE_GET_NELEMS_EN not #define'd in 'rkhcfg.h'"
426 #error " [MUST be RKH_ENABLED ] "
427 #error " [ || RKH_DISABLED] "
429 #elif ((RKH_CFG_QUE_GET_NELEMS_EN != RKH_ENABLED) && \
430 (RKH_CFG_QUE_GET_NELEMS_EN != RKH_DISABLED))
431 #error "RKH_CFG_QUE_GET_NELEMS_EN illegally #define'd in 'rkhcfg.h'"
432 #error " [MUST be RKH_ENABLED ] "
433 #error " [ || RKH_DISABLED] "
437 #ifndef RKH_CFG_QUE_PUT_LIFO_EN
438 #error "RKH_CFG_QUE_PUT_LIFO_EN not #define'd in 'rkhcfg.h'"
439 #error " [MUST be RKH_ENABLED ] "
440 #error " [ || RKH_DISABLED] "
442 #elif ((RKH_CFG_QUE_PUT_LIFO_EN != RKH_ENABLED) && \
443 (RKH_CFG_QUE_PUT_LIFO_EN != RKH_DISABLED))
444 #error "RKH_CFG_QUE_PUT_LIFO_EN illegally #define'd in 'rkhcfg.h'"
445 #error " [MUST be RKH_ENABLED ] "
446 #error " [ || RKH_DISABLED] "
450 #ifndef RKH_CFG_QUE_GET_INFO_EN
451 #error "RKH_CFG_QUE_GET_INFO_EN not #define'd in 'rkhcfg.h'"
452 #error " [MUST be RKH_ENABLED ] "
453 #error " [ || RKH_DISABLED] "
455 #elif ((RKH_CFG_QUE_GET_INFO_EN != RKH_ENABLED) && \
456 (RKH_CFG_QUE_GET_INFO_EN != RKH_DISABLED))
457 #error "RKH_CFG_QUE_GET_INFO_EN illegally #define'd in 'rkhcfg.h'"
458 #error " [MUST be RKH_ENABLED ] "
459 #error " [ || RKH_DISABLED] "
464 #ifndef RKH_CFG_TMR_EN
465 #error "RKH_CFG_TMR_EN not #define'd in 'rkhcfg.h'"
466 #error " [MUST be RKH_ENABLED ] "
467 #error " [ || RKH_DISABLED] "
469 #elif ((RKH_CFG_TMR_EN != RKH_ENABLED) && \
470 (RKH_CFG_TMR_EN != RKH_DISABLED))
471 #error "RKH_CFG_TMR_EN illegally #define'd in 'rkhcfg.h'"
472 #error " [MUST be RKH_ENABLED ] "
473 #error " [ || RKH_DISABLED] "
475 #elif (RKH_CFG_TMR_EN == RKH_ENABLED)
476 #ifndef RKH_CFG_FWK_TICK_RATE_HZ
477 #error "RKH_CFG_FWK_TICK_RATE_HZ not #define'd in 'rkhcfg.h'"
478 #error " [MUST be RKH_ENABLED ] "
479 #error " [ || RKH_DISABLED] "
480 #elif (RKH_CFG_FWK_TICK_RATE_HZ <= 0u)
481 #error "RKH_CFG_FWK_TICK_RATE_HZ illegally #define'd in 'rkhcfg.h'"
482 #error " [MUST be > 0] "
485 #ifndef RKH_CFG_TMR_SIZEOF_NTIMER
486 #error "RKH_CFG_TMR_SIZEOF_NTIMER not #define'd in 'rkhcfg.h'"
487 #error " [MUST be 8 ( 8-bit size)] "
488 #error " [ || 16 (16-bit size)] "
489 #error " [ || 32 (32-bit size)] "
491 #elif ((RKH_CFG_TMR_SIZEOF_NTIMER != 8) && \
492 (RKH_CFG_TMR_SIZEOF_NTIMER != 16) && \
493 (RKH_CFG_TMR_SIZEOF_NTIMER != 32))
494 #error "RKH_CFG_TMR_SIZEOF_NTIMER illegally #define'd in 'rkhcfg.h'"
495 #error " [MUST be 8 ( 8-bit size)] "
496 #error " [ || 16 (16-bit size)] "
497 #error " [ || 32 (32-bit size)] "
500 #ifndef RKH_CFG_TMR_HOOK_EN
501 #error "RKH_CFG_TMR_HOOK_EN not #define'd in 'rkhcfg.h'"
502 #error " [MUST be RKH_ENABLED ] "
503 #error " [ || RKH_DISABLED] "
505 #elif ((RKH_CFG_TMR_HOOK_EN != RKH_ENABLED) && \
506 (RKH_CFG_TMR_HOOK_EN != RKH_DISABLED))
507 #error "RKH_CFG_TMR_HOOK_EN illegally #define'd in 'rkhcfg.h'"
508 #error " [MUST be RKH_ENABLED ] "
509 #error " [ || RKH_DISABLED] "
512 #ifndef RKH_CFG_TMR_GET_INFO_EN
513 #error "RKH_CFG_TMR_GET_INFO_EN not #define'd in 'rkhcfg.h'"
514 #error " [MUST be RKH_ENABLED ] "
515 #error " [ || RKH_DISABLED] "
517 #elif ((RKH_CFG_TMR_GET_INFO_EN != RKH_ENABLED) && \
518 (RKH_CFG_TMR_GET_INFO_EN != RKH_DISABLED))
519 #error "RKH_CFG_TMR_GET_INFO_EN illegally #define'd in 'rkhcfg.h'"
520 #error " [MUST be RKH_ENABLED ] "
521 #error " [ || RKH_DISABLED] "
527 #ifndef RKH_CFG_SMA_GET_INFO_EN
528 #error "RKH_CFG_SMA_GET_INFO_EN not #define'd in 'rkhcfg.h'"
529 #error " [MUST be RKH_ENABLED ] "
530 #error " [ || RKH_DISABLED] "
532 #elif ((RKH_CFG_SMA_GET_INFO_EN != RKH_ENABLED) && \
533 (RKH_CFG_SMA_GET_INFO_EN != RKH_DISABLED))
534 #error "RKH_CFG_SMA_GET_INFO_EN illegally #define'd in 'rkhcfg.h'"
535 #error " [MUST be RKH_ENABLED ] "
536 #error " [ || RKH_DISABLED] "
540 #ifndef RKH_CFG_SMA_PPRO_EN
541 #error "RKH_CFG_SMA_PPRO_EN not #define'd in 'rkhcfg.h'"
542 #error " [MUST be RKH_ENABLED ] "
543 #error " [ || RKH_DISABLED] "
545 #elif ((RKH_CFG_SMA_PPRO_EN != RKH_ENABLED) && \
546 (RKH_CFG_SMA_PPRO_EN != RKH_DISABLED))
547 #error "RKH_CFG_SMA_PPRO_EN illegally #define'd in 'rkhcfg.h'"
548 #error " [MUST be RKH_ENABLED ] "
549 #error " [ || RKH_DISABLED] "
553 #ifndef RKH_CFG_SMA_HCAL_EN
554 #error "RKH_CFG_SMA_HCAL_EN not #define'd in 'rkhcfg.h'"
555 #error " [MUST be RKH_ENABLED ] "
556 #error " [ || RKH_DISABLED] "
558 #elif ((RKH_CFG_SMA_HCAL_EN != RKH_ENABLED) && \
559 (RKH_CFG_SMA_HCAL_EN != RKH_DISABLED))
560 #error "RKH_CFG_SMA_HCAL_EN illegally #define'd in 'rkhcfg.h'"
561 #error " [MUST be RKH_ENABLED ] "
562 #error " [ || RKH_DISABLED] "
566 #ifndef RKH_CFG_SMA_MAX_HCAL_DEPTH
567 #error "RKH_CFG_SMA_MAX_HCAL_DEPTH not #define'd in 'rkhcfg.h'"
568 #error " [MUST be > 0] "
569 #error " [ && <= 8] "
571 #elif ((RKH_CFG_SMA_MAX_HCAL_DEPTH == 0) || \
572 (RKH_CFG_SMA_MAX_HCAL_DEPTH > 8))
573 #error "RKH_CFG_SMA_MAX_HCAL_DEPTH illegally #define'd in 'rkhcfg.h'"
574 #error " [MUST be >= 0] "
575 #error " [ && <= 8] "
579 #ifndef RKH_CFG_SMA_MAX_TRC_SEGS
580 #error "RKH_CFG_SMA_MAX_TRC_SEGS not #define'd in 'rkhcfg.h'"
581 #error " [MUST be > 0] "
582 #error " [ && <= 8] "
584 #elif ((RKH_CFG_SMA_MAX_TRC_SEGS == 0) || \
585 (RKH_CFG_SMA_MAX_TRC_SEGS > 8))
586 #error "RKH_CFG_SMA_MAX_TRC_SEGS illegally #define'd in 'rkhcfg.h'"
587 #error " [MUST be >= 0] "
588 #error " [ && <= 8] "
592 #ifndef RKH_CFG_SMA_PSEUDOSTATE_EN
593 #error "RKH_CFG_SMA_PSEUDOSTATE_EN not #define'd in 'rkhcfg.h'"
594 #error " [MUST be RKH_ENABLED ] "
595 #error " [ || RKH_DISABLED] "
597 #elif ((RKH_CFG_SMA_PSEUDOSTATE_EN != RKH_ENABLED) && \
598 (RKH_CFG_SMA_PSEUDOSTATE_EN != RKH_DISABLED))
599 #error "RKH_CFG_SMA_PSEUDOSTATE_EN illegally #define'd in 'rkhcfg.h'"
600 #error " [MUST be RKH_ENABLED ] "
601 #error " [ || RKH_DISABLED] "
605 #ifndef RKH_CFG_SMA_DEEP_HIST_EN
606 #error "RKH_CFG_SMA_DEEP_HIST_EN not #define'd in 'rkhcfg.h'"
607 #error " [MUST be RKH_ENABLED ] "
608 #error " [ || RKH_DISABLED] "
610 #elif ((RKH_CFG_SMA_DEEP_HIST_EN != RKH_ENABLED) && \
611 (RKH_CFG_SMA_DEEP_HIST_EN != RKH_DISABLED))
612 #error "RKH_CFG_SMA_DEEP_HIST_EN illegally #define'd in 'rkhcfg.h'"
613 #error " [MUST be RKH_ENABLED ] "
614 #error " [ || RKH_DISABLED] "
618 #ifndef RKH_CFG_SMA_SHALLOW_HIST_EN
619 #error "RKH_CFG_SMA_SHALLOW_HIST_EN not #define'd in 'rkhcfg.h'"
620 #error " [MUST be RKH_ENABLED ] "
621 #error " [ || RKH_DISABLED] "
623 #elif ((RKH_CFG_SMA_SHALLOW_HIST_EN != RKH_ENABLED) && \
624 (RKH_CFG_SMA_SHALLOW_HIST_EN != RKH_DISABLED))
625 #error "RKH_CFG_SMA_SHALLOW_HIST_EN illegally #define'd in 'rkhcfg.h'"
626 #error " [MUST be RKH_ENABLED ] "
627 #error " [ || RKH_DISABLED] "
631 #ifndef RKH_CFG_SMA_CHOICE_EN
632 #error "RKH_CFG_SMA_CHOICE_EN not #define'd in 'rkhcfg.h'"
633 #error " [MUST be RKH_ENABLED ] "
634 #error " [ || RKH_DISABLED] "
636 #elif ((RKH_CFG_SMA_CHOICE_EN != RKH_ENABLED) && \
637 (RKH_CFG_SMA_CHOICE_EN != RKH_DISABLED))
638 #error "RKH_CFG_SMA_CHOICE_EN illegally #define'd in 'rkhcfg.h'"
639 #error " [MUST be RKH_ENABLED ] "
640 #error " [ || RKH_DISABLED] "
644 #ifndef RKH_CFG_SMA_CONDITIONAL_EN
645 #error "RKH_CFG_SMA_CONDITIONAL_EN not #define'd in 'rkhcfg.h'"
646 #error " [MUST be RKH_ENABLED ] "
647 #error " [ || RKH_DISABLED] "
649 #elif ((RKH_CFG_SMA_CONDITIONAL_EN != RKH_ENABLED) && \
650 (RKH_CFG_SMA_CONDITIONAL_EN != RKH_DISABLED))
651 #error "RKH_CFG_SMA_CONDITIONAL_EN illegally #define'd in 'rkhcfg.h'"
652 #error " [MUST be RKH_ENABLED ] "
653 #error " [ || RKH_DISABLED] "
657 #ifndef RKH_CFG_SMA_SUBMACHINE_EN
658 #error "RKH_CFG_SMA_SUBMACHINE_EN not #define'd in 'rkhcfg.h'"
659 #error " [MUST be RKH_ENABLED ] "
660 #error " [ || RKH_DISABLED] "
662 #elif ((RKH_CFG_SMA_SUBMACHINE_EN != RKH_ENABLED) && \
663 (RKH_CFG_SMA_SUBMACHINE_EN != RKH_DISABLED))
664 #error "RKH_CFG_SMA_SUBMACHINE_EN illegally #define'd in 'rkhcfg.h'"
665 #error " [MUST be RKH_ENABLED ] "
666 #error " [ || RKH_DISABLED] "
670 #ifndef RKH_CFG_SMA_TRC_SNDR_EN
671 #error "RKH_CFG_SMA_TRC_SNDR_EN not #define'd in 'rkhcfg.h'"
672 #error " [MUST be RKH_ENABLED ] "
673 #error " [ || RKH_DISABLED] "
675 #elif ((RKH_CFG_SMA_TRC_SNDR_EN != RKH_ENABLED) && \
676 (RKH_CFG_SMA_TRC_SNDR_EN != RKH_DISABLED))
677 #error "RKH_CFG_SMA_TRC_SNDR_EN illegally #define'd in 'rkhcfg.h'"
678 #error " [MUST be RKH_ENABLED ] "
679 #error " [ || RKH_DISABLED] "
683 #ifndef RKH_CFG_SMA_ENT_ARG_SMA_EN
684 #error "RKH_CFG_SMA_ENT_ARG_SMA_EN not #define'd in 'rkhcfg.h'"
685 #error " [MUST be RKH_ENABLED ] "
686 #error " [ || RKH_DISABLED] "
688 #elif ((RKH_CFG_SMA_ENT_ARG_SMA_EN != RKH_ENABLED) && \
689 (RKH_CFG_SMA_ENT_ARG_SMA_EN != RKH_DISABLED))
690 #error "RKH_CFG_SMA_ENT_ARG_SMA_EN illegally #define'd in 'rkhcfg.h'"
691 #error " [MUST be RKH_ENABLED ] "
692 #error " [ || RKH_DISABLED] "
696 #ifndef RKH_CFG_SMA_ENT_ARG_STATE_EN
697 #error "RKH_CFG_SMA_ENT_ARG_STATE_EN not #define'd in 'rkhcfg.h'"
698 #error " [MUST be RKH_ENABLED ] "
699 #error " [ || RKH_DISABLED] "
701 #elif ((RKH_CFG_SMA_ENT_ARG_STATE_EN != RKH_ENABLED) && \
702 (RKH_CFG_SMA_ENT_ARG_STATE_EN != RKH_DISABLED))
703 #error "RKH_CFG_SMA_ENT_ARG_STATE_EN illegally #define'd in 'rkhcfg.h'"
704 #error " [MUST be RKH_ENABLED ] "
705 #error " [ || RKH_DISABLED] "
709 #ifndef RKH_CFG_SMA_EXT_ARG_SMA_EN
710 #error "RKH_CFG_SMA_EXT_ARG_SMA_EN not #define'd in 'rkhcfg.h'"
711 #error " [MUST be RKH_ENABLED ] "
712 #error " [ || RKH_DISABLED] "
714 #elif ((RKH_CFG_SMA_EXT_ARG_SMA_EN != RKH_ENABLED) && \
715 (RKH_CFG_SMA_EXT_ARG_SMA_EN != RKH_DISABLED))
716 #error "RKH_CFG_SMA_EXT_ARG_SMA_EN illegally #define'd in 'rkhcfg.h'"
717 #error " [MUST be RKH_ENABLED ] "
718 #error " [ || RKH_DISABLED] "
722 #ifndef RKH_CFG_SMA_EXT_ARG_STATE_EN
723 #error "RKH_CFG_SMA_EXT_ARG_STATE_EN not #define'd in 'rkhcfg.h'"
724 #error " [MUST be RKH_ENABLED ] "
725 #error " [ || RKH_DISABLED] "
727 #elif ((RKH_CFG_SMA_EXT_ARG_STATE_EN != RKH_ENABLED) && \
728 (RKH_CFG_SMA_EXT_ARG_STATE_EN != RKH_DISABLED))
729 #error "RKH_CFG_SMA_EXT_ARG_STATE_EN illegally #define'd in 'rkhcfg.h'"
730 #error " [MUST be RKH_ENABLED ] "
731 #error " [ || RKH_DISABLED] "
735 #ifndef RKH_CFG_SMA_ACT_ARG_SMA_EN
736 #error "RKH_CFG_SMA_ACT_ARG_SMA_EN not #define'd in 'rkhcfg.h'"
737 #error " [MUST be RKH_ENABLED ] "
738 #error " [ || RKH_DISABLED] "
740 #elif ((RKH_CFG_SMA_ACT_ARG_SMA_EN != RKH_ENABLED) && \
741 (RKH_CFG_SMA_ACT_ARG_SMA_EN != RKH_DISABLED))
742 #error "RKH_CFG_SMA_ACT_ARG_SMA_EN illegally #define'd in 'rkhcfg.h'"
743 #error " [MUST be RKH_ENABLED ] "
744 #error " [ || RKH_DISABLED] "
748 #ifndef RKH_CFG_SMA_ACT_ARG_EVT_EN
749 #error "RKH_CFG_SMA_ACT_ARG_EVT_EN not #define'd in 'rkhcfg.h'"
750 #error " [MUST be RKH_ENABLED ] "
751 #error " [ || RKH_DISABLED] "
753 #elif ((RKH_CFG_SMA_ACT_ARG_EVT_EN != RKH_ENABLED) && \
754 (RKH_CFG_SMA_ACT_ARG_EVT_EN != RKH_DISABLED))
755 #error "RKH_CFG_SMA_ACT_ARG_EVT_EN illegally #define'd in 'rkhcfg.h'"
756 #error " [MUST be RKH_ENABLED ] "
757 #error " [ || RKH_DISABLED] "
761 #ifndef RKH_CFG_SMA_GRD_ARG_EVT_EN
762 #error "RKH_CFG_SMA_GRD_ARG_EVT_EN not #define'd in 'rkhcfg.h'"
763 #error " [MUST be RKH_ENABLED ] "
764 #error " [ || RKH_DISABLED] "
766 #elif ((RKH_CFG_SMA_GRD_ARG_EVT_EN != RKH_ENABLED) && \
767 (RKH_CFG_SMA_GRD_ARG_EVT_EN != RKH_DISABLED))
768 #error "RKH_CFG_SMA_GRD_ARG_EVT_EN illegally #define'd in 'rkhcfg.h'"
769 #error " [MUST be RKH_ENABLED ] "
770 #error " [ || RKH_DISABLED] "
774 #ifndef RKH_CFG_SMA_GRD_ARG_SMA_EN
775 #error "RKH_CFG_SMA_GRD_ARG_SMA_EN not #define'd in 'rkhcfg.h'"
776 #error " [MUST be RKH_ENABLED ] "
777 #error " [ || RKH_DISABLED] "
779 #elif ((RKH_CFG_SMA_GRD_ARG_SMA_EN != RKH_ENABLED) && \
780 (RKH_CFG_SMA_GRD_ARG_SMA_EN != RKH_DISABLED))
781 #error "RKH_CFG_SMA_GRD_ARG_SMA_EN illegally #define'd in 'rkhcfg.h'"
782 #error " [MUST be RKH_ENABLED ] "
783 #error " [ || RKH_DISABLED] "
787 #ifndef RKH_CFG_SMA_PPRO_ARG_SMA_EN
788 #error "RKH_CFG_SMA_PPRO_ARG_SMA_EN not #define'd in 'rkhcfg.h'"
789 #error " [MUST be RKH_ENABLED ] "
790 #error " [ || RKH_DISABLED] "
792 #elif ((RKH_CFG_SMA_PPRO_ARG_SMA_EN != RKH_ENABLED) && \
793 (RKH_CFG_SMA_PPRO_ARG_SMA_EN != RKH_DISABLED))
794 #error "RKH_CFG_SMA_PPRO_ARG_SMA_EN illegally #define'd in 'rkhcfg.h'"
795 #error " [MUST be RKH_ENABLED ] "
796 #error " [ || RKH_DISABLED] "
800 #ifndef RKH_CFG_SMA_SM_CONST_EN
801 #error "RKH_CFG_SMA_SM_CONST_EN not #define'd in 'rkhcfg.h'"
802 #error " [MUST be RKH_ENABLED ] "
803 #error " [ || RKH_DISABLED] "
805 #elif ((RKH_CFG_SMA_SM_CONST_EN != RKH_ENABLED) && \
806 (RKH_CFG_SMA_SM_CONST_EN != RKH_DISABLED))
807 #error "RKH_CFG_SMA_SM_CONST_EN illegally #define'd in 'rkhcfg.h'"
808 #error " [MUST be RKH_ENABLED ] "
809 #error " [ || RKH_DISABLED] "
813 #ifndef RKH_CFG_SMA_RT_CTOR_EN
814 #error "RKH_CFG_SMA_RT_CTOR_EN not #define'd in 'rkhcfg.h'"
815 #error " [MUST be RKH_ENABLED ] "
816 #error " [ || RKH_DISABLED] "
818 #elif ((RKH_CFG_SMA_RT_CTOR_EN != RKH_ENABLED) && \
819 (RKH_CFG_SMA_RT_CTOR_EN != RKH_DISABLED))
820 #error "RKH_CFG_SMA_RT_CTOR_EN illegally #define'd in 'rkhcfg.h'"
821 #error " [MUST be RKH_ENABLED ] "
822 #error " [ || RKH_DISABLED] "
826 #ifndef RKH_CFG_SMA_VFUNCT_EN
827 #error "RKH_CFG_SMA_VFUNCT_EN not #define'd in 'rkhcfg.h'"
828 #error " [MUST be RKH_ENABLED ] "
829 #error " [ || RKH_DISABLED] "
831 #elif ((RKH_CFG_SMA_VFUNCT_EN != RKH_ENABLED) && \
832 (RKH_CFG_SMA_VFUNCT_EN != RKH_DISABLED))
833 #error "RKH_CFG_SMA_VFUNCT_EN illegally #define'd in 'rkhcfg.h'"
834 #error " [MUST be RKH_ENABLED ] "
835 #error " [ || RKH_DISABLED] "
839 #ifndef RKH_CFG_SMA_ORTHREG_EN
840 #error "RKH_CFG_SMA_ORTHREG_EN not #define'd in 'rkhcfg.h'"
841 #error " [MUST be RKH_ENABLED ] "
842 #error " [ || RKH_DISABLED] "
844 #elif ((RKH_CFG_SMA_ORTHREG_EN != RKH_ENABLED) && \
845 (RKH_CFG_SMA_ORTHREG_EN != RKH_DISABLED))
846 #error "RKH_CFG_SMA_ORTHREG_EN illegally #define'd in 'rkhcfg.h'"
847 #error " [MUST be RKH_ENABLED ] "
848 #error " [ || RKH_DISABLED] "
853 #ifndef RKH_CFG_TRC_EN
854 #error "RKH_CFG_TRC_EN not #define'd in 'rkhcfg.h'"
855 #error " [MUST be RKH_ENABLED ] "
856 #error " [ || RKH_DISABLED] "
858 #elif ((RKH_CFG_TRC_EN != RKH_ENABLED) && \
859 (RKH_CFG_TRC_EN != RKH_DISABLED))
860 #error "RKH_CFG_TRC_EN illegally #define'd in 'rkhcfg.h'"
861 #error " [MUST be RKH_ENABLED ] "
862 #error " [ || RKH_DISABLED] "
864 #elif (RKH_CFG_TRC_EN == RKH_ENABLED)
866 #ifndef RKH_CFG_TRC_RTFIL_EN
867 #error "RKH_CFG_TRC_RTFIL_EN not #define'd in 'rkhcfg.h'"
868 #error " [MUST be RKH_ENABLED ] "
869 #error " [ || RKH_DISABLED] "
871 #elif ((RKH_CFG_TRC_RTFIL_EN != RKH_ENABLED) && \
872 (RKH_CFG_TRC_RTFIL_EN != RKH_DISABLED))
873 #error "RKH_CFG_TRC_RTFIL_EN illegally #define'd in 'rkhcfg.h'"
874 #error " [MUST be RKH_ENABLED ] "
875 #error " [ || RKH_DISABLED] "
878 #ifndef RKH_CFG_TRC_RTFIL_SMA_EN
879 #error "RKH_CFG_TRC_RTFIL_SMA_EN not #define'd in 'rkhcfg.h'"
880 #error " [MUST be RKH_ENABLED ] "
881 #error " [ || RKH_DISABLED] "
883 #elif ((RKH_CFG_TRC_RTFIL_SMA_EN != RKH_ENABLED) && \
884 (RKH_CFG_TRC_RTFIL_SMA_EN != RKH_DISABLED))
885 #error "RKH_CFG_TRC_RTFIL_SMA_EN illegally #define'd in 'rkhcfg.h'"
886 #error " [MUST be RKH_ENABLED ] "
887 #error " [ || RKH_DISABLED] "
890 #ifndef RKH_CFG_TRC_RTFIL_SIGNAL_EN
891 #error "RKH_CFG_TRC_RTFIL_SIGNAL_EN not #define'd in 'rkhcfg.h'"
892 #error " [MUST be RKH_ENABLED ] "
893 #error " [ || RKH_DISABLED] "
895 #elif ((RKH_CFG_TRC_RTFIL_SIGNAL_EN != RKH_ENABLED) && \
896 (RKH_CFG_TRC_RTFIL_SIGNAL_EN != RKH_DISABLED))
897 #error "RKH_CFG_TRC_RTFIL_SIGNAL_EN illegally #define'd in 'rkhcfg.h'"
898 #error " [MUST be RKH_ENABLED ] "
899 #error " [ || RKH_DISABLED] "
902 #ifndef RKH_CFG_TRC_USER_TRACE_EN
903 #error "RKH_CFG_TRC_USER_TRACE_EN not #define'd in 'rkhcfg.h'"
904 #error " [MUST be RKH_ENABLED ] "
905 #error " [ || RKH_DISABLED] "
907 #elif ((RKH_CFG_TRC_USER_TRACE_EN != RKH_ENABLED) && \
908 (RKH_CFG_TRC_USER_TRACE_EN != RKH_DISABLED))
909 #error "RKH_CFG_TRC_USER_TRACE_EN illegally #define'd in 'rkhcfg.h'"
910 #error " [MUST be RKH_ENABLED ] "
911 #error " [ || RKH_DISABLED] "
914 #ifndef RKH_CFG_TRC_ALL_EN
915 #error "RKH_CFG_TRC_ALL_EN not #define'd in 'rkhcfg.h'"
916 #error " [MUST be RKH_ENABLED ] "
917 #error " [ || RKH_DISABLED] "
919 #elif ((RKH_CFG_TRC_ALL_EN != RKH_ENABLED) && \
920 (RKH_CFG_TRC_ALL_EN != RKH_DISABLED))
921 #error "RKH_CFG_TRC_ALL_EN illegally #define'd in 'rkhcfg.h'"
922 #error " [MUST be RKH_ENABLED ] "
923 #error " [ || RKH_DISABLED] "
926 #ifndef RKH_CFG_TRC_MP_EN
927 #error "RKH_CFG_TRC_MP_EN not #define'd in 'rkhcfg.h'"
928 #error " [MUST be RKH_ENABLED ] "
929 #error " [ || RKH_DISABLED] "
931 #elif ((RKH_CFG_TRC_MP_EN != RKH_ENABLED) && \
932 (RKH_CFG_TRC_MP_EN != RKH_DISABLED))
933 #error "RKH_CFG_TRC_MP_EN illegally #define'd in 'rkhcfg.h'"
934 #error " [MUST be RKH_ENABLED ] "
935 #error " [ || RKH_DISABLED] "
938 #ifndef RKH_CFG_TRC_QUE_EN
939 #error "RKH_CFG_TRC_QUE_EN not #define'd in 'rkhcfg.h'"
940 #error " [MUST be RKH_ENABLED ] "
941 #error " [ || RKH_DISABLED] "
943 #elif ((RKH_CFG_TRC_QUE_EN != RKH_ENABLED) && \
944 (RKH_CFG_TRC_QUE_EN != RKH_DISABLED))
945 #error "RKH_CFG_TRC_QUE_EN illegally #define'd in 'rkhcfg.h'"
946 #error " [MUST be RKH_ENABLED ] "
947 #error " [ || RKH_DISABLED] "
950 #ifndef RKH_CFG_TRC_SMA_EN
951 #error "RKH_CFG_TRC_SMA_EN not #define'd in 'rkhcfg.h'"
952 #error " [MUST be RKH_ENABLED ] "
953 #error " [ || RKH_DISABLED] "
955 #elif ((RKH_CFG_TRC_SMA_EN != RKH_ENABLED) && \
956 (RKH_CFG_TRC_SMA_EN != RKH_DISABLED))
957 #error "RKH_CFG_TRC_SMA_EN illegally #define'd in 'rkhcfg.h'"
958 #error " [MUST be RKH_ENABLED ] "
959 #error " [ || RKH_DISABLED] "
962 #ifndef RKH_CFG_TRC_TMR_EN
963 #error "RKH_CFG_TRC_TMR_EN not #define'd in 'rkhcfg.h'"
964 #error " [MUST be RKH_ENABLED ] "
965 #error " [ || RKH_DISABLED] "
967 #elif ((RKH_CFG_TRC_TMR_EN != RKH_ENABLED) && \
968 (RKH_CFG_TRC_TMR_EN != RKH_DISABLED))
969 #error "RKH_CFG_TRC_TMR_EN illegally #define'd in 'rkhcfg.h'"
970 #error " [MUST be RKH_ENABLED ] "
971 #error " [ || RKH_DISABLED] "
974 #ifndef RKH_CFG_TRC_SM_EN
975 #error "RKH_CFG_TRC_SM_EN not #define'd in 'rkhcfg.h'"
976 #error " [MUST be RKH_ENABLED ] "
977 #error " [ || RKH_DISABLED] "
979 #elif ((RKH_CFG_TRC_SM_EN != RKH_ENABLED) && \
980 (RKH_CFG_TRC_SM_EN != RKH_DISABLED))
981 #error "RKH_CFG_TRC_SM_EN illegally #define'd in 'rkhcfg.h'"
982 #error " [MUST be RKH_ENABLED ] "
983 #error " [ || RKH_DISABLED] "
986 #ifndef RKH_CFG_TRC_FWK_EN
987 #error "RKH_CFG_TRC_FWK_EN not #define'd in 'rkhcfg.h'"
988 #error " [MUST be RKH_ENABLED ] "
989 #error " [ || RKH_DISABLED] "
991 #elif ((RKH_CFG_TRC_FWK_EN != RKH_ENABLED) && \
992 (RKH_CFG_TRC_FWK_EN != RKH_DISABLED))
993 #error "RKH_CFG_TRC_FWK_EN illegally #define'd in 'rkhcfg.h'"
994 #error " [MUST be RKH_ENABLED ] "
995 #error " [ || RKH_DISABLED] "
998 #ifndef RKH_CFG_TRC_ASSERT_EN
999 #error "RKH_CFG_TRC_ASSERT_EN not #define'd in 'rkhcfg.h'"
1000 #error " [MUST be RKH_ENABLED ] "
1001 #error " [ || RKH_DISABLED] "
1003 #elif ((RKH_CFG_TRC_ASSERT_EN != RKH_ENABLED) && \
1004 (RKH_CFG_TRC_ASSERT_EN != RKH_DISABLED))
1005 #error "RKH_CFG_TRC_ASSERT_EN illegally #define'd in 'rkhcfg.h'"
1006 #error " [MUST be RKH_ENABLED ] "
1007 #error " [ || RKH_DISABLED] "
1010 #ifndef RKH_CFG_TRC_SM_INIT_EN
1011 #error "RKH_CFG_TRC_SM_INIT_EN not #define'd in 'rkhcfg.h'"
1012 #error " [MUST be RKH_ENABLED ] "
1013 #error " [ || RKH_DISABLED] "
1015 #elif ((RKH_CFG_TRC_SM_INIT_EN != RKH_ENABLED) && \
1016 (RKH_CFG_TRC_SM_INIT_EN != RKH_DISABLED))
1017 #error "RKH_CFG_TRC_SM_INIT_EN illegally #define'd in 'rkhcfg.h'"
1018 #error " [MUST be RKH_ENABLED ] "
1019 #error " [ || RKH_DISABLED] "
1022 #ifndef RKH_CFG_TRC_SM_DCH_EN
1023 #error "RKH_CFG_TRC_SM_DCH_EN not #define'd in 'rkhcfg.h'"
1024 #error " [MUST be RKH_ENABLED ] "
1025 #error " [ || RKH_DISABLED] "
1027 #elif ((RKH_CFG_TRC_SM_DCH_EN != RKH_ENABLED) && \
1028 (RKH_CFG_TRC_SM_DCH_EN != RKH_DISABLED))
1029 #error "RKH_CFG_TRC_SM_DCH_EN illegally #define'd in 'rkhcfg.h'"
1030 #error " [MUST be RKH_ENABLED ] "
1031 #error " [ || RKH_DISABLED] "
1034 #ifndef RKH_CFG_TRC_SM_CLRH_EN
1035 #error "RKH_CFG_TRC_SM_CLRH_EN not #define'd in 'rkhcfg.h'"
1036 #error " [MUST be RKH_ENABLED ] "
1037 #error " [ || RKH_DISABLED] "
1039 #elif ((RKH_CFG_TRC_SM_CLRH_EN != RKH_ENABLED) && \
1040 (RKH_CFG_TRC_SM_CLRH_EN != RKH_DISABLED))
1041 #error "RKH_CFG_TRC_SM_CLRH_EN illegally #define'd in 'rkhcfg.h'"
1042 #error " [MUST be RKH_ENABLED ] "
1043 #error " [ || RKH_DISABLED] "
1046 #ifndef RKH_CFG_TRC_SM_TRN_EN
1047 #error "RKH_CFG_TRC_SM_TRN_EN not #define'd in 'rkhcfg.h'"
1048 #error " [MUST be RKH_ENABLED ] "
1049 #error " [ || RKH_DISABLED] "
1051 #elif ((RKH_CFG_TRC_SM_TRN_EN != RKH_ENABLED) && \
1052 (RKH_CFG_TRC_SM_TRN_EN != RKH_DISABLED))
1053 #error "RKH_CFG_TRC_SM_TRN_EN illegally #define'd in 'rkhcfg.h'"
1054 #error " [MUST be RKH_ENABLED ] "
1055 #error " [ || RKH_DISABLED] "
1058 #ifndef RKH_CFG_TRC_SM_STATE_EN
1059 #error "RKH_CFG_TRC_SM_STATE_EN not #define'd in 'rkhcfg.h'"
1060 #error " [MUST be RKH_ENABLED ] "
1061 #error " [ || RKH_DISABLED] "
1063 #elif ((RKH_CFG_TRC_SM_STATE_EN != RKH_ENABLED) && \
1064 (RKH_CFG_TRC_SM_STATE_EN != RKH_DISABLED))
1065 #error "RKH_CFG_TRC_SM_STATE_EN illegally #define'd in 'rkhcfg.h'"
1066 #error " [MUST be RKH_ENABLED ] "
1067 #error " [ || RKH_DISABLED] "
1070 #ifndef RKH_CFG_TRC_SM_ENSTATE_EN
1071 #error "RKH_CFG_TRC_SM_ENSTATE_EN not #define'd in 'rkhcfg.h'"
1072 #error " [MUST be RKH_ENABLED ] "
1073 #error " [ || RKH_DISABLED] "
1075 #elif ((RKH_CFG_TRC_SM_ENSTATE_EN != RKH_ENABLED) && \
1076 (RKH_CFG_TRC_SM_ENSTATE_EN != RKH_DISABLED))
1077 #error "RKH_CFG_TRC_SM_ENSTATE_EN illegally #define'd in 'rkhcfg.h'"
1078 #error " [MUST be RKH_ENABLED ] "
1079 #error " [ || RKH_DISABLED] "
1082 #ifndef RKH_CFG_TRC_SM_EXSTATE_EN
1083 #error "RKH_CFG_TRC_SM_EXSTATE_EN not #define'd in 'rkhcfg.h'"
1084 #error " [MUST be RKH_ENABLED ] "
1085 #error " [ || RKH_DISABLED] "
1087 #elif ((RKH_CFG_TRC_SM_EXSTATE_EN != RKH_ENABLED) && \
1088 (RKH_CFG_TRC_SM_EXSTATE_EN != RKH_DISABLED))
1089 #error "RKH_CFG_TRC_SM_EXSTATE_EN illegally #define'd in 'rkhcfg.h'"
1090 #error " [MUST be RKH_ENABLED ] "
1091 #error " [ || RKH_DISABLED] "
1094 #ifndef RKH_CFG_TRC_SM_NENEX_EN
1095 #error "RKH_CFG_TRC_SM_NENEX_EN not #define'd in 'rkhcfg.h'"
1096 #error " [MUST be RKH_ENABLED ] "
1097 #error " [ || RKH_DISABLED] "
1099 #elif ((RKH_CFG_TRC_SM_NENEX_EN != RKH_ENABLED) && \
1100 (RKH_CFG_TRC_SM_NENEX_EN != RKH_DISABLED))
1101 #error "RKH_CFG_TRC_SM_NENEX_EN illegally #define'd in 'rkhcfg.h'"
1102 #error " [MUST be RKH_ENABLED ] "
1103 #error " [ || RKH_DISABLED] "
1106 #ifndef RKH_CFG_TRC_SM_NTRNACT_EN
1107 #error "RKH_CFG_TRC_SM_NTRNACT_EN not #define'd in 'rkhcfg.h'"
1108 #error " [MUST be RKH_ENABLED ] "
1109 #error " [ || RKH_DISABLED] "
1111 #elif ((RKH_CFG_TRC_SM_NTRNACT_EN != RKH_ENABLED) && \
1112 (RKH_CFG_TRC_SM_NTRNACT_EN != RKH_DISABLED))
1113 #error "RKH_CFG_TRC_SM_NTRNACT_EN illegally #define'd in 'rkhcfg.h'"
1114 #error " [MUST be RKH_ENABLED ] "
1115 #error " [ || RKH_DISABLED] "
1118 #ifndef RKH_CFG_TRC_SM_TS_STATE_EN
1119 #error "RKH_CFG_TRC_SM_TS_STATE_EN not #define'd in 'rkhcfg.h'"
1120 #error " [MUST be RKH_ENABLED ] "
1121 #error " [ || RKH_DISABLED] "
1123 #elif ((RKH_CFG_TRC_SM_TS_STATE_EN != RKH_ENABLED) && \
1124 (RKH_CFG_TRC_SM_TS_STATE_EN != RKH_DISABLED))
1125 #error "RKH_CFG_TRC_SM_TS_STATE_EN illegally #define'd in 'rkhcfg.h'"
1126 #error " [MUST be RKH_ENABLED ] "
1127 #error " [ || RKH_DISABLED] "
1130 #ifndef RKH_CFG_TRC_SM_PROCESS_EN
1131 #error "RKH_CFG_TRC_SM_PROCESS_EN not #define'd in 'rkhcfg.h'"
1132 #error " [MUST be RKH_ENABLED ] "
1133 #error " [ || RKH_DISABLED] "
1135 #elif ((RKH_CFG_TRC_SM_PROCESS_EN != RKH_ENABLED) && \
1136 (RKH_CFG_TRC_SM_PROCESS_EN != RKH_DISABLED))
1137 #error "RKH_CFG_TRC_SM_PROCESS_EN illegally #define'd in 'rkhcfg.h'"
1138 #error " [MUST be RKH_ENABLED ] "
1139 #error " [ || RKH_DISABLED] "
1142 #ifndef RKH_CFG_TRC_SM_EXE_ACT_EN
1143 #error "RKH_CFG_TRC_SM_EXE_ACT_EN not #define'd in 'rkhcfg.h'"
1144 #error " [MUST be RKH_ENABLED ] "
1145 #error " [ || RKH_DISABLED] "
1147 #elif ((RKH_CFG_TRC_SM_EXE_ACT_EN != RKH_ENABLED) && \
1148 (RKH_CFG_TRC_SM_EXE_ACT_EN != RKH_DISABLED))
1149 #error "RKH_CFG_TRC_SM_EXE_ACT_EN illegally #define'd in 'rkhcfg.h'"
1150 #error " [MUST be RKH_ENABLED ] "
1151 #error " [ || RKH_DISABLED] "
1154 #ifndef RKH_CFG_TRC_NSEQ_EN
1155 #error "RKH_CFG_TRC_NSEQ_EN not #define'd in 'rkhcfg.h'"
1156 #error " [MUST be RKH_ENABLED ] "
1157 #error " [ || RKH_DISABLED] "
1159 #elif ((RKH_CFG_TRC_NSEQ_EN != RKH_ENABLED) && \
1160 (RKH_CFG_TRC_NSEQ_EN != RKH_DISABLED))
1161 #error "RKH_CFG_TRC_NSEQ_EN illegally #define'd in 'rkhcfg.h'"
1162 #error " [MUST be RKH_ENABLED ] "
1163 #error " [ || RKH_DISABLED] "
1166 #ifndef RKH_CFG_TRC_CHK_EN
1167 #error "RKH_CFG_TRC_CHK_EN not #define'd in 'rkhcfg.h'"
1168 #error " [MUST be RKH_ENABLED ] "
1169 #error " [ || RKH_DISABLED] "
1171 #elif ((RKH_CFG_TRC_CHK_EN != RKH_ENABLED) && \
1172 (RKH_CFG_TRC_CHK_EN != RKH_DISABLED))
1173 #error "RKH_CFG_TRC_CHK_EN illegally #define'd in 'rkhcfg.h'"
1174 #error " MUST be RKH_ENABLED ] "
1175 #error " || RKH_DISABLED] "
1178 #ifndef RKH_CFG_TRC_TSTAMP_EN
1179 #error "RKH_CFG_TRC_TSTAMP_EN not #define'd in 'rkhcfg.h'"
1180 #error " MUST be RKH_ENABLED ] "
1181 #error " [ || RKH_DISABLED] "
1183 #elif ((RKH_CFG_TRC_TSTAMP_EN != RKH_ENABLED) && \
1184 (RKH_CFG_TRC_TSTAMP_EN != RKH_DISABLED))
1185 #error "RKH_CFG_TRC_TSTAMP_EN illegally #define'd in 'rkhcfg.h'"
1186 #error " [MUST be RKH_ENABLED ] "
1187 #error " [ || RKH_DISABLED] "
1190 #ifndef RKH_CFGPORT_TRC_SIZEOF_TSTAMP
1191 #error "RKH_CFGPORT_TRC_SIZEOF_TSTAMP not #define'd in 'rkhcfg.h'"
1192 #error " [MUST be 8 ( 8-bit size)] "
1193 #error " [ || 16 (16-bit size)] "
1194 #error " [ || 32 (32-bit size)] "
1196 #elif ((RKH_CFGPORT_TRC_SIZEOF_TSTAMP != 8) && \
1197 (RKH_CFGPORT_TRC_SIZEOF_TSTAMP != 16) && \
1198 (RKH_CFGPORT_TRC_SIZEOF_TSTAMP != 32))
1199 #error "RKH_CFGPORT_TRC_SIZEOF_TSTAMP illegally #define'd in 'rkhcfg.h'"
1200 #error " [MUST be 8 ( 8-bit size)] "
1201 #error " [ || 16 (16-bit size)] "
1202 #error " [ || 32 (32-bit size)] "
1205 #ifndef RKH_CFGPORT_SMA_QSTO_EN
1206 #error "RKH_CFGPORT_SMA_QSTO_EN not #define'd in 'rkhcfg.h'"
1207 #error " [MUST be RKH_ENABLED ] "
1208 #error " [ || RKH_DISABLED] "
1210 #elif ((RKH_CFGPORT_SMA_QSTO_EN != RKH_ENABLED) && \
1211 (RKH_CFGPORT_SMA_QSTO_EN != RKH_DISABLED))
1212 #error "RKH_CFGPORT_SMA_QSTO_EN illegally #define'd in 'rkhcfg.h'"
1213 #error " [MUST be RKH_ENABLED ] "
1214 #error " [ || RKH_DISABLED] "
1217 #ifndef RKH_CFGPORT_SMA_STK_EN
1218 #error "RKH_CFGPORT_SMA_STK_EN not #define'd in 'rkhcfg.h'"
1219 #error " [MUST be RKH_ENABLED ] "
1220 #error " [ || RKH_DISABLED] "
1222 #elif ((RKH_CFGPORT_SMA_STK_EN != RKH_ENABLED) && \
1223 (RKH_CFGPORT_SMA_STK_EN != RKH_DISABLED))
1224 #error "RKH_CFGPORT_SMA_STK_EN illegally #define'd in 'rkhcfg.h'"
1225 #error " [MUST be RKH_ENABLED ] "
1226 #error " [ || RKH_DISABLED] "
1229 #ifndef RKH_CFG_TRC_SIZEOF_STREAM
1230 #error "RKH_CFG_TRC_SIZEOF_STREAM not #define'd in 'rkhcfg.h'"
1231 #error " [MUST be > 0] "
1232 #error " [ && <= 2048] "
1234 #elif ((RKH_CFG_TRC_SIZEOF_STREAM == 0) || \
1235 (RKH_CFG_TRC_SIZEOF_STREAM > 2048))
1236 #error "RKH_CFG_TRC_SIZEOF_STREAM illegally #define'd in 'rkhcfg.h'"
1237 #error " [MUST be > 0] "
1238 #error " [ && <= 2048] "
1244 #ifndef RKH_CFG_FWK_MAX_SMA
1245 #error "RKH_CFG_FWK_MAX_SMA not #define'd in 'rkhcfg.h'"
1246 #error " [MUST be >= 1] "
1247 #error " [ && <= 64] "
1249 #elif ((RKH_CFG_FWK_MAX_SMA == 0) || (RKH_CFG_FWK_MAX_SMA > 64))
1250 #error "RKH_CFG_FWK_MAX_SMA illegally #define'd in 'rkhcfg.h'"
1251 #error " [MUST be >= 1] "
1252 #error " [ && <= 64] "
1256 #ifndef RKH_CFG_FWK_DYN_EVT_EN
1257 #error "RKH_CFG_FWK_DYN_EVT_EN not #define'd in 'rkhcfg.h'"
1258 #error " [MUST be RKH_ENABLED ] "
1259 #error " [ || RKH_DISABLED] "
1261 #elif (RKH_CFG_FWK_DYN_EVT_EN == RKH_DISABLED)
1268 #undef RKH_CFGPORT_NATIVE_DYN_EVT_EN
1269 #define RKH_CFGPORT_NATIVE_DYN_EVT_EN RKH_DISABLED
1273 #ifndef RKH_CFG_FWK_MAX_EVT_POOL
1274 #error "RKH_CFG_FWK_MAX_EVT_POOL not #define'd in 'rkhcfg.h'"
1275 #error " [MUST be > 0] "
1276 #error " [ && < 256] "
1278 #elif (RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED)
1279 #if ((RKH_CFG_FWK_MAX_EVT_POOL == 0) || (RKH_CFG_FWK_MAX_EVT_POOL > 255))
1280 #error "RKH_CFG_FWK_MAX_EVT_POOL illegally #define'd in 'rkhcfg.h'"
1281 #error " [MUST be > 0] "
1282 #error " [ && < 256] "
1287 #ifndef RKH_CFG_FWK_SIZEOF_EVT
1288 #error "RKH_CFG_FWK_SIZEOF_EVT not #define'd in 'rkhcfg.h'"
1289 #error " [MUST be 8 ( 8-bit size)] "
1290 #error " [ || 16 (16-bit size)] "
1291 #error " [ || 32 (32-bit size)] "
1293 #elif ((RKH_CFG_FWK_SIZEOF_EVT != 8) && \
1294 (RKH_CFG_FWK_SIZEOF_EVT != 16) && \
1295 (RKH_CFG_FWK_SIZEOF_EVT != 32))
1296 #error "RKH_CFG_FWK_SIZEOF_EVT illegally #define'd in 'rkhcfg.h'"
1297 #error " [MUST be 8 ( 8-bit size)] "
1298 #error " [ || 16 (16-bit size)] "
1299 #error " [ || 32 (32-bit size)] "
1303 #ifndef RKH_CFG_FWK_MAX_SIGNALS
1304 #error "RKH_CFG_FWK_MAX_SIGNALS not #define'd in 'rkhcfg.h'"
1305 #error " [MUST be > 0] "
1306 #error " [MUST be < 2^RKH_CFG_FWK_SIZEOF_EVT "
1308 #elif ((RKH_CFG_FWK_MAX_SIGNALS == 0u) || \
1309 (RKH_CFG_FWK_MAX_SIGNALS > (1u << RKH_CFG_FWK_SIZEOF_EVT)))
1310 #error "RKH_CFG_FWK_MAX_SIGNALS illegally #define'd in 'rkhcfg.h'"
1311 #error " [MUST be > 0] "
1312 #error " [MUST be < 2^RKH_CFG_FWK_SIZEOF_EVT "
1316 #ifndef RKH_CFG_FWK_SIZEOF_EVT_SIZE
1317 #error "RKH_CFG_FWK_SIZEOF_EVT_SIZE not #define'd in 'rkhcfg.h'"
1318 #error " [MUST be 8 ( 8-bit size)] "
1319 #error " [ || 16 (16-bit size)] "
1320 #error " [ || 32 (32-bit size)] "
1322 #elif ((RKH_CFG_FWK_SIZEOF_EVT_SIZE != 8) && \
1323 (RKH_CFG_FWK_SIZEOF_EVT_SIZE != 16) && \
1324 (RKH_CFG_FWK_SIZEOF_EVT_SIZE != 32))
1325 #error "RKH_CFG_FWK_SIZEOF_EVT_SIZE illegally #define'd in 'rkhcfg.h'"
1326 #error " [MUST be 8 ( 8-bit size)] "
1327 #error " [ || 16 (16-bit size)] "
1328 #error " [ || 32 (32-bit size)] "
1332 #ifndef RKH_CFG_FWK_DEFER_EVT_EN
1333 #error "RKH_CFG_FWK_DEFER_EVT_EN not #define'd in 'rkhcfg.h'"
1334 #error " [MUST be RKH_ENABLED ] "
1335 #error " [ || RKH_DISABLED] "
1337 #elif ((RKH_CFG_FWK_DEFER_EVT_EN == RKH_ENABLED) && \
1338 (RKH_CFG_QUE_EN == RKH_DISABLED))
1339 #error "RKH_CFG_QUE_EN illegally #define'd in 'rkhcfg.h'"
1340 #error " [MUST be RKH_ENABLED ] "
1344 #ifndef RKH_CFG_FWK_ASSERT_EN
1345 #error "RKH_CFG_FWK_ASSERT_EN not #define'd in 'rkhport.h'"
1346 #error " [MUST be RKH_ENABLED ] "
1347 #error " [ || RKH_DISABLED] "
1349 #elif ((RKH_CFG_FWK_ASSERT_EN != RKH_ENABLED) && \
1350 (RKH_CFG_FWK_ASSERT_EN != RKH_DISABLED))
1351 #error "RKH_CFG_FWK_ASSERT_EN illegally #define'd in 'rkhport.h'"
1352 #error " [MUST be RKH_ENABLED ] "
1353 #error " [ || RKH_DISABLED] "
1357 #ifndef RKH_CFG_HOOK_DISPATCH_EN
1358 #error "RKH_CFG_HOOK_DISPATCH_EN not #define'd in 'rkhcfg.h'"
1359 #error " [MUST be RKH_ENABLED ] "
1360 #error " [ || RKH_DISABLED] "
1362 #elif ((RKH_CFG_HOOK_DISPATCH_EN != RKH_ENABLED) && \
1363 (RKH_CFG_HOOK_DISPATCH_EN != RKH_DISABLED))
1364 #error "RKH_CFG_HOOK_DISPATCH_EN illegally #define'd in 'rkhcfg.h'"
1365 #error " [MUST be RKH_ENABLED ] "
1366 #error " [ || RKH_DISABLED] "
1370 #ifndef RKH_CFG_HOOK_SIGNAL_EN
1371 #error "RKH_CFG_HOOK_SIGNAL_EN not #define'd in 'rkhcfg.h'"
1372 #error " [MUST be RKH_ENABLED ] "
1373 #error " [ || RKH_DISABLED] "
1375 #elif ((RKH_CFG_HOOK_SIGNAL_EN != RKH_ENABLED) && \
1376 (RKH_CFG_HOOK_SIGNAL_EN != RKH_DISABLED))
1377 #error "RKH_CFG_HOOK_SIGNAL_EN illegally #define'd in 'rkhcfg.h'"
1378 #error " [MUST be RKH_ENABLED ] "
1379 #error " [ || RKH_DISABLED] "
1383 #ifndef RKH_CFG_HOOK_TIMEOUT_EN
1384 #error "RKH_CFG_HOOK_TIMEOUT_EN not #define'd in 'rkhcfg.h'"
1385 #error " [MUST be RKH_ENABLED ] "
1386 #error " [ || RKH_DISABLED] "
1388 #elif ((RKH_CFG_HOOK_TIMEOUT_EN != RKH_ENABLED) && \
1389 (RKH_CFG_HOOK_TIMEOUT_EN != RKH_DISABLED))
1390 #error "RKH_CFG_HOOK_TIMEOUT_EN illegally #define'd in 'rkhcfg.h'"
1391 #error " [MUST be RKH_ENABLED ] "
1392 #error " [ || RKH_DISABLED] "
1396 #ifndef RKH_CFG_HOOK_START_EN
1397 #error "RKH_CFG_HOOK_START_EN not #define'd in 'rkhcfg.h'"
1398 #error " [MUST be RKH_ENABLED ] "
1399 #error " [ || RKH_DISABLED] "
1401 #elif ((RKH_CFG_HOOK_START_EN != RKH_ENABLED) && \
1402 (RKH_CFG_HOOK_START_EN != RKH_DISABLED))
1403 #error "RKH_CFG_HOOK_START_EN illegally #define'd in 'rkhcfg.h'"
1404 #error " [MUST be RKH_ENABLED ] "
1405 #error " [ || RKH_DISABLED] "
1409 #ifndef RKH_CFG_HOOK_EXIT_EN
1410 #error "RKH_CFG_HOOK_EXIT_EN not #define'd in 'rkhcfg.h'"
1411 #error " [MUST be RKH_ENABLED ] "
1412 #error " [ || RKH_DISABLED] "
1414 #elif ((RKH_CFG_HOOK_EXIT_EN != RKH_ENABLED) && \
1415 (RKH_CFG_HOOK_EXIT_EN != RKH_DISABLED))
1416 #error "RKH_CFG_HOOK_EXIT_EN illegally #define'd in 'rkhcfg.h'"
1417 #error " [MUST be RKH_ENABLED ] "
1418 #error " [ || RKH_DISABLED] "
1422 #ifndef RKH_CFG_HOOK_TIMETICK_EN
1423 #error "RKH_CFG_HOOK_TIMETICK_EN not #define'd in 'rkhcfg.h'"
1424 #error " [MUST be RKH_ENABLED ] "
1425 #error " [ || RKH_DISABLED] "
1427 #elif ((RKH_CFG_HOOK_TIMETICK_EN != RKH_ENABLED) && \
1428 (RKH_CFG_HOOK_TIMETICK_EN != RKH_DISABLED))
1429 #error "RKH_CFG_HOOK_TIMETICK_EN illegally #define'd in 'rkhcfg.h'"
1430 #error " [MUST be RKH_ENABLED ] "
1431 #error " [ || RKH_DISABLED] "
1435 #ifndef RKH_CFG_HOOK_PUT_TRCEVT_EN
1436 #error "RKH_CFG_HOOK_PUT_TRCEVT_EN not #define'd in 'rkhcfg.h'"
1437 #error " [MUST be RKH_ENABLED ] "
1438 #error " [ || RKH_DISABLED] "
1440 #elif ((RKH_CFG_HOOK_PUT_TRCEVT_EN != RKH_ENABLED) && \
1441 (RKH_CFG_HOOK_PUT_TRCEVT_EN != RKH_DISABLED))
1442 #error "RKH_CFG_HOOK_PUT_TRCEVT_EN illegally #define'd in 'rkhcfg.h'"
1443 #error " [MUST be RKH_ENABLED ] "
1444 #error " [ || RKH_DISABLED] "
1448 #ifndef RKH_CFG_SMA_INIT_EVT_EN
1449 #error "RKH_CFG_SMA_INIT_EVT_EN not #define'd in 'rkhcfg.h'"
1450 #error " [MUST be RKH_ENABLED ] "
1451 #error " [ || RKH_DISABLED] "
1453 #elif ((RKH_CFG_SMA_INIT_EVT_EN != RKH_ENABLED) && \
1454 (RKH_CFG_SMA_INIT_EVT_EN != RKH_DISABLED))
1455 #error "RKH_CFG_SMA_INIT_EVT_EN illegally #define'd in 'rkhcfg.h'"
1456 #error " [MUST be RKH_ENABLED ] "
1457 #error " [ || RKH_DISABLED] "
1461 #ifdef RKH_CFG_FWK_AWARE_ISR_PRIO
1462 #if ((RKH_CFG_FWK_AWARE_ISR_PRIO < 0) || \
1463 (RKH_CFG_FWK_AWARE_ISR_PRIO > 255))
1464 #error "RKH_CFG_FWK_AWARE_ISR_PRIO illegally #define'd in 'rkhcfg.h'"
1465 #error " [MUST be >= 0] "
1466 #error " [ && <= 255] "
1471 #ifndef RKH_CFGPORT_SMA_THREAD_EN
1472 #error "RKH_CFGPORT_SMA_THREAD_EN not #define'd in 'rkhport.h'"
1473 #error " [MUST be RKH_ENABLED ] "
1474 #error " [ || RKH_DISABLED] "
1476 #elif ((RKH_CFGPORT_SMA_THREAD_EN != RKH_ENABLED) && \
1477 (RKH_CFGPORT_SMA_THREAD_EN != RKH_DISABLED))
1478 #error "RKH_CFGPORT_SMA_THREAD_EN illegally #define'd in 'rkhport.h'"
1479 #error " [MUST be RKH_ENABLED ] "
1480 #error " [ || RKH_DISABLED] "
1484 #ifndef RKH_CFGPORT_SMA_THREAD_DATA_EN
1485 #error "RKH_CFGPORT_SMA_THREAD_DATA_EN not #define'd in 'rkhport.h'"
1486 #error " [MUST be RKH_ENABLED ] "
1487 #error " [ || RKH_DISABLED] "
1489 #elif ((RKH_CFGPORT_SMA_THREAD_DATA_EN != RKH_ENABLED) && \
1490 (RKH_CFGPORT_SMA_THREAD_DATA_EN != RKH_DISABLED))
1491 #error "RKH_CFGPORT_SMA_THREAD_DATA_EN illegally #define'd in 'rkhport.h'"
1492 #error " [MUST be RKH_ENABLED ] "
1493 #error " [ || RKH_DISABLED] "
1497 #ifndef RKH_CFGPORT_NATIVE_SCHEDULER_EN
1498 #error "RKH_CFGPORT_NATIVE_SCHEDULER_EN not #define'd in 'rkhport.h'"
1499 #error " [MUST be RKH_ENABLED ] "
1500 #error " [ || RKH_DISABLED] "
1502 #elif ((RKH_CFGPORT_NATIVE_SCHEDULER_EN != RKH_ENABLED) && \
1503 (RKH_CFGPORT_NATIVE_SCHEDULER_EN != RKH_DISABLED))
1504 #error "RKH_CFGPORT_NATIVE_SCHEDULER_EN illegally #define'd in 'rkhport.h'"
1505 #error " [MUST be RKH_ENABLED ] "
1506 #error " [ || RKH_DISABLED] "
1510 #ifndef RKH_CFGPORT_NATIVE_EQUEUE_EN
1511 #error "RKH_CFGPORT_NATIVE_EQUEUE_EN not #define'd in 'rkhport.h'"
1512 #error " [MUST be RKH_ENABLED ] "
1513 #error " [ || RKH_DISABLED] "
1515 #elif ((RKH_CFGPORT_NATIVE_EQUEUE_EN != RKH_ENABLED) && \
1516 (RKH_CFGPORT_NATIVE_EQUEUE_EN != RKH_DISABLED))
1517 #error "RKH_CFGPORT_NATIVE_EQUEUE_EN illegally #define'd in 'rkhport.h'"
1518 #error " [MUST be RKH_ENABLED ] "
1519 #error " [ || RKH_DISABLED] "
1521 #elif ((RKH_CFGPORT_NATIVE_EQUEUE_EN == RKH_ENABLED) && \
1522 (RKH_CFG_QUE_EN != RKH_ENABLED))
1523 #error "RKH_CFG_QUE_EN illegally #define'd in 'rkhcfg.h'"
1524 #error " [MUST be RKH_ENABLED ] "
1525 #error " [ || RKH_DISABLED] "
1529 #ifndef RKH_CFGPORT_NATIVE_DYN_EVT_EN
1530 #error "RKH_CFGPORT_NATIVE_DYN_EVT_EN not #define'd in 'rkhport.h'"
1531 #error " [MUST be RKH_ENABLED ] "
1532 #error " [ || RKH_DISABLED] "
1534 #elif ((RKH_CFGPORT_NATIVE_DYN_EVT_EN != RKH_ENABLED) && \
1535 (RKH_CFGPORT_NATIVE_DYN_EVT_EN != RKH_DISABLED))
1536 #error "RKH_CFGPORT_NATIVE_DYN_EVT_EN illegally #define'd in 'rkhport.h'"
1537 #error " [MUST be RKH_ENABLED ] "
1538 #error " [ || RKH_DISABLED] "
1540 #elif (RKH_CFGPORT_NATIVE_DYN_EVT_EN == RKH_ENABLED)
1541 #if ((RKH_CFG_FWK_DYN_EVT_EN == RKH_ENABLED) && \
1542 (RKH_CFG_MP_EN == RKH_DISABLED))
1543 #error "RKH_CFG_FWK_DYN_EVT_EN illegally #define'd in 'rkhcfg.h'"
1544 #error " [MUST be RKH_ENABLED ] "
1545 #error "RKH_CFG_MP_EN illegally #define'd in 'rkhcfg.h'"
1546 #error " [MUST be RKH_ENABLED ] "
1551 #ifndef RKH_CFGPORT_REENTRANT_EN
1552 #error "RKH_CFGPORT_REENTRANT_EN not #define'd in 'rkhport.h'"
1553 #error " [MUST be RKH_ENABLED ] "
1554 #error " [ || RKH_DISABLED] "
1556 #elif ((RKH_CFGPORT_REENTRANT_EN != RKH_ENABLED) && \
1557 (RKH_CFGPORT_REENTRANT_EN != RKH_DISABLED))
1558 #error "RKH_CFGPORT_REENTRANT_EN illegally #define'd in 'rkhport.h'"
1559 #error " [MUST be RKH_ENABLED ] "
1560 #error " [ || RKH_DISABLED] "
1564 #ifndef RKH_CFGPORT_TRC_SIZEOF_PTR
1565 #error "RKH_CFGPORT_TRC_SIZEOF_PTR not #define'd in 'rkhport.h'"
1566 #error " [MUST be 8 ( 8-bit pointer)] "
1567 #error " [ || 16 (16-bit pointer)] "
1568 #error " [ || 32 (32-bit pointer)] "
1570 #elif ((RKH_CFGPORT_TRC_SIZEOF_PTR != 8) && \
1571 (RKH_CFGPORT_TRC_SIZEOF_PTR != 16) && \
1572 (RKH_CFGPORT_TRC_SIZEOF_PTR != 32))
1573 #error "RKH_CFGPORT_TRC_SIZEOF_PTR illegally #define'd in 'rkhport.h'"
1574 #error " [MUST be 8 ( 8-bit pointer)] "
1575 #error " [ || 16 (16-bit pointer)] "
1576 #error " [ || 32 (32-bit pointer)] "
1580 #ifndef RKH_CFGPORT_TRC_SIZEOF_FUN_PTR
1581 #error "RKH_CFGPORT_TRC_SIZEOF_FUN_PTR not #define'd in 'rkhport.h'"
1582 #error " [MUST be 8 ( 8-bit pointer)] "
1583 #error " [ || 16 (16-bit pointer)] "
1584 #error " [ || 32 (32-bit pointer)] "
1586 #elif ((RKH_CFGPORT_TRC_SIZEOF_FUN_PTR != 8) && \
1587 (RKH_CFGPORT_TRC_SIZEOF_FUN_PTR != 16) && \
1588 (RKH_CFGPORT_TRC_SIZEOF_FUN_PTR != 32))
1589 #error "RKH_CFGPORT_TRC_SIZEOF_FUN_PTR illegally #define'd in 'rkhport.h'"
1590 #error " [MUST be 8 ( 8-bit pointer)] "
1591 #error " [ || 16 (16-bit pointer)] "
1592 #error " [ || 32 (32-bit pointer)] "
1606 #define RKH_TICK_RATE_MS \
1607 ((RKH_TNT_T)(1000 / RKH_CFG_FWK_TICK_RATE_HZ))
1618 #define RKH_TIME_MS(ms_) ((ms_) / RKH_TICK_RATE_MS)
1619 #define RKH_TIME_SEC(s_) ((s_) * 1000u / RKH_TICK_RATE_MS)
1620 #define RKH_TIME_MIN(m_) ((m_) * 60 * 1000u / RKH_TICK_RATE_MS)
1628 #define RKH_REGULAR 0x80
1629 #define RKH_PSEUDO 0
1630 #define RKH_TYPE(t,i) (t | i)
1632 #define RKH_UNKNOWN_VERTEX RKH_TYPE(0, 0)
1633 #define RKH_BASIC RKH_TYPE(RKH_REGULAR, 0)
1634 #define RKH_COMPOSITE RKH_TYPE(RKH_REGULAR, 0x01)
1635 #define RKH_SUBMACHINE RKH_TYPE(RKH_REGULAR, 0x02)
1636 #define RKH_REF_SUBMACHINE RKH_TYPE(RKH_REGULAR, 0x04)
1637 #define RKH_FINAL RKH_TYPE(RKH_REGULAR, 0x08)
1639 #define RKH_CONDITIONAL RKH_TYPE(RKH_PSEUDO, 0x02)
1640 #define RKH_CHOICE RKH_TYPE(RKH_PSEUDO, 0x04)
1641 #define RKH_SHISTORY RKH_TYPE(RKH_PSEUDO, 0x08)
1642 #define RKH_DHISTORY RKH_TYPE(RKH_PSEUDO, 0x10)
1643 #define RKH_ENPOINT RKH_TYPE(RKH_PSEUDO, 0x20)
1644 #define RKH_EXPOINT RKH_TYPE(RKH_PSEUDO, 0x40)
1646 #define RKH_NO_HISTORY RKH_UNKNOWN_VERTEX
1648 #if (RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_DISABLED || \
1649 (RKH_CFG_SMA_DEEP_HIST_EN == RKH_DISABLED && \
1650 RKH_CFG_SMA_SHALLOW_HIST_EN == RKH_DISABLED && \
1651 RKH_CFG_SMA_SUBMACHINE_EN == RKH_DISABLED && \
1652 RKH_CFG_SMA_CONDITIONAL_EN == RKH_DISABLED && \
1653 RKH_CFG_SMA_CHOICE_EN == RKH_DISABLED))
1654 #define RKH_PSEUDOSTATE RKH_DISABLED
1656 #define RKH_PSEUDOSTATE RKH_ENABLED
1659 #if (RKH_CFG_SMA_HCAL_EN == RKH_ENABLED && \
1660 RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1661 (RKH_CFG_SMA_SHALLOW_HIST_EN == RKH_ENABLED || \
1662 RKH_CFG_SMA_DEEP_HIST_EN == RKH_ENABLED))
1663 #define RKH_HISTORY_ENABLED
1666 #if (RKH_CFG_SMA_HCAL_EN == RKH_ENABLED && \
1667 RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1668 RKH_CFG_SMA_DEEP_HIST_EN == RKH_ENABLED)
1669 #define RKH_DEEP_ENABLED
1672 #if (RKH_CFG_SMA_HCAL_EN == RKH_ENABLED && \
1673 RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1674 RKH_CFG_SMA_SHALLOW_HIST_EN == RKH_ENABLED)
1675 #define RKH_SHALLOW_ENABLED
1678 #if (RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1679 RKH_CFG_SMA_SUBMACHINE_EN == RKH_ENABLED)
1680 #define RKH_SUBMACHINE_ENABLED
1683 #if (RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1684 RKH_CFG_SMA_CHOICE_EN == RKH_ENABLED)
1685 #define RKH_CHOICE_ENABLED
1688 #if (RKH_CFG_SMA_PSEUDOSTATE_EN == RKH_ENABLED && \
1689 (RKH_CFG_SMA_CONDITIONAL_EN == RKH_ENABLED || \
1690 RKH_CFG_SMA_CHOICE_EN == RKH_ENABLED))
1691 #define RKH_CHOICE_OR_CONDITIONAL_ENABLED
1694 #if (RKH_CFG_TRC_EN == RKH_ENABLED && \
1695 (RKH_CFG_TRC_ALL_EN == RKH_ENABLED || \
1696 RKH_CFG_TRC_SMA_EN == RKH_ENABLED || \
1697 RKH_CFG_TRC_SM_EN == RKH_ENABLED || \
1698 RKH_CFG_TRC_FWK_EN == RKH_ENABLED))
1699 #define R_TRC_AO_NAME_EN RKH_ENABLED
1701 #define R_TRC_AO_NAME_EN RKH_DISABLED
1704 #if (RKH_CFG_TRC_EN == RKH_ENABLED && \
1705 (RKH_CFG_TRC_ALL_EN == RKH_ENABLED || \
1706 RKH_CFG_TRC_MP_EN == RKH_ENABLED))
1707 #define RKH_MEMPOOL_EN RKH_ENABLED
1709 #define RKH_MEMPOOL_EN RKH_DISABLED
1712 #define MKTRN(evt_, guard_, effect_, target_) \
1714 evt_, (RKH_GUARD_T)guard_, \
1715 (RKH_TRN_ACT_T)effect_, (RKHROM RKH_ST_T *)target_ \
1718 #if RKH_CFG_SMA_SM_CONST_EN == RKH_ENABLED
1719 #define MKSM(constSM, initialState) \
1720 (RKHROM RKH_ROM_T *)(constSM), \
1721 (RKHROM RKH_ST_T *)(initialState)
1723 #if RKH_CFG_SMA_VFUNCT_EN == RKH_ENABLED
1724 #define MKSMA(constSM, initialState) \
1726 MKSM(constSM, initialState), \
1730 #define MKSMA(constSM, initialState) \
1732 MKSM(constSM, initialState) \
1736 #if (RKH_CFG_SMA_INIT_EVT_EN == RKH_ENABLED)
1737 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1738 #define MKSM(name, prio, ppty, initialState, initialAction, \
1740 (prio), (ppty), #name, (RKHROM RKH_ST_T*)initialState, \
1741 ((RKH_TRN_ACT_T)initialAction), (initialEvt), \
1742 (RKHROM RKH_ST_T*)initialState
1744 #define MKSM(name, prio, ppty, initialState, initialAction, \
1746 (prio), (ppty), (RKHROM RKH_ST_T*)initialState, \
1747 ((RKH_TRN_ACT_T)initialAction), (initialEvt), \
1748 (RKHROM RKH_ST_T*)initialState
1751 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1752 #define MKSM(name, prio, ppty, initialState, initialAction, \
1754 (prio), (ppty), #name, (RKHROM RKH_ST_T*)initialState, \
1755 ((RKH_TRN_ACT_T)initialAction), \
1756 (RKHROM RKH_ST_T*)initialState
1758 #define MKSM(name, prio, ppty, initialState, initialAction, \
1760 (prio), (ppty), (RKHROM RKH_ST_T*)initialState, \
1761 ((RKH_TRN_ACT_T)initialAction), \
1762 (RKHROM RKH_ST_T*)initialState
1765 #if RKH_CFG_SMA_VFUNCT_EN == RKH_ENABLED
1766 #define MKSMA(name, prio, ppty, \
1767 initialState, initialAction, initialEvt) \
1769 MKSM(name, prio, ppty, initialState, \
1770 initialAction, initialEvt), \
1774 #define MKSMA(name, prio, ppty, \
1775 initialState, initialAction, initialEvt) \
1777 MKSM(name, prio, ppty, initialState, \
1778 initialAction, initialEvt) \
1782 #define MKRT_SM(sm_, name_, prio_, ppty_, initialState_, initialAction_, \
1784 ((RKH_SM_T *)(sm_))->prio = prio_; \
1785 ((RKH_SM_T *)(sm_))->ppty = ppty_; \
1786 MKSM_NAME(sm_, name_); \
1787 ((RKH_SM_T *)(sm_))->istate = (RKHROM RKH_ST_T*)initialState_; \
1788 ((RKH_SM_T *)(sm_))->iaction = (RKH_TRN_ACT_T)initialAction_; \
1789 MKSM_IEVENT(sm_, initialEvt_); \
1790 ((RKH_SM_T *)(sm_))->state = (RKHROM RKH_ST_T*)initialState_
1792 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1793 #if RKH_CFG_SMA_INIT_EVT_EN == RKH_ENABLED
1794 #define MKSM_NAME(sm_, name_) \
1795 ((RKH_SM_T *)sm_)->name = #name_
1796 #define MKSM_IEVENT(sm_, ievent_) \
1797 ((RKH_SM_T *)sm_)->ievent = ievent_
1799 #define MKSM_NAME(sm_, name_) \
1800 ((RKH_SM_T *)sm_)->name = #name_
1801 #define MKSM_IEVENT(sm_, ievent_)
1804 #if RKH_CFG_SMA_INIT_EVT_EN == RKH_ENABLED
1805 #define MKSM_NAME(sm_, name_) \
1806 #define MKSM_IEVENT(sm_, ievent_) \
1807 ((RKH_SM_T *)sm_)->ievent = ievent_
1809 #define MKSM_NAME(sm_, name_) \
1810 #define MKSM_IEVENT(sm_, ievent_)
1815 #if (RKH_CFG_SMA_INIT_EVT_EN == RKH_ENABLED)
1816 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1817 #define MKRRKH(name, prio, ppty, is, ia, ie) \
1819 (prio), (ppty), # name, (RKHROM RKH_ST_T *)is, \
1820 (RKH_TRN_ACT_T)(ia), (ie) \
1823 #define MKRRKH(name, prio, ppty, is, ia, ie) \
1825 (prio), (ppty), (RKHROM RKH_ST_T *)is, \
1826 (RKH_TRN_ACT_T)(ia), (ie) \
1830 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1831 #define MKRRKH(name, prio, ppty, is, ia, ie) \
1833 (prio), (ppty), # name, (RKHROM RKH_ST_T *)is, \
1834 (RKH_TRN_ACT_T)(ia) \
1837 #define MKRRKH(name, prio, ppty, is, ia, ie) \
1839 (prio), (ppty), (RKHROM RKH_ST_T *)is, \
1840 (RKH_TRN_ACT_T)(ia) \
1845 #if R_TRC_AO_NAME_EN == RKH_ENABLED
1846 #define MKBASE(t, n) {t, # n}
1848 #define MKBASE(t, n) {t}
1851 #if (RKH_CFG_SMA_HCAL_EN == RKH_ENABLED)
1852 #if (RKH_CFG_SMA_PPRO_EN == RKH_ENABLED)
1853 #if defined(RKH_HISTORY_ENABLED)
1854 #define MKBASIC(n,pp) n##_trtbl, (RKH_PPRO_T)pp
1855 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl, NULL, d, \
1856 (RKH_TRN_ACT_T)dftTrn_, h
1857 #define MKHIST_INCOMP(name, kOfH, dTG, dTA, dTT, ramMem) \
1858 RKHROM RKH_SHIST_T name##Hist = \
1860 MKBASE(kOfH, name##Hist), \
1861 (RKHROM RKH_ST_T *)&name, ramMem, \
1862 RKH_TRREG(0, dTG, dTA, dTT) \
1864 #define MKHISTORY(name, parent, kOfH, dTG, dTA, dTT, ramMem) \
1865 RKHROM RKH_SHIST_T name = \
1867 MKBASE(kOfH, name), \
1868 (RKHROM RKH_ST_T *)parent, ramMem, \
1869 RKH_TRREG(0, dTG, dTA, dTT) \
1871 #define MKFINAL(name_) \
1873 #define MKFINAL_INCOMP(name_) \
1874 RKH_CREATE_FINAL_STATE(name_##Final, &name_)
1876 #define MKBASIC(n,pp) n##_trtbl, (RKH_PPRO_T)pp
1877 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl, NULL, d, \
1878 (RKH_TRN_ACT_T)dftTrn_
1879 #define MKHIST_INCOMP(name, kOfH, dTG, dTA, dTT, ramMem)
1880 #define MKHISTORY(name, parent, kOfH, dTG, dTA, dTT, ramMem)
1881 #define MKFINAL(name_) \
1883 #define MKFINAL_INCOMP(name_) \
1884 RKH_CREATE_FINAL_STATE(name_##Final, &name_)
1887 #if defined(RKH_HISTORY_ENABLED)
1888 #define MKBASIC(n,pp) n##_trtbl
1889 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl, d, \
1890 (RKH_TRN_ACT_T)dftTrn_, h
1891 #define MKHIST_INCOMP(name, kOfH, dTG, dTA, dTT, ramMem) \
1892 RKHROM RKH_SHIST_T name##Hist = \
1894 MKBASE(kOfH, name##Hist), \
1895 (RKHROM RKH_ST_T *)&name, ramMem, \
1896 RKH_TRREG(0, dTG, dTA, dTT) \
1898 #define MKHISTORY(name, parent, kOfH, dTG, dTA, dTT, ramMem) \
1899 RKHROM RKH_SHIST_T name = \
1901 MKBASE(kOfH, name), \
1902 (RKHROM RKH_ST_T *)parent, ramMem, \
1903 RKH_TRREG(0, dTG, dTA, dTT) \
1905 #define MKFINAL(name_) \
1907 #define MKFINAL_INCOMP(name_) \
1908 RKH_CREATE_FINAL_STATE(name_##Final, &name_)
1910 #define MKBASIC(n,pp) n##_trtbl
1911 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl, d, \
1912 (RKH_TRN_ACT_T)dftTrn_
1913 #define MKHIST_INCOMP(name, kOfH, dTG, dTA, dTT, ramMem)
1914 #define MKHISTORY(name, parent, kOfH, dTG, dTA, dTT, ramMem)
1915 #define MKFINAL(name_) \
1917 #define MKFINAL_INCOMP(name_) \
1918 RKH_CREATE_FINAL_STATE(name_##Final, &name_)
1921 #define MKST(en,ex,p) (RKH_ENT_ACT_T)en, \
1922 (RKH_EXT_ACT_T)ex, \
1923 (RKHROM RKH_ST_T *)p
1924 #define MKSBM(n,sbm) n##_trtbl,n##_exptbl,sbm
1925 #define MKMCH(d,i,n) d, (RKH_TRN_ACT_T)i, \
1926 (RKHROM RKH_ST_T * *)&rdyp_##n
1927 #define MKENP(e,s) e,(RKHROM RKH_ST_T *)s
1929 #if (RKH_CFG_SMA_PPRO_EN == RKH_ENABLED)
1930 #define MKBASIC(n,pp) n##_trtbl, (RKH_PPRO_T)pp
1931 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl, NULL
1932 #define MKFINAL(name_)
1933 #define MKFINAL_INCOMP(name_)
1935 #define MKBASIC(n,pp) n##_trtbl
1936 #define MKCOMP(n, d, dftTrn_, h) n##_trtbl
1937 #define MKFINAL(name_)
1938 #define MKFINAL_INCOMP(name_)
1940 #define MKST(en,ex,p)
1941 #define MKSBM(n,sbm) n##_trtbl,n##_exptbl,sbm
1942 #define MKMCH(d,i,n) d, (RKH_TRN_ACT_T)i, \
1943 (RKHROM RKH_ST_T *)&rdyp_##n
1944 #define MKENP(e,s) e,(RKHROM RKH_ST_T *)s
1947 #define MK_SET_EVT(ev_obj, ev_sig) \
1948 ((RKH_EVT_T *)(ev_obj))->e = (RKH_SIG_T)ev_sig; \
1949 ((RKH_EVT_T *)(ev_obj))->nref = 0; \
1950 ((RKH_EVT_T *)(ev_obj))->pool = 0
1952 #define MK_EVT(ev_obj, ev_sig) \
1953 RKH_EVT_T ev_obj = {ev_sig, 0, 0}
1955 #define MK_ROM_EVT(ev_obj, ev_sig) \
1956 RKHROM RKH_EVT_T ev_obj = {ev_sig, 0, 0}
1958 #define MK_EVT_STRUCT(ev_sig) \
1961 #ifndef RKH_DIS_INTERRUPT
1963 "rkhport.h, Must be defined the platform-dependent macro RKH_DIS_INTERRUPT"
1966 #ifndef RKH_ENA_INTERRUPT
1968 "rkhport.h, Must be defined the platform-dependent macro RKH_ENA_INTERRUPT"
1971 #ifndef RKH_EN_DOXYGEN
1972 #define RKH_EN_DOXYGEN 0
1975 #if RKH_EN_DOXYGEN == RKH_ENABLED
1998 #define RKH_DIS_INTERRUPT()
1999 #define RKH_ENA_INTERRUPT()
2050 #define RKH_CPUSR_TYPE
2051 #define RKH_SR_ALLOC() \
2052 RKH_CPUSR_TYPE sr = (RKH_CPUSR_TYPE)0
2053 #define RKH_ENTER_CRITICAL(dummy)
2054 #define RKH_EXIT_CRITICAL(dummy)
2074 #define RKH_CFGPORT_SMA_THREAD_EN RKH_ENABLED
2089 #define RKH_CFGPORT_SMA_THREAD_DATA_EN RKH_ENABLED
2104 #define RKH_CFGPORT_NATIVE_SCHEDULER_EN RKH_ENABLED
2117 #define RKH_CFGPORT_NATIVE_EQUEUE_EN RKH_ENABLED
2132 #define RKH_CFGPORT_NATIVE_DYN_EVT_EN RKH_ENABLED
2144 #define RKH_CFGPORT_REENTRANT_EN RKH_ENABLED
2155 #define RKH_CFGPORT_TRC_SIZEOF_PTR 32u
2166 #define RKH_CFGPORT_TRC_SIZEOF_FUN_PTR 32u
2177 #define RKH_CFGPORT_TRC_SIZEOF_TSTAMP 32u
2189 #define RKH_CFGPORT_SMA_QSTO_EN RKH_ENABLED
2201 #define RKH_CFGPORT_SMA_STK_EN RKH_ENABLED
2250 #define RKH_THREAD_TYPE
2274 #define RKH_OSSIGNAL_TYPE
2293 #define RKH_THREAD_STK_TYPE
2297 #ifdef RKH_CPUSR_TYPE
2298 #if RKH_EN_DOXYGEN == RKH_DISABLED
2299 #define RKH_SR_ALLOC() RKH_CPUSR_TYPE sr = (RKH_CPUSR_TYPE)0
2300 #define RKH_ENTER_CRITICAL_() RKH_ENTER_CRITICAL(sr)
2301 #define RKH_EXIT_CRITICAL_() RKH_EXIT_CRITICAL(sr)
2304 #define RKH_SR_ALLOC()
2305 #define RKH_ENTER_CRITICAL_() RKH_ENTER_CRITICAL(dummy)
2306 #define RKH_EXIT_CRITICAL_() RKH_EXIT_CRITICAL(dummy)
2309 #if RKH_CFG_SMA_ENT_ARG_SMA_EN == RKH_ENABLED
2310 #if RKH_CFG_SMA_ENT_ARG_STATE_EN == RKH_ENABLED
2311 #define RKH_EXEC_ENTRY(state_, me_) \
2312 if ((state_)->enter) \
2314 (*(state_)->enter)(me_, state_); \
2315 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EN, \
2321 #define RKH_EXEC_ENTRY(state_, me_) \
2322 if ((state_)->enter) \
2324 (*(state_)->enter)(me_); \
2325 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EN, \
2332 #if RKH_CFG_SMA_ENT_ARG_STATE_EN == RKH_ENABLED
2333 #define RKH_EXEC_ENTRY(state_, me_) \
2334 if ((state_)->enter) \
2336 (*(state_)->enter)(state_); \
2337 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EN, \
2343 #define RKH_EXEC_ENTRY(state_, me_) \
2344 if ((state_)->enter) \
2346 (*(state_)->enter)(); \
2347 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EN, \
2355 #if RKH_CFG_SMA_EXT_ARG_SMA_EN == RKH_ENABLED
2356 #if RKH_CFG_SMA_ENT_ARG_STATE_EN == RKH_ENABLED
2357 #define RKH_EXEC_EXIT(state_, me_) \
2358 if ((state_)->exit) \
2360 (*(state_)->exit)(me_, state_); \
2361 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EX, \
2367 #define RKH_EXEC_EXIT(state_, me_) \
2368 if ((state_)->exit) \
2370 (*(state_)->exit)(me_); \
2371 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EX, \
2378 #if RKH_CFG_SMA_ENT_ARG_STATE_EN == RKH_ENABLED
2379 #define RKH_EXEC_EXIT(state_, me_) \
2380 if ((state_)->exit) \
2382 (*(state_)->exit)(state_); \
2383 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EX, \
2389 #define RKH_EXEC_EXIT(state_, me_) \
2390 if ((state_)->exit) \
2392 (*(state_)->exit)(); \
2393 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EX, \
2401 #if RKH_CFG_SMA_PPRO_ARG_SMA_EN == RKH_ENABLED
2402 #define RKH_EXEC_PREPRO(state_, me_, evt_) \
2403 (*(state_)->prepro)(me_, evt_); \
2404 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_PP, \
2406 (((RKH_SM_T *)me_))->state, \
2409 #define RKH_EXEC_PREPRO(state_, me_, evt_) \
2410 (*(state_)->prepro)(evt_); \
2411 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_PP, \
2413 (((RKH_SM_T *)me_))->state, \
2417 #if (RKH_CFG_SMA_ACT_ARG_EVT_EN == RKH_ENABLED && \
2418 RKH_CFG_SMA_ACT_ARG_SMA_EN == RKH_ENABLED)
2419 #define RKH_EXEC_EFF(action_, me_, evt_) \
2420 (*CTA(action_))((me_), (evt_)); \
2421 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EFF, \
2423 (((RKH_SM_T *)me_))->state, \
2425 #elif (RKH_CFG_SMA_ACT_ARG_EVT_EN == RKH_ENABLED && \
2426 RKH_CFG_SMA_ACT_ARG_SMA_EN == RKH_DISABLED)
2427 #define RKH_EXEC_EFF(action_, me_, evt_) \
2428 (*CTA(action_))((evt_)); \
2429 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EFF, \
2431 (((RKH_SM_T *)me_))->state, \
2433 #elif (RKH_CFG_SMA_ACT_ARG_EVT_EN == RKH_DISABLED && \
2434 RKH_CFG_SMA_ACT_ARG_SMA_EN == RKH_ENABLED)
2435 #define RKH_EXEC_EFF(action_, me_, evt_) \
2436 (*CTA(action_))((me_)); \
2437 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EFF, \
2439 (((RKH_SM_T *)me_))->state, \
2442 #define RKH_EXEC_EFF(action_, me_, evt_) \
2443 (*CTA(action_))(); \
2444 RKH_TR_SM_EXE_ACT(RKH_SUBTE_SM_EXE_ACT_EFF, \
2446 (((RKH_SM_T *)me_))->state, \
2450 #if (RKH_CFG_SMA_GRD_ARG_EVT_EN == RKH_ENABLED && \
2451 RKH_CFG_SMA_GRD_ARG_SMA_EN == RKH_ENABLED)
2452 #define RKH_EXEC_GUARD(trn_, me_, evt_) \
2453 (*(trn_)->guard)(me_, evt_)
2454 #elif (RKH_CFG_SMA_GRD_ARG_EVT_EN == RKH_ENABLED && \
2455 RKH_CFG_SMA_GRD_ARG_SMA_EN == RKH_DISABLED)
2456 #define RKH_EXEC_GUARD(trn_, me_, evt_) \
2457 (*(trn_)->guard)(evt_)
2458 #elif (RKH_CFG_SMA_GRD_ARG_EVT_EN == RKH_DISABLED && \
2459 RKH_CFG_SMA_GRD_ARG_SMA_EN == RKH_ENABLED)
2460 #define RKH_EXEC_GUARD(trn_, me_, evt_) \
2461 (*(trn_)->guard)(me_)
2463 #define RKH_EXEC_GUARD(trn_, me_, evt_) \
2469 #define NULL (void *)0
2498 extern RKHROM
char noname[];
Defines event data type and other related macros.
RKHROM char noname[]
String representing the name of undefined object name.
RKH platform abstraction layer.
Maintains the basic information of a state.
Describes the entry point connection.
Describes the exit point connection.
Constant parameters of state machine.
Describes a (referenced) submachine state machine.
Describes the choice pseudostate.
Describes a composite state.
Describes the conditional pseudostate.
Describes the entry point pseudostate.
Describes the exit point pseudostate.
Describes the history pseudostate.
Describes the state machine.
Describes the SMA (active object in UML).
Describes a submachine state.
Describes the common properties of regular states (basic, composite, and submachine).
Describes the state transition.
Virtual table for the RKH_SMA_T structure.