headers: Fix headers across the project

Any word started with underscore followed by and uppercase letter or a
second underscore is a reserved word according with C99.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-09-14 10:43:44 -07:00 committed by Anas Nashif
commit 67ca176754
505 changed files with 1463 additions and 1458 deletions

View file

@ -17,8 +17,8 @@
* symbols" in the offsets.o module. * symbols" in the offsets.o module.
*/ */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -188,4 +188,4 @@ typedef struct _kernel_arch _kernel_arch_t;
} }
#endif #endif
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -17,8 +17,8 @@
* symbols" in the offsets.o module. * symbols" in the offsets.o module.
*/ */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -75,4 +75,4 @@ extern void _arc_userspace_enter(k_thread_entry_t user_entry, void *p1,
} }
#endif #endif
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_
/* /*
* Reason a thread has relinquished control: threads can only be in the NONE * Reason a thread has relinquished control: threads can only be in the NONE
@ -79,4 +79,4 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -43,4 +43,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _SWAP_MACROS__H_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
#define _SWAP_MACROS__H_ #define ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
#include <kernel_structs.h> #include <kernel_structs.h>
#include <offsets_short.h> #include <offsets_short.h>
@ -278,4 +278,4 @@ extern "C" {
} }
#endif #endif
#endif /* _SWAP_MACROS__H_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_ */

View file

@ -9,8 +9,8 @@
* @brief Kernel event logger support for ARM * @brief Kernel event logger support for ARM
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -33,4 +33,4 @@ int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_ */

View file

@ -12,8 +12,8 @@
* ARCv2 processor architecture. * ARCv2 processor architecture.
*/ */
#ifndef _ARCV2_CACHE__H_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_
#define _ARCV2_CACHE__H_ #define ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_
#include <arch/cpu.h> #include <arch/cpu.h>
@ -56,4 +56,4 @@ static ALWAYS_INLINE void _icache_setup(void)
} }
#endif #endif
#endif /* _ARCV2_CACHE__H_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_ */

View file

@ -12,8 +12,8 @@
* other definitions for the ARCv2 processor architecture. * other definitions for the ARCv2 processor architecture.
*/ */
#ifndef _ARCV2_IRQ__H_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
#define _ARCV2_IRQ__H_ #define ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -64,4 +64,4 @@ static ALWAYS_INLINE void _irq_setup(void)
} }
#endif #endif
#endif /* _ARCV2_IRQ__H_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_ */

View file

@ -18,8 +18,8 @@
* Refer to the ARCv2 manual for an explanation of the exceptions. * Refer to the ARCv2 manual for an explanation of the exceptions.
*/ */
#ifndef _VECTOR_TABLE__H_ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_
#define _VECTOR_TABLE__H_ #define ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -77,4 +77,4 @@ extern void __ev_maligned(void);
} }
#endif #endif
#endif /* _VECTOR_TABLE__H_ */ #endif /* ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_ */

View file

@ -18,8 +18,8 @@
* No other symbol has the same format, so they are easy to spot. * No other symbol has the same format, so they are easy to spot.
*/ */
#ifndef _VECTOR_TABLE__H_ #ifndef ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_
#define _VECTOR_TABLE__H_ #define ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -68,4 +68,4 @@ extern void *_vector_table[];
} }
#endif #endif
#endif /* _VECTOR_TABLE__H_ */ #endif /* ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_ */

View file

@ -11,8 +11,8 @@
* CMSE API for Cortex-M23/M33 CPUs. * CMSE API for Cortex-M23/M33 CPUs.
*/ */
#ifndef _ARM_CORTEXM_CMSE__H_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_
#define _ARM_CORTEXM_CMSE__H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -449,4 +449,4 @@ int arm_cmse_addr_range_nonsecure_readwrite_ok(u32_t addr, u32_t size,
} }
#endif #endif
#endif /* _ARM_CORTEXM_CMSE__H_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_ */

View file

@ -11,8 +11,8 @@
* Exception/interrupt context helpers. * Exception/interrupt context helpers.
*/ */
#ifndef _ARM_CORTEXM_ISR__H_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_
#define _ARM_CORTEXM_ISR__H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_
#include <arch/cpu.h> #include <arch/cpu.h>
@ -167,4 +167,4 @@ static ALWAYS_INLINE void _ClearFaults(void)
#endif #endif
#endif /* _ARM_CORTEXM_ISR__H_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_ */

View file

@ -11,8 +11,8 @@
* Stack helper functions. * Stack helper functions.
*/ */
#ifndef _ARM_CORTEXM_STACK__H_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_
#define _ARM_CORTEXM_STACK__H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -63,4 +63,4 @@ static ALWAYS_INLINE void _InterruptStackSetup(void)
} }
#endif #endif
#endif /* _ARM_CORTEXM_STACK__H_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_ */

View file

@ -11,8 +11,8 @@
* TrustZone API for Cortex-M23/M33 CPUs implementing the Security Extension. * TrustZone API for Cortex-M23/M33 CPUs implementing the Security Extension.
*/ */
#ifndef _ARM_CORTEXM_TZ__H_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_
#define _ARM_CORTEXM_TZ__H_ #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -326,4 +326,4 @@ typedef void __attribute__((cmse_nonsecure_call)) (*tz_ns_func_ptr_t) (void);
} }
#endif #endif
#endif /* _ARM_CORTEXM_TZ__H_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_ */

View file

