os_app_hooks.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. ************************************************************************************************************************
  3. * uC/OS-III
  4. * The Real-Time Kernel
  5. *
  6. * (c) Copyright 2009-2011; Micrium, Inc.; Weston, FL
  7. * All rights reserved. Protected by international copyright laws.
  8. *
  9. * APPLICATION HOOKS
  10. *
  11. * File : OS_APP_HOOKS.H
  12. * By : JJL
  13. * Version : V3.02.00
  14. *
  15. * LICENSING TERMS:
  16. * ---------------
  17. * uC/OS-III is provided in source form for FREE short-term evaluation, for educational use or
  18. * for peaceful research. If you plan or intend to use uC/OS-III in a commercial application/
  19. * product then, you need to contact Micrium to properly license uC/OS-III for its use in your
  20. * application/product. We provide ALL the source code for your convenience and to help you
  21. * experience uC/OS-III. The fact that the source is provided does NOT mean that you can use
  22. * it commercially without paying a licensing fee.
  23. *
  24. * Knowledge of the source code may NOT be used to develop a similar product.
  25. *
  26. * Please help us continue to provide the embedded community with the finest software available.
  27. * Your honesty is greatly appreciated.
  28. *
  29. * You can contact us at www.micrium.com, or by phone at +1 (954) 217-2036.
  30. ************************************************************************************************************************
  31. */
  32. #ifndef OS_APP_HOOKS_H
  33. #define OS_APP_HOOKS_H
  34. #ifdef OS_APP_HOOKS_H_GLOBALS
  35. #define OS_APP_HOOKS_H_EXT
  36. #else
  37. #define OS_APP_HOOKS_H_EXT extern
  38. #endif
  39. /*
  40. ************************************************************************************************************************
  41. * INCLUDE HEADER FILES
  42. ************************************************************************************************************************
  43. */
  44. #include <os.h>
  45. /*
  46. ************************************************************************************************************************
  47. * FUNCTION PROTOTYPES
  48. ************************************************************************************************************************
  49. */
  50. void App_OS_SetAllHooks (void);
  51. void App_OS_ClrAllHooks (void);
  52. /* ---------------------- HOOKS --------------------- */
  53. void App_OS_TaskCreateHook(OS_TCB *p_tcb);
  54. void App_OS_TaskDelHook (OS_TCB *p_tcb);
  55. void App_OS_TaskReturnHook(OS_TCB *p_tcb);
  56. void App_OS_IdleTaskHook (void);
  57. void App_OS_InitHook (void);
  58. void App_OS_StatTaskHook (void);
  59. void App_OS_TaskSwHook (void);
  60. void App_OS_TimeTickHook (void);
  61. #endif