diff --git a/.appveyor/make_release.cmd b/.appveyor/make_release.cmd
index bc69f2cf5..8ecf68c33 100644
--- a/.appveyor/make_release.cmd
+++ b/.appveyor/make_release.cmd
@@ -42,13 +42,13 @@ REM Copy the relavant include headers
copy include\openthread\commissioner.h release\include\openthread
copy include\openthread\dataset.h release\include\openthread
+copy include\openthread\error.h release\include\openthread
copy include\openthread\instance.h release\include\openthread
copy include\openthread\ip6.h release\include\openthread
copy include\openthread\joiner.h release\include\openthread
copy include\openthread\link.h release\include\openthread
copy include\openthread\message.h release\include\openthread
copy include\openthread\netdata.h release\include\openthread
-copy include\openthread\openthread.h release\include\openthread
copy include\openthread\thread.h release\include\openthread
copy include\openthread\types.h release\include\openthread
copy include\openthread\platform\toolchain.h release\include\openthread\platform
diff --git a/configure.ac b/configure.ac
index b9e940230..80375dbd3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@ AC_SUBST(LIBOPENTHREAD_VERSION_INFO, [${LIBOPENTHREAD_VERSION_CURRENT}:${LIB
# Check the sanity of the source directory by checking for the
# presence of a key watch file
#
-AC_CONFIG_SRCDIR([include/openthread/openthread.h])
+AC_CONFIG_SRCDIR([include/openthread/error.h])
#
# Tell autoconf where to find auxilliary build tools (e.g. config.guess,
diff --git a/etc/visual-studio/libopenthread_k.vcxproj b/etc/visual-studio/libopenthread_k.vcxproj
index 7ea6ae8c2..7ef558d67 100644
--- a/etc/visual-studio/libopenthread_k.vcxproj
+++ b/etc/visual-studio/libopenthread_k.vcxproj
@@ -173,6 +173,7 @@
+
@@ -181,11 +182,9 @@
-
-
diff --git a/etc/visual-studio/libopenthread_k.vcxproj.filters b/etc/visual-studio/libopenthread_k.vcxproj.filters
index 0716824fa..85ca29a7a 100644
--- a/etc/visual-studio/libopenthread_k.vcxproj.filters
+++ b/etc/visual-studio/libopenthread_k.vcxproj.filters
@@ -614,9 +614,6 @@
Header Files
-
- Header Files\openthread
-
Header Files
@@ -644,6 +641,9 @@
Header Files\openthread
+
+ Header Files\openthread
+
Header Files\openthread
@@ -668,9 +668,6 @@
Header Files\openthread
-
- Header Files\openthread
-
Header Files\openthread
diff --git a/examples/apps/cli/main.c b/examples/apps/cli/main.c
index ecbdc549e..e35ac5e37 100644
--- a/examples/apps/cli/main.c
+++ b/examples/apps/cli/main.c
@@ -32,7 +32,7 @@
#include
#include
-#include
+#include
#include
#include "openthread-system.h"
diff --git a/examples/apps/ncp/main.c b/examples/apps/ncp/main.c
index 4d87bd3c4..f2fbfe15b 100644
--- a/examples/apps/ncp/main.c
+++ b/examples/apps/ncp/main.c
@@ -32,7 +32,7 @@
#include
#include
-#include
+#include
#include "openthread-system.h"
diff --git a/examples/apps/windows/otAdapter.h b/examples/apps/windows/otAdapter.h
index ff2df9e4b..f09c28037 100644
--- a/examples/apps/windows/otAdapter.h
+++ b/examples/apps/windows/otAdapter.h
@@ -29,7 +29,6 @@
#pragma once
#define OTDLL 1
-#include
#include
#include
#include
diff --git a/examples/drivers/windows/include/otLwfIoctl.h b/examples/drivers/windows/include/otLwfIoctl.h
index b32e9f295..ab6864109 100644
--- a/examples/drivers/windows/include/otLwfIoctl.h
+++ b/examples/drivers/windows/include/otLwfIoctl.h
@@ -35,8 +35,6 @@
#ifndef __OTLWFIOCTL_H__
#define __OTLWFIOCTL_H__
-#include
-
__inline LONG ThreadErrorToNtstatus(otError error) { return (LONG)-((int)error); }
// User-mode IOCTL path for CreateFile
diff --git a/examples/drivers/windows/include/otNode.h b/examples/drivers/windows/include/otNode.h
index d647e333b..4c3014925 100644
--- a/examples/drivers/windows/include/otNode.h
+++ b/examples/drivers/windows/include/otNode.h
@@ -29,14 +29,12 @@
/**
* @file
* @brief
- * This file defines a node interface for openthread.h to be used for certification tests
+ * This file defines a node interface for openthread to be used for certification tests
*/
#ifndef OTNODE_H_
#define OTNODE_H_
-#include
-
#ifndef OTNODEAPI
#define OTNODEAPI __declspec(dllimport)
#endif
diff --git a/examples/drivers/windows/otApi/precomp.h b/examples/drivers/windows/otApi/precomp.h
index 0308eb491..4bed0c1b1 100644
--- a/examples/drivers/windows/otApi/precomp.h
+++ b/examples/drivers/windows/otApi/precomp.h
@@ -21,9 +21,9 @@
#define OTDLL
#define OTAPI EXTERN_C __declspec(dllexport)
-#include
#include
#include
+#include
#include
#include
#include
diff --git a/examples/drivers/windows/otCli/main.cpp b/examples/drivers/windows/otCli/main.cpp
index 7b7337775..c2ad1fe96 100644
--- a/examples/drivers/windows/otCli/main.cpp
+++ b/examples/drivers/windows/otCli/main.cpp
@@ -29,7 +29,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/examples/drivers/windows/otLwf/precomp.h b/examples/drivers/windows/otLwf/precomp.h
index 824eea70d..74485299a 100644
--- a/examples/drivers/windows/otLwf/precomp.h
+++ b/examples/drivers/windows/otLwf/precomp.h
@@ -61,7 +61,6 @@ RtlCopyBufferToMdl(
#include
#include
-#include
#include
#include
#include
diff --git a/examples/drivers/windows/otNodeApi/precomp.h b/examples/drivers/windows/otNodeApi/precomp.h
index a0d8e85ce..d7de64809 100644
--- a/examples/drivers/windows/otNodeApi/precomp.h
+++ b/examples/drivers/windows/otNodeApi/precomp.h
@@ -49,7 +49,6 @@ using namespace std;
#define OTDLL
#define OTNODEAPI EXTERN_C __declspec(dllexport)
-#include
#include
#include
#include
diff --git a/examples/platforms/cc1352/alarm.c b/examples/platforms/cc1352/alarm.c
index bf4826f80..acd44e37a 100644
--- a/examples/platforms/cc1352/alarm.c
+++ b/examples/platforms/cc1352/alarm.c
@@ -38,8 +38,6 @@
#include
#include
-#include
-
#include
#include
diff --git a/examples/platforms/cc1352/diag.c b/examples/platforms/cc1352/diag.c
index 8658d8eee..beef3c2d1 100644
--- a/examples/platforms/cc1352/diag.c
+++ b/examples/platforms/cc1352/diag.c
@@ -33,7 +33,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc1352/logging.c b/examples/platforms/cc1352/logging.c
index 190a4bfa1..7dcab8294 100644
--- a/examples/platforms/cc1352/logging.c
+++ b/examples/platforms/cc1352/logging.c
@@ -34,6 +34,7 @@
#include
#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/cc1352/misc.c b/examples/platforms/cc1352/misc.c
index a95a42236..a28859746 100644
--- a/examples/platforms/cc1352/misc.c
+++ b/examples/platforms/cc1352/misc.c
@@ -29,7 +29,6 @@
#include
#include
-#include
#include
/*
diff --git a/examples/platforms/cc1352/platform-cc1352.h b/examples/platforms/cc1352/platform-cc1352.h
index 927712526..4d973e65e 100644
--- a/examples/platforms/cc1352/platform-cc1352.h
+++ b/examples/platforms/cc1352/platform-cc1352.h
@@ -32,7 +32,7 @@
#include
#include
#include
-#include "openthread/types.h"
+#include
#ifdef __cplusplus
extern "C" {
diff --git a/examples/platforms/cc1352/radio.c b/examples/platforms/cc1352/radio.c
index f7f2db0f7..ccd645a88 100644
--- a/examples/platforms/cc1352/radio.c
+++ b/examples/platforms/cc1352/radio.c
@@ -36,8 +36,6 @@
#include
#include
-#include
-#include
#include
#include
#include
diff --git a/examples/platforms/cc1352/random.c b/examples/platforms/cc1352/random.c
index 1e20a0449..e536b3873 100644
--- a/examples/platforms/cc1352/random.c
+++ b/examples/platforms/cc1352/random.c
@@ -31,7 +31,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc1352/system.c b/examples/platforms/cc1352/system.c
index 078cb865b..243257fa7 100644
--- a/examples/platforms/cc1352/system.c
+++ b/examples/platforms/cc1352/system.c
@@ -36,7 +36,6 @@
#include "platform-cc1352.h"
#include
-#include
#include "inc/hw_ccfg.h"
#include "inc/hw_ccfg_simple_struct.h"
diff --git a/examples/platforms/cc1352/uart.c b/examples/platforms/cc1352/uart.c
index f7ec0845c..99881eb9f 100644
--- a/examples/platforms/cc1352/uart.c
+++ b/examples/platforms/cc1352/uart.c
@@ -39,7 +39,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/examples/platforms/cc2538/alarm.c b/examples/platforms/cc2538/alarm.c
index 1a54eb230..0bbbe2a53 100644
--- a/examples/platforms/cc2538/alarm.c
+++ b/examples/platforms/cc2538/alarm.c
@@ -36,7 +36,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2538/diag.c b/examples/platforms/cc2538/diag.c
index 19987ce04..96fc4f82d 100644
--- a/examples/platforms/cc2538/diag.c
+++ b/examples/platforms/cc2538/diag.c
@@ -32,7 +32,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2538/logging.c b/examples/platforms/cc2538/logging.c
index 190a4bfa1..7dcab8294 100644
--- a/examples/platforms/cc2538/logging.c
+++ b/examples/platforms/cc2538/logging.c
@@ -34,6 +34,7 @@
#include
#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/cc2538/misc.c b/examples/platforms/cc2538/misc.c
index 167cc3826..8f36b35ec 100644
--- a/examples/platforms/cc2538/misc.c
+++ b/examples/platforms/cc2538/misc.c
@@ -26,7 +26,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include
#include
#include "platform-cc2538.h"
diff --git a/examples/platforms/cc2538/platform-cc2538.h b/examples/platforms/cc2538/platform-cc2538.h
index 2a61807cc..41bd0b988 100644
--- a/examples/platforms/cc2538/platform-cc2538.h
+++ b/examples/platforms/cc2538/platform-cc2538.h
@@ -38,8 +38,7 @@
#include
#include
#include
-
-#include
+#include
#include "cc2538-reg.h"
diff --git a/examples/platforms/cc2538/radio.c b/examples/platforms/cc2538/radio.c
index fc4050f85..4cff9eb34 100644
--- a/examples/platforms/cc2538/radio.c
+++ b/examples/platforms/cc2538/radio.c
@@ -33,7 +33,6 @@
*/
#include
-#include
#include
#include
#include
diff --git a/examples/platforms/cc2538/random.c b/examples/platforms/cc2538/random.c
index be8ef2ea8..a349fb354 100644
--- a/examples/platforms/cc2538/random.c
+++ b/examples/platforms/cc2538/random.c
@@ -32,7 +32,6 @@
*
*/
-#include
#include
#include
diff --git a/examples/platforms/cc2538/uart.c b/examples/platforms/cc2538/uart.c
index bf024bec1..61f2feb54 100644
--- a/examples/platforms/cc2538/uart.c
+++ b/examples/platforms/cc2538/uart.c
@@ -39,7 +39,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/examples/platforms/cc2650/alarm.c b/examples/platforms/cc2650/alarm.c
index d3ce3b3f6..ed9e89d94 100644
--- a/examples/platforms/cc2650/alarm.c
+++ b/examples/platforms/cc2650/alarm.c
@@ -29,7 +29,6 @@
#include
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2650/flash.c b/examples/platforms/cc2650/flash.c
index 54aa12391..49b69b1a1 100644
--- a/examples/platforms/cc2650/flash.c
+++ b/examples/platforms/cc2650/flash.c
@@ -28,6 +28,8 @@
#include "platform-cc2650.h"
+#include
+
/**
* @warning this file only implements stubs for the function calls. There is
* not enough space on the cc2650 to support NV as an SoC.
diff --git a/examples/platforms/cc2650/logging.c b/examples/platforms/cc2650/logging.c
index 190a4bfa1..7dcab8294 100644
--- a/examples/platforms/cc2650/logging.c
+++ b/examples/platforms/cc2650/logging.c
@@ -34,6 +34,7 @@
#include
#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/cc2650/misc.c b/examples/platforms/cc2650/misc.c
index 09676a133..539e28741 100644
--- a/examples/platforms/cc2650/misc.c
+++ b/examples/platforms/cc2650/misc.c
@@ -27,7 +27,6 @@
*/
#include
-#include
#include
/**
diff --git a/examples/platforms/cc2650/platform-cc2650.h b/examples/platforms/cc2650/platform-cc2650.h
index ed3a098fb..33e1c3dbd 100644
--- a/examples/platforms/cc2650/platform-cc2650.h
+++ b/examples/platforms/cc2650/platform-cc2650.h
@@ -32,7 +32,7 @@
#include
#include
#include
-#include "openthread/types.h"
+#include
#ifdef __cplusplus
extern "C" {
diff --git a/examples/platforms/cc2650/radio.c b/examples/platforms/cc2650/radio.c
index 614158d2d..11572422a 100644
--- a/examples/platforms/cc2650/radio.c
+++ b/examples/platforms/cc2650/radio.c
@@ -28,8 +28,6 @@
#include
-#include
-
#include "cc2650_radio.h"
#include
#include
diff --git a/examples/platforms/cc2650/random.c b/examples/platforms/cc2650/random.c
index 6b9dc24d7..0442a55ca 100644
--- a/examples/platforms/cc2650/random.c
+++ b/examples/platforms/cc2650/random.c
@@ -27,7 +27,6 @@
*/
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2650/system.c b/examples/platforms/cc2650/system.c
index bd95b801c..a5ec0793d 100644
--- a/examples/platforms/cc2650/system.c
+++ b/examples/platforms/cc2650/system.c
@@ -28,7 +28,6 @@
#include "platform-cc2650.h"
#include
-#include
#include "inc/hw_ccfg_simple_struct.h"
extern const ccfg_t __ccfg;
diff --git a/examples/platforms/cc2650/uart.c b/examples/platforms/cc2650/uart.c
index bd7cd449e..fe8b38840 100644
--- a/examples/platforms/cc2650/uart.c
+++ b/examples/platforms/cc2650/uart.c
@@ -34,7 +34,6 @@
#include
#include
-#include
#include
/**
diff --git a/examples/platforms/cc2652/alarm.c b/examples/platforms/cc2652/alarm.c
index dd3d1845b..13f3dde78 100644
--- a/examples/platforms/cc2652/alarm.c
+++ b/examples/platforms/cc2652/alarm.c
@@ -38,8 +38,6 @@
#include
#include
-#include
-
#include
#include
diff --git a/examples/platforms/cc2652/diag.c b/examples/platforms/cc2652/diag.c
index ff00d80d4..b6dad2e7e 100644
--- a/examples/platforms/cc2652/diag.c
+++ b/examples/platforms/cc2652/diag.c
@@ -33,7 +33,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2652/logging.c b/examples/platforms/cc2652/logging.c
index 190a4bfa1..7dcab8294 100644
--- a/examples/platforms/cc2652/logging.c
+++ b/examples/platforms/cc2652/logging.c
@@ -34,6 +34,7 @@
#include
#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/cc2652/misc.c b/examples/platforms/cc2652/misc.c
index 0550e6599..d49400af9 100644
--- a/examples/platforms/cc2652/misc.c
+++ b/examples/platforms/cc2652/misc.c
@@ -29,7 +29,6 @@
#include
#include
-#include
#include
/*
diff --git a/examples/platforms/cc2652/platform-cc2652.h b/examples/platforms/cc2652/platform-cc2652.h
index 4a6b507c8..65063fe69 100644
--- a/examples/platforms/cc2652/platform-cc2652.h
+++ b/examples/platforms/cc2652/platform-cc2652.h
@@ -32,7 +32,7 @@
#include
#include
#include
-#include "openthread/types.h"
+#include
#ifdef __cplusplus
extern "C" {
diff --git a/examples/platforms/cc2652/radio.c b/examples/platforms/cc2652/radio.c
index 86de3c81c..48f09d108 100644
--- a/examples/platforms/cc2652/radio.c
+++ b/examples/platforms/cc2652/radio.c
@@ -36,8 +36,6 @@
#include
#include
-#include
-#include
#include
#include
#include
diff --git a/examples/platforms/cc2652/random.c b/examples/platforms/cc2652/random.c
index b803e2aac..aa8c93fc8 100644
--- a/examples/platforms/cc2652/random.c
+++ b/examples/platforms/cc2652/random.c
@@ -31,7 +31,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/cc2652/system.c b/examples/platforms/cc2652/system.c
index 6a96d2c3a..1425ac9b4 100644
--- a/examples/platforms/cc2652/system.c
+++ b/examples/platforms/cc2652/system.c
@@ -36,7 +36,6 @@
#include "platform-cc2652.h"
#include
-#include
#include "inc/hw_ccfg.h"
#include "inc/hw_ccfg_simple_struct.h"
diff --git a/examples/platforms/cc2652/uart.c b/examples/platforms/cc2652/uart.c
index 13fc515f5..493aa0870 100644
--- a/examples/platforms/cc2652/uart.c
+++ b/examples/platforms/cc2652/uart.c
@@ -39,7 +39,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/examples/platforms/da15000/logging.c b/examples/platforms/da15000/logging.c
index 81cfaac2c..9c0b03f72 100644
--- a/examples/platforms/da15000/logging.c
+++ b/examples/platforms/da15000/logging.c
@@ -32,7 +32,10 @@
*
*/
+#include
+#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/da15000/platform-da15000.h b/examples/platforms/da15000/platform-da15000.h
index 208d6952a..6a2cfaf6c 100644
--- a/examples/platforms/da15000/platform-da15000.h
+++ b/examples/platforms/da15000/platform-da15000.h
@@ -31,7 +31,8 @@
#include
#include
-#include
+
+#include
/**
* This function initializes the radio service used by OpenThread.
diff --git a/examples/platforms/da15000/system.c b/examples/platforms/da15000/system.c
index 68dfb9466..0c26fa52f 100644
--- a/examples/platforms/da15000/system.c
+++ b/examples/platforms/da15000/system.c
@@ -33,7 +33,7 @@
#include
#include
-#include
+#include
#include
#include "platform-da15000.h"
diff --git a/examples/platforms/efr32/logging.c b/examples/platforms/efr32/logging.c
index dbb2b43e4..77383dcdb 100644
--- a/examples/platforms/efr32/logging.c
+++ b/examples/platforms/efr32/logging.c
@@ -35,6 +35,7 @@
#include
#include
#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/efr32/misc.c b/examples/platforms/efr32/misc.c
index 1a039017b..757407bf4 100644
--- a/examples/platforms/efr32/misc.c
+++ b/examples/platforms/efr32/misc.c
@@ -31,7 +31,6 @@
* This file implements the OpenThread platform abstraction for miscellaneous behaviors.
*/
-#include
#include
#include "em_rmu.h"
diff --git a/examples/platforms/efr32/radio.c b/examples/platforms/efr32/radio.c
index d20952c87..dea88164f 100644
--- a/examples/platforms/efr32/radio.c
+++ b/examples/platforms/efr32/radio.c
@@ -35,7 +35,6 @@
#include
#include
-#include
#include
#include
#include
diff --git a/examples/platforms/efr32/random.c b/examples/platforms/efr32/random.c
index 3278a7366..5d1a6c42b 100644
--- a/examples/platforms/efr32/random.c
+++ b/examples/platforms/efr32/random.c
@@ -32,7 +32,6 @@
*
*/
-#include
#include
#include "utils/code_utils.h"
diff --git a/examples/platforms/efr32/uart.c b/examples/platforms/efr32/uart.c
index cb00e194f..32f0741c4 100644
--- a/examples/platforms/efr32/uart.c
+++ b/examples/platforms/efr32/uart.c
@@ -34,7 +34,6 @@
#include
-#include
#include
#include "utils/code_utils.h"
diff --git a/examples/platforms/emsk/logging.c b/examples/platforms/emsk/logging.c
index 8aafa0548..77383dcdb 100644
--- a/examples/platforms/emsk/logging.c
+++ b/examples/platforms/emsk/logging.c
@@ -32,9 +32,10 @@
*
*/
-#include "openthread/platform/logging.h"
#include
#include
+#include
+#include
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_PLATFORM_DEFINED) || \
(OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL)
diff --git a/examples/platforms/emsk/platform-emsk.h b/examples/platforms/emsk/platform-emsk.h
index 430a0f937..7e7ab8abb 100644
--- a/examples/platforms/emsk/platform-emsk.h
+++ b/examples/platforms/emsk/platform-emsk.h
@@ -39,7 +39,7 @@
#include
#include
#include
-#include "openthread/types.h"
+#include
#include "board/board.h"
diff --git a/examples/platforms/emsk/radio.c b/examples/platforms/emsk/radio.c
index d1d5251f3..418e16283 100644
--- a/examples/platforms/emsk/radio.c
+++ b/examples/platforms/emsk/radio.c
@@ -34,14 +34,16 @@
#include
#include
-#include "openthread/types.h"
+#include
#include "platform-emsk.h"
-#include
+
+#include
#include
#include
-#include
+#include "utils/code_utils.h"
+
#include "device/device_hal/inc/dev_gpio.h"
#include
diff --git a/examples/platforms/emsk/system.c b/examples/platforms/emsk/system.c
index e9f4ff4d6..87b52b33b 100644
--- a/examples/platforms/emsk/system.c
+++ b/examples/platforms/emsk/system.c
@@ -34,7 +34,6 @@
*/
#include "platform-emsk.h"
-#include "openthread/openthread.h"
#include "openthread/platform/uart.h"
#include
diff --git a/examples/platforms/emsk/uart.c b/examples/platforms/emsk/uart.c
index e045bea53..527802ad9 100644
--- a/examples/platforms/emsk/uart.c
+++ b/examples/platforms/emsk/uart.c
@@ -37,7 +37,6 @@
#include "platform-emsk.h"
#include
#include "openthread/platform/uart.h"
-#include "openthread/types.h"
#include
#define DBG(fmt, ...) printf(fmt, ##__VA_ARGS__)
diff --git a/examples/platforms/gp712/alarm.c b/examples/platforms/gp712/alarm.c
index 84be93fcb..1b90e840b 100644
--- a/examples/platforms/gp712/alarm.c
+++ b/examples/platforms/gp712/alarm.c
@@ -37,7 +37,6 @@
#include
#include "alarm_qorvo.h"
-#include
#include
#include
diff --git a/examples/platforms/gp712/alarm_qorvo.h b/examples/platforms/gp712/alarm_qorvo.h
index c818ceec1..c37fa6c1b 100644
--- a/examples/platforms/gp712/alarm_qorvo.h
+++ b/examples/platforms/gp712/alarm_qorvo.h
@@ -38,7 +38,6 @@
#include
#include
#include
-#include
typedef void (*qorvoAlarmCallback_t)( void* );
diff --git a/examples/platforms/gp712/diag.c b/examples/platforms/gp712/diag.c
index 8148dc5fe..f374101e8 100644
--- a/examples/platforms/gp712/diag.c
+++ b/examples/platforms/gp712/diag.c
@@ -32,7 +32,6 @@
#include
#include
-#include
#include
#include
diff --git a/examples/platforms/gp712/logging.c b/examples/platforms/gp712/logging.c
index 7c6fff125..66cde6b5b 100644
--- a/examples/platforms/gp712/logging.c
+++ b/examples/platforms/gp712/logging.c
@@ -42,6 +42,7 @@
#endif
#include
+#include
#include "utils/code_utils.h"
diff --git a/examples/platforms/gp712/misc.c b/examples/platforms/gp712/misc.c
index 57ada14a6..f9a0886e8 100644
--- a/examples/platforms/gp712/misc.c
+++ b/examples/platforms/gp712/misc.c
@@ -33,7 +33,8 @@
#include "radio_qorvo.h"
#include