@ -17,8 +17,8 @@
* in the offsets.o module. * in the offsets.o module.
*/ */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -67,4 +67,4 @@ typedef struct _kernel_arch _kernel_arch_t;
} }
#endif #endif
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -19,8 +19,8 @@
/* this file is only meant to be included by kernel_structs.h */ /* this file is only meant to be included by kernel_structs.h */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -135,4 +135,4 @@ extern FUNC_NORETURN void _arm_userspace_enter(k_thread_entry_t user_entry,
} }
#endif #endif
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread_h_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread_h_ #define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -36,4 +36,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -9,8 +9,8 @@
* @brief Kernel event logger support for ARM * @brief Kernel event logger support for ARM
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -34,4 +34,4 @@ int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_ */

View file

@ -18,8 +18,8 @@
* symbols" in the offsets.o module. * symbols" in the offsets.o module.
*/ */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -61,4 +61,4 @@ extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
} }
#endif #endif
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -17,8 +17,8 @@
* symbols" in the offsets.o module. * symbols" in the offsets.o module.
*/ */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -72,4 +72,4 @@ void _nios2_dcache_flush_no_writeback(void *start, u32_t len);
} }
#endif #endif
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>
@ -71,5 +71,5 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -58,4 +58,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -9,8 +9,8 @@
* @brief Kernel event logger support for Nios II * @brief Kernel event logger support for Nios II
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_NIOS2_INCLUDE_TRACING_ARCH_H_
#include <arch/cpu.h> #include <arch/cpu.h>
@ -38,4 +38,4 @@ static inline int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_TRACING_ARCH_H_ */

View file

@ -1,5 +1,5 @@
zephyr_library() zephyr_library()
zephyr_library_compile_definitions(_POSIX_CHEATS_H) zephyr_library_compile_definitions(NO_POSIX_CHEATS)
zephyr_library_sources( zephyr_library_sources(
cpuhalt.c cpuhalt.c
fatal.c fatal.c

View file

@ -7,8 +7,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _ASM_INLINE_H #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_
#define _ASM_INLINE_H #define ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_
#if !defined(CONFIG_ARCH_POSIX) #if !defined(CONFIG_ARCH_POSIX)
#error The arch/posix/include/asm_inline.h is only for the POSIX architecture #error The arch/posix/include/asm_inline.h is only for the POSIX architecture
@ -21,4 +21,4 @@
#include <asm_inline_other.h> #include <asm_inline_other.h>
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* _ASM_INLINE_H */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_ASM_INLINE_H_ */

View file

@ -11,8 +11,8 @@
* *
*/ */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -39,4 +39,4 @@ typedef struct _kernel_arch _kernel_arch_t;
} }
#endif #endif
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -7,8 +7,8 @@
/* This file is only meant to be included by kernel_structs.h */ /* This file is only meant to be included by kernel_structs.h */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_FUNC_H_
#include "kernel.h" #include "kernel.h"
#include <toolchain/common.h> #include <toolchain/common.h>
@ -67,4 +67,4 @@ static inline void _IntLibInit(void)
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -18,8 +18,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>
@ -54,4 +54,4 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -32,4 +32,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _POSIX_INTERNAL_H #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_
#define _POSIX_INTERNAL_H #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_
#include "toolchain.h" #include "toolchain.h"
@ -29,7 +29,7 @@ static inline void _safe_call(int test, const char *test_str)
} }
#endif #endif
#endif /* _POSIX_INTERNAL_H */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ */
/* /*
* Note 1: * Note 1:

View file

@ -9,8 +9,8 @@
* Header to be able to compile the Zephyr kernel on top of a POSIX OS * Header to be able to compile the Zephyr kernel on top of a POSIX OS
*/ */
#ifndef _POSIX_CHEATS_H #if !defined(ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_) && !defined(NO_POSIX_CHEATS)
#define _POSIX_CHEATS_H #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_
#ifdef CONFIG_ARCH_POSIX #ifdef CONFIG_ARCH_POSIX
@ -193,4 +193,4 @@
#endif /* CONFIG_ARCH_POSIX */ #endif /* CONFIG_ARCH_POSIX */
#endif /* _POSIX_CHEATS_H */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CHEATS_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _POSIX_CORE_H #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CORE_H_
#define _POSIX_CORE_H #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CORE_H_
#include "kernel.h" #include "kernel.h"
@ -48,4 +48,4 @@ void posix_irq_check_idle_exit(void);
} }
#endif #endif
#endif /* _POSIX_CORE_H */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_CORE_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _POSIX_CORE_SOC_PROVIDED_IF_H #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_SOC_IF_H_
#define _POSIX_CORE_SOC_PROVIDED_IF_H #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_SOC_IF_H_
/* /*
* This file lists the functions the POSIX architecture core expects the * This file lists the functions the POSIX architecture core expects the
@ -41,4 +41,4 @@ int posix_get_current_irq(void);
} }
#endif #endif
#endif /* _POSIX_CORE_SOC_PROVIDED_IF_H */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_SOC_IF_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _POSIX_TRACE_H #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_TRACE_H_
#define _POSIX_TRACE_H #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_TRACE_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -10,8 +10,8 @@
* @brief Kernel event logger support for ARM * @brief Kernel event logger support for ARM
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_POSIX_INCLUDE_TRACING_ARCH_H_
#include "posix_soc_if.h" #include "posix_soc_if.h"
@ -36,4 +36,4 @@ static inline int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_TRACING_ARCH_H_ */

View file

