File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS
TARGET_LPC54114/TARGET_LPCXpresso
TARGET_LPC54608/TARGET_LPCXpresso Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 28
28
(SYSCON_PDRUNCFG_PDEN_WDT_OSC_MASK | SYSCON_PDRUNCFG_PDEN_SRAMX_MASK | \
29
29
SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_MASK | SYSCON_PDRUNCFG_PDEN_SRAM2_MASK)
30
30
31
+ /* Defines used by the sleep code */
32
+ #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M
33
+ #define LPC_CLOCK_RUN BOARD_BootClockFROHF48M
31
34
32
35
#define DEVICE_ID_LENGTH 24
33
36
Original file line number Diff line number Diff line change 18
18
#ifndef MBED_DEVICE_H
19
19
#define MBED_DEVICE_H
20
20
21
- #if defined(TARGET_LPC54114_M4 )
22
21
#define NUMBER_OF_GPIO_INTS 8
23
- #elif defined(TARGET_LPC54114_M0 )
24
- #define NUMBER_OF_GPIO_INTS 4
25
- #endif
26
22
27
23
#define APP_EXCLUDE_FROM_DEEPSLEEP \
28
24
(SYSCON_PDRUNCFG_PDEN_WDT_OSC_MASK | SYSCON_PDRUNCFG_PDEN_SRAMX_MASK | \
29
- SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_MASK | SYSCON_PDRUNCFG_PDEN_SRAM2_MASK )
25
+ SYSCON_PDRUNCFG_PDEN_SRAM0_MASK | SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK )
30
26
27
+ /* Defines used by the sleep code */
28
+ #define LPC_CLOCK_INTERNAL_IRC BOARD_BootClockFRO12M
29
+ #define LPC_CLOCK_RUN BOARD_BootClockFROHF48M
31
30
32
31
#define DEVICE_ID_LENGTH 24
33
32
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
- BOARD_BootClockVLPR ();
29
+ LPC_CLOCK_INTERNAL_IRC ();
30
30
/* Enter Deep Sleep mode */
31
31
POWER_EnterDeepSleep (APP_EXCLUDE_FROM_DEEPSLEEP );
32
- BOARD_BootClockRUN ();
32
+ LPC_CLOCK_RUN ();
33
33
}
You can’t perform that action at this time.
0 commit comments