virtual_com.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /******************************************************************************
  2. *
  3. * Freescale Semiconductor Inc.
  4. * (c) Copyright 2004-2009 Freescale Semiconductor, Inc.
  5. * ALL RIGHTS RESERVED.
  6. *
  7. **************************************************************************//*!
  8. *
  9. * @file virtual_com.h
  10. *
  11. * @author
  12. *
  13. * @version
  14. *
  15. * @date May-28-2009
  16. *
  17. * @brief The file contains Macro's and functions required for Virtual COM
  18. * Loopback Application
  19. *
  20. *****************************************************************************/
  21. #ifndef _VIRTUAL_COM_H
  22. #define _VIRTUAL_COM_H
  23. #include "types.h"
  24. /******************************************************************************
  25. * Constants - None
  26. *****************************************************************************/
  27. /******************************************************************************
  28. * Macro's
  29. *****************************************************************************/
  30. #define CONTROLLER_ID (0) /* ID to identify USB CONTROLLER */
  31. #define KBI_STAT_MASK (0x0F)
  32. /*
  33. DATA_BUFF_SIZE should be greater than or equal to the endpoint buffer size,
  34. otherwise there will be data loss. For MC9S08JS16, maximum DATA_BUFF_SIZE
  35. supported is 16 Bytes
  36. */
  37. #ifndef _MC9S08JS16_H
  38. #define DATA_BUFF_SIZE (64)
  39. #else
  40. #define DATA_BUFF_SIZE (16)
  41. #endif
  42. /*****************************************************************************
  43. * Global variables
  44. *****************************************************************************/
  45. /*****************************************************************************
  46. * Global Functions
  47. *****************************************************************************/
  48. extern void TestApp_Init(void);
  49. extern void TestApp_Task(void);
  50. #endif