@ -12,8 +12,8 @@
* other definitions for the RISCV32 processor architecture. * other definitions for the RISCV32 processor architecture.
*/ */
#ifndef _kernel_arch_data_h_ #ifndef ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data_h_ #define ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -41,4 +41,4 @@ extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_data_h_ */ #endif /* ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -12,8 +12,8 @@
* other definitions for the RISCV32 processor architecture. * other definitions for the RISCV32 processor architecture.
*/ */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_FUNC_H_
#include <soc.h> #include <soc.h>
@ -60,4 +60,4 @@ int _irq_do_offload(void);
} }
#endif #endif
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>
@ -62,5 +62,5 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_RISCV32_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_RISCV32_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_RISCV32_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -61,4 +61,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_RISCV32_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -9,8 +9,8 @@
* @brief Kernel event logger support for RISCV32 * @brief Kernel event logger support for RISCV32
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_RISCV32_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_RISCV32_INCLUDE_TRACING_ARCH_H_
#include <arch/cpu.h> #include <arch/cpu.h>
@ -41,4 +41,4 @@ static inline int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_RISCV32_INCLUDE_TRACING_ARCH_H_ */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _ASM_INLINE_H #ifndef ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_H_
#define _ASM_INLINE_H #define ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_H_
#if !defined(CONFIG_X86) #if !defined(CONFIG_X86)
#error The arch/x86/include/asm_inline.h is only for x86 architecture #error The arch/x86/include/asm_inline.h is only for x86 architecture
@ -19,4 +19,4 @@
#include <asm_inline_other.h> #include <asm_inline_other.h>
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* _ASM_INLINE_H */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_H_ */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _ASM_INLINE_GCC_H #ifndef ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_GCC_H_
#define _ASM_INLINE_GCC_H #define ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_GCC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -141,4 +141,4 @@ static inline void _do_sse_regs_init(void)
} }
#endif #endif
#endif /* _ASM_INLINE_GCC_H */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_ASM_INLINE_GCC_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _cache_private__h_ #ifndef ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_
#define _cache_private__h_ #define ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_
#include <cache.h> #include <cache.h>
@ -21,4 +21,4 @@ extern size_t _cache_line_size_get(void);
} }
#endif #endif
#endif /* _cache_private__h_ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_CACHE_PRIVATE_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef X86_EXCEPTION_H #ifndef ZEPHYR_ARCH_X86_INCLUDE_EXCEPTION_H_
#define X86_EXCEPTION_H #define ZEPHYR_ARCH_X86_INCLUDE_EXCEPTION_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
@ -83,4 +83,4 @@
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* X86_EXCEPTION_H */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_EXCEPTION_H_ */

View file

@ -23,8 +23,8 @@
/* this file is only meant to be included by kernel_structs.h */ /* this file is only meant to be included by kernel_structs.h */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_DATA_H_
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h> #include <linker/sections.h>
@ -425,4 +425,4 @@ typedef struct _kernel_arch _kernel_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -7,8 +7,8 @@
/* this file is only meant to be included by kernel_structs.h */ /* this file is only meant to be included by kernel_structs.h */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
@ -146,4 +146,4 @@ extern FUNC_NORETURN void _x86_userspace_enter(k_thread_entry_t user_entry,
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_
/** /**
* Floating point register set alignment. * Floating point register set alignment.
@ -272,4 +272,4 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -5,8 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _MMUSTRUCTS_H #ifndef ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_
#define _MMUSTRUCTS_H #define ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_
#define MMU_PAGE_SIZE 4096 #define MMU_PAGE_SIZE 4096
#define MMU_PAGE_MASK 0xfff #define MMU_PAGE_MASK 0xfff
@ -778,4 +778,4 @@ struct x86_mmu_page_table {
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _MMUSTRUCTS_H */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -32,4 +32,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -17,8 +17,8 @@
* stack frame is modified. * stack frame is modified.
*/ */
#ifndef _SWAPSTK_H #ifndef ZEPHYR_ARCH_X86_INCLUDE_SWAPSTK_H_
#define _SWAPSTK_H #define ZEPHYR_ARCH_X86_INCLUDE_SWAPSTK_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -43,4 +43,4 @@ typedef struct s_SwapStk {
} }
#endif #endif
#endif /* _SWAPSTK_H */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_SWAPSTK_H_ */

View file

@ -9,8 +9,8 @@
* @brief Kernel event logger support for x86 * @brief Kernel event logger support for x86
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_X86_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_X86_INCLUDE_TRACING_ARCH_H_
#include <arch/x86/irq_controller.h> #include <arch/x86/irq_controller.h>
@ -35,4 +35,4 @@ static inline int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_X86_INCLUDE_TRACING_ARCH_H_ */

View file

@ -17,8 +17,8 @@
* in the offsets.o module. * in the offsets.o module.
*/ */
#ifndef _kernel_arch_data__h_ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_DATA_H_
#define _kernel_arch_data__h_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_DATA_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -67,5 +67,5 @@ void xtensa_switch(void *switch_to, void **switched_from);
} }
#endif #endif
#endif /* _kernel_arch_data__h_ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_DATA_H_ */

View file

@ -6,8 +6,8 @@
/* this file is only meant to be included by kernel_structs.h */ /* this file is only meant to be included by kernel_structs.h */
#ifndef _kernel_arch_func__h_ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_FUNC_H_
#define _kernel_arch_func__h_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <string.h> #include <string.h>
@ -126,4 +126,4 @@ static inline void _IntLibInit(void)
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_func__h_ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_FUNC_H_ */

View file

@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread. * necessary to instantiate instances of struct k_thread.
*/ */
#ifndef _kernel_arch_thread__h_ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_THREAD_H_
#define _kernel_arch_thread__h_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_THREAD_H_
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
#include <zephyr/types.h> #include <zephyr/types.h>
@ -138,5 +138,5 @@ typedef struct _thread_arch _thread_arch_t;
#endif /* _ASMLANGUAGE */ #endif /* _ASMLANGUAGE */
#endif /* _kernel_arch_thread__h_ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_KERNEL_ARCH_THREAD_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _offsets_short_arch__h_ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define _offsets_short_arch__h_ #define ZEPHYR_ARCH_XTENSA_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h> #include <offsets.h>
@ -40,4 +40,4 @@
/* end - threads */ /* end - threads */
#endif /* _offsets_short_arch__h_ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

