clock_config.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright 2017-2018 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. #define BOARD_XTAL0_CLK_HZ 24000000U /*!< Board xtal0 frequency in Hz */
  14. #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32k frequency in Hz */
  15. /*******************************************************************************
  16. ************************ BOARD_InitBootClocks function ************************
  17. ******************************************************************************/
  18. #if defined(__cplusplus)
  19. extern "C" {
  20. #endif /* __cplusplus*/
  21. /*!
  22. * @brief This function executes default configuration of clocks.
  23. *
  24. */
  25. void BOARD_InitBootClocks(void);
  26. #if defined(__cplusplus)
  27. }
  28. #endif /* __cplusplus*/
  29. /*******************************************************************************
  30. ********************** Configuration BOARD_BootClockRUN ***********************
  31. ******************************************************************************/
  32. /*******************************************************************************
  33. * Definitions for BOARD_BootClockRUN configuration
  34. ******************************************************************************/
  35. #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 600000000U /*!< Core clock frequency: 600000000Hz */
  36. /*! @brief Arm PLL set for BOARD_BootClockRUN configuration.
  37. */
  38. extern const clock_arm_pll_config_t armPllConfig_BOARD_BootClockRUN;
  39. /*! @brief Usb1 PLL set for BOARD_BootClockRUN configuration.
  40. */
  41. extern const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN;
  42. /*! @brief Sys PLL for BOARD_BootClockRUN configuration.
  43. */
  44. extern const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN;
  45. /*******************************************************************************
  46. * API for BOARD_BootClockRUN configuration
  47. ******************************************************************************/
  48. #if defined(__cplusplus)
  49. extern "C" {
  50. #endif /* __cplusplus*/
  51. /*!
  52. * @brief This function executes configuration of clocks.
  53. *
  54. */
  55. void BOARD_BootClockRUN(void);
  56. #if defined(__cplusplus)
  57. }
  58. #endif /* __cplusplus*/
  59. #endif /* _CLOCK_CONFIG_H_ */