]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/Library/het.h
Update version number to 9.0.0rc2.
[freertos] / FreeRTOS / Demo / CORTEX_R4_RM48_TMS570_CCS5 / Library / het.h
1 /*\r
2     FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.\r
3     All rights reserved\r
4 \r
5     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
6 \r
7     This file is part of the FreeRTOS distribution.\r
8 \r
9     FreeRTOS is free software; you can redistribute it and/or modify it under\r
10     the terms of the GNU General Public License (version 2) as published by the\r
11     Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
12 \r
13     ***************************************************************************\r
14     >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
15     >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
16     >>!   obliged to provide the source code for proprietary components     !<<\r
17     >>!   outside of the FreeRTOS kernel.                                   !<<\r
18     ***************************************************************************\r
19 \r
20     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
21     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
22     FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
23     link: http://www.freertos.org/a00114.html\r
24 \r
25     ***************************************************************************\r
26      *                                                                       *\r
27      *    FreeRTOS provides completely free yet professionally developed,    *\r
28      *    robust, strictly quality controlled, supported, and cross          *\r
29      *    platform software that is more than just the market leader, it     *\r
30      *    is the industry's de facto standard.                               *\r
31      *                                                                       *\r
32      *    Help yourself get started quickly while simultaneously helping     *\r
33      *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
34      *    tutorial book, reference manual, or both:                          *\r
35      *    http://www.FreeRTOS.org/Documentation                              *\r
36      *                                                                       *\r
37     ***************************************************************************\r
38 \r
39     http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading\r
40     the FAQ page "My application does not run, what could be wrong?".  Have you\r
41     defined configASSERT()?\r
42 \r
43     http://www.FreeRTOS.org/support - In return for receiving this top quality\r
44     embedded software for free we request you assist our global community by\r
45     participating in the support forum.\r
46 \r
47     http://www.FreeRTOS.org/training - Investing in training allows your team to\r
48     be as productive as possible as early as possible.  Now you can receive\r
49     FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers\r
50     Ltd, and the world's leading authority on the world's leading RTOS.\r
51 \r
52     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
53     including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
54     compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
55 \r
56     http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
57     Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
58 \r
59     http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High\r
60     Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
61     licenses offer ticketed support, indemnification and commercial middleware.\r
62 \r
63     http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
64     engineered and independently SIL3 certified version for use in safety and\r
65     mission critical applications that require provable dependability.\r
66 \r
67     1 tab == 4 spaces!\r
68 */\r
69 \r
70 #ifndef __HET_H__\r
71 #define __HET_H__\r
72 \r
73 #include "gio.h"\r
74 \r
75 /** @struct hetBase\r
76 *   @brief HET Register Definition\r
77 *\r
78 *   This structure is used to access the HET module egisters.\r
79 */\r
80 /** @typedef hetBASE_t\r
81 *   @brief HET Register Frame Type Definition\r
82 *\r
83 *   This type is used to access the HET Registers.\r
84 */\r
85 typedef volatile struct hetBase\r
86 {\r
87     unsigned GCR;     /**< 0x0000: Global control register              */\r
88     unsigned PFR;     /**< 0x0004: Prescale factor register             */\r
89     unsigned ADDR;    /**< 0x0008: Current address register             */\r
90     unsigned OFF1;    /**< 0x000C: Interrupt offset register 1          */\r
91     unsigned OFF2;    /**< 0x0010: Interrupt offset register 2          */\r
92     unsigned INTENAS; /**< 0x0014: Interrupt enable set register        */\r
93     unsigned INTENAC; /**< 0x0018: Interrupt enable clear register      */\r
94     unsigned EXC1;    /**< 0x001C: Exeption control register 1          */\r
95     unsigned EXC2;    /**< 0x0020: Exeption control register 2          */\r
96     unsigned PRY;     /**< 0x0024: Interrupt priority register          */\r
97     unsigned FLG;     /**< 0x0028: Interrupt flag register              */\r
98     unsigned : 32U;   /**< 0x002C: Reserved                             */\r
99     unsigned : 32U;   /**< 0x0030: Reserved                             */\r
100     unsigned HRSH;    /**< 0x0034: High resoltion share register        */\r
101     unsigned XOR;     /**< 0x0038: XOR share register                   */\r
102     unsigned REQENS;  /**< 0x003C: Request enable set register          */\r
103     unsigned REQENC;  /**< 0x0040: Request enable clear register        */\r
104     unsigned REQDS;   /**< 0x0044: Request destination select register  */\r
105     unsigned : 32U;   /**< 0x0048: Reserved                             */\r
106     unsigned DIR;     /**< 0x004C: Direction register                   */\r
107     unsigned DIN;     /**< 0x0050: Data input register                  */\r
108     unsigned DOUT;    /**< 0x0054: Data output register                 */\r
109     unsigned DSET;    /**< 0x0058: Data output set register             */\r
110     unsigned DCLR;    /**< 0x005C: Data output clear register           */\r
111     unsigned PDR;     /**< 0x0060: Open drain register                  */\r
112     unsigned PULDIS;  /**< 0x0064: Pull disable register                */\r
113     unsigned PSL;     /**< 0x0068: Pull select register                 */\r
114     unsigned : 32U;   /**< 0x006C: Reserved                             */\r
115     unsigned : 32U;   /**< 0x0070: Reserved                             */\r
116     unsigned PCREG;   /**< 0x0074: Parity control register              */\r
117     unsigned PAR;     /**< 0x0078: Parity address register              */\r
118     unsigned PPR;     /**< 0x007C: Parity pin select register           */\r
119     unsigned SFPRLD;  /**< 0x0080: Suppression filter preload register  */\r
120     unsigned SFENA;   /**< 0x0084: Suppression filter enable register   */\r
121     unsigned : 32U;   /**< 0x0088: Reserved                             */\r
122     unsigned LBPSEL;  /**< 0x008C: Loop back pair select register       */\r
123     unsigned LBPDIR;  /**< 0x0090: Loop back pair direction register    */\r
124 } hetBASE_t;\r
125 \r
126 \r
127 /** @def hetREG\r
128 *   @brief HET Register Frame Pointer\r
129 *\r
130 *   This pointer is used by the HET driver to access the het module registers.\r
131 */\r
132 #define hetREG ((hetBASE_t *)0xFFF7B800U)\r
133 \r
134 \r
135 /** @def hetPORT\r
136 *   @brief HET GIO Port Register Pointer\r
137 *\r
138 *   Pointer used by the GIO driver to access I/O PORT of HET\r
139 *   (use the GIO drivers to access the port pins).\r
140 */\r
141 #define hetPORT ((gioPORT_t *)0xFFF7B84CU)\r
142 \r
143 #endif\r