View file

@ -8,8 +8,8 @@
* @brief Kernel event logger support for Xtensa * @brief Kernel event logger support for Xtensa
*/ */
#ifndef __KERNEL_TRACING_H__ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_TRACING_ARCH_H_
#define __KERNEL_TRACING_H__ #define ZEPHYR_ARCH_XTENSA_INCLUDE_TRACING_ARCH_H_
#ifdef __cplusplus #ifdef __cplusplus
@ -33,4 +33,4 @@ static inline int _sys_current_irq_key_get(void)
} }
#endif #endif
#endif /* __KERNEL_TRACING_H__ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_TRACING_ARCH_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _XTENSA_ASM2_CONTEXT_H #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_CONTEXT_H_
#define _XTENSA_ASM2_CONTEXT_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_CONTEXT_H_
#include <xtensa/corebits.h> #include <xtensa/corebits.h>
#include <xtensa/config/core-isa.h> #include <xtensa/config/core-isa.h>
@ -79,4 +79,4 @@
#define BSA_LEND_OFF (BASE_SAVE_AREA_SIZE - 52) #define BSA_LEND_OFF (BASE_SAVE_AREA_SIZE - 52)
#define BSA_LCOUNT_OFF (BASE_SAVE_AREA_SIZE - 56) #define BSA_LCOUNT_OFF (BASE_SAVE_AREA_SIZE - 56)
#endif /* _XTENSA_ASM2_CONTEXT_H */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_CONTEXT_H_ */

View file

@ -4,6 +4,9 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H
#define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H
#include "xtensa-asm2-context.h" #include "xtensa-asm2-context.h"
/* Assembler header! This file contains macros designed to be included /* Assembler header! This file contains macros designed to be included
@ -397,3 +400,5 @@ _after_imms\LVL:
jx a0 jx a0
.popsection .popsection
.endm .endm
#endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H */

View file

@ -3,8 +3,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __XTENSA_API_H__ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_API_H_
#define __XTENSA_API_H__ #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_API_H_
#include <xtensa/hal.h> #include <xtensa/hal.h>
#include "xtensa_rtos.h" #include "xtensa_rtos.h"
@ -64,5 +64,5 @@ static inline void _xt_set_intclear(unsigned int arg)
xthal_set_intclear(arg); xthal_set_intclear(arg);
} }
#endif /* __XTENSA_API_H__ */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_API_H_ */

View file

@ -3,8 +3,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef XTENSA_CONFIG_H #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONFIG_H_
#define XTENSA_CONFIG_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONFIG_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -137,5 +137,5 @@ extern "C" {
} }
#endif #endif
#endif /* XTENSA_CONFIG_H */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONFIG_H_ */

View file

@ -16,8 +16,8 @@
* NOTE: The Xtensa architecture requires stack pointer alignment to 16 bytes. * NOTE: The Xtensa architecture requires stack pointer alignment to 16 bytes.
*/ */
#ifndef XTENSA_CONTEXT_H #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONTEXT_H_
#define XTENSA_CONTEXT_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONTEXT_H_
#ifdef __ASSEMBLER__ #ifdef __ASSEMBLER__
#include <xtensa/coreasm.h> #include <xtensa/coreasm.h>
@ -313,5 +313,5 @@ ret
#endif /* __ASSEMBLER__ */ #endif /* __ASSEMBLER__ */
#endif /* XTENSA_CONTEXT_H */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_CONTEXT_H_ */

View file

@ -21,8 +21,8 @@
* Should be included by all Xtensa generic and RTOS port-specific sources. * Should be included by all Xtensa generic and RTOS port-specific sources.
*/ */
#ifndef XTENSA_RTOS_H #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_RTOS_H_
#define XTENSA_RTOS_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_RTOS_H_
#ifdef __ASSEMBLER__ #ifdef __ASSEMBLER__
#include <xtensa/coreasm.h> #include <xtensa/coreasm.h>
@ -203,4 +203,4 @@ extern volatile XT_INTEXC_HOOK _xt_intexc_hooks[XT_INTEXC_HOOK_NUM];
#include "xtensa_timer.h" #include "xtensa_timer.h"
#endif #endif
#endif /* XTENSA_RTOS_H */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_RTOS_H_ */

View file

@ -19,8 +19,8 @@
* and the Xtensa core configuration need not have a timer. * and the Xtensa core configuration need not have a timer.
*/ */
#ifndef XTENSA_TIMER_H #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_TIMER_H_
#define XTENSA_TIMER_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_TIMER_H_
#ifdef __ASSEMBLER__ #ifdef __ASSEMBLER__
#include <xtensa/coreasm.h> #include <xtensa/coreasm.h>
@ -149,5 +149,5 @@ extern void _xt_tick_divisor_init(void);
#endif // Internal/External timer #endif // Internal/External timer
#endif /* XTENSA_TIMER_H */ #endif /* ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_TIMER_H_ */

View file

@ -1,5 +1,5 @@
zephyr_library() zephyr_library()
zephyr_library_compile_definitions(_POSIX_CHEATS_H) zephyr_library_compile_definitions(NO_POSIX_CHEATS)
zephyr_library_sources( zephyr_library_sources(
hw_models_top.c hw_models_top.c
timer_model.c timer_model.c

View file

@ -5,8 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __ADC_CONTEXT_H__ #ifndef ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_
#define __ADC_CONTEXT_H__ #define ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_
#include <adc.h> #include <adc.h>
#include <atomic.h> #include <atomic.h>
@ -265,4 +265,4 @@ static inline void adc_context_on_sampling_done(struct adc_context *ctx,
} }
#endif #endif
#endif /* __ADC_CONTEXT_H__ */ #endif /* ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_ */

View file

@ -33,8 +33,8 @@
* @brief Designware ADC header file * @brief Designware ADC header file
*/ */
#ifndef DW_ADC_H_ #ifndef ZEPHYR_DRIVERS_ADC_ADC_DW_H_
#define DW_ADC_H_ #define ZEPHYR_DRIVERS_ADC_ADC_DW_H_
#include <zephyr/types.h> #include <zephyr/types.h>
#include <adc.h> #include <adc.h>
@ -234,4 +234,4 @@ int adc_dw_init(struct device *dev);
} }
#endif #endif
#endif /* DW_ADC_H_ */ #endif /* ZEPHYR_DRIVERS_ADC_ADC_DW_H_ */

