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@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas
2022-05-16 10:27:20 +02:00
committed by Arnaud Pouliquen
parent 7926c87418
commit e9d4531300
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef __METAL_ZEPHYR_ALLOC__H__
#define __METAL_ZEPHYR_ALLOC__H__
#include <kernel.h>
#include <zephyr/kernel.h>
#include <stdlib.h>
#ifdef __cplusplus
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef __METAL_ZEPHYR_ASSERT__H__
#define __METAL_ZEPHYR_ASSERT__H__
#include <zephyr.h>
#include <zephyr/zephyr.h>
/**
* @brief Assertion macro for Zephyr-based applications.
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef __METAL_ZEPHYR_CACHE__H__
#define __METAL_ZEPHYR_CACHE__H__
#include <cache.h>
#include <zephyr/cache.h>
#include <metal/utilities.h>
#ifdef __cplusplus
+1 -1
View File
@@ -11,7 +11,7 @@
#include <stdarg.h>
#include <metal/log.h>
#include <zephyr.h>
#include <zephyr/zephyr.h>
static const char * const level_strs[] = {
"metal: emergency: ",
+1 -1
View File
@@ -17,7 +17,7 @@
#define __METAL_ZEPHYR_MUTEX__H__
#include <metal/atomic.h>
#include <kernel.h>
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef __METAL_ZEPHYR_SLEEP__H__
#define __METAL_ZEPHYR_SLEEP__H__
#include <kernel.h>
#include <zephyr/kernel.h>
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -12,7 +12,7 @@
#include <metal/io.h>
#include <metal/sys.h>
#include <sys/arch_interface.h>
#include <zephyr/sys/arch_interface.h>
/**
* @brief poll function until some event happens
+1 -1
View File
@@ -10,7 +10,7 @@
*/
#include <metal/time.h>
#include <kernel.h>
#include <zephyr/kernel.h>
unsigned long long metal_get_timestamp(void)
{
+1 -1
View File
@@ -10,7 +10,7 @@
#include <metal/errno.h>
#include <metal/log.h>
#include <metal/sys.h>
#include <sys/printk.h>
#include <zephyr/sys/printk.h>
#include "metal-test-internal.h"
static int alloc(void)
+2 -2
View File
@@ -5,9 +5,9 @@
*/
#include "metal-test-internal.h"
#include <kernel.h>
#include <zephyr/kernel.h>
#include <metal/log.h>
#include <sys/printk.h>
#include <zephyr/sys/printk.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>