File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed
ports/mimxrt10xx/peripherals/mimxrt10xx Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 66
66
#define BOARD_BOOTCLOCKRUN_UART_CLK_ROOT 80000000UL
67
67
#define BOARD_BOOTCLOCKRUN_USBPHY_CLK 0UL
68
68
69
- /*! @brief Usb1 PLL set for BOARD_BootClockRUN configuration.
70
- */
71
- //extern const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN;
72
- /*! @brief Sys PLL for BOARD_BootClockRUN configuration.
73
- */
74
- //extern const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN;
75
- /*! @brief Enet PLL set for BOARD_BootClockRUN configuration.
76
- */
77
- //extern const clock_enet_pll_config_t enetPllConfig_BOARD_BootClockRUN;
78
-
79
69
const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN = {
80
70
.loopDivider = 1 , /* PLL loop divider, Fout = Fin * ( 20 + loopDivider*2 + numerator / denominator ) */
81
71
.numerator = 0 , /* 30 bit numerator of fractional loop divider */
@@ -90,6 +80,8 @@ const clock_enet_pll_config_t enetPllConfig_BOARD_BootClockRUN = {
90
80
.enableClkOutput500M = true, /* Enable the PLL providing the ENET 500MHz reference clock */
91
81
.src = 0 , /* Bypass clock source, 0 - OSC 24M, 1 - CLK1_P and CLK1_N */
92
82
};
83
+
84
+ // Based on the hello_world example in the SDK
93
85
void clocks_init (void ) {
94
86
/* Init RTC OSC clock frequency. */
95
87
CLOCK_SetRtcXtalFreq (32768U );
Original file line number Diff line number Diff line change 33
33
#define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32k frequency in Hz */
34
34
#define BOARD_BOOTCLOCKRUN_CORE_CLOCK 600000000U /*!< Core clock frequency: 600000000Hz */
35
35
36
- /*! @brief Usb1 PLL set for BOARD_BootClockRUN configuration.
37
- */
38
- //extern const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN;
39
- /*! @brief Sys PLL for BOARD_BootClockRUN configuration.
40
- */
41
- //extern const clock_sys_pll_config_t sysPllConfig_BOARD_BootClockRUN;
42
- /*! @brief Enet PLL set for BOARD_BootClockRUN configuration.
43
- */
44
- //extern const clock_enet_pll_config_t enetPllConfig_BOARD_BootClockRUN;
45
-
46
36
const clock_arm_pll_config_t armPllConfig_BOARD_BootClockRUN =
47
37
{
48
38
.loopDivider = 100 , /* PLL loop divider, Fout = Fin * 50 */
@@ -60,6 +50,8 @@ const clock_usb_pll_config_t usb1PllConfig_BOARD_BootClockRUN =
60
50
.loopDivider = 0 , /* PLL loop divider, Fout = Fin * 20 */
61
51
.src = 0 , /* Bypass clock source, 0 - OSC 24M, 1 - CLK1_P and CLK1_N */
62
52
};
53
+
54
+ // Based on the hello_world example in the SDK
63
55
void clocks_init (void ) {
64
56
/* Init RTC OSC clock frequency. */
65
57
CLOCK_SetRtcXtalFreq (32768U );
You can’t perform that action at this time.
0 commit comments