View file

@ -5,8 +5,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __ADC108S102_PRIV_H__ #ifndef ZEPHYR_DRIVERS_ADC_ADC_TI_ADC108S102_H_
#define __ADC108S102_PRIV_H__ #define ZEPHYR_DRIVERS_ADC_ADC_TI_ADC108S102_H_
#include <spi.h> #include <spi.h>
#include <adc.h> #include <adc.h>
@ -53,4 +53,4 @@ struct ti_adc108s102_data {
} }
#endif #endif
#endif /* __ADC108S102_PRIV_H__ */ #endif /* ZEPHYR_DRIVERS_ADC_ADC_TI_ADC108S102_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __TLV320DAC3101_H__ #ifndef ZEPHYR_DRIVERS_AUDIO_TLV320DAC310X_H_
#define __TLV320DAC3101_H__ #define ZEPHYR_DRIVERS_AUDIO_TLV320DAC310X_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -158,4 +158,4 @@ enum cm_voltage {
} }
#endif #endif
#endif /* __TLV320DAC3101_H__ */ #endif /* ZEPHYR_DRIVERS_AUDIO_TLV320DAC310X_H_ */

View file

@ -5,8 +5,8 @@
* *
*/ */
#ifndef _STM32_CAN_H_ #ifndef ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
#define _STM32_CAN_H_ #define ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
#include <can.h> #include <can.h>
@ -74,4 +74,4 @@ struct can_stm32_config {
void (*config_irq)(CAN_TypeDef *can); void (*config_irq)(CAN_TypeDef *can);
}; };
#endif /*_STM32_CAN_H_*/ #endif /*ZEPHYR_DRIVERS_CAN_STM32_CAN_H_*/

View file

@ -5,8 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _STM32_LL_CLOCK_H_ #ifndef ZEPHYR_DRIVERS_CLOCK_CONTROL_STM32_LL_CLOCK_H_
#define _STM32_LL_CLOCK_H_ #define ZEPHYR_DRIVERS_CLOCK_CONTROL_STM32_LL_CLOCK_H_
void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit); void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit);
void config_enable_default_clocks(void); void config_enable_default_clocks(void);
@ -14,4 +14,4 @@ void config_enable_default_clocks(void);
/* Section for functions not available in every Cube packages */ /* Section for functions not available in every Cube packages */
void LL_RCC_MSI_Disable(void); void LL_RCC_MSI_Disable(void);
#endif /* _STM32_LL_CLOCK_H_ */ #endif /* ZEPHYR_DRIVERS_CLOCK_CONTROL_STM32_LL_CLOCK_H_ */

View file

@ -13,8 +13,8 @@
* (NVT: Network Virtual Terminal, see rfc854) * (NVT: Network Virtual Terminal, see rfc854)
*/ */
#ifndef __TELNET_PROTOCOL_H__ #ifndef ZEPHYR_DRIVERS_CONSOLE_TELNET_PROTOCOL_H_
#define __TELNET_PROTOCOL_H__ #define ZEPHYR_DRIVERS_CONSOLE_TELNET_PROTOCOL_H_
/** Printer/Keyboard codes */ /** Printer/Keyboard codes */
@ -122,4 +122,4 @@ static inline void telnet_command_cpy(struct telnet_simple_command *dst,
dst->opt = src->opt; dst->opt = src->opt;
} }
#endif /* __TELNET_PROTOCOL_H__ */ #endif /* ZEPHYR_DRIVERS_CONSOLE_TELNET_PROTOCOL_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _DRIVERS_DUALTIMER_CMSDK_AHB_ #ifndef ZEPHYR_DRIVERS_COUNTER_DUALTIMER_CMSDK_APB_H_
#define _DRIVERS_DUALTIMER_CMSDK_AHB_ #define ZEPHYR_DRIVERS_COUNTER_DUALTIMER_CMSDK_APB_H_
#include <counter.h> #include <counter.h>
@ -65,4 +65,4 @@ struct dualtimer_cmsdk_apb {
} }
#endif #endif
#endif /* _DRIVERS_DUALTIMER_CMSDK_AHB_ */ #endif /* ZEPHYR_DRIVERS_COUNTER_DUALTIMER_CMSDK_APB_H_ */

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _DRIVERS_TIMER_CMSDK_AHB_ #ifndef ZEPHYR_DRIVERS_COUNTER_TIMER_CMSDK_APB_H_
#define _DRIVERS_TIMER_CMSDK_AHB_ #define ZEPHYR_DRIVERS_COUNTER_TIMER_CMSDK_APB_H_
#include <counter.h> #include <counter.h>
@ -37,4 +37,4 @@ struct timer_cmsdk_apb {
} }
#endif #endif
#endif /* _DRIVERS_TIMER_CMSDK_AHB_ */ #endif /* ZEPHYR_DRIVERS_COUNTER_TIMER_CMSDK_APB_H_ */

View file

