diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC810/project_template/clock_config.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/LPC810/project_template/clock_config.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC810/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC810/project_template/clock_config.h new file mode 100644 index 000000000..1e477ec2e --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC810/project_template/clock_config.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* | ||
2 | * Copyright 2018 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | #ifndef _CLOCK_CONFIG_H_ | ||
9 | #define _CLOCK_CONFIG_H_ | ||
10 | |||
11 | #include "fsl_common.h" | ||
12 | |||
13 | /******************************************************************************* | ||
14 | * Definitions | ||
15 | ******************************************************************************/ | ||
16 | #define BOARD_XTAL0_CLK_HZ 12000000U /*!< Board xtal0 frequency in Hz */ | ||
17 | #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */ | ||
18 | |||
19 | /******************************************************************************* | ||
20 | ************************ BOARD_InitBootClocks function ************************ | ||
21 | ******************************************************************************/ | ||
22 | |||
23 | #if defined(__cplusplus) | ||
24 | extern "C" { | ||
25 | #endif /* __cplusplus*/ | ||
26 | |||
27 | /*! | ||
28 | * @brief This function executes default configuration of clocks. | ||
29 | * | ||
30 | */ | ||
31 | void BOARD_InitBootClocks(void); | ||
32 | |||
33 | #if defined(__cplusplus) | ||
34 | } | ||
35 | #endif /* __cplusplus*/ | ||
36 | |||
37 | /******************************************************************************* | ||
38 | ********************** Configuration BOARD_BootClockRUN *********************** | ||
39 | ******************************************************************************/ | ||
40 | /******************************************************************************* | ||
41 | * Definitions for BOARD_BootClockRUN configuration | ||
42 | ******************************************************************************/ | ||
43 | #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */ | ||
44 | |||
45 | |||
46 | /******************************************************************************* | ||
47 | * API for BOARD_BootClockRUN configuration | ||
48 | ******************************************************************************/ | ||
49 | #if defined(__cplusplus) | ||
50 | extern "C" { | ||
51 | #endif /* __cplusplus*/ | ||
52 | |||
53 | /*! | ||
54 | * @brief This function executes configuration of clocks. | ||
55 | * | ||
56 | */ | ||
57 | void BOARD_BootClockRUN(void); | ||
58 | |||
59 | #if defined(__cplusplus) | ||
60 | } | ||
61 | #endif /* __cplusplus*/ | ||
62 | |||
63 | #endif /* _CLOCK_CONFIG_H_ */ | ||
64 | |||