]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M0+_LPC51U68_GCC_IAR_KEIL/device/system_LPC51U68.h
Increase test coverage for queue sets.
[freertos] / FreeRTOS / Demo / CORTEX_M0+_LPC51U68_GCC_IAR_KEIL / device / system_LPC51U68.h
1 /*\r
2 ** ###################################################################\r
3 **     Processors:          LPC51U68JBD48\r
4 **                          LPC51U68JBD64\r
5 **\r
6 **     Compilers:           Keil ARM C/C++ Compiler\r
7 **                          GNU C Compiler\r
8 **                          IAR ANSI C/C++ Compiler for ARM\r
9 **                          MCUXpresso Compiler\r
10 **\r
11 **     Reference manual:    LPC51U68 User manual User manual Rev. 1.0 13 Dec 2017\r
12 **     Version:             rev. 1.0, 2017-12-15\r
13 **     Build:               b180802\r
14 **\r
15 **     Abstract:\r
16 **         Provides a system configuration function and a global variable that\r
17 **         contains the system frequency. It configures the device and initializes\r
18 **         the oscillator (PLL) that is part of the microcontroller device.\r
19 **\r
20 **     Copyright 2016 Freescale Semiconductor, Inc.\r
21 **     Copyright 2016-2018 NXP\r
22 **\r
23 **     SPDX-License-Identifier: BSD-3-Clause\r
24 **\r
25 **     http:                 www.nxp.com\r
26 **     mail:                 support@nxp.com\r
27 **\r
28 **     Revisions:\r
29 **     - rev. 1.0 (2017-12-15)\r
30 **         Initial version.\r
31 **\r
32 ** ###################################################################\r
33 */\r
34 \r
35 /*!\r
36  * @file LPC51U68\r
37  * @version 1.0\r
38  * @date 2017-12-15\r
39  * @brief Device specific configuration file for LPC51U68 (header file)\r
40  *\r
41  * Provides a system configuration function and a global variable that contains\r
42  * the system frequency. It configures the device and initializes the oscillator\r
43  * (PLL) that is part of the microcontroller device.\r
44  */\r
45 \r
46 #ifndef _SYSTEM_LPC51U68_H_\r
47 #define _SYSTEM_LPC51U68_H_                      /**< Symbol preventing repeated inclusion */\r
48 \r
49 #ifdef __cplusplus\r
50 extern "C" {\r
51 #endif\r
52 \r
53 #include <stdint.h>\r
54 \r
55 \r
56 #define DEFAULT_SYSTEM_CLOCK           12000000u           /* Default System clock value */\r
57 #define CLK_RTC_32K_CLK                   32768u           /* RTC oscillator 32 kHz output (32k_clk */\r
58 #define CLK_FRO_12MHZ                  12000000u           /* FRO 12 MHz (fro_12m) */\r
59 #define CLK_FRO_48MHZ                  48000000u           /* FRO 48 MHz (fro_48m) */\r
60 #define CLK_FRO_96MHZ                  96000000u           /* FRO 96 MHz (fro_96m) */\r
61 #define CLK_CLK_IN                            0u           /* Default CLK_IN pin clock */\r
62 \r
63 \r
64 /**\r
65  * @brief System clock frequency (core clock)\r
66  *\r
67  * The system clock frequency supplied to the SysTick timer and the processor\r
68  * core clock. This variable can be used by the user application to setup the\r
69  * SysTick timer or configure other parameters. It may also be used by debugger to\r
70  * query the frequency of the debug timer or configure the trace clock speed\r
71  * SystemCoreClock is initialized with a correct predefined value.\r
72  */\r
73 extern uint32_t SystemCoreClock;\r
74 \r
75 /**\r
76  * @brief Setup the microcontroller system.\r
77  *\r
78  * Typically this function configures the oscillator (PLL) that is part of the\r
79  * microcontroller device. For systems with variable clock speed it also updates\r
80  * the variable SystemCoreClock. SystemInit is called from startup_device file.\r
81  */\r
82 void SystemInit (void);\r
83 \r
84 /**\r
85  * @brief Updates the SystemCoreClock variable.\r
86  *\r
87  * It must be called whenever the core clock is changed during program\r
88  * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates\r
89  * the current core clock.\r
90  */\r
91 void SystemCoreClockUpdate (void);\r
92 \r
93 #ifdef __cplusplus\r
94 }\r
95 #endif\r
96 \r
97 #endif  /* _SYSTEM_LPC51U68_H_ */\r