@ -5,8 +5,8 @@
* *
*/ */
#ifndef _ATAES132A_PRIV_ #ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_ATAES132A_PRIV_H_
#define _ATAES132A_PRIV_ #define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_ATAES132A_PRIV_H_
#include <i2c.h> #include <i2c.h>
#include <kernel.h> #include <kernel.h>
@ -391,4 +391,4 @@ int ataes132a_aes_ecb_block(struct device *i2c_dev,
u8_t key_id, u8_t key_id,
struct cipher_pkt *pkt); struct cipher_pkt *pkt);
#endif /* _ATAES132A_PRIV_ */ #endif /* ZEPHYR_DRIVERS_CRYPTO_CRYPTO_ATAES132A_PRIV_H_ */

View file

@ -14,8 +14,8 @@
* from dynamic memory allocation. * from dynamic memory allocation.
*/ */
#ifndef __TC_SHIM_PRIV_H__ #ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_
#define __TC_SHIM_PRIV_H__ #define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_
#include <tinycrypt/aes.h> #include <tinycrypt/aes.h>
@ -24,4 +24,4 @@ struct tc_shim_drv_state {
struct tc_aes_key_sched_struct session_key; struct tc_aes_key_sched_struct session_key;
}; };
#endif /* __TC_SHIM_PRIV_H__ */ #endif /* ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_ */

View file

@ -2,8 +2,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef DISPLAY_ILI9340_H #ifndef ZEPHYR_DRIVERS_DISPLAY_DISPLAY_ILI9340_H_
#define DISPLAY_ILI9340_H #define ZEPHYR_DRIVERS_DISPLAY_DISPLAY_ILI9340_H_
#include <zephyr.h> #include <zephyr.h>
@ -60,4 +60,4 @@ void ili9340_transmit(struct ili9340_data *data, u8_t cmd, void *tx_data,
*/ */
void ili9340_lcd_init(struct ili9340_data *data); void ili9340_lcd_init(struct ili9340_data *data);
#endif /* DISPLAY_ILI9340_H */ #endif /* ZEPHYR_DRIVERS_DISPLAY_DISPLAY_ILI9340_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _DMA_CAVS_H_ #ifndef ZEPHYR_DRIVERS_DMA_DMA_CAVS_H_
#define _DMA_CAVS_H_ #define ZEPHYR_DRIVERS_DMA_DMA_CAVS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -130,4 +130,4 @@ struct dw_dma_dev_cfg {
} }
#endif #endif
#endif /* _DMA_CAVS_H_ */ #endif /* ZEPHYR_DRIVERS_DMA_DMA_CAVS_H_ */

View file

@ -8,8 +8,8 @@
* @brief Atmel SAM MCU family Direct Memory Access (XDMAC) driver. * @brief Atmel SAM MCU family Direct Memory Access (XDMAC) driver.
*/ */
#ifndef _DMA_SAM_XDMAC_H_ #ifndef ZEPHYR_DRIVERS_DMA_DMA_SAM_XDMAC_H_
#define _DMA_SAM_XDMAC_H_ #define ZEPHYR_DRIVERS_DMA_DMA_SAM_XDMAC_H_
#include <stdint.h> #include <stdint.h>
@ -129,4 +129,4 @@ struct sam_xdmac_linked_list_desc_view3 {
} }
#endif #endif
#endif /* _DMA_SAM_XDMAC_H_ */ #endif /* ZEPHYR_DRIVERS_DMA_DMA_SAM_XDMAC_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef DRIVERS_ETHERNET_ETH_DW_PRIV_H_ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_DW_PRIV_H_
#define DRIVERS_ETHERNET_ETH_DW_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_DW_PRIV_H_
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
#include <pci/pci.h> #include <pci/pci.h>
@ -207,4 +207,4 @@ struct eth_runtime {
} }
#endif #endif
#endif /* DRIVERS_ETHERNET_ETH_DW_PRIV_H_ */ #endif /* ZEPHYR_DRIVERS_ETHERNET_ETH_DW_PRIV_H_ */

View file

@ -8,8 +8,8 @@
* @brief Private functions for native posix ethernet driver. * @brief Private functions for native posix ethernet driver.
*/ */
#ifndef _ETH_NATIVE_POSIX_PRIV_H #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_
#define _ETH_NATIVE_POSIX_PRIV_H #define ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_
int eth_iface_create(const char *if_name, bool tun_only); int eth_iface_create(const char *if_name, bool tun_only);
int eth_iface_remove(int fd); int eth_iface_remove(int fd);
@ -37,4 +37,4 @@ static inline int eth_promisc_mode(const char *if_name, bool enable)
} }
#endif #endif
#endif /* _ETH_NATIVE_POSIX_PRIV_H */ #endif /* ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_ */

View file

