Skip to content

Commit fec71e9

Browse files
gmarullcarlescufi
authored andcommitted
zephyr: use <zephyr/kernel.h>
<zephyr/zephyr.h> is a shim to the Kernel header, so let's use it directly. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent 6064597 commit fec71e9

File tree

585 files changed

+585
-585
lines changed

Some content is hidden

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

585 files changed

+585
-585
lines changed

applications/asset_tracker_v2/src/cloud/aws_iot_integration.c

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

applications/asset_tracker_v2/src/cloud/azure_iot_hub_integration.c

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

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

+1-1
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/zephyr.h>
10+
#include <zephyr/kernel.h>
1111
#include <zephyr/types.h>
1212
#include <stdio.h>
1313
#include <stdlib.h>

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

+1-1
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/zephyr.h>
10+
#include <zephyr/kernel.h>
1111
#include <zephyr/types.h>
1212
#include <stdio.h>
1313
#include <stdlib.h>

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

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

10-
#include <zephyr/zephyr.h>
10+
#include <zephyr/kernel.h>
1111
#include <stdbool.h>
1212
#include <stdint.h>
1313
#include <stdio.h>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

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

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

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <cJSON.h>
99
#include <date_time.h>
1010

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/zephyr.h>
25+
#include <zephyr/kernel.h>
2626
#include <cJSON.h>
2727

2828
#include "cloud_codec.h"

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

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

77
#include <stdbool.h>
88
#include <string.h>
9-
#include <zephyr/zephyr.h>
9+
#include <zephyr/kernel.h>
1010
#include <zephyr/types.h>
1111
#include <stdio.h>
1212
#include <stdlib.h>

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/zephyr.h>
14+
#include <zephyr/kernel.h>
1515
#include <stdbool.h>
1616

1717
/**

applications/asset_tracker_v2/src/cloud/nrf_cloud_integration.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <zephyr/zephyr.h>
1+
#include <zephyr/kernel.h>
22
#include <net/nrf_cloud.h>
33
#include <zephyr/net/mqtt.h>
44
#include <stdio.h>

applications/asset_tracker_v2/src/ext_sensors/ext_sensors.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <string.h>
1010
#include <zephyr/drivers/sensor.h>

applications/asset_tracker_v2/src/ext_sensors/ext_sensors_bsec.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <string.h>
99
#include <zephyr/sys/atomic.h>
1010
#include <zephyr/spinlock.h>

applications/asset_tracker_v2/src/main.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <string.h>
1010
#include <stdlib.h>

applications/asset_tracker_v2/src/modules/cloud_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/net/socket.h>
99
#include <stdio.h>
1010
#include <zephyr/dfu/mcuboot.h>

applications/asset_tracker_v2/src/modules/data_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <app_event_manager.h>
99
#include <zephyr/settings/settings.h>
1010
#include <date_time.h>

applications/asset_tracker_v2/src/modules/debug_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#if defined(CONFIG_MEMFAULT)
99
#include <memfault/metrics/metrics.h>
1010
#include <memfault/ports/zephyr/http.h>

applications/asset_tracker_v2/src/modules/gnss_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <date_time.h>
1010
#include <app_event_manager.h>

applications/asset_tracker_v2/src/modules/modem_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <stdio.h>
1010
#include <app_event_manager.h>

applications/asset_tracker_v2/src/modules/modules_common.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/types.h>
99
#include <app_event_manager.h>
1010
#include "modules_common.h"

applications/asset_tracker_v2/src/modules/modules_common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*@brief Modules common library header.
1212
*/
1313

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

1616
/**
1717
* @defgroup modules_common Modules common library

applications/asset_tracker_v2/src/modules/sensor_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <zephyr/drivers/sensor.h>
1010
#include <app_event_manager.h>

applications/asset_tracker_v2/src/modules/ui_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <stdio.h>
99
#include <zephyr/device.h>
1010
#include <app_event_manager.h>

applications/asset_tracker_v2/src/modules/util_module.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/sys/reboot.h>
99
#include <zephyr/device.h>
1010
#include <zephyr/logging/log.h>

applications/asset_tracker_v2/src/watchdog/watchdog_app.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/device.h>
99
#include <zephyr/drivers/watchdog.h>
1010

applications/asset_tracker_v2/src/watchdog/watchdog_app.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef WATCHDOG_APP_H__
1313
#define WATCHDOG_APP_H__
1414

15-
#include <zephyr/zephyr.h>
15+
#include <zephyr/kernel.h>
1616

1717
#ifdef __cplusplus
1818
extern "C" {

applications/asset_tracker_v2/tests/json_common/mock/date_time_mock.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#include "date_time.h"
1010

applications/asset_tracker_v2/tests/json_common/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <ztest.h>
8-
#include <zephyr/zephyr.h>
8+
#include <zephyr/kernel.h>
99
#include <stdio.h>
1010
#include <string.h>
1111
#include <cJSON.h>

applications/connectivity_bridge/src/disk/config.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/fs/fs.h>
99
#include <zephyr/settings/settings.h>
1010
#include <stdio.h>

applications/connectivity_bridge/src/disk/readme.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#define MODULE file_readme
1010
#include "fs_event.h"

applications/connectivity_bridge/src/disk/thingy91_cdc_acm.cat.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#define MODULE file_cat
1010
#include "fs_event.h"

applications/connectivity_bridge/src/disk/thingy91_cdc_acm.inf.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#define MODULE file_inf
1010
#include "fs_event.h"

applications/connectivity_bridge/src/main.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#include <app_event_manager.h>
1010

applications/connectivity_bridge/src/modules/ble_handler.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/types.h>
99
#include <zephyr/sys/ring_buffer.h>
1010

applications/connectivity_bridge/src/modules/power_handler.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <hal/nrf_power.h>
99
#include <zephyr/pm/pm.h>
1010
#include <zephyr/sys/reboot.h>

applications/machine_learning/configuration/common/ble_adv_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/bluetooth/bluetooth.h>
99
#include <bluetooth/services/nus.h>
1010

applications/machine_learning/configuration/nrf52840dk_nrf52840/click_detector_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <caf/click_detector.h>
99

1010
/* This configuration file is included only once from click_detector module

applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/click_detector_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <caf/click_detector.h>
99

1010
/* This configuration file is included only once from click_detector module

applications/machine_learning/configuration/thingy52_nrf52832/click_detector_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <caf/click_detector.h>
99

1010
/* This configuration file is included only once from click_detector module

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/click_detector_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <caf/click_detector.h>
99

1010
/* This configuration file is included only once from click_detector module

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp_ns/click_detector_def.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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <caf/click_detector.h>
99

1010
/* This configuration file is included only once from click_detector module

applications/machine_learning/src/modules/ei_data_forwarder_bt_nus.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <bluetooth/services/nus.h>
99

1010
#include "ei_data_forwarder.h"

applications/machine_learning/src/modules/ei_data_forwarder_uart.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88
#include <zephyr/drivers/uart.h>
99

1010
#include "ei_data_forwarder.h"

applications/machine_learning/src/modules/led_state.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#include "led_state_def.h"
1010

applications/machine_learning/src/modules/ml_app_mode.c

+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 <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#include <caf/events/click_event.h>
1010
#include "ml_app_mode_event.h"

0 commit comments

Comments
 (0)