bot_default_config.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * @file bot_default_config.h
  3. * @brief bot config header file
  4. * @details This header file defines the config of bot
  5. *
  6. * @copyright Copyright (C) 2015-2022 Ant Group Holding Limited
  7. */
  8. #ifndef __BOT_DEFAULT_CONFIG_H__
  9. #define __BOT_DEFAULT_CONFIG_H__
  10. #include "bot_platform_user_config.h"
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15. /* stimer config */
  16. #ifndef BOT_COMP_STIMER
  17. #define BOT_COMP_STIMER 1
  18. #endif
  19. /* LOG config */
  20. #ifndef BOT_COMP_LOG
  21. #define BOT_COMP_LOG 0
  22. #endif
  23. /* LOG macro config */
  24. #if BOT_COMP_LOG == 1
  25. #ifndef BOT_LOG_USE
  26. #define BOT_LOG_USE 1
  27. #endif
  28. #endif
  29. /* KV config */
  30. #ifndef BOT_COMP_KV
  31. #define BOT_COMP_KV 0
  32. #endif
  33. /* AT config */
  34. #ifndef BOT_COMP_AT
  35. #define BOT_COMP_AT 0
  36. #endif
  37. /* GNSS config */
  38. #ifndef BOT_COMP_GNSS
  39. #define BOT_COMP_GNSS 0
  40. #endif
  41. /* MEM config */
  42. #ifndef BOT_COMP_MEM
  43. #define BOT_COMP_MEM 0
  44. #endif
  45. #ifdef BOT_DEBUG
  46. #define BOT_LOG_GLOBAL_LVL LOG_DEBUG
  47. #else
  48. #define BOT_LOG_GLOBAL_LVL LOG_INFO
  49. #endif
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* __BOT_CONFIG_H__ */