SEGGER_RTT_Conf.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*********************************************************************
  2. * SEGGER MICROCONTROLLER GmbH & Co. KG *
  3. * Solutions for real time microcontroller applications *
  4. **********************************************************************
  5. * *
  6. * (c) 2014 - 2015 SEGGER Microcontroller GmbH & Co. KG *
  7. * *
  8. * www.segger.com Support: support@segger.com *
  9. * *
  10. **********************************************************************
  11. ----------------------------------------------------------------------
  12. File : SEGGER_RTT_Conf.h
  13. Date : 07 Sep 2015
  14. Purpose : Implementation of SEGGER real-time terminal which allows
  15. real-time terminal communication on targets which support
  16. debugger memory accesses while the CPU is running.
  17. ---------------------------END-OF-HEADER------------------------------
  18. */
  19. /*********************************************************************
  20. *
  21. * Defines, configurable
  22. *
  23. **********************************************************************
  24. */
  25. #define SEGGER_RTT_MAX_NUM_UP_BUFFERS (2) // Max. number of up-buffers (T->H) available on this target (Default: 2)
  26. #define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (2) // Max. number of down-buffers (H->T) available on this target (Default: 2)
  27. #define BUFFER_SIZE_UP (1024) // Size of the buffer for terminal output of target, up to host (Default: 1k)
  28. #define BUFFER_SIZE_DOWN (16) // Size of the buffer for terminal input to target from host (Usually keyboard input) (Default: 16)
  29. #define SEGGER_RTT_PRINTF_BUFFER_SIZE (64) // Size of buffer for RTT printf to bulk-send chars via RTT (Default: 64)
  30. //
  31. // Target is not allowed to perform other RTT operations while string still has not been stored completely.
  32. // Otherwise we would probably end up with a mixed string in the buffer.
  33. // If using RTT from within interrupts, multiple tasks or multi processors, define the SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK() function here.
  34. //
  35. #define SEGGER_RTT_LOCK(SavedState)
  36. #define SEGGER_RTT_UNLOCK(SavedState)
  37. //
  38. // Define SEGGER_RTT_IN_RAM as 1
  39. // when using RTT in RAM targets (init and data section both in RAM).
  40. // This prevents the host to falsly identify the RTT Callback Structure
  41. // in the init segment as the used Callback Structure.
  42. //
  43. // When defined as 1,
  44. // the first call to an RTT function will modify the ID of the RTT Callback Structure.
  45. // To speed up identifying on the host,
  46. // especially when RTT functions are not called at the beginning of execution,
  47. // SEGGER_RTT_Init() should be called at the start of the application.
  48. //
  49. #define SEGGER_RTT_IN_RAM (0)
  50. /*************************** End of file ****************************/