@ -7,8 +7,8 @@
* @brief Atmel SAM MCU family Ethernet MAC (GMAC) driver. * @brief Atmel SAM MCU family Ethernet MAC (GMAC) driver.
*/ */
#ifndef _ETH_SAM_GMAC_PRIV_H_ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_SAM_GMAC_PRIV_H_
#define _ETH_SAM_GMAC_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_SAM_GMAC_PRIV_H_
#include <zephyr/types.h> #include <zephyr/types.h>
@ -209,4 +209,4 @@ struct eth_sam_dev_data {
#define DEV_DATA(dev) \ #define DEV_DATA(dev) \
((struct eth_sam_dev_data *const)(dev)->driver_data) ((struct eth_sam_dev_data *const)(dev)->driver_data)
#endif /* _ETH_SAM_GMAC_PRIV_H_ */ #endif /* ZEPHYR_DRIVERS_ETHERNET_ETH_SAM_GMAC_PRIV_H_ */

View file

@ -3,8 +3,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _ETH_STM32_HAL_PRIV_H_ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_STM32_HAL_PRIV_H_
#define _ETH_STM32_HAL_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_STM32_HAL_PRIV_H_
#include <kernel.h> #include <kernel.h>
#include <zephyr/types.h> #include <zephyr/types.h>
@ -44,5 +44,5 @@ struct eth_stm32_hal_dev_data {
#define DEV_DATA(dev) \ #define DEV_DATA(dev) \
((struct eth_stm32_hal_dev_data *)(dev)->driver_data) ((struct eth_stm32_hal_dev_data *)(dev)->driver_data)
#endif /* _ETH_STM32_HAL_PRIV_H_ */ #endif /* ZEPHYR_DRIVERS_ETHERNET_ETH_STM32_HAL_PRIV_H_ */

View file

@ -7,8 +7,8 @@
* @brief Atmel SAM MCU family Ethernet PHY (GMAC) driver. * @brief Atmel SAM MCU family Ethernet PHY (GMAC) driver.
*/ */
#ifndef _PHY_SAM_GMAC_H_ #ifndef ZEPHYR_DRIVERS_ETHERNET_PHY_SAM_GMAC_H_
#define _PHY_SAM_GMAC_H_ #define ZEPHYR_DRIVERS_ETHERNET_PHY_SAM_GMAC_H_
#include <zephyr/types.h> #include <zephyr/types.h>
#include <soc.h> #include <soc.h>
@ -57,4 +57,4 @@ u32_t phy_sam_gmac_id_get(const struct phy_sam_gmac_dev *phy);
} }
#endif #endif
#endif /* _PHY_SAM_GMAC_H_ */ #endif /* ZEPHYR_DRIVERS_ETHERNET_PHY_SAM_GMAC_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __FLASH_PRIV_H__ #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_PRIV_H_
#define __FLASH_PRIV_H__ #define ZEPHYR_DRIVERS_FLASH_FLASH_PRIV_H_
#if defined(CONFIG_FLASH_PAGE_LAYOUT) #if defined(CONFIG_FLASH_PAGE_LAYOUT)
static inline void flash_page_layout_not_implemented(void) static inline void flash_page_layout_not_implemented(void)

View file

@ -5,8 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef DRIVERS_FLASH_STM32_H #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_STM32_H_
#define DRIVERS_FLASH_STM32_H #define ZEPHYR_DRIVERS_FLASH_FLASH_STM32_H_
#include <flash_registers.h> #include <flash_registers.h>
@ -63,4 +63,4 @@ void flash_stm32_page_layout(struct device *dev,
size_t *layout_size); size_t *layout_size);
#endif #endif
#endif /* DRIVERS_FLASH_STM32_H */ #endif /* ZEPHYR_DRIVERS_FLASH_FLASH_STM32_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef DRIVERS_FLASH_FLASH_STM32_H_ #ifndef ZEPHYR_DRIVERS_FLASH_FLASH_STM32F3X_H_
#define DRIVERS_FLASH_FLASH_STM32_H_ #define ZEPHYR_DRIVERS_FLASH_FLASH_STM32F3X_H_
#include <soc.h> #include <soc.h>
#include <flash.h> #include <flash.h>
@ -63,4 +63,4 @@ u8_t flash_stm32_erase_page(struct device *flash,
u8_t flash_stm32_erase_all_pages(struct device *flash); u8_t flash_stm32_erase_all_pages(struct device *flash);
#endif /* DRIVERS_FLASH_FLASH_STM32_H_ */ #endif /* ZEPHYR_DRIVERS_FLASH_FLASH_STM32F3X_H_ */

View file

@ -10,8 +10,8 @@
* @brief This file defines the private data structures for spi flash driver * @brief This file defines the private data structures for spi flash driver
*/ */
#ifndef __SPI_FLASH_W25QXXDV_H__ #ifndef ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_
#define __SPI_FLASH_W25QXXDV_H__ #define ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_
struct spi_flash_data { struct spi_flash_data {
@ -26,4 +26,4 @@ struct spi_flash_data {
}; };
#endif /* __SPI_FLASH_W25QXXDV_H__ */ #endif /* ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_H_ */

View file

@ -10,8 +10,8 @@
* @brief This file has the WinBond SPI flash private definitions * @brief This file has the WinBond SPI flash private definitions
*/ */
#ifndef __SPI_FLASH_W25QXXDV_DEFS_H__ #ifndef ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_DEFS_H_
#define __SPI_FLASH_W25QXXDV_DEFS_H__ #define ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_DEFS_H_
/* Status Registers /* Status Registers
* S7 S6 S5 S4 S3 S2 S1 S0 * S7 S6 S5 S4 S3 S2 S1 S0
@ -115,4 +115,4 @@
#define W25QXXDV_CMD_NOP 0x00 #define W25QXXDV_CMD_NOP 0x00
#endif /*__SPI_FLASH_W25QXXDV_DEFS_H__*/ #endif /*ZEPHYR_DRIVERS_FLASH_SPI_FLASH_W25QXXDV_DEFS_H_*/

View file

@ -3,8 +3,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _DRIVERS_GPIO_CMSDK_AHB_ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_CMSDK_AHB_H_
#define _DRIVERS_GPIO_CMSDK_AHB_ #define ZEPHYR_DRIVERS_GPIO_GPIO_CMSDK_AHB_H_
#include <gpio.h> #include <gpio.h>
@ -56,4 +56,4 @@ struct gpio_cmsdk_ahb {
} }
#endif #endif
#endif /* _DRIVERS_GPIO_CMSDK_AHB_ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_CMSDK_AHB_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _GPIO_DW_H_ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_
#define _GPIO_DW_H_ #define ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_
#include <zephyr/types.h> #include <zephyr/types.h>
#include <gpio.h> #include <gpio.h>
@ -55,4 +55,4 @@ struct gpio_dw_runtime {
} }
#endif #endif
#endif /* _GPIO_DW_H_ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_DW_H_ */

