File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ void hal_sleep(void)
26
26
27
27
void hal_deepsleep (void )
28
28
{
29
- LPC_CLOCK_INTERNAL_IRC () ;
29
+ LPC_CLOCK_INTERNAL_IRC ;
30
30
/* Enter Deep Sleep mode */
31
31
POWER_EnterDeepSleep (APP_EXCLUDE_FROM_DEEPSLEEP );
32
- LPC_CLOCK_RUN () ;
32
+ LPC_CLOCK_RUN ;
33
33
}
Original file line number Diff line number Diff line change 25
25
SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK)
26
26
27
27
/* Defines used by the sleep code */
28
- #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M
29
- #define LPC_CLOCK_RUN BOARD_BootClockFROHF48M
28
+ #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
29
+ #define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
30
+ BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
30
31
31
32
#define DEVICE_ID_LENGTH 24
32
33
Original file line number Diff line number Diff line change 25
25
SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK)
26
26
27
27
/* Defines used by the sleep code */
28
- #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M
29
- #define LPC_CLOCK_RUN BOARD_BootClockFROHF48M
28
+ #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M()
29
+ #define LPC_CLOCK_RUN ((SYSCON->DEVICE_ID0 == 0xFFF54628) ? \
30
+ BOARD_BootClockPLL220M() : BOARD_BootClockFROHF48M())
30
31
31
32
#define DEVICE_ID_LENGTH 24
32
33
You can’t perform that action at this time.
0 commit comments