tae32f53xx_dbg_conf.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /**
  2. ******************************************************************************
  3. * @file tae32f53xx_dbg_conf.h
  4. * @author MCD Application Team
  5. * @brief Configuration for dbg
  6. *
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2020 Tai-Action.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software is licensed by Tai-Action under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef _TAE32F53XX_DBG_CONF_H_
  22. #define _TAE32F53XX_DBG_CONF_H_
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif /* __cplusplus */
  26. /* Includes ------------------------------------------------------------------*/
  27. #include <stdio.h>
  28. /** @addtogroup TAE32F53xx_Examples
  29. * @{
  30. */
  31. /** @addtogroup TAE32F53xx_Template
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported constants --------------------------------------------------------*/
  36. /** @defgroup TAE32F53xx_Debug_Conf_Exported_Constants TAE32F53xx Debug Conf Exported Constants
  37. * @brief TAE32F53xx Debug Conf Exported Constants
  38. * @{
  39. */
  40. /**
  41. * @brief Define TAE_USING_DBG to enable dbg
  42. */
  43. #define TAE_USING_DBG
  44. /**
  45. * @brief Define TAE_USING_DBG_COLOR to enable dbg color mode
  46. */
  47. //#define TAE_USING_DBG_COLOR
  48. /**
  49. * @}
  50. */
  51. /* Exported macro ------------------------------------------------------------*/
  52. /** @defgroup TAE32F53xx_Debug_Conf_Exported_Macros TAE32F53xx Debug Conf Exported Macros
  53. * @brief TAE32F53xx Debug Conf Exported Macros
  54. * @{
  55. */
  56. /**
  57. * @brief Define your own print interface here
  58. */
  59. #ifdef TAE_USING_DBG
  60. #define TAE_DBG_PRINT(fmt, ...) printf(fmt, ##__VA_ARGS__)
  61. #else
  62. #define TAE_DBG_PRINT(fmt, ...)
  63. #endif
  64. /**
  65. * @}
  66. */
  67. /* Exported functions --------------------------------------------------------*/
  68. /* Private types -------------------------------------------------------------*/
  69. /* Private variables ---------------------------------------------------------*/
  70. /* Private constants ---------------------------------------------------------*/
  71. /* Private macros ------------------------------------------------------------*/
  72. /* Private functions ---------------------------------------------------------*/
  73. /**
  74. * @}
  75. */
  76. /**
  77. * @}
  78. */
  79. #ifdef __cplusplus
  80. }
  81. #endif /* __cplusplus */
  82. #endif /* _TAE32F53XX_DBG_CONF_H_ */
  83. /************************* (C) COPYRIGHT Tai-Action *****END OF FILE***********/