Merge pull request #6598 from embeddedartists/lpc4088_hardfault_fix

LPC4088: Fix hardfault occuring after power-cycle
pull/6648/head
Cruz Monrreal 2018-04-16 10:43:37 -05:00 committed by GitHub
commit fd756ef2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -19,12 +19,13 @@
void hal_sleep(void) {
LPC_SC->PCON = 0x0;
// SRC[SLEEPDEEP] set to 0 = sleep
SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
// wait for interrupt
__WFI();
__NOP();
}
/*