Skip to content

Commit

Permalink
zephyr: use <zephyr/kernel.h>
Browse files Browse the repository at this point in the history
<zephyr/zephyr.h> is a shim to the Kernel header, so let's use it
directly.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed May 11, 2022
1 parent 6064597 commit fec71e9
Show file tree
Hide file tree
Showing 585 changed files with 585 additions and 585 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "cloud/cloud_wrapper.h"
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <net/aws_iot.h>
#include <nrf_modem_at.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <net/azure_iot_hub.h>
#include <nrf_modem_at.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <cloud_codec.h>
#include <stdbool.h>
#include <string.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <cloud_codec.h>
#include <stdbool.h>
#include <string.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef CLOUD_CODEC_H__
#define CLOUD_CODEC_H__

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <cloud_codec.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <cJSON.h>
#include <cJSON_os.h>
#include <math.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <cJSON.h>
#include <date_time.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
extern "C" {
#endif

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <cJSON.h>

#include "cloud_codec.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <stdbool.h>
#include <string.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/cloud/cloud_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef CLOUD_WRAPPER_H__
#define CLOUD_WRAPPER_H__

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdbool.h>

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <net/nrf_cloud.h>
#include <zephyr/net/mqtt.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <string.h>
#include <zephyr/drivers/sensor.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <string.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/spinlock.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/cloud_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/net/socket.h>
#include <stdio.h>
#include <zephyr/dfu/mcuboot.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/data_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <app_event_manager.h>
#include <zephyr/settings/settings.h>
#include <date_time.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/debug_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#if defined(CONFIG_MEMFAULT)
#include <memfault/metrics/metrics.h>
#include <memfault/ports/zephyr/http.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/gnss_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <date_time.h>
#include <app_event_manager.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/modem_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <stdio.h>
#include <app_event_manager.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/modules_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <app_event_manager.h>
#include "modules_common.h"
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/modules_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*@brief Modules common library header.
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

/**
* @defgroup modules_common Modules common library
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/sensor_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/drivers/sensor.h>
#include <app_event_manager.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/ui_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/device.h>
#include <app_event_manager.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/modules/util_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/reboot.h>
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/watchdog/watchdog_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/watchdog.h>

Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/src/watchdog/watchdog_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef WATCHDOG_APP_H__
#define WATCHDOG_APP_H__

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#ifdef __cplusplus
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#include "date_time.h"

Expand Down
2 changes: 1 addition & 1 deletion applications/asset_tracker_v2/tests/json_common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <ztest.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <string.h>
#include <cJSON.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/connectivity_bridge/src/disk/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/fs/fs.h>
#include <zephyr/settings/settings.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion applications/connectivity_bridge/src/disk/readme.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#define MODULE file_readme
#include "fs_event.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#define MODULE file_cat
#include "fs_event.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#define MODULE file_inf
#include "fs_event.h"
Expand Down
2 changes: 1 addition & 1 deletion applications/connectivity_bridge/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#include <app_event_manager.h>

Expand Down
2 changes: 1 addition & 1 deletion applications/connectivity_bridge/src/modules/ble_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#include <zephyr/sys/ring_buffer.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <hal/nrf_power.h>
#include <zephyr/pm/pm.h>
#include <zephyr/sys/reboot.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <bluetooth/services/nus.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <caf/click_detector.h>

/* This configuration file is included only once from click_detector module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <caf/click_detector.h>

/* This configuration file is included only once from click_detector module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <caf/click_detector.h>

/* This configuration file is included only once from click_detector module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <caf/click_detector.h>

/* This configuration file is included only once from click_detector module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <caf/click_detector.h>

/* This configuration file is included only once from click_detector module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <bluetooth/services/nus.h>

#include "ei_data_forwarder.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>

#include "ei_data_forwarder.h"
Expand Down
2 changes: 1 addition & 1 deletion applications/machine_learning/src/modules/led_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#include "led_state_def.h"

Expand Down
2 changes: 1 addition & 1 deletion applications/machine_learning/src/modules/ml_app_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#include <caf/events/click_event.h>
#include "ml_app_mode_event.h"
Expand Down
Loading

0 comments on commit fec71e9

Please sign in to comment.