clock_config.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * The Clear BSD License
  3. * Copyright (c) 2015, Freescale Semiconductor, Inc.
  4. * Copyright 2016-2017 NXP
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without modification,
  8. * are permitted (subject to the limitations in the disclaimer below) provided
  9. * that the following conditions are met:
  10. *
  11. * o Redistributions of source code must retain the above copyright notice, this list
  12. * of conditions and the following disclaimer.
  13. *
  14. * o Redistributions in binary form must reproduce the above copyright notice, this
  15. * list of conditions and the following disclaimer in the documentation and/or
  16. * other materials provided with the distribution.
  17. *
  18. * o Neither the name of the copyright holder nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
  23. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  24. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  25. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  26. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
  27. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  28. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  29. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  30. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  32. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. */
  34. #ifndef _CLOCK_CONFIG_H_
  35. #define _CLOCK_CONFIG_H_
  36. #include "fsl_common.h"
  37. /*******************************************************************************
  38. * Definitions
  39. ******************************************************************************/
  40. #define BOARD_XTAL0_CLK_HZ 12000000U /*!< Board xtal0 frequency in Hz */
  41. #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */
  42. #define BOARD_BootClockRUN BOARD_BootClockFROHF48M
  43. /*******************************************************************************
  44. ********************* Configuration BOARD_BootClockFRO12M ***********************
  45. ******************************************************************************/
  46. /*******************************************************************************
  47. * Definitions for BOARD_BootClockFRO12M configuration
  48. ******************************************************************************/
  49. #define BOARD_BOOTCLOCKFRO12M_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */
  50. /*******************************************************************************
  51. * API for BOARD_BootClockFRO12M configuration
  52. ******************************************************************************/
  53. #if defined(__cplusplus)
  54. extern "C" {
  55. #endif /* __cplusplus*/
  56. /*!
  57. * @brief This function executes configuration of clocks.
  58. *
  59. */
  60. void BOARD_BootClockFRO12M(void);
  61. #if defined(__cplusplus)
  62. }
  63. #endif /* __cplusplus*/
  64. /*******************************************************************************
  65. ********************** Configuration BOARD_BootClockFROHF48M ***********************
  66. ******************************************************************************/
  67. /*******************************************************************************
  68. * Definitions for BOARD_BootClockFROHF48M configuration
  69. ******************************************************************************/
  70. #define BOARD_BOOTCLOCKFROHF48M_CORE_CLOCK 48000000U /*!< Core clock frequency: 48000000Hz */
  71. /*******************************************************************************
  72. * API for BOARD_BootClockFROHF48M configuration
  73. ******************************************************************************/
  74. #if defined(__cplusplus)
  75. extern "C" {
  76. #endif /* __cplusplus*/
  77. /*!
  78. * @brief This function executes configuration of clocks.
  79. *
  80. */
  81. void BOARD_BootClockFROHF48M(void);
  82. #if defined(__cplusplus)
  83. }
  84. #endif /* __cplusplus*/
  85. /*******************************************************************************
  86. ********************* Configuration BOARD_BootClockFROHF96M **********************
  87. ******************************************************************************/
  88. /*******************************************************************************
  89. * Definitions for BOARD_BootClockFROHF96M configuration
  90. ******************************************************************************/
  91. #define BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK 96000000U /*!< Core clock frequency: 96000000Hz */
  92. /*******************************************************************************
  93. * API for BOARD_BootClockFROHF96M configuration
  94. ******************************************************************************/
  95. #if defined(__cplusplus)
  96. extern "C" {
  97. #endif /* __cplusplus*/
  98. /*!
  99. * @brief This function executes configuration of clocks.
  100. *
  101. */
  102. void BOARD_BootClockFROHF96M(void);
  103. #if defined(__cplusplus)
  104. }
  105. #endif /* __cplusplus*/
  106. #endif /* _CLOCK_CONFIG_H_ */