Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
arc_addr_types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Synopsys.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_
8
#define ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_
9
#ifndef _ASMLANGUAGE
10
11
/*
12
* MWDT provides paddr_t type and it conflicts witn Zephyr definition:
13
* - Zephyr defines paddr_t as a uintptr_t
14
* - MWDT defines paddr_t as a unsigned long
15
* This causes extra warnings. However we can safely define
16
* paddr_t as a unsigned long for the case when MWDT toolchain is used as
17
* they are both unsighned, have same size and aligning.
18
*/
19
#ifdef __CCAC__
20
typedef
unsigned
long
paddr_t
;
21
typedef
void
*
vaddr_t
;
22
#else
23
#include <
arch/common/addr_types.h
>
24
#endif
25
26
#endif
/* _ASMLANGUAGE */
27
#endif
/* ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_ */
addr_types.h
paddr_t
uintptr_t paddr_t
Definition:
addr_types.h:13
vaddr_t
void * vaddr_t
Definition:
addr_types.h:14
include
arch
arc
arc_addr_types.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4