Skip to content

Commit 6064597

Browse files
gmarullcarlescufi
authored andcommitted
zephyr: update include paths to use <zephyr/...>
Zephyr has prefixed all of its includes with <zephyr/...>. While the old mode can still be used (CONFIG_LEGACY_INCLUDE_PATH) and is still enabled by default, it's better to be prepared for its removal in the future. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent fe603af commit 6064597

File tree

1,127 files changed

+3006
-3006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,127 files changed

+3006
-3006
lines changed

applications/asset_tracker_v2/src/carrier_certs/carrier_certs.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
#include <stdint.h>
88
#include <string.h>
9-
#include <toolchain.h>
10-
#include <sys/util.h>
9+
#include <zephyr/toolchain.h>
10+
#include <zephyr/sys/util.h>
1111
#include <modem/modem_key_mgmt.h>
1212

1313
#include "carrier_certs.h"
1414

15-
#include <logging/log.h>
15+
#include <zephyr/logging/log.h>
1616
LOG_MODULE_REGISTER(carrier_certs, CONFIG_MODEM_MODULE_LOG_LEVEL);
1717

1818
/* The order of the tags in this array specifies which tag is used first */

applications/asset_tracker_v2/src/cloud/aws_iot_integration.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#include "cloud/cloud_wrapper.h"
2-
#include <zephyr.h>
2+
#include <zephyr/zephyr.h>
33
#include <net/aws_iot.h>
44
#include <nrf_modem_at.h>
55

66
#define MODULE aws_iot_integration
77

8-
#include <logging/log.h>
8+
#include <zephyr/logging/log.h>
99
LOG_MODULE_REGISTER(MODULE, CONFIG_CLOUD_INTEGRATION_LOG_LEVEL);
1010

1111
#if !defined(CONFIG_CLOUD_CLIENT_ID_USE_CUSTOM)

applications/asset_tracker_v2/src/cloud/azure_iot_hub_integration.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#include <zephyr.h>
1+
#include <zephyr/zephyr.h>
22
#include <net/azure_iot_hub.h>
33
#include <nrf_modem_at.h>
44

55
#include "cloud/cloud_wrapper.h"
66

77
#define MODULE azure_iot_hub_integration
88

9-
#include <logging/log.h>
9+
#include <zephyr/logging/log.h>
1010
LOG_MODULE_REGISTER(MODULE, CONFIG_CLOUD_INTEGRATION_LOG_LEVEL);
1111

1212
#if !defined(CONFIG_CLOUD_CLIENT_ID_USE_CUSTOM)

applications/asset_tracker_v2/src/cloud/cloud_codec/aws_iot/aws_iot_codec.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <cloud_codec.h>
88
#include <stdbool.h>
99
#include <string.h>
10-
#include <zephyr.h>
10+
#include <zephyr/zephyr.h>
1111
#include <zephyr/types.h>
1212
#include <stdio.h>
1313
#include <stdlib.h>
@@ -17,7 +17,7 @@
1717
#include "json_common.h"
1818
#include "json_protocol_names.h"
1919

20-
#include <logging/log.h>
20+
#include <zephyr/logging/log.h>
2121
LOG_MODULE_REGISTER(cloud_codec, CONFIG_CLOUD_CODEC_LOG_LEVEL);
2222

2323
/* Function that checks the version number of the incoming message and determines if it has already

applications/asset_tracker_v2/src/cloud/cloud_codec/azure_iot_hub/azure_iot_hub_codec.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <cloud_codec.h>
88
#include <stdbool.h>
99
#include <string.h>
10-
#include <zephyr.h>
10+
#include <zephyr/zephyr.h>
1111
#include <zephyr/types.h>
1212
#include <stdio.h>
1313
#include <stdlib.h>
@@ -17,7 +17,7 @@
1717
#include "json_common.h"
1818
#include "json_protocol_names.h"
1919

20-
#include <logging/log.h>
20+
#include <zephyr/logging/log.h>
2121
LOG_MODULE_REGISTER(cloud_codec, CONFIG_CLOUD_CODEC_LOG_LEVEL);
2222

2323
int cloud_codec_encode_neighbor_cells(struct cloud_codec_data *output,

applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#ifndef CLOUD_CODEC_H__
88
#define CLOUD_CODEC_H__
99

10-
#include <zephyr.h>
10+
#include <zephyr/zephyr.h>
1111
#include <stdbool.h>
1212
#include <stdint.h>
1313
#include <stdio.h>
1414
#include <stdlib.h>
1515
#include <cJSON_os.h>
16-
#include <net/net_ip.h>
16+
#include <zephyr/net/net_ip.h>
1717
#include <modem/lte_lc.h>
1818
#include <nrf_modem_gnss.h>
1919

applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec_ringbuffer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
*/
66

77
#include <cloud_codec.h>
8-
#include <zephyr.h>
8+
#include <zephyr/zephyr.h>
99
#include <cJSON.h>
1010
#include <cJSON_os.h>
1111
#include <math.h>
1212

13-
#include <logging/log.h>
13+
#include <zephyr/logging/log.h>
1414
LOG_MODULE_REGISTER(cloud_codec_ringbuffer, CONFIG_CLOUD_CODEC_LOG_LEVEL);
1515

