fix CRYPTOCELL_IRQn prevent go to sleep causing high power

This commit is contained in:
hathach committed 2021-06-03 15:32:51 +07:00
1 parent c1a4352be6
commit fdb4048832
4 files changed
+13 -2

No files matched your search

@@ -189,6 +189,12 @@ void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
(void) __get_FPSCR();
NVIC_ClearPendingIRQ(FPU_IRQn);
#endif
#ifdef NRF_CRYPTOCELL
// manually clear CryptoCell else it could prevent low power mode
NVIC_ClearPendingIRQ(CRYPTOCELL_IRQn);
#endif
#ifdef SOFTDEVICE_PRESENT // TODO
uint8_t sd_en = 0;
(void) sd_softdevice_is_enabled(&sd_en);
+5
View File
@@ -96,6 +96,11 @@ void waitForEvent(void)
uint8_t sd_en = 0;
(void) sd_softdevice_is_enabled(&sd_en);
#ifdef NRF_CRYPTOCELL
// manually clear CryptoCell else it could prevent low power mode
NVIC_ClearPendingIRQ(CRYPTOCELL_IRQn);
#endif
if ( sd_en )
{
(void) sd_app_evt_wait();
+1 -1
View File
@@ -179,7 +179,7 @@ class AdafruitBluefruit
*------------------------------------------------------------------*/
void setMultiprotocolSemaphore(SemaphoreHandle_t mprot_event_semaphore)
{
_mprot_event_sem= mprot_event_semaphore;
_mprot_event_sem= mprot_event_semaphore;
}
#endif