View file

@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _GPIO_DW_REGISTERS_H_ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_DW_REGISTERS_H_
#define _GPIO_DW_REGISTERS_H_ #define ZEPHYR_DRIVERS_GPIO_GPIO_DW_REGISTERS_H_
#ifdef CONFIG_SOC_QUARK_SE_C1000_SS #ifdef CONFIG_SOC_QUARK_SE_C1000_SS
#define SWPORTA_DR 0x00 #define SWPORTA_DR 0x00
@ -61,4 +61,4 @@
#define LS_SYNC_POS (0) #define LS_SYNC_POS (0)
#endif /* _GPIO_DW_REGISTERS_H_ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_DW_REGISTERS_H_ */

View file

@ -8,8 +8,8 @@
* @file Header file for the PCAL9535A driver. * @file Header file for the PCAL9535A driver.
*/ */
#ifndef _GPIO_PCAL9535A_H_ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_PCAL9535A_H_
#define _GPIO_PCAL9535A_H_ #define ZEPHYR_DRIVERS_GPIO_GPIO_PCAL9535A_H_
#include <kernel.h> #include <kernel.h>
@ -64,4 +64,4 @@ struct gpio_pcal9535a_drv_data {
} }
#endif #endif
#endif /* _GPIO_PCAL9535A_H_ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_PCAL9535A_H_ */

View file

@ -7,8 +7,8 @@
*/ */
#ifndef __GPIO_SCH_H__ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_SCH_H_
#define __GPIO_SCH_H__ #define ZEPHYR_DRIVERS_GPIO_GPIO_SCH_H_
#include <zephyr/types.h> #include <zephyr/types.h>
#include <kernel.h> #include <kernel.h>
@ -48,4 +48,4 @@ struct gpio_sch_data {
u8_t stride[3]; u8_t stride[3];
}; };
#endif /* __GPIO_SCH_H__ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_SCH_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _STM32_GPIO_H_ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_STM32_H_
#define _STM32_GPIO_H_ #define ZEPHYR_DRIVERS_GPIO_GPIO_STM32_H_
/** /**
* @file header for STM32 GPIO * @file header for STM32 GPIO
@ -170,5 +170,5 @@ int stm32_gpio_get(u32_t *base, int pin);
*/ */
int stm32_gpio_enable_int(int port, int pin); int stm32_gpio_enable_int(int port, int pin);
#endif /* _STM32_GPIO_H_ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_STM32_H_ */

View file

@ -8,8 +8,8 @@
* @file Header where utility code can be found for GPIO drivers * @file Header where utility code can be found for GPIO drivers
*/ */
#ifndef __GPIO_UTILS_H__ #ifndef ZEPHYR_DRIVERS_GPIO_GPIO_UTILS_H_
#define __GPIO_UTILS_H__ #define ZEPHYR_DRIVERS_GPIO_GPIO_UTILS_H_
/** /**
@ -54,4 +54,4 @@ static inline void _gpio_fire_callbacks(sys_slist_t *list,
} }
} }
#endif /* __GPIO_UTILS_H__ */ #endif /* ZEPHYR_DRIVERS_GPIO_GPIO_UTILS_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef _I2C_PRIV_H_ #ifndef ZEPHYR_DRIVERS_I2C_I2C_PRIV_H_
#define _I2C_PRIV_H_ #define ZEPHYR_DRIVERS_I2C_I2C_PRIV_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -43,4 +43,4 @@ static inline u32_t _i2c_map_dt_bitrate(u32_t bitrate)
} }
#endif #endif
#endif /* _I2C_PRIV_H_ */ #endif /* ZEPHYR_DRIVERS_I2C_I2C_PRIV_H_ */

View file

@ -5,8 +5,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __DRIVERS_I2C_DW_H #ifndef ZEPHYR_DRIVERS_I2C_I2C_DW_H_
#define __DRIVERS_I2C_DW_H #define ZEPHYR_DRIVERS_I2C_I2C_DW_H_
#include <i2c.h> #include <i2c.h>
#include <stdbool.h> #include <stdbool.h>
@ -121,4 +121,4 @@ struct i2c_dw_dev_config {
} }
#endif #endif
#endif /* __DRIVERS_I2C_DW_H */ #endif /* ZEPHYR_DRIVERS_I2C_I2C_DW_H_ */

View file

@ -5,8 +5,8 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#ifndef __DRIVERS_I2C_DW_REGISTERS_H #ifndef ZEPHYR_DRIVERS_I2C_I2C_DW_REGISTERS_H_
#define __DRIVERS_I2C_DW_REGISTERS_H #define ZEPHYR_DRIVERS_I2C_I2C_DW_REGISTERS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -257,4 +257,4 @@ struct i2c_dw_registers {
} }
#endif #endif
#endif /* __DRIVERS_I2C_DW_REGISTERS_H */ #endif /* ZEPHYR_DRIVERS_I2C_I2C_DW_REGISTERS_H_ */

View file

@ -6,8 +6,8 @@
* *
*/ */
#ifndef _STM32_I2C_H_ #ifndef ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_
#define _STM32_I2C_H_ #define ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_
typedef void (*irq_config_func_t)(struct device *port); typedef void (*irq_config_func_t)(struct device *port);
@ -72,4 +72,4 @@ int i2c_stm32_slave_unregister(struct device *dev,
#define DEV_CFG(dev) \ #define DEV_CFG(dev) \
((const struct i2c_stm32_config * const)(dev)->config->config_info) ((const struct i2c_stm32_config * const)(dev)->config->config_info)
#endif /* _STM32_I2C_H_ */ #endif /* ZEPHYR_DRIVERS_I2C_I2C_LL_STM32_H_ */

Some files were not shown because too many files have changed in this diff Show more