/src/compiler/ucos-vs2008/UCOS_SIM/src/ucosii-port/win32/os_trace.h

http://ftk.googlecode.com/ · C Header · 47 lines · 27 code · 10 blank · 10 comment · 0 complexity · aa2149d498dec59b343dd3fdf02e0c64 MD5 · raw file

  1. #ifndef _OS_TRACE_H
  2. #define _OS_TRACE_H
  3. /*
  4. *********************************************************************************************************
  5. * Constants
  6. *********************************************************************************************************
  7. */
  8. enum {
  9. OBJ_SW,
  10. OBJ_COR,
  11. OBJ_SEM,
  12. OBJ_MAX
  13. };
  14. enum {
  15. PT_SW_CTX,
  16. PT_SW_INT,
  17. PT_SW_MAX
  18. };
  19. enum {
  20. PT_COR_ERDY,
  21. PT_COR_EWT,
  22. PT_COR_SH,
  23. PT_COR_MAX
  24. };
  25. enum {
  26. PT_SEM_PEND,
  27. PT_SEM_POST,
  28. PT_SEM_MAX
  29. };
  30. /*
  31. *********************************************************************************************************
  32. * Prototypes
  33. *********************************************************************************************************
  34. */
  35. void OSInitTrace( int Size );
  36. void OSTrace( int Object, int Point, void *tcb, void *event, int arg0, int arg1, int arg2 );
  37. #endif/*_OS_TRACE_H*/