diff --git a/include/openthread/cli.h b/include/openthread/cli.h index 7edece9be..798db2191 100644 --- a/include/openthread/cli.h +++ b/include/openthread/cli.h @@ -32,8 +32,8 @@ * This file defines the top-level functions for the OpenThread CLI server. */ -#ifndef CLI_H_ -#define CLI_H_ +#ifndef OPENTHREAD_CLI_H_ +#define OPENTHREAD_CLI_H_ #include #include @@ -152,4 +152,4 @@ void otCliPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFo } // extern "C" #endif -#endif +#endif // OPENTHREAD_CLI_H_ diff --git a/include/openthread/link_raw.h b/include/openthread/link_raw.h index 5226d3f7b..cb30ba478 100644 --- a/include/openthread/link_raw.h +++ b/include/openthread/link_raw.h @@ -32,8 +32,8 @@ * This file defines the raw OpenThread IEEE 802.15.4 Link Layer API. */ -#ifndef LINK_RAW_H_ -#define LINK_RAW_H_ +#ifndef OPENTHREAD_LINK_RAW_H_ +#define OPENTHREAD_LINK_RAW_H_ #include #include @@ -329,4 +329,4 @@ otError otLinkRawSrcMatchClearExtEntries(otInstance *aInstance); } // extern "C" #endif -#endif // LINK_RAW_H_ +#endif // OPENTHREAD_LINK_RAW_H_ diff --git a/include/openthread/ncp.h b/include/openthread/ncp.h index 329013d1b..76f3c589a 100644 --- a/include/openthread/ncp.h +++ b/include/openthread/ncp.h @@ -32,8 +32,8 @@ * This file defines the top-level functions for the OpenThread NCP module. */ -#ifndef NCP_H_ -#define NCP_H_ +#ifndef OPENTHREAD_NCP_H_ +#define OPENTHREAD_NCP_H_ #include #include @@ -221,4 +221,4 @@ void otNcpRegisterLegacyHandlers(const otNcpLegacyHandlers *aHandlers); } // extern "C" #endif -#endif +#endif // OPENTHREAD_NCP_H_ diff --git a/include/openthread/platform/alarm-micro.h b/include/openthread/platform/alarm-micro.h index 113b5f729..895b65019 100644 --- a/include/openthread/platform/alarm-micro.h +++ b/include/openthread/platform/alarm-micro.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for the microsecond alarm service. */ -#ifndef ALARM_MICRO_H_ -#define ALARM_MICRO_H_ +#ifndef OPENTHREAD_PLATFORM_ALARM_MICRO_H_ +#define OPENTHREAD_PLATFORM_ALARM_MICRO_H_ #include @@ -92,4 +92,4 @@ extern void otPlatAlarmMicroFired(otInstance *aInstance); } // extern "C" #endif -#endif // ALARM_MICRO_H_ +#endif // OPENTHREAD_PLATFORM_ALARM_MICRO_H_ diff --git a/include/openthread/platform/alarm-milli.h b/include/openthread/platform/alarm-milli.h index ed078ba8e..15b8a0260 100644 --- a/include/openthread/platform/alarm-milli.h +++ b/include/openthread/platform/alarm-milli.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for the millisecond alarm service. */ -#ifndef ALARM_MILLI_H_ -#define ALARM_MILLI_H_ +#ifndef OPENTHREAD_PLATFORM_ALARM_MILLI_H_ +#define OPENTHREAD_PLATFORM_ALARM_MILLI_H_ #include @@ -99,4 +99,4 @@ extern void otPlatDiagAlarmFired(otInstance *aInstance); } // extern "C" #endif -#endif // ALARM_MILLI_H_ +#endif // OPENTHREAD_PLATFORM_ALARM_MILLI_H_ diff --git a/include/openthread/platform/debug_uart.h b/include/openthread/platform/debug_uart.h index 52c13a1b0..d9d1ca706 100644 --- a/include/openthread/platform/debug_uart.h +++ b/include/openthread/platform/debug_uart.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OPENTHREAD_PLATFORM_DEBUG_UART_H -#define OPENTHREAD_PLATFORM_DEBUG_UART_H +#ifndef OPENTHREAD_PLATFORM_DEBUG_UART_H_ +#define OPENTHREAD_PLATFORM_DEBUG_UART_H_ #include @@ -191,4 +191,4 @@ otError otPlatDebugUart_logfile(const char *filename); } // extern "C" #endif -#endif // OPENTHREAD_PLATFORM_DEBUG_UART_H +#endif // OPENTHREAD_PLATFORM_DEBUG_UART_H_ diff --git a/include/openthread/platform/diag.h b/include/openthread/platform/diag.h index 15cd0156a..13e5e9ae8 100644 --- a/include/openthread/platform/diag.h +++ b/include/openthread/platform/diag.h @@ -33,8 +33,8 @@ * */ -#ifndef DIAG_H_ -#define DIAG_H_ +#ifndef OPENTHREAD_PLATFORM_DIAG_H_ +#define OPENTHREAD_PLATFORM_DIAG_H_ #include #include @@ -127,4 +127,4 @@ void otPlatDiagAlarmCallback(otInstance *aInstance); } // end of extern "C" #endif -#endif +#endif // OPENTHREAD_PLATFORM_DIAG_H_ diff --git a/include/openthread/platform/logging-windows.h b/include/openthread/platform/logging-windows.h index 71f23392d..39e369aed 100644 --- a/include/openthread/platform/logging-windows.h +++ b/include/openthread/platform/logging-windows.h @@ -32,8 +32,8 @@ * This file defines the WPP Tracing Definitions. */ -#ifndef _LOGGING_WINDOWS_H -#define _LOGGING_WINDOWS_H +#ifndef OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_ +#define OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_ #define OPENTHREAD_ENABLE_CERT_LOG 1 @@ -583,4 +583,4 @@ // USESUFFIX(otLogFuncExitErr, " %!otError!", EXP); // end_wpp -#endif // _LOGGING_WINDOWS_H +#endif // OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_ diff --git a/include/openthread/platform/logging.h b/include/openthread/platform/logging.h index c1ac81913..8f642b426 100644 --- a/include/openthread/platform/logging.h +++ b/include/openthread/platform/logging.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for the debug log service. */ -#ifndef LOGGING_H_ -#define LOGGING_H_ +#ifndef OPENTHREAD_PLATFORM_LOGGING_H_ +#define OPENTHREAD_PLATFORM_LOGGING_H_ #include #include @@ -100,4 +100,4 @@ void otPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aForma } // extern "C" #endif -#endif // DEBUG_H_ +#endif // OPENTHREAD_PLATFORM_LOGGING_H_ diff --git a/include/openthread/platform/memory.h b/include/openthread/platform/memory.h index 4b6ac6c1f..b1de90af2 100644 --- a/include/openthread/platform/memory.h +++ b/include/openthread/platform/memory.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for dynamic memory allocation. */ -#ifndef MEMORY_H_ -#define MEMORY_H_ +#ifndef OPENTHREAD_PLATFORM_MEMORY_H_ +#define OPENTHREAD_PLATFORM_MEMORY_H_ #ifdef __cplusplus extern "C" { @@ -89,4 +89,4 @@ void otPlatFree(void *aPtr); } // extern "C" #endif -#endif // DEBUG_H_ +#endif // OPENTHREAD_PLATFORM_MEMORY_H_ diff --git a/include/openthread/platform/messagepool.h b/include/openthread/platform/messagepool.h index c2924b5e9..e7b4d62d9 100644 --- a/include/openthread/platform/messagepool.h +++ b/include/openthread/platform/messagepool.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for the message pool. */ -#ifndef MESSAGEPOOL_H_ -#define MESSAGEPOOL_H_ +#ifndef OPENTHREAD_PLATFORM_MESSAGEPOOL_H_ +#define OPENTHREAD_PLATFORM_MESSAGEPOOL_H_ #include @@ -102,4 +102,4 @@ uint16_t otPlatMessagePoolNumFreeBuffers(otInstance *aInstance); * */ -#endif // MESSAGEPOOL_H_ +#endif // OPENTHREAD_PLATFORM_MESSAGEPOOL_H_ diff --git a/include/openthread/platform/misc.h b/include/openthread/platform/misc.h index 7a3bb1472..364e5de97 100644 --- a/include/openthread/platform/misc.h +++ b/include/openthread/platform/misc.h @@ -32,8 +32,8 @@ * This file includes platform abstractions for miscellaneous behaviors. */ -#ifndef OT_PLATFORM_MISC_H -#define OT_PLATFORM_MISC_H 1 +#ifndef OPENTHREAD_PLATFORM_MISC_H_ +#define OPENTHREAD_PLATFORM_MISC_H_ #include @@ -200,4 +200,4 @@ otPlatMcuPowerState otPlatGetMcuPowerState(otInstance *aInstance); } // extern "C" #endif -#endif // OT_PLATFORM_MISC_H +#endif // OPENTHREAD_PLATFORM_MISC_H_ diff --git a/include/openthread/platform/radio.h b/include/openthread/platform/radio.h index 798d92010..92f2f0e94 100644 --- a/include/openthread/platform/radio.h +++ b/include/openthread/platform/radio.h @@ -33,8 +33,8 @@ * */ -#ifndef RADIO_H_ -#define RADIO_H_ +#ifndef OPENTHREAD_PLATFORM_RADIO_H_ +#define OPENTHREAD_PLATFORM_RADIO_H_ #include @@ -558,4 +558,4 @@ int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance); } // end of extern "C" #endif -#endif // RADIO_H_ +#endif // OPENTHREAD_PLATFORM_RADIO_H_ diff --git a/include/openthread/platform/random.h b/include/openthread/platform/random.h index 666681ba9..2cc77a3bf 100644 --- a/include/openthread/platform/random.h +++ b/include/openthread/platform/random.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for random number generation. */ -#ifndef RANDOM_H_ -#define RANDOM_H_ +#ifndef OPENTHREAD_PLATFORM_RANDOM_H_ +#define OPENTHREAD_PLATFORM_RANDOM_H_ #include @@ -87,4 +87,4 @@ otError otPlatRandomGetTrue(uint8_t *aOutput, uint16_t aOutputLength); } // end of extern "C" #endif -#endif // RANDOM_H_ +#endif // OPENTHREAD_PLATFORM_RANDOM_H_ diff --git a/include/openthread/platform/settings.h b/include/openthread/platform/settings.h index fdf48d800..aa3b35b56 100644 --- a/include/openthread/platform/settings.h +++ b/include/openthread/platform/settings.h @@ -32,8 +32,8 @@ * This file includes platform abstraction for non-volatile storage of settings. */ -#ifndef OT_PLATFORM_SETTINGS_H -#define OT_PLATFORM_SETTINGS_H 1 +#ifndef OPENTHREAD_PLATFORM_SETTINGS_H_ +#define OPENTHREAD_PLATFORM_SETTINGS_H_ #include @@ -278,4 +278,4 @@ void otPlatSettingsWipe(otInstance *aInstance); } // extern "C" #endif -#endif // OT_PLATFORM_SETTINGS_H +#endif // OPENTHREAD_PLATFORM_SETTINGS_H_ diff --git a/include/openthread/platform/spi-slave.h b/include/openthread/platform/spi-slave.h index 58aa5b2fa..5920e0fc9 100644 --- a/include/openthread/platform/spi-slave.h +++ b/include/openthread/platform/spi-slave.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for SPI slave communication. */ -#ifndef SPI_SLAVE_H_ -#define SPI_SLAVE_H_ +#ifndef OPENTHREAD_PLATFORM_SPI_SLAVE_H_ +#define OPENTHREAD_PLATFORM_SPI_SLAVE_H_ #include @@ -177,4 +177,4 @@ otError otPlatSpiSlavePrepareTransaction(uint8_t *aOutputBuf, } // extern "C" #endif -#endif // SPI_SLAVE_H_ +#endif // OPENTHREAD_PLATFORM_SPI_SLAVE_H_ diff --git a/include/openthread/platform/toolchain.h b/include/openthread/platform/toolchain.h index 38bca7147..5dfec8221 100644 --- a/include/openthread/platform/toolchain.h +++ b/include/openthread/platform/toolchain.h @@ -54,8 +54,8 @@ * */ -#ifndef TOOLCHAIN_H_ -#define TOOLCHAIN_H_ +#ifndef OPENTHREAD_PLATFORM_TOOLCHAIN_H_ +#define OPENTHREAD_PLATFORM_TOOLCHAIN_H_ #ifdef __cplusplus extern "C" { @@ -279,4 +279,4 @@ extern "C" { } // extern "C" #endif -#endif // TOOLCHAIN_H_ +#endif // OPENTHREAD_PLATFORM_TOOLCHAIN_H_ diff --git a/include/openthread/platform/uart.h b/include/openthread/platform/uart.h index faf178e6f..f711e36c7 100644 --- a/include/openthread/platform/uart.h +++ b/include/openthread/platform/uart.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for UART communication. */ -#ifndef UART_H_ -#define UART_H_ +#ifndef OPENTHREAD_PLATFORM_UART_H_ +#define OPENTHREAD_PLATFORM_UART_H_ #include @@ -107,4 +107,4 @@ extern void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength); } // extern "C" #endif -#endif // UART_H_ +#endif // OPENTHREAD_PLATFORM_UART_H_