[66a5000d] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @brief Epiphany Architecture Types API |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | /* |
---|
| 8 | * Copyright (c) 2015 University of York. |
---|
| 9 | * Hesham ALMatary <hmka501@york.ac.uk> |
---|
| 10 | * |
---|
| 11 | * Redistribution and use in source and binary forms, with or without |
---|
| 12 | * modification, are permitted provided that the following conditions |
---|
| 13 | * are met: |
---|
| 14 | * 1. Redistributions of source code must retain the above copyright |
---|
| 15 | * notice, this list of conditions and the following disclaimer. |
---|
| 16 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
| 17 | * notice, this list of conditions and the following disclaimer in the |
---|
| 18 | * documentation and/or other materials provided with the distribution. |
---|
| 19 | * |
---|
| 20 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
---|
| 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
| 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
| 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
---|
| 24 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
| 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
| 26 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
| 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
| 28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
| 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
| 30 | * SUCH DAMAGE. |
---|
| 31 | */ |
---|
| 32 | |
---|
| 33 | #ifndef _RTEMS_SCORE_TYPES_H |
---|
| 34 | #define _RTEMS_SCORE_TYPES_H |
---|
| 35 | |
---|
| 36 | #include <rtems/score/basedefs.h> |
---|
| 37 | |
---|
| 38 | #ifndef ASM |
---|
| 39 | |
---|
| 40 | #ifdef __cplusplus |
---|
| 41 | extern "C" { |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | /** |
---|
| 45 | * @addtogroup ScoreCPU |
---|
| 46 | */ |
---|
| 47 | /**@{**/ |
---|
| 48 | |
---|
| 49 | /* |
---|
| 50 | * This section defines the basic types for this processor. |
---|
| 51 | */ |
---|
| 52 | |
---|
| 53 | /** Type that can store a 32-bit integer or a pointer. */ |
---|
| 54 | typedef uintptr_t CPU_Uint32ptr; |
---|
| 55 | |
---|
| 56 | typedef void epiphany_isr; |
---|
| 57 | typedef void ( *epiphany_isr_entry )( void ); |
---|
| 58 | |
---|
| 59 | /** @} */ |
---|
| 60 | |
---|
| 61 | #ifdef __cplusplus |
---|
| 62 | } |
---|
| 63 | #endif |
---|
| 64 | |
---|
| 65 | #endif /* !ASM */ |
---|
| 66 | |
---|
| 67 | #endif |
---|