user_config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /******************************************************************************
  2. *
  3. * Freescale Semiconductor Inc.
  4. * (c) Copyright 2004-2010 Freescale Semiconductor, Inc.
  5. * ALL RIGHTS RESERVED.
  6. *
  7. **************************************************************************//*!
  8. *
  9. * @file user_config.h
  10. *
  11. * @author
  12. *
  13. * @version
  14. *
  15. * @date
  16. *
  17. * @brief The file contains User Modifiable Macros for Generator Application
  18. *
  19. *****************************************************************************/
  20. #include "derivative.h"
  21. #if (defined MCU_MK70F12) || (defined __MCF52277_H__)
  22. #define HIGH_SPEED_DEVICE (0)
  23. #else
  24. #define HIGH_SPEED_DEVICE (0)
  25. #endif
  26. #if (defined MCU_MK20D7) || (defined MCU_MK40D7)
  27. #define MCGOUTCLK_72_MHZ
  28. #endif
  29. #if defined( __MCF52277_H__) || defined( MCU_mcf51jf128)
  30. #define BUTTON_PRESS_SIMULATION (1)
  31. #define KEY_PRESS_SIM_TMR_INTERVAL (2000) /* 2s between simulated key press events */
  32. #endif
  33. /* Below two MACROS are required for Generator Application to execute */
  34. #define LONG_SEND_TRANSACTION /* support to send large data pkts */
  35. #define LONG_RECEIVE_TRANSACTION /* support to receive large data pkts */
  36. /* User Defined MACRO to set number of Timer Objects */
  37. #define MAX_TIMER_OBJECTS 3
  38. #if MAX_TIMER_OBJECTS
  39. /* When Enabled Timer Callback is invoked with an argument */
  40. #define TIMER_CALLBACK_ARG
  41. #undef TIMER_CALLBACK_ARG
  42. #endif
  43. #ifndef _MC9S08JS16_H
  44. #define USB_PACKET_SIZE uint_16 /* support 16/32 bit packet size */
  45. #else
  46. #define USB_PACKET_SIZE uint_8 /* support 8 bit packet size */
  47. #endif
  48. #ifndef _MCF51JM128_H
  49. /* Use double buffered endpoints 5 & 6. To be only used with S08 cores */
  50. #define DOUBLE_BUFFERING_USED
  51. #endif
  52. #define USE_TERMINATOR_VIDEO 0
  53. #define USE_SKI_VIDEO 1
  54. #define USE_PRESENTATION_VIDEO 0