diff options
| author | JF <jf@codingfield.com> | 2020-01-05 10:09:07 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-01-05 10:09:07 (GMT) |
| commit | bbe4e500c3a972146d834d21dc355b8509f88342 (patch) | |
| tree | 780ccd768997f93dd3fdc4db7d612e610bfb3bc0 /src/FreeRTOSConfig.h | |
| parent | 7688f468988ed26f522170bf0a5237ad974be02e (diff) | |
Improve power consumption and SLEEP mode :
- Disable IDLE hook (it would wake the device up as soon as possible).
- Logger task sleep for 100ms (disable logging for better battery life)
- Logging is disabled by default
- Apply fix for ERRATA 87 (clear FPU interrupt before going to sleep). Ports files from FreeRTOS are now in the sources (they where in the SDK before)
Diffstat (limited to 'src/FreeRTOSConfig.h')
| -rw-r--r-- | src/FreeRTOSConfig.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FreeRTOSConfig.h b/src/FreeRTOSConfig.h index cc8121f..41e5413 100644 --- a/src/FreeRTOSConfig.h +++ b/src/FreeRTOSConfig.h @@ -78,9 +78,9 @@ #define configENABLE_BACKWARD_COMPATIBILITY 1 /* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 1 +#define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 2 +#define configCHECK_FOR_STACK_OVERFLOW 0 #define configUSE_MALLOC_FAILED_HOOK 0 /* Run time and task stats gathering related definitions. */ |
