zephyr: use <zephyr/kernel.h>

<zephyr/zephyr.h> is just a shim to the <zephyr/kernel.h> header, better
use it directly as it is explicit that Kernel APIs are being included.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2022-05-09 12:13:12 +02:00 committed by Andrzej Puzdrowski
parent 3cd2cece69
commit 34dd9e707d
7 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/mgmt/mcumgr/zephyr_groups.h>

View File

@ -5,7 +5,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/flash.h>

View File

@ -15,7 +15,7 @@
*/
#include <assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include "bootutil/image.h"
#include "bootutil/bootutil.h"
#include "bootutil/fault_injection_hardening.h"

View File

@ -17,7 +17,7 @@
*/
#include <assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/__assert.h>

View File

@ -17,7 +17,7 @@
* under the License.
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <string.h>
#include "os/os_heap.h"

View File

@ -18,7 +18,7 @@
#include <zephyr/drivers/uart.h>
#include <assert.h>
#include <string.h>
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include "bootutil/bootutil_log.h"
#include <zephyr/usb/usb_device.h>

View File

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
void main(void)