aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h
new file mode 100644
index 000000000..b51259965
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54113/system_LPC54113.h
@@ -0,0 +1,110 @@
1/*
2** ###################################################################
3** Processors: LPC54113J128BD64
4** LPC54113J256BD64
5** LPC54113J256UK49
6**
7** Compilers: Keil ARM C/C++ Compiler
8** GNU C Compiler
9** IAR ANSI C/C++ Compiler for ARM
10** MCUXpresso Compiler
11**
12** Reference manual: LPC5411x User manual Rev. 1.1 25 May 2016
13** Version: rev. 1.0, 2016-04-29
14** Build: b180802
15**
16** Abstract:
17** Provides a system configuration function and a global variable that
18** contains the system frequency. It configures the device and initializes
19** the oscillator (PLL) that is part of the microcontroller device.
20**
21** Copyright 2016 Freescale Semiconductor, Inc.
22** Copyright 2016-2018 NXP
23**
24** SPDX-License-Identifier: BSD-3-Clause
25**
26** http: www.nxp.com
27** mail: [email protected]
28**
29** Revisions:
30** - rev. 1.0 (2016-04-29)
31** Initial version.
32**
33** ###################################################################
34*/
35
36/*!
37 * @file LPC54113
38 * @version 1.0
39 * @date 2016-04-29
40 * @brief Device specific configuration file for LPC54113 (header file)
41 *
42 * Provides a system configuration function and a global variable that contains
43 * the system frequency. It configures the device and initializes the oscillator
44 * (PLL) that is part of the microcontroller device.
45 */
46
47#ifndef _SYSTEM_LPC54113_H_
48#define _SYSTEM_LPC54113_H_ /**< Symbol preventing repeated inclusion */
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54#include <stdint.h>
55
56
57#define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */
58#define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz output (32k_clk */
59#define CLK_FRO_12MHZ 12000000u /* FRO 12 MHz (fro_12m) */
60#define CLK_FRO_48MHZ 48000000u /* FRO 48 MHz (fro_48m) */
61#define CLK_FRO_96MHZ 96000000u /* FRO 96 MHz (fro_96m) */
62#define CLK_CLK_IN 0u /* Default CLK_IN pin clock */
63
64
65/**
66 * @brief System clock frequency (core clock)
67 *
68 * The system clock frequency supplied to the SysTick timer and the processor
69 * core clock. This variable can be used by the user application to setup the
70 * SysTick timer or configure other parameters. It may also be used by debugger to
71 * query the frequency of the debug timer or configure the trace clock speed
72 * SystemCoreClock is initialized with a correct predefined value.
73 */
74extern uint32_t SystemCoreClock;
75
76/**
77 * @brief Setup the microcontroller system.
78 *
79 * Typically this function configures the oscillator (PLL) that is part of the
80 * microcontroller device. For systems with variable clock speed it also updates
81 * the variable SystemCoreClock. SystemInit is called from startup_device file.
82 */
83void SystemInit (void);
84
85/**
86 * @brief Updates the SystemCoreClock variable.
87 *
88 * It must be called whenever the core clock is changed during program
89 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
90 * the current core clock.
91 */
92void SystemCoreClockUpdate (void);
93
94/**
95 * @brief SystemInit function hook.
96 *
97 * This weak function allows to call specific initialization code during the
98 * SystemInit() execution.This can be used when an application specific code needs
99 * to be called as close to the reset entry as possible (for example the Multicore
100 * Manager MCMGR_EarlyInit() function call).
101 * NOTE: No global r/w variables can be used in this hook function because the
102 * initialization of these variables happens after this function.
103 */
104void SystemInitHook (void);
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif /* _SYSTEM_LPC54113_H_ */