1616
void cloud_codec_populate_sensor_buffer(

applications/asset_tracker_v2/src/cloud/cloud_codec/json_common.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <cJSON.h>
99
#include <date_time.h>
1010

@@ -13,7 +13,7 @@
1313
#include "json_helpers.h"
1414
#include "json_protocol_names.h"
1515

16-
#include <logging/log.h>
16+
#include <zephyr/logging/log.h>
1717
LOG_MODULE_REGISTER(json_common, CONFIG_CLOUD_CODEC_LOG_LEVEL);
1818

1919
static int op_code_handle(cJSON *parent, enum json_common_op_code op,

applications/asset_tracker_v2/src/cloud/cloud_codec/json_common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
extern "C" {
2323
#endif
2424

25-
#include <zephyr.h>
25+
#include <zephyr/zephyr.h>
2626
#include <cJSON.h>
2727

2828
#include "cloud_codec.h"

applications/asset_tracker_v2/src/cloud/cloud_codec/json_helpers.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*/
66

77
#include <errno.h>
8-
#include <sys/printk.h>
8+
#include <zephyr/sys/printk.h>
99

1010
#include "json_helpers.h"
1111
#include "cJSON.h"
1212
#include "cJSON_os.h"
1313

14-
#include <logging/log.h>
14+
#include <zephyr/logging/log.h>
1515
LOG_MODULE_REGISTER(json_helpers, CONFIG_CLOUD_CODEC_LOG_LEVEL);
1616

1717
void json_add_obj(cJSON *parent, const char *str, cJSON *item)

applications/asset_tracker_v2/src/cloud/cloud_codec/nrf_cloud/nrf_cloud_codec.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include <stdbool.h>
88
#include <string.h>
9-
#include <zephyr.h>
9+
#include <zephyr/zephyr.h>
1010
#include <zephyr/types.h>
1111
#include <stdio.h>
1212
#include <stdlib.h>
@@ -19,7 +19,7 @@
1919
#include "json_common.h"
2020
#include "json_protocol_names.h"
2121

22-
#include <logging/log.h>
22+
#include <zephyr/logging/log.h>
2323
LOG_MODULE_REGISTER(cloud_codec, CONFIG_CLOUD_CODEC_LOG_LEVEL);
2424

2525
/* Data types that are supported in batch messages. */

applications/asset_tracker_v2/src/cloud/cloud_wrapper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef CLOUD_WRAPPER_H__
1212
#define CLOUD_WRAPPER_H__
1313

14-
#include <zephyr.h>
14+
#include <zephyr/zephyr.h>
1515
#include <stdbool.h>
1616

1717
/**

applications/asset_tracker_v2/src/cloud/nrf_cloud_integration.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include <zephyr.h>
1+
#include <zephyr/zephyr.h>
22
#include <net/nrf_cloud.h>
3-
#include <net/mqtt.h>
3+
#include <zephyr/net/mqtt.h>
44
#include <stdio.h>
55
#include <nrf_modem_at.h>
66

@@ -11,7 +11,7 @@
1111

1212
#define MODULE nrf_cloud_integration
1313

14-
#include <logging/log.h>
14+
#include <zephyr/logging/log.h>
1515
LOG_MODULE_REGISTER(MODULE, CONFIG_CLOUD_INTEGRATION_LOG_LEVEL);
1616

1717
#define REQUEST_DEVICE_STATE_STRING ""

applications/asset_tracker_v2/src/events/common_module_event.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <sys/util_macro.h>
7+
#include <zephyr/sys/util_macro.h>
88
#include <app_event_manager.h>
99
#include <app_event_manager_profiler_tracer.h>
1010

applications/asset_tracker_v2/src/events/modem_module_event.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @defgroup modem_module_event Modem module event
1313
* @{
1414
*/
15-
#include <net/net_ip.h>
15+
#include <zephyr/net/net_ip.h>
1616
#include <modem/lte_lc.h>
1717

1818
#include <app_event_manager.h>

applications/asset_tracker_v2/src/ext_sensors/ext_sensors.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <stdio.h>
99
#include <string.h>
10-
#include <drivers/sensor.h>
10+
#include <zephyr/drivers/sensor.h>
1111
#include <stdlib.h>
1212

1313
#if defined(CONFIG_EXTERNAL_SENSORS_BME680_BSEC)
@@ -16,7 +16,7 @@
1616

1717
#include "ext_sensors.h"
1818

19-
#include <logging/log.h>
19+
#include <zephyr/logging/log.h>
2020
LOG_MODULE_REGISTER(ext_sensors, CONFIG_EXTERNAL_SENSORS_LOG_LEVEL);
2121

2222
/* Convert to s/m2 depending on the maximum measured range used for adxl362. */

applications/asset_tracker_v2/src/ext_sensors/ext_sensors_bsec.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <string.h>
9-
#include <sys/atomic.h>
10-
#include <spinlock.h>
11-
#include <settings/settings.h>
12-
#include <sys/byteorder.h>
13-
#include <drivers/i2c.h>
9+
#include <zephyr/sys/atomic.h>
10+
#include <zephyr/spinlock.h>
11+
#include <zephyr/settings/settings.h>
12+
#include <zephyr/sys/byteorder.h>
13+
#include <zephyr/drivers/i2c.h>
1414

1515
#include "bsec_integration.h"
1616
#include "ext_sensors_bsec.h"
1717

18-
#include <logging/log.h>
18+
#include <zephyr/logging/log.h>
1919
LOG_MODULE_REGISTER(ext_sensors_bsec, CONFIG_EXTERNAL_SENSORS_LOG_LEVEL);
2020

2121
BUILD_ASSERT(CONFIG_FP_HARDABI, "CONFIG_FP_HARDABI must be set when using the BME680 BSEC library");

applications/asset_tracker_v2/src/main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <stdio.h>
99
#include <string.h>
1010
#include <stdlib.h>
1111
#include <app_event_manager.h>
1212
#if defined(CONFIG_NRF_MODEM_LIB)
1313
#include <modem/nrf_modem_lib.h>
1414
#endif /* CONFIG_NRF_MODEM_LIB */
15-
#include <sys/reboot.h>
15+
#include <zephyr/sys/reboot.h>
1616

1717
#if defined(CONFIG_NRF_CLOUD_AGPS) || defined(CONFIG_NRF_CLOUD_PGPS)
1818
#include <net/nrf_cloud_agps.h>
@@ -32,8 +32,8 @@
3232
#include "events/modem_module_event.h"
3333
#include "events/led_state_event.h"
3434

35-
#include <logging/log.h>
36-
#include <logging/log_ctrl.h>
35+
#include <zephyr/logging/log.h>
36+
#include <zephyr/logging/log_ctrl.h>
3737

3838
LOG_MODULE_REGISTER(MODULE, CONFIG_APPLICATION_MODULE_LOG_LEVEL);
3939

applications/asset_tracker_v2/src/modules/cloud_module.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
8-
#include <net/socket.h>
7+
#include <zephyr/zephyr.h>
8+
#include <zephyr/net/socket.h>
99
#include <stdio.h>
10-
#include <dfu/mcuboot.h>
10+
#include <zephyr/dfu/mcuboot.h>
1111
#include <math.h>
1212
#include <app_event_manager.h>
1313
#include <qos.h>
@@ -33,7 +33,7 @@
3333
#include "events/gnss_module_event.h"
3434
#include "events/debug_module_event.h"
3535

36-
#include <logging/log.h>
36+
#include <zephyr/logging/log.h>
3737
LOG_MODULE_REGISTER(MODULE, CONFIG_CLOUD_MODULE_LOG_LEVEL);
3838

3939
BUILD_ASSERT(CONFIG_CLOUD_CONNECT_RETRIES < 14,

applications/asset_tracker_v2/src/modules/data_module.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <app_event_manager.h>
9-
#include <settings/settings.h>
9+
#include <zephyr/settings/settings.h>
1010
#include <date_time.h>
1111
#include <modem/modem_info.h>
1212
#if defined(CONFIG_NRF_CLOUD_AGPS)
@@ -31,7 +31,7 @@
3131
#include "events/ui_module_event.h"
3232
#include "events/util_module_event.h"
3333

34-
#include <logging/log.h>
34+
#include <zephyr/logging/log.h>
3535
LOG_MODULE_REGISTER(MODULE, CONFIG_DATA_MODULE_LOG_LEVEL);
3636

3737
#define DEVICE_SETTINGS_KEY "data_module"

applications/asset_tracker_v2/src/modules/debug_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#if defined(CONFIG_MEMFAULT)
99
#include <memfault/metrics/metrics.h>
1010
#include <memfault/ports/zephyr/http.h>
@@ -29,7 +29,7 @@
2929
#include "events/ui_module_event.h"
3030
#include "events/debug_module_event.h"
3131

32-
#include <logging/log.h>
32+
#include <zephyr/logging/log.h>
3333
LOG_MODULE_REGISTER(MODULE, CONFIG_DEBUG_MODULE_LOG_LEVEL);
3434

3535
struct debug_msg_data {

applications/asset_tracker_v2/src/modules/gnss_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr.h>
7+
#include <zephyr/zephyr.h>
88
#include <stdio.h>
99
#include <date_time.h>
1010
#include <app_event_manager.h>
@@ -23,7 +23,7 @@
2323
#include "events/util_module_event.h"
2424
#include "events/modem_module_event.h"
2525

26-
#include <logging/log.h>
26+
#include <zephyr/logging/log.h>
2727
LOG_MODULE_REGISTER(MODULE, CONFIG_GNSS_MODULE_LOG_LEVEL);
2828

2929
#define GNSS_TIMEOUT_DEFAULT 60

applications/asset_tracker_v2/src/modules/led_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define MODULE led_state
1212
#include <caf/events/module_state_event.h>
13-
#include <logging/log.h>
13+
#include <zephyr/logging/log.h>
1414
LOG_MODULE_REGISTER(led, CONFIG_LED_CONTROL_LOG_LEVEL);
1515

1616

0 commit comments

Comments
 (0)