[samr21] fix build when logging is enabled (#4846)

- include "board.h" before its defines are used
This commit is contained in:
Jonathan Hui
2020-04-16 18:40:46 -07:00
committed by GitHub
parent 32e308833c
commit c34f3ef817
+5 -5
View File
@@ -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