diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c index 95ceac8fd37..b2c51e71912 100644 --- a/drivers/bluetooth/hci/h4.c +++ b/drivers/bluetooth/hci/h4.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/bluetooth/hci/h5.c b/drivers/bluetooth/hci/h5.c index 7ab9feaeeec..9f293424d85 100644 --- a/drivers/bluetooth/hci/h5.c +++ b/drivers/bluetooth/hci/h5.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/bluetooth/hci/spi.c b/drivers/bluetooth/hci/spi.c index 72502215402..c598b33e824 100644 --- a/drivers/bluetooth/hci/spi.c +++ b/drivers/bluetooth/hci/spi.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/bluetooth/hci/userchan.c b/drivers/bluetooth/hci/userchan.c index d6be3863a66..f64b66ed1f7 100644 --- a/drivers/bluetooth/hci/userchan.c +++ b/drivers/bluetooth/hci/userchan.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/can/can_mcux_flexcan.c b/drivers/can/can_mcux_flexcan.c index f38150ba187..1f2d006a55a 100644 --- a/drivers/can/can_mcux_flexcan.c +++ b/drivers/can/can_mcux_flexcan.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #define LOG_LEVEL CONFIG_CAN_LOG_LEVEL diff --git a/drivers/display/display_ili9340.c b/drivers/display/display_ili9340.c index 4f99d2cffed..973f8eca1ff 100644 --- a/drivers/display/display_ili9340.c +++ b/drivers/display/display_ili9340.c @@ -13,7 +13,7 @@ LOG_MODULE_REGISTER(display_ili9340); #include -#include +#include #include #include diff --git a/drivers/display/ssd1673.c b/drivers/display/ssd1673.c index 68d77d16200..3d064c2d01c 100644 --- a/drivers/display/ssd1673.c +++ b/drivers/display/ssd1673.c @@ -14,7 +14,7 @@ LOG_MODULE_REGISTER(ssd1673); #include #include #include -#include +#include #include "ssd1673_regs.h" #include diff --git a/drivers/gpio/gpio_sx1509b.c b/drivers/gpio/gpio_sx1509b.c index 843fef888c6..291b0649aae 100644 --- a/drivers/gpio/gpio_sx1509b.c +++ b/drivers/gpio/gpio_sx1509b.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #ifdef CONFIG_HAS_DTS_I2C diff --git a/drivers/ieee802154/ieee802154_cc1200.c b/drivers/ieee802154/ieee802154_cc1200.c index 7e9c545996f..eb79a0fd1fe 100644 --- a/drivers/ieee802154/ieee802154_cc1200.c +++ b/drivers/ieee802154/ieee802154_cc1200.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include -#include +#include #include #include diff --git a/drivers/ieee802154/ieee802154_cc2520.c b/drivers/ieee802154/ieee802154_cc2520.c index cbac9271e12..dd2b2ea8995 100644 --- a/drivers/ieee802154/ieee802154_cc2520.c +++ b/drivers/ieee802154/ieee802154_cc2520.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include -#include +#include #include #include diff --git a/drivers/ieee802154/ieee802154_kw41z.c b/drivers/ieee802154/ieee802154_kw41z.c index 1e6e6161fc3..1acfabcca2d 100644 --- a/drivers/ieee802154/ieee802154_kw41z.c +++ b/drivers/ieee802154/ieee802154_kw41z.c @@ -20,7 +20,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include #include -#include +#include #include #include "fsl_xcvr.h" diff --git a/drivers/ieee802154/ieee802154_mcr20a.c b/drivers/ieee802154/ieee802154_mcr20a.c index 95cbc52d8be..ea4fda988a0 100644 --- a/drivers/ieee802154/ieee802154_mcr20a.c +++ b/drivers/ieee802154/ieee802154_mcr20a.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include -#include +#include #include #include diff --git a/drivers/ieee802154/ieee802154_nrf5.c b/drivers/ieee802154/ieee802154_nrf5.c index 06a67044b8f..a837a1eef90 100644 --- a/drivers/ieee802154/ieee802154_nrf5.c +++ b/drivers/ieee802154/ieee802154_nrf5.c @@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #endif -#include +#include #include #include diff --git a/drivers/led/ht16k33.c b/drivers/led/ht16k33.c index 1f0d3ca7131..ca3cc8fb9ec 100644 --- a/drivers/led/ht16k33.c +++ b/drivers/led/ht16k33.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #define LOG_LEVEL CONFIG_LED_LOG_LEVEL diff --git a/drivers/sensor/adt7420/adt7420.c b/drivers/sensor/adt7420/adt7420.c index 8f044673fce..0cc26b402f4 100644 --- a/drivers/sensor/adt7420/adt7420.c +++ b/drivers/sensor/adt7420/adt7420.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/adxl362/adxl362.c b/drivers/sensor/adxl362/adxl362.c index 11a299359da..dd561bcb08e 100644 --- a/drivers/sensor/adxl362/adxl362.c +++ b/drivers/sensor/adxl362/adxl362.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/ak8975/ak8975.c b/drivers/sensor/ak8975/ak8975.c index e4bb34416d4..74d9a66c5d4 100644 --- a/drivers/sensor/ak8975/ak8975.c +++ b/drivers/sensor/ak8975/ak8975.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/amg88xx/amg88xx.c b/drivers/sensor/amg88xx/amg88xx.c index ab393d79c1e..4075cb514f3 100644 --- a/drivers/sensor/amg88xx/amg88xx.c +++ b/drivers/sensor/amg88xx/amg88xx.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/ams_iAQcore/iAQcore.c b/drivers/sensor/ams_iAQcore/iAQcore.c index 5a523949843..e8f47741899 100644 --- a/drivers/sensor/ams_iAQcore/iAQcore.c +++ b/drivers/sensor/ams_iAQcore/iAQcore.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/apds9960/apds9960.c b/drivers/sensor/apds9960/apds9960.c index 040c985b00b..ef99413c237 100644 --- a/drivers/sensor/apds9960/apds9960.c +++ b/drivers/sensor/apds9960/apds9960.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/bmc150_magn/bmc150_magn.c b/drivers/sensor/bmc150_magn/bmc150_magn.c index 00202bb771f..b31c7313e40 100644 --- a/drivers/sensor/bmc150_magn/bmc150_magn.c +++ b/drivers/sensor/bmc150_magn/bmc150_magn.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/bme280/bme280.c b/drivers/sensor/bme280/bme280.c index c60db045389..6d14df1375a 100644 --- a/drivers/sensor/bme280/bme280.c +++ b/drivers/sensor/bme280/bme280.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #ifdef DT_BOSCH_BME280_BUS_I2C diff --git a/drivers/sensor/bme680/bme680.c b/drivers/sensor/bme680/bme680.c index 03bf94005a0..b1d21d2c02d 100644 --- a/drivers/sensor/bme680/bme680.c +++ b/drivers/sensor/bme680/bme680.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/bmg160/bmg160.c b/drivers/sensor/bmg160/bmg160.c index bcde519c422..e5938191ecb 100644 --- a/drivers/sensor/bmg160/bmg160.c +++ b/drivers/sensor/bmg160/bmg160.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/sensor/bmi160/bmi160.c b/drivers/sensor/bmi160/bmi160.c index c4822a96485..6b577b078f7 100644 --- a/drivers/sensor/bmi160/bmi160.c +++ b/drivers/sensor/bmi160/bmi160.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/bmm150/bmm150.h b/drivers/sensor/bmm150/bmm150.h index dd532321902..48ca5e4c703 100644 --- a/drivers/sensor/bmm150/bmm150.h +++ b/drivers/sensor/bmm150/bmm150.h @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/ccs811/ccs811.c b/drivers/sensor/ccs811/ccs811.c index 3bb49765e81..26a4a0cc824 100644 --- a/drivers/sensor/ccs811/ccs811.c +++ b/drivers/sensor/ccs811/ccs811.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/dht/dht.c b/drivers/sensor/dht/dht.c index e454864bb6a..0dd29face34 100644 --- a/drivers/sensor/dht/dht.c +++ b/drivers/sensor/dht/dht.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/ens210/ens210.c b/drivers/sensor/ens210/ens210.c index a4a76b119f3..3728f842c3a 100644 --- a/drivers/sensor/ens210/ens210.c +++ b/drivers/sensor/ens210/ens210.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/hmc5883l/hmc5883l.c b/drivers/sensor/hmc5883l/hmc5883l.c index 22e2d23b6b4..7268b31c28a 100644 --- a/drivers/sensor/hmc5883l/hmc5883l.c +++ b/drivers/sensor/hmc5883l/hmc5883l.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/hp206c/hp206c.c b/drivers/sensor/hp206c/hp206c.c index edd3226eca9..c257b0ca582 100644 --- a/drivers/sensor/hp206c/hp206c.c +++ b/drivers/sensor/hp206c/hp206c.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/hts221/hts221.c b/drivers/sensor/hts221/hts221.c index c9a62e723eb..98a8e133e0c 100644 --- a/drivers/sensor/hts221/hts221.c +++ b/drivers/sensor/hts221/hts221.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/lis2dh/lis2dh.c b/drivers/sensor/lis2dh/lis2dh.c index c8dd03ea787..1bebf6cf39e 100644 --- a/drivers/sensor/lis2dh/lis2dh.c +++ b/drivers/sensor/lis2dh/lis2dh.c @@ -6,7 +6,7 @@ #include -#include +#include #include #include diff --git a/drivers/sensor/lis2ds12/lis2ds12.c b/drivers/sensor/lis2ds12/lis2ds12.c index 74c1f724791..19277ea2ad7 100644 --- a/drivers/sensor/lis2ds12/lis2ds12.c +++ b/drivers/sensor/lis2ds12/lis2ds12.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lis2dw12/lis2dw12.c b/drivers/sensor/lis2dw12/lis2dw12.c index c29bf343115..41a52f99efc 100644 --- a/drivers/sensor/lis2dw12/lis2dw12.c +++ b/drivers/sensor/lis2dw12/lis2dw12.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/sensor/lis2mdl/lis2mdl.c b/drivers/sensor/lis2mdl/lis2mdl.c index 1985c442dbf..b7aa589b0ba 100644 --- a/drivers/sensor/lis2mdl/lis2mdl.c +++ b/drivers/sensor/lis2mdl/lis2mdl.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/sensor/lis3mdl/lis3mdl.c b/drivers/sensor/lis3mdl/lis3mdl.c index cb909d4f712..875c0c7d434 100644 --- a/drivers/sensor/lis3mdl/lis3mdl.c +++ b/drivers/sensor/lis3mdl/lis3mdl.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/lps22hb/lps22hb.c b/drivers/sensor/lps22hb/lps22hb.c index 8a87eda1235..21ccf0fa067 100644 --- a/drivers/sensor/lps22hb/lps22hb.c +++ b/drivers/sensor/lps22hb/lps22hb.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lps25hb/lps25hb.c b/drivers/sensor/lps25hb/lps25hb.c index 0e4c45dbaba..62119f88500 100644 --- a/drivers/sensor/lps25hb/lps25hb.c +++ b/drivers/sensor/lps25hb/lps25hb.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lsm6ds0/lsm6ds0.c b/drivers/sensor/lsm6ds0/lsm6ds0.c index efe21a6c833..62d0935284f 100644 --- a/drivers/sensor/lsm6ds0/lsm6ds0.c +++ b/drivers/sensor/lsm6ds0/lsm6ds0.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lsm6dsl/lsm6dsl.c b/drivers/sensor/lsm6dsl/lsm6dsl.c index 1b8f4956a0c..61dcf96e661 100644 --- a/drivers/sensor/lsm6dsl/lsm6dsl.c +++ b/drivers/sensor/lsm6dsl/lsm6dsl.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro.c b/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro.c index 3394f46027d..0b60b4a1117 100644 --- a/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro.c +++ b/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro_trigger.c b/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro_trigger.c index 6dee38b5765..d7e0946e30b 100644 --- a/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro_trigger.c +++ b/drivers/sensor/lsm9ds0_gyro/lsm9ds0_gyro_trigger.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/lsm9ds0_mfd/lsm9ds0_mfd.c b/drivers/sensor/lsm9ds0_mfd/lsm9ds0_mfd.c index 09c5ac682cc..ae91c0b21fc 100644 --- a/drivers/sensor/lsm9ds0_mfd/lsm9ds0_mfd.c +++ b/drivers/sensor/lsm9ds0_mfd/lsm9ds0_mfd.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/mcp9808/mcp9808.c b/drivers/sensor/mcp9808/mcp9808.c index 847751269b4..b527850313c 100644 --- a/drivers/sensor/mcp9808/mcp9808.c +++ b/drivers/sensor/mcp9808/mcp9808.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/sensor/mcp9808/mcp9808_trigger.c b/drivers/sensor/mcp9808/mcp9808_trigger.c index 6bb12f32d50..62f2d2e806e 100644 --- a/drivers/sensor/mcp9808/mcp9808_trigger.c +++ b/drivers/sensor/mcp9808/mcp9808_trigger.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include "mcp9808.h" diff --git a/drivers/sensor/mpu6050/mpu6050.c b/drivers/sensor/mpu6050/mpu6050.c index f9850520979..6f3c4967b4c 100644 --- a/drivers/sensor/mpu6050/mpu6050.c +++ b/drivers/sensor/mpu6050/mpu6050.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/sensor/ms5837/ms5837.c b/drivers/sensor/ms5837/ms5837.c index 63a26bd3617..a474763588f 100644 --- a/drivers/sensor/ms5837/ms5837.c +++ b/drivers/sensor/ms5837/ms5837.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/sensor/th02/th02.c b/drivers/sensor/th02/th02.c index 7b15891a980..90135edc800 100644 --- a/drivers/sensor/th02/th02.c +++ b/drivers/sensor/th02/th02.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/tmp007/tmp007.c b/drivers/sensor/tmp007/tmp007.c index 8db1ecf3bc3..27be80c2d05 100644 --- a/drivers/sensor/tmp007/tmp007.c +++ b/drivers/sensor/tmp007/tmp007.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/sensor/tmp112/tmp112.c b/drivers/sensor/tmp112/tmp112.c index 02eb101b8a2..04cf2fd9d3b 100644 --- a/drivers/sensor/tmp112/tmp112.c +++ b/drivers/sensor/tmp112/tmp112.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/usb/device/usb_dc_dw.c b/drivers/usb/device/usb_dc_dw.c index 4eaf791c1d8..2e5f2431b8e 100644 --- a/drivers/usb/device/usb_dc_dw.c +++ b/drivers/usb/device/usb_dc_dw.c @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include "usb_dw_registers.h" #include diff --git a/drivers/usb/device/usb_dc_kinetis.c b/drivers/usb/device/usb_dc_kinetis.c index 2460f204584..2d292e56787 100644 --- a/drivers/usb/device/usb_dc_kinetis.c +++ b/drivers/usb/device/usb_dc_kinetis.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/usb/device/usb_dc_native_posix.c b/drivers/usb/device/usb_dc_native_posix.c index 28b0e7c4d99..c9ad45862b3 100644 --- a/drivers/usb/device/usb_dc_native_posix.c +++ b/drivers/usb/device/usb_dc_native_posix.c @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/misc/byteorder.h b/include/misc/byteorder.h index 6ed502f4b22..552c1be758e 100644 --- a/include/misc/byteorder.h +++ b/include/misc/byteorder.h @@ -1,328 +1,15 @@ -/** @file - * @brief Byte order helpers. - */ - /* - * Copyright (c) 2015-2016, Intel Corporation. + * Copyright (c) 2019 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ - #ifndef ZEPHYR_INCLUDE_MISC_BYTEORDER_H_ #define ZEPHYR_INCLUDE_MISC_BYTEORDER_H_ -#include -#include -#include - -/* Internal helpers only used by the sys_* APIs further below */ -#define __bswap_16(x) ((u16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) -#define __bswap_32(x) ((u32_t) ((((x) >> 24) & 0xff) | \ - (((x) >> 8) & 0xff00) | \ - (((x) & 0xff00) << 8) | \ - (((x) & 0xff) << 24))) -#define __bswap_64(x) ((u64_t) ((((x) >> 56) & 0xff) | \ - (((x) >> 40) & 0xff00) | \ - (((x) >> 24) & 0xff0000) | \ - (((x) >> 8) & 0xff000000) | \ - (((x) & 0xff000000) << 8) | \ - (((x) & 0xff0000) << 24) | \ - (((x) & 0xff00) << 40) | \ - (((x) & 0xff) << 56))) - -/** @def sys_le16_to_cpu - * @brief Convert 16-bit integer from little-endian to host endianness. - * - * @param val 16-bit integer in little-endian format. - * - * @return 16-bit integer in host endianness. - */ - -/** @def sys_cpu_to_le16 - * @brief Convert 16-bit integer from host endianness to little-endian. - * - * @param val 16-bit integer in host endianness. - * - * @return 16-bit integer in little-endian format. - */ - -/** @def sys_be16_to_cpu - * @brief Convert 16-bit integer from big-endian to host endianness. - * - * @param val 16-bit integer in big-endian format. - * - * @return 16-bit integer in host endianness. - */ - -/** @def sys_cpu_to_be16 - * @brief Convert 16-bit integer from host endianness to big-endian. - * - * @param val 16-bit integer in host endianness. - * - * @return 16-bit integer in big-endian format. - */ - -/** @def sys_le32_to_cpu - * @brief Convert 32-bit integer from little-endian to host endianness. - * - * @param val 32-bit integer in little-endian format. - * - * @return 32-bit integer in host endianness. - */ - -/** @def sys_cpu_to_le32 - * @brief Convert 32-bit integer from host endianness to little-endian. - * - * @param val 32-bit integer in host endianness. - * - * @return 32-bit integer in little-endian format. - */ - -/** @def sys_be32_to_cpu - * @brief Convert 32-bit integer from big-endian to host endianness. - * - * @param val 32-bit integer in big-endian format. - * - * @return 32-bit integer in host endianness. - */ - -/** @def sys_cpu_to_be32 - * @brief Convert 32-bit integer from host endianness to big-endian. - * - * @param val 32-bit integer in host endianness. - * - * @return 32-bit integer in big-endian format. - */ - -#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -#define sys_le16_to_cpu(val) (val) -#define sys_cpu_to_le16(val) (val) -#define sys_be16_to_cpu(val) __bswap_16(val) -#define sys_cpu_to_be16(val) __bswap_16(val) -#define sys_le32_to_cpu(val) (val) -#define sys_cpu_to_le32(val) (val) -#define sys_le64_to_cpu(val) (val) -#define sys_cpu_to_le64(val) (val) -#define sys_be32_to_cpu(val) __bswap_32(val) -#define sys_cpu_to_be32(val) __bswap_32(val) -#define sys_be64_to_cpu(val) __bswap_64(val) -#define sys_cpu_to_be64(val) __bswap_64(val) -#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -#define sys_le16_to_cpu(val) __bswap_16(val) -#define sys_cpu_to_le16(val) __bswap_16(val) -#define sys_be16_to_cpu(val) (val) -#define sys_cpu_to_be16(val) (val) -#define sys_le32_to_cpu(val) __bswap_32(val) -#define sys_cpu_to_le32(val) __bswap_32(val) -#define sys_le64_to_cpu(val) __bswap_64(val) -#define sys_cpu_to_le64(val) __bswap_64(val) -#define sys_be32_to_cpu(val) (val) -#define sys_cpu_to_be32(val) (val) -#define sys_be64_to_cpu(val) (val) -#define sys_cpu_to_be64(val) (val) -#else -#error "Unknown byte order" +#ifndef CONFIG_COMPAT_INCLUDES +#warning "This header file has moved, include instead." #endif -/** - * @brief Put a 16-bit integer as big-endian to arbitrary location. - * - * Put a 16-bit integer, originally in host endianness, to a - * potentially unaligned memory location in big-endian format. - * - * @param val 16-bit integer in host endianness. - * @param dst Destination memory address to store the result. - */ -static inline void sys_put_be16(u16_t val, u8_t dst[2]) -{ - dst[0] = val >> 8; - dst[1] = val; -} - -/** - * @brief Put a 32-bit integer as big-endian to arbitrary location. - * - * Put a 32-bit integer, originally in host endianness, to a - * potentially unaligned memory location in big-endian format. - * - * @param val 32-bit integer in host endianness. - * @param dst Destination memory address to store the result. - */ -static inline void sys_put_be32(u32_t val, u8_t dst[4]) -{ - sys_put_be16(val >> 16, dst); - sys_put_be16(val, &dst[2]); -} - -/** - * @brief Put a 16-bit integer as little-endian to arbitrary location. - * - * Put a 16-bit integer, originally in host endianness, to a - * potentially unaligned memory location in little-endian format. - * - * @param val 16-bit integer in host endianness. - * @param dst Destination memory address to store the result. - */ -static inline void sys_put_le16(u16_t val, u8_t dst[2]) -{ - dst[0] = val; - dst[1] = val >> 8; -} - -/** - * @brief Put a 32-bit integer as little-endian to arbitrary location. - * - * Put a 32-bit integer, originally in host endianness, to a - * potentially unaligned memory location in little-endian format. - * - * @param val 32-bit integer in host endianness. - * @param dst Destination memory address to store the result. - */ -static inline void sys_put_le32(u32_t val, u8_t dst[4]) -{ - sys_put_le16(val, dst); - sys_put_le16(val >> 16, &dst[2]); -} - -/** - * @brief Put a 64-bit integer as little-endian to arbitrary location. - * - * Put a 64-bit integer, originally in host endianness, to a - * potentially unaligned memory location in little-endian format. - * - * @param val 64-bit integer in host endianness. - * @param dst Destination memory address to store the result. - */ -static inline void sys_put_le64(u64_t val, u8_t dst[8]) -{ - sys_put_le32(val, dst); - sys_put_le32(val >> 32, &dst[4]); -} - -/** - * @brief Get a 16-bit integer stored in big-endian format. - * - * Get a 16-bit integer, stored in big-endian format in a potentially - * unaligned memory location, and convert it to the host endianness. - * - * @param src Location of the big-endian 16-bit integer to get. - * - * @return 16-bit integer in host endianness. - */ -static inline u16_t sys_get_be16(const u8_t src[2]) -{ - return ((u16_t)src[0] << 8) | src[1]; -} - -/** - * @brief Get a 32-bit integer stored in big-endian format. - * - * Get a 32-bit integer, stored in big-endian format in a potentially - * unaligned memory location, and convert it to the host endianness. - * - * @param src Location of the big-endian 32-bit integer to get. - * - * @return 32-bit integer in host endianness. - */ -static inline u32_t sys_get_be32(const u8_t src[4]) -{ - return ((u32_t)sys_get_be16(&src[0]) << 16) | sys_get_be16(&src[2]); -} - -/** - * @brief Get a 16-bit integer stored in little-endian format. - * - * Get a 16-bit integer, stored in little-endian format in a potentially - * unaligned memory location, and convert it to the host endianness. - * - * @param src Location of the little-endian 16-bit integer to get. - * - * @return 16-bit integer in host endianness. - */ -static inline u16_t sys_get_le16(const u8_t src[2]) -{ - return ((u16_t)src[1] << 8) | src[0]; -} - -/** - * @brief Get a 32-bit integer stored in little-endian format. - * - * Get a 32-bit integer, stored in little-endian format in a potentially - * unaligned memory location, and convert it to the host endianness. - * - * @param src Location of the little-endian 32-bit integer to get. - * - * @return 32-bit integer in host endianness. - */ -static inline u32_t sys_get_le32(const u8_t src[4]) -{ - return ((u32_t)sys_get_le16(&src[2]) << 16) | sys_get_le16(&src[0]); -} - -/** - * @brief Get a 64-bit integer stored in little-endian format. - * - * Get a 64-bit integer, stored in little-endian format in a potentially - * unaligned memory location, and convert it to the host endianness. - * - * @param src Location of the little-endian 64-bit integer to get. - * - * @return 64-bit integer in host endianness. - */ -static inline u64_t sys_get_le64(const u8_t src[8]) -{ - return ((u64_t)sys_get_le32(&src[4]) << 32) | sys_get_le32(&src[0]); -} - -/** - * @brief Swap one buffer content into another - * - * Copy the content of src buffer into dst buffer in reversed order, - * i.e.: src[n] will be put in dst[end-n] - * Where n is an index and 'end' the last index in both arrays. - * The 2 memory pointers must be pointing to different areas, and have - * a minimum size of given length. - * - * @param dst A valid pointer on a memory area where to copy the data in - * @param src A valid pointer on a memory area where to copy the data from - * @param length Size of both dst and src memory areas - */ -static inline void sys_memcpy_swap(void *dst, const void *src, size_t length) -{ - u8_t *pdst = (u8_t *)dst; - const u8_t *psrc = (const u8_t *)src; - - __ASSERT(((psrc < pdst && (psrc + length) <= pdst) || - (psrc > pdst && (pdst + length) <= psrc)), - "Source and destination buffers must not overlap"); - - psrc += length - 1; - - for (; length > 0; length--) { - *pdst++ = *psrc--; - } -} - -/** - * @brief Swap buffer content - * - * In-place memory swap, where final content will be reversed. - * I.e.: buf[n] will be put in buf[end-n] - * Where n is an index and 'end' the last index of buf. - * - * @param buf A valid pointer on a memory area to swap - * @param length Size of buf memory area - */ -static inline void sys_mem_swap(void *buf, size_t length) -{ - size_t i; - - for (i = 0; i < (length/2); i++) { - u8_t tmp = ((u8_t *)buf)[i]; - - ((u8_t *)buf)[i] = ((u8_t *)buf)[length - 1 - i]; - ((u8_t *)buf)[length - 1 - i] = tmp; - } -} +#include #endif /* ZEPHYR_INCLUDE_MISC_BYTEORDER_H_ */ diff --git a/include/net/net_ip.h b/include/net/net_ip.h index 72795b190c0..04412cc117b 100644 --- a/include/net/net_ip.h +++ b/include/net/net_ip.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/sys/byteorder.h b/include/sys/byteorder.h new file mode 100644 index 00000000000..33135f398fb --- /dev/null +++ b/include/sys/byteorder.h @@ -0,0 +1,328 @@ +/** @file + * @brief Byte order helpers. + */ + +/* + * Copyright (c) 2015-2016, Intel Corporation. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef ZEPHYR_INCLUDE_SYS_BYTEORDER_H_ +#define ZEPHYR_INCLUDE_SYS_BYTEORDER_H_ + +#include +#include +#include + +/* Internal helpers only used by the sys_* APIs further below */ +#define __bswap_16(x) ((u16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) +#define __bswap_32(x) ((u32_t) ((((x) >> 24) & 0xff) | \ + (((x) >> 8) & 0xff00) | \ + (((x) & 0xff00) << 8) | \ + (((x) & 0xff) << 24))) +#define __bswap_64(x) ((u64_t) ((((x) >> 56) & 0xff) | \ + (((x) >> 40) & 0xff00) | \ + (((x) >> 24) & 0xff0000) | \ + (((x) >> 8) & 0xff000000) | \ + (((x) & 0xff000000) << 8) | \ + (((x) & 0xff0000) << 24) | \ + (((x) & 0xff00) << 40) | \ + (((x) & 0xff) << 56))) + +/** @def sys_le16_to_cpu + * @brief Convert 16-bit integer from little-endian to host endianness. + * + * @param val 16-bit integer in little-endian format. + * + * @return 16-bit integer in host endianness. + */ + +/** @def sys_cpu_to_le16 + * @brief Convert 16-bit integer from host endianness to little-endian. + * + * @param val 16-bit integer in host endianness. + * + * @return 16-bit integer in little-endian format. + */ + +/** @def sys_be16_to_cpu + * @brief Convert 16-bit integer from big-endian to host endianness. + * + * @param val 16-bit integer in big-endian format. + * + * @return 16-bit integer in host endianness. + */ + +/** @def sys_cpu_to_be16 + * @brief Convert 16-bit integer from host endianness to big-endian. + * + * @param val 16-bit integer in host endianness. + * + * @return 16-bit integer in big-endian format. + */ + +/** @def sys_le32_to_cpu + * @brief Convert 32-bit integer from little-endian to host endianness. + * + * @param val 32-bit integer in little-endian format. + * + * @return 32-bit integer in host endianness. + */ + +/** @def sys_cpu_to_le32 + * @brief Convert 32-bit integer from host endianness to little-endian. + * + * @param val 32-bit integer in host endianness. + * + * @return 32-bit integer in little-endian format. + */ + +/** @def sys_be32_to_cpu + * @brief Convert 32-bit integer from big-endian to host endianness. + * + * @param val 32-bit integer in big-endian format. + * + * @return 32-bit integer in host endianness. + */ + +/** @def sys_cpu_to_be32 + * @brief Convert 32-bit integer from host endianness to big-endian. + * + * @param val 32-bit integer in host endianness. + * + * @return 32-bit integer in big-endian format. + */ + +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +#define sys_le16_to_cpu(val) (val) +#define sys_cpu_to_le16(val) (val) +#define sys_be16_to_cpu(val) __bswap_16(val) +#define sys_cpu_to_be16(val) __bswap_16(val) +#define sys_le32_to_cpu(val) (val) +#define sys_cpu_to_le32(val) (val) +#define sys_le64_to_cpu(val) (val) +#define sys_cpu_to_le64(val) (val) +#define sys_be32_to_cpu(val) __bswap_32(val) +#define sys_cpu_to_be32(val) __bswap_32(val) +#define sys_be64_to_cpu(val) __bswap_64(val) +#define sys_cpu_to_be64(val) __bswap_64(val) +#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#define sys_le16_to_cpu(val) __bswap_16(val) +#define sys_cpu_to_le16(val) __bswap_16(val) +#define sys_be16_to_cpu(val) (val) +#define sys_cpu_to_be16(val) (val) +#define sys_le32_to_cpu(val) __bswap_32(val) +#define sys_cpu_to_le32(val) __bswap_32(val) +#define sys_le64_to_cpu(val) __bswap_64(val) +#define sys_cpu_to_le64(val) __bswap_64(val) +#define sys_be32_to_cpu(val) (val) +#define sys_cpu_to_be32(val) (val) +#define sys_be64_to_cpu(val) (val) +#define sys_cpu_to_be64(val) (val) +#else +#error "Unknown byte order" +#endif + +/** + * @brief Put a 16-bit integer as big-endian to arbitrary location. + * + * Put a 16-bit integer, originally in host endianness, to a + * potentially unaligned memory location in big-endian format. + * + * @param val 16-bit integer in host endianness. + * @param dst Destination memory address to store the result. + */ +static inline void sys_put_be16(u16_t val, u8_t dst[2]) +{ + dst[0] = val >> 8; + dst[1] = val; +} + +/** + * @brief Put a 32-bit integer as big-endian to arbitrary location. + * + * Put a 32-bit integer, originally in host endianness, to a + * potentially unaligned memory location in big-endian format. + * + * @param val 32-bit integer in host endianness. + * @param dst Destination memory address to store the result. + */ +static inline void sys_put_be32(u32_t val, u8_t dst[4]) +{ + sys_put_be16(val >> 16, dst); + sys_put_be16(val, &dst[2]); +} + +/** + * @brief Put a 16-bit integer as little-endian to arbitrary location. + * + * Put a 16-bit integer, originally in host endianness, to a + * potentially unaligned memory location in little-endian format. + * + * @param val 16-bit integer in host endianness. + * @param dst Destination memory address to store the result. + */ +static inline void sys_put_le16(u16_t val, u8_t dst[2]) +{ + dst[0] = val; + dst[1] = val >> 8; +} + +/** + * @brief Put a 32-bit integer as little-endian to arbitrary location. + * + * Put a 32-bit integer, originally in host endianness, to a + * potentially unaligned memory location in little-endian format. + * + * @param val 32-bit integer in host endianness. + * @param dst Destination memory address to store the result. + */ +static inline void sys_put_le32(u32_t val, u8_t dst[4]) +{ + sys_put_le16(val, dst); + sys_put_le16(val >> 16, &dst[2]); +} + +/** + * @brief Put a 64-bit integer as little-endian to arbitrary location. + * + * Put a 64-bit integer, originally in host endianness, to a + * potentially unaligned memory location in little-endian format. + * + * @param val 64-bit integer in host endianness. + * @param dst Destination memory address to store the result. + */ +static inline void sys_put_le64(u64_t val, u8_t dst[8]) +{ + sys_put_le32(val, dst); + sys_put_le32(val >> 32, &dst[4]); +} + +/** + * @brief Get a 16-bit integer stored in big-endian format. + * + * Get a 16-bit integer, stored in big-endian format in a potentially + * unaligned memory location, and convert it to the host endianness. + * + * @param src Location of the big-endian 16-bit integer to get. + * + * @return 16-bit integer in host endianness. + */ +static inline u16_t sys_get_be16(const u8_t src[2]) +{ + return ((u16_t)src[0] << 8) | src[1]; +} + +/** + * @brief Get a 32-bit integer stored in big-endian format. + * + * Get a 32-bit integer, stored in big-endian format in a potentially + * unaligned memory location, and convert it to the host endianness. + * + * @param src Location of the big-endian 32-bit integer to get. + * + * @return 32-bit integer in host endianness. + */ +static inline u32_t sys_get_be32(const u8_t src[4]) +{ + return ((u32_t)sys_get_be16(&src[0]) << 16) | sys_get_be16(&src[2]); +} + +/** + * @brief Get a 16-bit integer stored in little-endian format. + * + * Get a 16-bit integer, stored in little-endian format in a potentially + * unaligned memory location, and convert it to the host endianness. + * + * @param src Location of the little-endian 16-bit integer to get. + * + * @return 16-bit integer in host endianness. + */ +static inline u16_t sys_get_le16(const u8_t src[2]) +{ + return ((u16_t)src[1] << 8) | src[0]; +} + +/** + * @brief Get a 32-bit integer stored in little-endian format. + * + * Get a 32-bit integer, stored in little-endian format in a potentially + * unaligned memory location, and convert it to the host endianness. + * + * @param src Location of the little-endian 32-bit integer to get. + * + * @return 32-bit integer in host endianness. + */ +static inline u32_t sys_get_le32(const u8_t src[4]) +{ + return ((u32_t)sys_get_le16(&src[2]) << 16) | sys_get_le16(&src[0]); +} + +/** + * @brief Get a 64-bit integer stored in little-endian format. + * + * Get a 64-bit integer, stored in little-endian format in a potentially + * unaligned memory location, and convert it to the host endianness. + * + * @param src Location of the little-endian 64-bit integer to get. + * + * @return 64-bit integer in host endianness. + */ +static inline u64_t sys_get_le64(const u8_t src[8]) +{ + return ((u64_t)sys_get_le32(&src[4]) << 32) | sys_get_le32(&src[0]); +} + +/** + * @brief Swap one buffer content into another + * + * Copy the content of src buffer into dst buffer in reversed order, + * i.e.: src[n] will be put in dst[end-n] + * Where n is an index and 'end' the last index in both arrays. + * The 2 memory pointers must be pointing to different areas, and have + * a minimum size of given length. + * + * @param dst A valid pointer on a memory area where to copy the data in + * @param src A valid pointer on a memory area where to copy the data from + * @param length Size of both dst and src memory areas + */ +static inline void sys_memcpy_swap(void *dst, const void *src, size_t length) +{ + u8_t *pdst = (u8_t *)dst; + const u8_t *psrc = (const u8_t *)src; + + __ASSERT(((psrc < pdst && (psrc + length) <= pdst) || + (psrc > pdst && (pdst + length) <= psrc)), + "Source and destination buffers must not overlap"); + + psrc += length - 1; + + for (; length > 0; length--) { + *pdst++ = *psrc--; + } +} + +/** + * @brief Swap buffer content + * + * In-place memory swap, where final content will be reversed. + * I.e.: buf[n] will be put in buf[end-n] + * Where n is an index and 'end' the last index of buf. + * + * @param buf A valid pointer on a memory area to swap + * @param length Size of buf memory area + */ +static inline void sys_mem_swap(void *buf, size_t length) +{ + size_t i; + + for (i = 0; i < (length/2); i++) { + u8_t tmp = ((u8_t *)buf)[i]; + + ((u8_t *)buf)[i] = ((u8_t *)buf)[length - 1 - i]; + ((u8_t *)buf)[length - 1 - i] = tmp; + } +} + +#endif /* ZEPHYR_INCLUDE_SYS_BYTEORDER_H_ */ diff --git a/samples/bluetooth/central/src/main.c b/samples/bluetooth/central/src/main.c index 346faaf3676..c93bcb9e229 100644 --- a/samples/bluetooth/central/src/main.c +++ b/samples/bluetooth/central/src/main.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include static struct bt_conn *default_conn; diff --git a/samples/bluetooth/central_hr/src/main.c b/samples/bluetooth/central_hr/src/main.c index 3e935fd9cf0..7231f40c76b 100644 --- a/samples/bluetooth/central_hr/src/main.c +++ b/samples/bluetooth/central_hr/src/main.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include static struct bt_conn *default_conn; diff --git a/samples/bluetooth/eddystone/src/main.c b/samples/bluetooth/eddystone/src/main.c index 15951cc90f4..a65971a64b2 100644 --- a/samples/bluetooth/eddystone/src/main.c +++ b/samples/bluetooth/eddystone/src/main.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/gatt/bas.c b/samples/bluetooth/gatt/bas.c index 6da25d42f88..6cf02796249 100644 --- a/samples/bluetooth/gatt/bas.c +++ b/samples/bluetooth/gatt/bas.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/gatt/cts.c b/samples/bluetooth/gatt/cts.c index 7076433e815..1404b456173 100644 --- a/samples/bluetooth/gatt/cts.c +++ b/samples/bluetooth/gatt/cts.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/gatt/hog.c b/samples/bluetooth/gatt/hog.c index 6ee2ff3c6c2..793dabcd5f8 100644 --- a/samples/bluetooth/gatt/hog.c +++ b/samples/bluetooth/gatt/hog.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/gatt/hrs.c b/samples/bluetooth/gatt/hrs.c index e841c94d285..4baca1c3af4 100644 --- a/samples/bluetooth/gatt/hrs.c +++ b/samples/bluetooth/gatt/hrs.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/gatt/ipss.c b/samples/bluetooth/gatt/ipss.c index 2a5c152b119..36f08c139e7 100644 --- a/samples/bluetooth/gatt/ipss.c +++ b/samples/bluetooth/gatt/ipss.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/handsfree/src/main.c b/samples/bluetooth/handsfree/src/main.c index 2f3a00a6a3f..897800af219 100644 --- a/samples/bluetooth/handsfree/src/main.c +++ b/samples/bluetooth/handsfree/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/hci_spi/src/main.c b/samples/bluetooth/hci_spi/src/main.c index 6639bb7c8fe..7387975c0cf 100644 --- a/samples/bluetooth/hci_spi/src/main.c +++ b/samples/bluetooth/hci_spi/src/main.c @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/samples/bluetooth/hci_uart/src/main.c b/samples/bluetooth/hci_uart/src/main.c index 17f19ccebc3..f7adf0c8a2c 100644 --- a/samples/bluetooth/hci_uart/src/main.c +++ b/samples/bluetooth/hci_uart/src/main.c @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral/src/main.c b/samples/bluetooth/peripheral/src/main.c index 0baecc759be..02368defba5 100644 --- a/samples/bluetooth/peripheral/src/main.c +++ b/samples/bluetooth/peripheral/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_csc/src/main.c b/samples/bluetooth/peripheral_csc/src/main.c index 30530863982..ee42be752db 100644 --- a/samples/bluetooth/peripheral_csc/src/main.c +++ b/samples/bluetooth/peripheral_csc/src/main.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_dis/src/main.c b/samples/bluetooth/peripheral_dis/src/main.c index e9397e3966d..511d34caa8a 100644 --- a/samples/bluetooth/peripheral_dis/src/main.c +++ b/samples/bluetooth/peripheral_dis/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_esp/src/main.c b/samples/bluetooth/peripheral_esp/src/main.c index 70f213ab421..3a44949927e 100644 --- a/samples/bluetooth/peripheral_esp/src/main.c +++ b/samples/bluetooth/peripheral_esp/src/main.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_hids/src/main.c b/samples/bluetooth/peripheral_hids/src/main.c index 194a07103ab..f38d7f6516d 100644 --- a/samples/bluetooth/peripheral_hids/src/main.c +++ b/samples/bluetooth/peripheral_hids/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_hr/src/main.c b/samples/bluetooth/peripheral_hr/src/main.c index 70c276c8beb..733dd04e803 100644 --- a/samples/bluetooth/peripheral_hr/src/main.c +++ b/samples/bluetooth/peripheral_hr/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/bluetooth/peripheral_sc_only/src/main.c b/samples/bluetooth/peripheral_sc_only/src/main.c index 9c817b2cbdc..78e177545d2 100644 --- a/samples/bluetooth/peripheral_sc_only/src/main.c +++ b/samples/bluetooth/peripheral_sc_only/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/samples/boards/arduino_101/environmental_sensing/ap/src/main.c b/samples/boards/arduino_101/environmental_sensing/ap/src/main.c index b0c71297dc4..ffc2f3e69b2 100644 --- a/samples/boards/arduino_101/environmental_sensing/ap/src/main.c +++ b/samples/boards/arduino_101/environmental_sensing/ap/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/samples/boards/nrf52/mesh/onoff-app/src/main.c b/samples/boards/nrf52/mesh/onoff-app/src/main.c index dc3f7530482..ebd273d9b69 100644 --- a/samples/boards/nrf52/mesh/onoff-app/src/main.c +++ b/samples/boards/nrf52/mesh/onoff-app/src/main.c @@ -38,7 +38,7 @@ #include #include -#include +#include #include #include #include diff --git a/samples/net/sockets/coap_client/src/coap-client.c b/samples/net/sockets/coap_client/src/coap-client.c index e3f9876d304..9667e71e506 100644 --- a/samples/net/sockets/coap_client/src/coap-client.c +++ b/samples/net/sockets/coap_client/src/coap-client.c @@ -9,7 +9,7 @@ LOG_MODULE_REGISTER(net_coap_client_sample, LOG_LEVEL_DBG); #include #include -#include +#include #include #include diff --git a/samples/net/sockets/coap_server/src/coap-server.c b/samples/net/sockets/coap_server/src/coap-server.c index 94954459ffc..b0997c69886 100644 --- a/samples/net/sockets/coap_server/src/coap-server.c +++ b/samples/net/sockets/coap_server/src/coap-server.c @@ -9,7 +9,7 @@ LOG_MODULE_REGISTER(net_coap_server_sample, LOG_LEVEL_DBG); #include #include -#include +#include #include #include diff --git a/samples/nfc/nfc_hello/src/main.c b/samples/nfc/nfc_hello/src/main.c index 06bf7a7b50e..e6666827a20 100644 --- a/samples/nfc/nfc_hello/src/main.c +++ b/samples/nfc/nfc_hello/src/main.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #define BUF_MAXSIZE 256 #define SLEEP_TIME 500 diff --git a/samples/subsys/usb/webusb/src/main.c b/samples/subsys/usb/webusb/src/main.c index f211857113a..111da28e38c 100644 --- a/samples/subsys/usb/webusb/src/main.c +++ b/samples/subsys/usb/webusb/src/main.c @@ -17,7 +17,7 @@ #include LOG_MODULE_REGISTER(main); -#include +#include #include #include #include diff --git a/samples/subsys/usb/webusb/src/webusb.c b/samples/subsys/usb/webusb/src/webusb.c index 4020c7af12a..397ccca1ae3 100644 --- a/samples/subsys/usb/webusb/src/webusb.c +++ b/samples/subsys/usb/webusb/src/webusb.c @@ -16,7 +16,7 @@ #include LOG_MODULE_REGISTER(webusb); -#include +#include #include #include #include diff --git a/subsys/bluetooth/common/rpa.c b/subsys/bluetooth/common/rpa.c index 0e97c52d4e1..6d1ada49dcc 100644 --- a/subsys/bluetooth/common/rpa.c +++ b/subsys/bluetooth/common/rpa.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 3b5ec441e20..0ef8cd89f52 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include "util/util.h" diff --git a/subsys/bluetooth/controller/hci/hci_driver.c b/subsys/bluetooth/controller/hci/hci_driver.c index 325d8940478..ab2eda3f415 100644 --- a/subsys/bluetooth/controller/hci/hci_driver.c +++ b/subsys/bluetooth/controller/hci/hci_driver.c @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index feca52ffa84..073e1939305 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include "ll.h" #include "ll_feat.h" diff --git a/subsys/bluetooth/controller/ll_sw/ll_filter.c b/subsys/bluetooth/controller/ll_sw/ll_filter.c index 8ac4f8231c4..1e61009b356 100644 --- a/subsys/bluetooth/controller/ll_sw/ll_filter.c +++ b/subsys/bluetooth/controller/ll_sw/ll_filter.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include "util/util.h" diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c index a118484154f..2dba421c46d 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c index 3c64ed5bdb7..c8b37f4c8a8 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include "hal/ccm.h" #include "hal/radio.h" diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index 2dad78d9039..c9561825edf 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include "hal/ecb.h" #include "hal/ccm.h" diff --git a/subsys/bluetooth/controller/ll_sw/ull_filter.c b/subsys/bluetooth/controller/ll_sw/ull_filter.c index afd4b32b694..a1e8e09c43b 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_filter.c +++ b/subsys/bluetooth/controller/ll_sw/ull_filter.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include "hal/ccm.h" diff --git a/subsys/bluetooth/controller/ll_sw/ull_master.c b/subsys/bluetooth/controller/ll_sw/ull_master.c index 4a173f6b89a..40887f474f8 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_master.c +++ b/subsys/bluetooth/controller/ll_sw/ull_master.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include "util/util.h" #include "util/memq.h" diff --git a/subsys/bluetooth/controller/ll_sw/ull_slave.c b/subsys/bluetooth/controller/ll_sw/ull_slave.c index d1f1fce885b..541056a182e 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_slave.c +++ b/subsys/bluetooth/controller/ll_sw/ull_slave.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include "util/util.h" #include "util/memq.h" diff --git a/subsys/bluetooth/host/a2dp.c b/subsys/bluetooth/host/a2dp.c index c45b5a4e476..1c18faf1390 100644 --- a/subsys/bluetooth/host/a2dp.c +++ b/subsys/bluetooth/host/a2dp.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/bluetooth/host/att.c b/subsys/bluetooth/host/att.c index c00b8a92d1e..76f73b75221 100644 --- a/subsys/bluetooth/host/att.c +++ b/subsys/bluetooth/host/att.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/avdtp.c b/subsys/bluetooth/host/avdtp.c index db20944c8cc..59b8caa8c21 100644 --- a/subsys/bluetooth/host/avdtp.c +++ b/subsys/bluetooth/host/avdtp.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c index c42c99eb2ad..04cf1665ed7 100644 --- a/subsys/bluetooth/host/conn.c +++ b/subsys/bluetooth/host/conn.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/bluetooth/host/crypto.c b/subsys/bluetooth/host/crypto.c index 006c8c77148..e614841c290 100644 --- a/subsys/bluetooth/host/crypto.c +++ b/subsys/bluetooth/host/crypto.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index a959c3ab7be..5a5bd4a0b28 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 9c5a72fa69a..1d4b5d3b718 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/bluetooth/host/hci_ecc.c b/subsys/bluetooth/host/hci_ecc.c index 51e8a667f59..ccb22aebce3 100644 --- a/subsys/bluetooth/host/hci_ecc.c +++ b/subsys/bluetooth/host/hci_ecc.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/bluetooth/host/hfp_hf.c b/subsys/bluetooth/host/hfp_hf.c index 6e23280233f..5ca98562368 100644 --- a/subsys/bluetooth/host/hfp_hf.c +++ b/subsys/bluetooth/host/hfp_hf.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/l2cap.c b/subsys/bluetooth/host/l2cap.c index c3ab76393bd..80a633809c3 100644 --- a/subsys/bluetooth/host/l2cap.c +++ b/subsys/bluetooth/host/l2cap.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/l2cap_br.c b/subsys/bluetooth/host/l2cap_br.c index e37b6f494a5..a759ec4840d 100644 --- a/subsys/bluetooth/host/l2cap_br.c +++ b/subsys/bluetooth/host/l2cap_br.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/access.c b/subsys/bluetooth/host/mesh/access.c index f41d5f103f9..df14a2c494b 100644 --- a/subsys/bluetooth/host/mesh/access.c +++ b/subsys/bluetooth/host/mesh/access.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/cfg_cli.c b/subsys/bluetooth/host/mesh/cfg_cli.c index 0061a09d66e..7438b35c948 100644 --- a/subsys/bluetooth/host/mesh/cfg_cli.c +++ b/subsys/bluetooth/host/mesh/cfg_cli.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/cfg_srv.c b/subsys/bluetooth/host/mesh/cfg_srv.c index 69841380940..cd4bcb680e4 100644 --- a/subsys/bluetooth/host/mesh/cfg_srv.c +++ b/subsys/bluetooth/host/mesh/cfg_srv.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/crypto.c b/subsys/bluetooth/host/mesh/crypto.c index a02cc52155b..af5fcd3b73c 100644 --- a/subsys/bluetooth/host/mesh/crypto.c +++ b/subsys/bluetooth/host/mesh/crypto.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/foundation.h b/subsys/bluetooth/host/mesh/foundation.h index 16004e6b18d..000087dd6e7 100644 --- a/subsys/bluetooth/host/mesh/foundation.h +++ b/subsys/bluetooth/host/mesh/foundation.h @@ -143,7 +143,7 @@ void bt_mesh_subnet_del(struct bt_mesh_subnet *sub, bool store); struct bt_mesh_app_key *bt_mesh_app_key_alloc(u16_t app_idx); void bt_mesh_app_key_del(struct bt_mesh_app_key *key, bool store); -#include +#include static inline void key_idx_pack(struct net_buf_simple *buf, u16_t idx1, u16_t idx2) diff --git a/subsys/bluetooth/host/mesh/friend.c b/subsys/bluetooth/host/mesh/friend.c index 9281b32e915..3a7da4bb568 100644 --- a/subsys/bluetooth/host/mesh/friend.c +++ b/subsys/bluetooth/host/mesh/friend.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/health_cli.c b/subsys/bluetooth/host/mesh/health_cli.c index b251e965422..31450ca6b14 100644 --- a/subsys/bluetooth/host/mesh/health_cli.c +++ b/subsys/bluetooth/host/mesh/health_cli.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/health_srv.c b/subsys/bluetooth/host/mesh/health_srv.c index 62abf44ca43..a8ae22fb4dc 100644 --- a/subsys/bluetooth/host/mesh/health_srv.c +++ b/subsys/bluetooth/host/mesh/health_srv.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/lpn.c b/subsys/bluetooth/host/mesh/lpn.c index caca3f0f70f..28c01939c33 100644 --- a/subsys/bluetooth/host/mesh/lpn.c +++ b/subsys/bluetooth/host/mesh/lpn.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/net.c b/subsys/bluetooth/host/mesh/net.c index 085aaeb39da..a6014ac05dc 100644 --- a/subsys/bluetooth/host/mesh/net.c +++ b/subsys/bluetooth/host/mesh/net.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/prov.c b/subsys/bluetooth/host/mesh/prov.c index f56b45561fc..feb16c22194 100644 --- a/subsys/bluetooth/host/mesh/prov.c +++ b/subsys/bluetooth/host/mesh/prov.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/proxy.c b/subsys/bluetooth/host/mesh/proxy.c index 21ef163c7a2..c6cccc27789 100644 --- a/subsys/bluetooth/host/mesh/proxy.c +++ b/subsys/bluetooth/host/mesh/proxy.c @@ -7,7 +7,7 @@ */ #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/mesh/settings.c b/subsys/bluetooth/host/mesh/settings.c index d2b69cb5a09..2ec43de9cf1 100644 --- a/subsys/bluetooth/host/mesh/settings.c +++ b/subsys/bluetooth/host/mesh/settings.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include diff --git a/subsys/bluetooth/host/mesh/transport.c b/subsys/bluetooth/host/mesh/transport.c index 74f2f9521c9..b1a565d4d23 100644 --- a/subsys/bluetooth/host/mesh/transport.c +++ b/subsys/bluetooth/host/mesh/transport.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include diff --git a/subsys/bluetooth/host/monitor.c b/subsys/bluetooth/host/monitor.c index 12453ca83d2..9c12cc19eeb 100644 --- a/subsys/bluetooth/host/monitor.c +++ b/subsys/bluetooth/host/monitor.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/rfcomm.c b/subsys/bluetooth/host/rfcomm.c index c44ee3bdd6d..cea1715c4c8 100644 --- a/subsys/bluetooth/host/rfcomm.c +++ b/subsys/bluetooth/host/rfcomm.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/sdp.c b/subsys/bluetooth/host/sdp.c index 6fc43702b9e..b78262a0885 100644 --- a/subsys/bluetooth/host/sdp.c +++ b/subsys/bluetooth/host/sdp.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/smp.c b/subsys/bluetooth/host/smp.c index c1b110736f5..72b0cbe0bd6 100644 --- a/subsys/bluetooth/host/smp.c +++ b/subsys/bluetooth/host/smp.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/host/uuid.c b/subsys/bluetooth/host/uuid.c index e6304429c15..9b58bb5bf05 100644 --- a/subsys/bluetooth/host/uuid.c +++ b/subsys/bluetooth/host/uuid.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/bredr.c b/subsys/bluetooth/shell/bredr.c index 545cfc6fd29..aa50f76c778 100644 --- a/subsys/bluetooth/shell/bredr.c +++ b/subsys/bluetooth/shell/bredr.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/bt.c b/subsys/bluetooth/shell/bt.c index eabb6f52632..ff860f3978a 100644 --- a/subsys/bluetooth/shell/bt.c +++ b/subsys/bluetooth/shell/bt.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/gatt.c b/subsys/bluetooth/shell/gatt.c index 719083fabfb..41904e88a65 100644 --- a/subsys/bluetooth/shell/gatt.c +++ b/subsys/bluetooth/shell/gatt.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/hci.c b/subsys/bluetooth/shell/hci.c index 9c37f494db9..f0e1e734257 100644 --- a/subsys/bluetooth/shell/hci.c +++ b/subsys/bluetooth/shell/hci.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/l2cap.c b/subsys/bluetooth/shell/l2cap.c index 53a130dc981..e92ef6e86e4 100644 --- a/subsys/bluetooth/shell/l2cap.c +++ b/subsys/bluetooth/shell/l2cap.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/bluetooth/shell/rfcomm.c b/subsys/bluetooth/shell/rfcomm.c index 99cc0511897..367dcbba4d3 100644 --- a/subsys/bluetooth/shell/rfcomm.c +++ b/subsys/bluetooth/shell/rfcomm.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/dfu/boot/mcuboot.c b/subsys/dfu/boot/mcuboot.c index e0005c4d194..83b5dac88ec 100644 --- a/subsys/dfu/boot/mcuboot.c +++ b/subsys/dfu/boot/mcuboot.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include /* diff --git a/subsys/disk/disk_access_sdhc.c b/subsys/disk/disk_access_sdhc.c index 67e03dd98c2..17f4eb5cd01 100644 --- a/subsys/disk/disk_access_sdhc.c +++ b/subsys/disk/disk_access_sdhc.c @@ -10,7 +10,7 @@ LOG_MODULE_REGISTER(sdhc, CONFIG_DISK_LOG_LEVEL); #include #include -#include +#include #include #include diff --git a/subsys/mgmt/serial_util.c b/subsys/mgmt/serial_util.c index da526d53c6f..161d6b5fa71 100644 --- a/subsys/mgmt/serial_util.c +++ b/subsys/mgmt/serial_util.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/net/buf.c b/subsys/net/buf.c index 0abff02a5e7..e37e90647d3 100644 --- a/subsys/net/buf.c +++ b/subsys/net/buf.c @@ -16,7 +16,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include #include -#include +#include #include diff --git a/subsys/net/ip/icmpv6.c b/subsys/net/ip/icmpv6.c index fe78293f42f..8cfb1b27998 100644 --- a/subsys/net/ip/icmpv6.c +++ b/subsys/net/ip/icmpv6.c @@ -13,7 +13,7 @@ LOG_MODULE_REGISTER(net_icmpv6, CONFIG_NET_ICMPV6_LOG_LEVEL); #include #include -#include +#include #include #include #include diff --git a/subsys/net/ip/tcp.c b/subsys/net/ip/tcp.c index 0afb697892a..ccc09a60ad2 100644 --- a/subsys/net/ip/tcp.c +++ b/subsys/net/ip/tcp.c @@ -24,7 +24,7 @@ LOG_MODULE_REGISTER(net_tcp, CONFIG_NET_TCP_LOG_LEVEL); #include #include #include -#include +#include #include "connection.h" #include "net_private.h" diff --git a/subsys/net/lib/coap/coap.c b/subsys/net/lib/coap/coap.c index d5e21c45ea5..275eee0068b 100644 --- a/subsys/net/lib/coap/coap.c +++ b/subsys/net/lib/coap/coap.c @@ -14,7 +14,7 @@ LOG_MODULE_REGISTER(net_coap, CONFIG_COAP_LOG_LEVEL); #include #include -#include +#include #include #include diff --git a/subsys/net/lib/coap/coap_link_format.c b/subsys/net/lib/coap/coap_link_format.c index a3777f0e1e0..91d563f704d 100644 --- a/subsys/net/lib/coap/coap_link_format.c +++ b/subsys/net/lib/coap/coap_link_format.c @@ -14,7 +14,7 @@ LOG_MODULE_DECLARE(net_coap, CONFIG_COAP_LOG_LEVEL); #include #include -#include +#include #include diff --git a/subsys/net/lib/lwm2m/lwm2m_rw_oma_tlv.c b/subsys/net/lib/lwm2m/lwm2m_rw_oma_tlv.c index 84b7c90325c..09d99960e66 100644 --- a/subsys/net/lib/lwm2m/lwm2m_rw_oma_tlv.c +++ b/subsys/net/lib/lwm2m/lwm2m_rw_oma_tlv.c @@ -65,7 +65,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include -#include +#include #include "lwm2m_rw_oma_tlv.h" #include "lwm2m_engine.h" diff --git a/subsys/usb/class/bluetooth.c b/subsys/usb/class/bluetooth.c index 473a4aff3ac..3ce830ae032 100644 --- a/subsys/usb/class/bluetooth.c +++ b/subsys/usb/class/bluetooth.c @@ -7,7 +7,7 @@ */ #include -#include +#include #include #include diff --git a/subsys/usb/class/cdc_acm.c b/subsys/usb/class/cdc_acm.c index 9bf524a2b71..a5b5e3bb85a 100644 --- a/subsys/usb/class/cdc_acm.c +++ b/subsys/usb/class/cdc_acm.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/usb/class/hid/core.c b/subsys/usb/class/hid/core.c index 430c4116038..b2c3d7c4e98 100644 --- a/subsys/usb/class/hid/core.c +++ b/subsys/usb/class/hid/core.c @@ -11,7 +11,7 @@ #include LOG_MODULE_REGISTER(usb_hid); -#include +#include #include #include diff --git a/subsys/usb/class/loopback.c b/subsys/usb/class/loopback.c index 0d50cada600..ed9e0311d3f 100644 --- a/subsys/usb/class/loopback.c +++ b/subsys/usb/class/loopback.c @@ -8,7 +8,7 @@ #include -#include +#include #include #include #include diff --git a/subsys/usb/class/mass_storage.c b/subsys/usb/class/mass_storage.c index aa06968691b..96795107cf6 100644 --- a/subsys/usb/class/mass_storage.c +++ b/subsys/usb/class/mass_storage.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/usb/class/usb_dfu.c b/subsys/usb/class/usb_dfu.c index d0e66e7c6e7..cf41e90cff2 100644 --- a/subsys/usb/class/usb_dfu.c +++ b/subsys/usb/class/usb_dfu.c @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/subsys/usb/usb_descriptor.c b/subsys/usb/usb_descriptor.c index 33dabb3ae4d..5746be8debc 100644 --- a/subsys/usb/usb_descriptor.c +++ b/subsys/usb/usb_descriptor.c @@ -8,7 +8,7 @@ */ #include -#include +#include #include #include #include diff --git a/subsys/usb/usb_device.c b/subsys/usb/usb_device.c index f3fd9b951cf..fba20815757 100644 --- a/subsys/usb/usb_device.c +++ b/subsys/usb/usb_device.c @@ -64,7 +64,7 @@ #if defined(CONFIG_USB_VBUS_GPIO) #include #endif -#include +#include #include #include #include diff --git a/tests/application_development/cpp/src/main.cpp b/tests/application_development/cpp/src/main.cpp index a0a906b4f36..cdafa076775 100644 --- a/tests/application_development/cpp/src/main.cpp +++ b/tests/application_development/cpp/src/main.cpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include diff --git a/tests/benchmarks/mbedtls/src/benchmark.c b/tests/benchmarks/mbedtls/src/benchmark.c index 69dfa5969b1..0715d84afd9 100644 --- a/tests/benchmarks/mbedtls/src/benchmark.c +++ b/tests/benchmarks/mbedtls/src/benchmark.c @@ -68,7 +68,7 @@ #include "mbedtls/debug.h" #include -#include +#include #include "kernel.h" diff --git a/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect1.c b/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect1.c index 77640a483e7..cbf029ddfa4 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect1.c +++ b/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect1.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include static struct bt_conn *default_conn; diff --git a/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect2.c b/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect2.c index 822e11643be..c6298d09594 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect2.c +++ b/tests/bluetooth/bsim_bt/bsim_test_app/src/test_connect2.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include diff --git a/tests/bluetooth/hci_prop_evt/src/main.c b/tests/bluetooth/hci_prop_evt/src/main.c index f501d16fea2..a455ef30735 100644 --- a/tests/bluetooth/hci_prop_evt/src/main.c +++ b/tests/bluetooth/hci_prop_evt/src/main.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include /* HCI Proprietary vendor event */ const u8_t hci_prop_evt_prefix[2] = { 0xAB, 0xBA }; diff --git a/tests/bluetooth/shell/src/main.c b/tests/bluetooth/shell/src/main.c index dfd10f2d6c8..612034eae83 100644 --- a/tests/bluetooth/shell/src/main.c +++ b/tests/bluetooth/shell/src/main.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include diff --git a/tests/bluetooth/tester/src/bttester.c b/tests/bluetooth/tester/src/bttester.c index a3f7cb63139..8904f8c4332 100644 --- a/tests/bluetooth/tester/src/bttester.c +++ b/tests/bluetooth/tester/src/bttester.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include diff --git a/tests/bluetooth/tester/src/gap.c b/tests/bluetooth/tester/src/gap.c index 2ab37589014..8548d769c71 100644 --- a/tests/bluetooth/tester/src/gap.c +++ b/tests/bluetooth/tester/src/gap.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include diff --git a/tests/bluetooth/tester/src/gatt.c b/tests/bluetooth/tester/src/gatt.c index 67af56cecd0..7d33b6686a9 100644 --- a/tests/bluetooth/tester/src/gatt.c +++ b/tests/bluetooth/tester/src/gatt.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include diff --git a/tests/bluetooth/tester/src/l2cap.c b/tests/bluetooth/tester/src/l2cap.c index 7aa6fb1e4a7..cc40a541528 100644 --- a/tests/bluetooth/tester/src/l2cap.c +++ b/tests/bluetooth/tester/src/l2cap.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #define LOG_MODULE_NAME bttester_l2cap diff --git a/tests/bluetooth/tester/src/mesh.c b/tests/bluetooth/tester/src/mesh.c index 582eea7d71a..e278c1e5a37 100644 --- a/tests/bluetooth/tester/src/mesh.c +++ b/tests/bluetooth/tester/src/mesh.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #define LOG_MODULE_NAME bttester_mesh diff --git a/tests/kernel/common/src/byteorder.c b/tests/kernel/common/src/byteorder.c index 123fd5ed722..f0eb806d6d5 100644 --- a/tests/kernel/common/src/byteorder.c +++ b/tests/kernel/common/src/byteorder.c @@ -7,7 +7,7 @@ #include -#include +#include /** * @addtogroup kernel_common_tests diff --git a/tests/subsys/usb/bos/src/test_bos.c b/tests/subsys/usb/bos/src/test_bos.c index 2976ec68250..a8f5ac3ffea 100644 --- a/tests/subsys/usb/bos/src/test_bos.c +++ b/tests/subsys/usb/bos/src/test_bos.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/tests/subsys/usb/desc_sections/src/desc_sections.c b/tests/subsys/usb/desc_sections/src/desc_sections.c index f3b9fc6e2a7..e07b0e2ee2c 100644 --- a/tests/subsys/usb/desc_sections/src/desc_sections.c +++ b/tests/subsys/usb/desc_sections/src/desc_sections.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include #include diff --git a/tests/subsys/usb/device/src/main.c b/tests/subsys/usb/device/src/main.c index 9d7c9f1e7ae..3041d673067 100644 --- a/tests/subsys/usb/device/src/main.c +++ b/tests/subsys/usb/device/src/main.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/tests/subsys/usb/os_desc/src/usb_osdesc.c b/tests/subsys/usb/os_desc/src/usb_osdesc.c index 955ddbe5167..6d743b89979 100644 --- a/tests/subsys/usb/os_desc/src/usb_osdesc.c +++ b/tests/subsys/usb/os_desc/src/usb_osdesc.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include #include