clock_config.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /*
  2. * Copyright 2017 NXP
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef _CLOCK_CONFIG_H_
  8. #define _CLOCK_CONFIG_H_
  9. #include "fsl_common.h"
  10. /*******************************************************************************
  11. * Definitions
  12. ******************************************************************************/
  13. /*******************************************************************************
  14. ************************ BOARD_InitBootClocks function ************************
  15. ******************************************************************************/
  16. #if defined(__cplusplus)
  17. extern "C" {
  18. #endif /* __cplusplus*/
  19. /*!
  20. * @brief This function executes default configuration of clocks.
  21. *
  22. */
  23. void BOARD_InitBootClocks(void);
  24. #if defined(__cplusplus)
  25. }
  26. #endif /* __cplusplus*/
  27. /*******************************************************************************
  28. ********************** Configuration BOARD_BootClockRUN ***********************
  29. ******************************************************************************/
  30. /*******************************************************************************
  31. * Definitions for BOARD_BootClockRUN configuration
  32. ******************************************************************************/
  33. #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */
  34. /*! @brief SCG set for BOARD_BootClockRUN configuration.
  35. */
  36. extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockRUN;
  37. /*! @brief System OSC set for BOARD_BootClockRUN configuration.
  38. */
  39. extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockRUN;
  40. /*! @brief SIRC set for BOARD_BootClockRUN configuration.
  41. */
  42. extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockRUN;
  43. /*! @brief FIRC set for BOARD_BootClockRUN configuration.
  44. */
  45. extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockRUN;
  46. /*! @brief Low Power FLL set for BOARD_BootClockRUN configuration.
  47. */
  48. extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockRUN;
  49. /*******************************************************************************
  50. * API for BOARD_BootClockRUN configuration
  51. ******************************************************************************/
  52. #if defined(__cplusplus)
  53. extern "C" {
  54. #endif /* __cplusplus*/
  55. /*!
  56. * @brief This function executes configuration of clocks.
  57. *
  58. */
  59. void BOARD_BootClockRUN(void);
  60. #if defined(__cplusplus)
  61. }
  62. #endif /* __cplusplus*/
  63. /*******************************************************************************
  64. ********************* Configuration BOARD_BootClockHSRUN **********************
  65. ******************************************************************************/
  66. /*******************************************************************************
  67. * Definitions for BOARD_BootClockHSRUN configuration
  68. ******************************************************************************/
  69. #define BOARD_BOOTCLOCKHSRUN_CORE_CLOCK 72000000U /*!< Core clock frequency: 72000000Hz */
  70. /*! @brief SCG set for BOARD_BootClockHSRUN configuration.
  71. */
  72. extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockHSRUN;
  73. /*! @brief System OSC set for BOARD_BootClockHSRUN configuration.
  74. */
  75. extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockHSRUN;
  76. /*! @brief SIRC set for BOARD_BootClockHSRUN configuration.
  77. */
  78. extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockHSRUN;
  79. /*! @brief FIRC set for BOARD_BootClockHSRUN configuration.
  80. */
  81. extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockHSRUN;
  82. /*! @brief Low Power FLL set for BOARD_BootClockHSRUN configuration.
  83. */
  84. extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockHSRUN;
  85. /*******************************************************************************
  86. * API for BOARD_BootClockHSRUN configuration
  87. ******************************************************************************/
  88. #if defined(__cplusplus)
  89. extern "C" {
  90. #endif /* __cplusplus*/
  91. /*!
  92. * @brief This function executes configuration of clocks.
  93. *
  94. */
  95. void BOARD_BootClockHSRUN(void);
  96. #if defined(__cplusplus)
  97. }
  98. #endif /* __cplusplus*/
  99. /*******************************************************************************
  100. ********************* Configuration BOARD_BootClockVLPR ***********************
  101. ******************************************************************************/
  102. /*******************************************************************************
  103. * Definitions for BOARD_BootClockVLPR configuration
  104. ******************************************************************************/
  105. #define BOARD_BOOTCLOCKVLPR_CORE_CLOCK 4000000U /*!< Core clock frequency: 4000000Hz */
  106. /*! @brief SCG set for BOARD_BootClockVLPR configuration.
  107. */
  108. extern const scg_sys_clk_config_t g_sysClkConfig_BOARD_BootClockVLPR;
  109. /*! @brief System OSC set for BOARD_BootClockVLPR configuration.
  110. */
  111. extern const scg_sosc_config_t g_scgSysOscConfig_BOARD_BootClockVLPR;
  112. /*! @brief SIRC set for BOARD_BootClockVLPR configuration.
  113. */
  114. extern const scg_sirc_config_t g_scgSircConfig_BOARD_BootClockVLPR;
  115. /*! @brief FIRC set for BOARD_BootClockVLPR configuration.
  116. */
  117. extern const scg_firc_config_t g_scgFircConfigBOARD_BootClockVLPR;
  118. /*! @brief Low Power FLL set for BOARD_BootClockVLPR configuration.
  119. */
  120. extern const scg_lpfll_config_t g_scgLpFllConfigBOARD_BootClockVLPR;
  121. /*******************************************************************************
  122. * API for BOARD_BootClockVLPR configuration
  123. ******************************************************************************/
  124. #if defined(__cplusplus)
  125. extern "C" {
  126. #endif /* __cplusplus*/
  127. /*!
  128. * @brief This function executes configuration of clocks.
  129. *
  130. */
  131. void BOARD_BootClockVLPR(void);
  132. #if defined(__cplusplus)
  133. }
  134. #endif /* __cplusplus*/
  135. #endif /* _CLOCK_CONFIG_H_ */