File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -132,32 +132,14 @@ void CLOCK_SET_DIV(clock_div_t divider, uint32_t value)
132132
133133void ClockSelectXtalOsc (void )
134134{
135- /* Enable XTAL 24MHz clock source. */
136- CLOCK_InitExternalClk (0 );
137- /* Wait CCM operation finishes */
138- CLOCK_CCM_HANDSHAKE_WAIT ();
139- /* Take some delay */
140- SDK_DelayAtLeastUs (40 );
141135 /* Switch clock source to external OSC. */
142136 CLOCK_SwitchOsc (kCLOCK_XtalOsc );
143- /* Turn off XTAL-OSC detector */
144- CCM_ANALOG -> MISC0_CLR = CCM_ANALOG_MISC0_OSC_XTALOK_EN_MASK ;
145- /* Power Down internal RC. */
146- CLOCK_DeinitRcOsc24M ();
147137}
148138
149139void ClockSelectRcOsc (void )
150140{
151- /* Enable internal RC. */
152- XTALOSC24M -> LOWPWR_CTRL |= XTALOSC24M_LOWPWR_CTRL_RC_OSC_EN_MASK ;
153- /* Wait CCM operation finishes */
154- CLOCK_CCM_HANDSHAKE_WAIT ();
155- /* Take some delay */
156- SDK_DelayAtLeastUs (4000 );
157141 /* Switch clock source to internal RC. */
158142 XTALOSC24M -> LOWPWR_CTRL_SET = XTALOSC24M_LOWPWR_CTRL_SET_OSC_SEL_MASK ;
159- /* Disable XTAL 24MHz clock source. */
160- CCM_ANALOG -> MISC0_SET = CCM_ANALOG_MISC0_XTAL_24M_PWD_MASK ;
161143}
162144
163145void LPM_SetRunModeConfig (void )
Original file line number Diff line number Diff line change 19551955 "device_name" : " MIMXRT1052" ,
19561956 "bootloader_supported" : true ,
19571957 "overrides" : {
1958- "deep-sleep-latency" : 5 ,
1958+ "deep-sleep-latency" : 10 ,
19591959 "network-default-interface-type" : " ETHERNET"
19601960 }
19611961 },
You can’t perform that action at this time.
0 commit comments