mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[samr21] fix build when logging is enabled (#4846)
- include "board.h" before its defines are used
This commit is contained in:
@@ -32,20 +32,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <openthread-core-config.h>
|
||||
#include "openthread-core-config.h"
|
||||
|
||||
#include <utils/code_utils.h>
|
||||
#include <openthread/config.h>
|
||||
#include <openthread/platform/logging.h>
|
||||
#include <openthread/platform/toolchain.h>
|
||||
|
||||
#include "board.h"
|
||||
#include "spi.h"
|
||||
|
||||
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
|
||||
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
|
||||
|
||||
#if BOARD == SAMR21_XPLAINED_PRO
|
||||
|
||||
#include "board.h"
|
||||
#include "spi.h"
|
||||
|
||||
#define LOG_PARSE_BUFFER_SIZE 128
|
||||
#define LOG_TIMESTAMP_ENABLE 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user