clock_config.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef _CLOCK_CONFIG_H_
  2. #define _CLOCK_CONFIG_H_
  3. #include "fsl_common.h"
  4. /*******************************************************************************
  5. * Definitions
  6. ******************************************************************************/
  7. #define BOARD_XTAL0_CLK_HZ 24000000U /*!< Board xtal0 frequency in Hz */
  8. #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32k frequency in Hz */
  9. /*******************************************************************************
  10. ************************ BOARD_InitBootClocks function ************************
  11. ******************************************************************************/
  12. #if defined(__cplusplus)
  13. extern "C" {
  14. #endif /* __cplusplus*/
  15. /*!
  16. * @brief This function executes default configuration of clocks.
  17. *
  18. */
  19. void BOARD_InitBootClocks(void);
  20. #if defined(__cplusplus)
  21. }
  22. #endif /* __cplusplus*/
  23. /*******************************************************************************
  24. ********************** Configuration BOARD_BootClockRUN ***********************
  25. ******************************************************************************/
  26. /*******************************************************************************
  27. * Definitions for BOARD_BootClockRUN configuration
  28. ******************************************************************************/
  29. #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 600000000U /*!< Core clock frequency: 600000000Hz */
  30. /*! @brief Arm PLL set for BOARD_BootClockRUN configuration.
  31. */
  32. extern const clock_arm_pll_config_t armPllConfig_BOARD_BootClockRUN;
  33. /*! @brief Usb1 PLL set for BOARD_BootClockRUN configuration.
  34. */
  35. extern const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN;
  36. /*! @brief Sys PLL for BOARD_BootClockRUN configuration.
  37. */
  38. extern const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN;
  39. /*******************************************************************************
  40. * API for BOARD_BootClockRUN configuration
  41. ******************************************************************************/
  42. #if defined(__cplusplus)
  43. extern "C" {
  44. #endif /* __cplusplus*/
  45. /*!
  46. * @brief This function executes configuration of clocks.
  47. *
  48. */
  49. void BOARD_BootClockRUN(void);
  50. #if defined(__cplusplus)
  51. }
  52. #endif /* __cplusplus*/
  53. #endif /* _CLOCK_CONFIG_H_ */