sorry for beginner’s questions. How is it possible to control falling into SLEEP mode ?
When I’m using the peripheral (for example UART) which is not working in SLEEP mode I have to inform somehow FreeRTOS that the task need uP in RUN. Now I made it through proper setting of constant configEXPECTED_IDLE_TIME_BEFORE_SLEEP and parameter “xTicksToWait” in function ulTaskNotifyTake().
After that it depends on condition “if( xExpectedIdleTime >= configEXPECTED_IDLE_TIME_BEFORE_SLEEP )” (function portTASK_FUNCTION() in task.c) if uP goes into SLEEP or not.
Is it possible only by this way ?
My setup : EFM32GG (Cortex-M3), FreeRTOS_LowPowerTickManagement_BURTC.c, FreeRTOS V8.2.3, SLEEP = EM2
Thank’s in advance.