3939 * 2021-11-19 Meco Man change version number to v4.1.0
4040 * 2021-12-21 Meco Man re-implement RT_UNUSED
4141 * 2022-01-01 Gabriel improve hooking method
42+ * 2022-01-07 Gabriel move some __on_rt_xxxxx_hook to dedicated c soure files
4243 */
4344
4445#ifndef __RT_DEF_H__
@@ -450,12 +451,6 @@ struct rt_object_information
450451 #endif
451452#endif
452453
453- #ifndef __on_rt_interrupt_enter_hook
454- #define __on_rt_interrupt_enter_hook () __ON_HOOK_ARGS(rt_interrupt_enter_hook, ())
455- #endif
456- #ifndef __on_rt_interrupt_leave_hook
457- #define __on_rt_interrupt_leave_hook () __ON_HOOK_ARGS(rt_interrupt_leave_hook, ())
458- #endif
459454#ifndef __on_rt_interrupt_switch_hook
460455 #define __on_rt_interrupt_switch_hook () __ON_HOOK_ARGS(rt_interrupt_switch_hook, ())
461456#endif
@@ -465,48 +460,7 @@ struct rt_object_information
465460#ifndef __on_rt_free_hook
466461 #define __on_rt_free_hook (rmem ) __ON_HOOK_ARGS(rt_free_hook, (rmem))
467462#endif
468- #ifndef __on_rt_mp_alloc_hook
469- #define __on_rt_mp_alloc_hook (mp, block ) __ON_HOOK_ARGS(rt_mp_alloc_hook, (mp, block))
470- #endif
471- #ifndef __on_rt_mp_free_hook
472- #define __on_rt_mp_free_hook (mp, block ) __ON_HOOK_ARGS(rt_mp_free_hook, (mp, block))
473- #endif
474- #ifndef __on_rt_object_trytake_hook
475- #define __on_rt_object_trytake_hook (parent ) __ON_HOOK_ARGS(rt_object_trytake_hook, (parent))
476- #endif
477- #ifndef __on_rt_object_take_hook
478- #define __on_rt_object_take_hook (parent ) __ON_HOOK_ARGS(rt_object_take_hook, (parent))
479- #endif
480- #ifndef __on_rt_object_put_hook
481- #define __on_rt_object_put_hook (parent ) __ON_HOOK_ARGS(rt_object_put_hook, (parent))
482- #endif
483- #ifndef __on_rt_scheduler_hook
484- #define __on_rt_scheduler_hook (from, to ) __ON_HOOK_ARGS(rt_scheduler_hook, (from, to))
485- #endif
486- #ifndef __on_rt_scheduler_switch_hook
487- #define __on_rt_scheduler_switch_hook (tid ) __ON_HOOK_ARGS(rt_scheduler_switch_hook, (tid))
488- #endif
489- #ifndef __on_rt_object_attach_hook
490- #define __on_rt_object_attach_hook (obj ) __ON_HOOK_ARGS(rt_object_attach_hook, (obj))
491- #endif
492- #ifndef __on_rt_object_detach_hook
493- #define __on_rt_object_detach_hook (obj ) __ON_HOOK_ARGS(rt_object_detach_hook, (obj))
494- #endif
495- #ifndef __on_rt_thread_inited_hook
496- #define __on_rt_thread_inited_hook (thread ) __ON_HOOK_ARGS(rt_thread_inited_hook, (thread))
497- #endif
498- #ifndef __on_rt_thread_suspend_hook
499- #define __on_rt_thread_suspend_hook (thread ) __ON_HOOK_ARGS(rt_thread_suspend_hook, (thread))
500- #endif
501- #ifndef __on_rt_thread_resume_hook
502- #define __on_rt_thread_resume_hook (thread ) __ON_HOOK_ARGS(rt_thread_resume_hook, (thread))
503- #endif
504- #ifndef __on_rt_timer_enter_hook
505- #define __on_rt_timer_enter_hook (t ) __ON_HOOK_ARGS(rt_timer_enter_hook, (t))
506- #endif
507- #ifndef __on_rt_timer_exit_hook
508- #define __on_rt_timer_exit_hook (t ) __ON_HOOK_ARGS(rt_timer_exit_hook, (t))
509- #endif
463+
510464
511465/* *@}*/
512466
0 commit comments