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>
This commit is contained in:
Gerard Marull-Paretas 2022-05-10 14:04:17 +02:00 committed by Gerard Marull-Paretas
parent 0e06d96fea
commit 87cc2f469e
17 changed files with 27 additions and 27 deletions

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <sys/__assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/sys/__assert.h>
#include <kernel/zephyr/dpl/dpl.h>
#include <ti/drivers/dpl/ClockP.h>

View File

@ -5,8 +5,8 @@
*/
#include <zephyr.h>
#include <sys/__assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/sys/__assert.h>
#include <kernel/zephyr/dpl/dpl.h>
#include <ti/drivers/dpl/HwiP.h>

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <sys/__assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/sys/__assert.h>
#include <kernel/zephyr/dpl/dpl.h>
#include <ti/drivers/dpl/MutexP.h>

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <sys/__assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/sys/__assert.h>
#include <kernel/zephyr/dpl/dpl.h>
#include <ti/drivers/dpl/SemaphoreP.h>

View File

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <zephyr/zephyr.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/dpl/SwiP.h>

View File

@ -1,7 +1,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <zephyr.h>
#include <zephyr/zephyr.h>
#include "stubs.h"

View File

@ -8,11 +8,11 @@
#include <stdlib.h>
#include <string.h>
#include <zephyr.h>
#include <device.h>
#include <init.h>
#include <sys/util.h>
#include <sys/__assert.h>
#include <zephyr/zephyr.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/util.h>
#include <zephyr/sys/__assert.h>
#include <inc/hw_types.h>
#include <inc/hw_ints.h>

View File

@ -1,7 +1,7 @@
#ifndef STUBS_H_
#define STUBS_H_
#include <zephyr.h>
#include <zephyr/zephyr.h>
#define STUB(fmt, args...) printk("%s(): %d: STUB: " fmt "\n", __func__, __LINE__, ##args)

View File

@ -47,7 +47,7 @@
#include "../inc/hw_ccfg_simple_struct.h"
/* Required for Zephyr __ti_ccfg_section macro */
#include <linker/sections.h>
#include <zephyr/linker/sections.h>
//*****************************************************************************
//

View File

@ -44,7 +44,7 @@
#include <stdint.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <devicetree.h>
#include <zephyr/devicetree.h>
/*--------------------- Configuration Instructions ----------------------------
1. If you prefer to halt the Watchdog Timer, set __HALT_WDT to 1:

View File

@ -44,7 +44,7 @@
#include <stdint.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <devicetree.h>
#include <zephyr/devicetree.h>
/*--------------------- Configuration Instructions ----------------------------
1. If you prefer to halt the Watchdog Timer, set __HALT_WDT to 1:

View File

@ -44,7 +44,7 @@
#include <stdint.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <devicetree.h>
#include <zephyr/devicetree.h>
/*--------------------- Configuration Instructions ----------------------------
1. If you prefer to halt the Watchdog Timer, set __HALT_WDT to 1:

View File

@ -44,7 +44,7 @@
#include <stdint.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <devicetree.h>
#include <zephyr/devicetree.h>
/*--------------------- Configuration Instructions ----------------------------
1. If you prefer to halt the Watchdog Timer, set __HALT_WDT to 1:

View File

@ -44,7 +44,7 @@
#include <stdint.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
#include <devicetree.h>
#include <zephyr/devicetree.h>
/*--------------------- Configuration Instructions ----------------------------
1. If you prefer to halt the Watchdog Timer, set __HALT_WDT to 1:

View File

@ -61,7 +61,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <zephyr.h>
#include <zephyr/zephyr.h>
#ifdef __cplusplus
extern "C" {

View File

@ -51,9 +51,9 @@ extern "C" {
#if defined(SL_PLATFORM_MULTI_THREADED)
/* Use Zephyr posix headers */
#include <time.h>
#include <posix/pthread.h>
#include <posix/semaphore.h>
#include <posix/unistd.h>
#include <zephyr/posix/pthread.h>
#include <zephyr/posix/semaphore.h>
#include <zephyr/posix/unistd.h>
#else //SL_PLATFORM_MULTI_THREADED
#include <ti/drivers/dpl/SemaphoreP.h>
#include <ti/drivers/dpl/MutexP.h>

View File

@ -47,7 +47,7 @@
/* POSIX Header files */
/* Changed include path to match Zephyr posix */
#include <posix/semaphore.h>
#include <zephyr/posix/semaphore.h>
/*****************************************************************************/
/* Macro declarations */