1 | /** |
---|
2 | * @file tms570-vim.h |
---|
3 | * |
---|
4 | * @ingroup tms570 |
---|
5 | * |
---|
6 | * @brief Vectored Interrupt Module (VIM) header file. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2014 Premysl Houdek <kom541000@gmail.com> |
---|
11 | * |
---|
12 | * Google Summer of Code 2014 at |
---|
13 | * Czech Technical University in Prague |
---|
14 | * Zikova 1903/4 |
---|
15 | * 166 36 Praha 6 |
---|
16 | * Czech Republic |
---|
17 | * |
---|
18 | * Based on LPC24xx and LPC1768 BSP |
---|
19 | * by embedded brains GmbH and others |
---|
20 | * |
---|
21 | * The license and distribution terms for this file may be |
---|
22 | * found in the file LICENSE in this distribution or at |
---|
23 | * http://www.rtems.org/license/LICENSE. |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef LIBBSP_ARM_TMS570_VIM_H |
---|
27 | #define LIBBSP_ARM_TMS570_VIM_H |
---|
28 | |
---|
29 | #ifndef ASM |
---|
30 | #include <rtems.h> |
---|
31 | #include <stdint.h> |
---|
32 | |
---|
33 | #ifdef __cplusplus |
---|
34 | extern "C" { |
---|
35 | #endif /* __cplusplus */ |
---|
36 | |
---|
37 | typedef struct{ |
---|
38 | uint32_t PARFLG; /* InterruptVectorTableParityFlagRegister */ |
---|
39 | uint32_t PARCTL; /* InterruptVectorTableParityControlRegister */ |
---|
40 | uint32_t ADDERR; /* AddressParityErrorRegister */ |
---|
41 | uint32_t FBPARERR; /* Fall-BackAddressParityErrorRegister */ |
---|
42 | uint32_t reserved1 [0x4/4]; |
---|
43 | uint32_t IRQINDEX; /* IRQIndexOffsetVectorRegister */ |
---|
44 | uint32_t FIQINDEX; /* FIQIndexOffsetVectorRegister */ |
---|
45 | uint32_t reserved2 [0x8/4]; |
---|
46 | uint32_t FIRQPR[3]; /* FIQ/IRQProgramControlRegister0 */ |
---|
47 | uint32_t reserved3 [0x4/4]; |
---|
48 | uint32_t INTREQ[3]; /* PendingInterruptReadLocationRegister0 */ |
---|
49 | uint32_t reserved4 [0x4/4]; |
---|
50 | uint32_t REQENASET[3]; /* InterruptEnableSetRegister0 */ |
---|
51 | uint32_t reserved5 [0x4/4]; |
---|
52 | uint32_t REQENACLR[3]; /* InterruptEnableClearRegister0 */ |
---|
53 | uint32_t reserved6 [0x4/4]; |
---|
54 | uint32_t WAKEENASET[3]; /* Wake-upEnableSetRegister0 */ |
---|
55 | uint32_t reserved7 [0x4/4]; |
---|
56 | uint32_t WAKEENACLR[3]; /* Wake-upEnableClearRegister0 */ |
---|
57 | uint32_t reserved8 [0x4/4]; |
---|
58 | uint32_t IRQVECREG; /* IRQInterruptVectorRegister */ |
---|
59 | uint32_t FIQVECREG; /* FIQInterruptVectorRegister */ |
---|
60 | uint32_t CAPEVT; /* CaptureEventRegister */ |
---|
61 | uint32_t reserved9 [0x4/4]; |
---|
62 | uint32_t CHANCTRL [0x5c/4]; /* VIM Interrupt Control Register (PARSER ERROR) */ |
---|
63 | }tms570_vim_t; |
---|
64 | |
---|
65 | #define TMS570_VIM (*(volatile tms570_vim_t*)0xFFFFFDEC) |
---|
66 | |
---|
67 | #endif |
---|
68 | |
---|
69 | /** @} */ |
---|
70 | |
---|
71 | #ifdef __cplusplus |
---|
72 | } |
---|
73 | #endif /* __cplusplus */ |
---|
74 | |
---|
75 | #endif /* LIBBSP_ARM_TMS570_IRQ_H */ |
---|