OpenThreadConfig.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. *
  3. * Copyright (c) 2021-2023 Project CHIP Authors
  4. * All rights reserved.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. #pragma once
  19. // Include Zephyr-supplied OpenThread configuration
  20. #include "openthread-core-zephyr-config.h"
  21. // Project-specific settings
  22. #include "openthread/platform/logging.h"
  23. /* Number of message buffers reduced to save RAM */
  24. #undef OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS
  25. #if CONFIG_PM
  26. #define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 22
  27. #else
  28. #define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 44
  29. #endif
  30. #define OPENTHREAD_CONFIG_LOG_OUTPUT OPENTHREAD_CONFIG_LOG_OUTPUT_DEBUG_UART
  31. #undef OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS_MANAGEMENT
  32. #define OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS_MANAGEMENT 1
  33. #undef OPENTHREAD_CONFIG_LOG_LEVEL
  34. #if (CONFIG_LOG_MODE_MINIMAL)
  35. #define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_NONE
  36. #else
  37. #define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG
  38. #endif
  39. #define OPENTHREAD_CONFIG_ENABLE_DEBUG_UART 1
  40. #undef OPENTHREAD_CONFIG_LOG_CLI
  41. #define OPENTHREAD_CONFIG_LOG_CLI 0
  42. #undef OPENTHREAD_CONFIG_LOG_PKT_DUMP
  43. #define OPENTHREAD_CONFIG_LOG_PKT_DUMP 0
  44. #undef OPENTHREAD_CONFIG_LOG_PLATFORM
  45. #define OPENTHREAD_CONFIG_LOG_PLATFORM 0
  46. #undef OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL
  47. #define OPENTHREAD_CONFIG_LOG_PREPEND_LEVEL 0