]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_MPU_MEC17xx_Keil_GCC/peripheral_library/system_internal.h
Add MPU project for multiple MEC17xx devices.
[freertos] / FreeRTOS / Demo / CORTEX_MPU_MEC17xx_Keil_GCC / peripheral_library / system_internal.h
1 /**************************************************************************//**\r
2  * @file     system_internal.h\r
3  * @brief    CMSIS Device System Header File for\r
4  *           Microchip ARMCM4F  Device Series\r
5  * @version  V1.08\r
6  * @date     23. November 2012\r
7  *\r
8  * @note\r
9  *\r
10  ******************************************************************************/\r
11 /* Copyright (c) 2011 - 2012 ARM LIMITED\r
12 \r
13    All rights reserved.\r
14    Redistribution and use in source and binary forms, with or without\r
15    modification, are permitted provided that the following conditions are met:\r
16    - Redistributions of source code must retain the above copyright\r
17      notice, this list of conditions and the following disclaimer.\r
18    - Redistributions in binary form must reproduce the above copyright\r
19      notice, this list of conditions and the following disclaimer in the\r
20      documentation and/or other materials provided with the distribution.\r
21    - Neither the name of ARM nor the names of its contributors may be used\r
22      to endorse or promote products derived from this software without\r
23      specific prior written permission.\r
24    *\r
25    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\r
26    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
27    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
28    ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE\r
29    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
30    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
31    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
32    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
33    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
34    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
35    POSSIBILITY OF SUCH DAMAGE.\r
36    ---------------------------------------------------------------------------*/\r
37 \r
38 \r
39 #ifndef SYSTEM_INTERNAL_H\r
40 #define SYSTEM_INTERNAL_H\r
41 \r
42 #ifdef __cplusplus\r
43 extern "C" {\r
44 #endif\r
45 \r
46 extern uint32_t SystemCoreClock;     /*!< System Clock Frequency (Core Clock)  */\r
47 \r
48 \r
49 /**\r
50  * Initialize the system\r
51  *\r
52  * @param  none\r
53  * @return none\r
54  *\r
55  * @brief  Setup the microcontroller system.\r
56  *         Initialize the System and update the SystemCoreClock variable.\r
57  */\r
58 extern void SystemInit (void);\r
59 \r
60 /**\r
61  * Update SystemCoreClock variable\r
62  *\r
63  * @param  none\r
64  * @return none\r
65  *\r
66  * @brief  Updates the SystemCoreClock with current core Clock\r
67  *         retrieved from cpu registers.\r
68  */\r
69 extern void SystemCoreClockUpdate (void);\r
70 \r
71 #define PCR MEC2016_PCR\r
72 #ifdef __cplusplus\r
73 }\r
74 #endif\r
75 \r
76 #endif /* SYSTEM_INTERNAL_H */\r