aboutsummaryrefslogtreecommitdiffstats
path: root/src/FreeRTOSConfig.h
Commit message (Collapse)AuthorAgeFilesLines
* Disable legacy FreeRTOS functionsmark90642025-06-271-1/+1
|
* Use all free RAM for FreeRTOS heapFelipe Martínez2024-12-091-1/+0
| | | | | * Use all free RAM for FreeRTOS heap * Wrap newlib malloc and related functions * Implement calloc
* Remove task to notifymark90642024-05-011-0/+1
|
* Enable malloc error and stack overflow error detection in FreeRTOS. Count ↵Jean-François Milants2023-05-181-2/+2
| | | | them and display them in the SystemInfo app.
* Unify all heaps (stdlib + LVGL + FreeRTOS) into a single heap managed by ↵Jean-François Milants2023-05-181-1/+1
| | | | | | | | | | FreeRTOS and heap_4_infinitime.c. LVGL supports custom implementation of malloc() and free() so using pvPortMalloc() and vPortFree() is just a matter of setting the right variables. Other libraries (NimBLE, LittleFS) and InfiniTime code (new) call malloc() and free() from stdlib. InfiniTime now provides the file stdlib.c that provides a custom implementation for malloc(), free(), calloc() and realloc(). This ensures that all calls to the standard allocator are redirected to the FreeRTOS memory manager. Note that realloc() is needed by NimBLE.
* New changes according to the review : Priority 0 for display, 1 for system, ↵Jean-François Milants2022-03-211-1/+1
| | | | timer and ble host, and 2 for ble LL
* In current configuration, the timer task (the one from FreeRTOS) has the ↵Jean-François Milants2022-03-211-2/+2
| | | | | | | | | | | | | | lowest priority (0). Both display and system tasks are also set on priority 0. In cases where any other task takes too much time to execute (it can happen in Display Task, see https://github.com/InfiniTimeOrg/InfiniTime/issues/825), the timer task does not have the opportunity to run fast enough to detect and debounce presses on the button. This commit sets the following priorities: - [0] : Display Task - [1] : Timer and System tasks - [2] : BLE Host - [3] : BLE LL This way, we ensure that button presses will always be detected, even if the rendering of the display takes a huge amount of time.
* LVGL use system tickRiku Isokoski2021-07-071-1/+1
|
* Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-061-1/+1
| | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* Reformatted all the files according to clang-format styleAvamander2021-04-241-96/+92
|
* 0.16.0 TWI problems fixJoaquim2021-04-101-2/+2
| | | | | | | | More memory for freertos heap and timer stack Fix warning in watchface Fix number of bytes read by cst816 Debug app to show freertos tasks Increased the number of bytes of the twi write buffer
* Increase FreeRTOS heap size and re-enable heart rate task. New Nimble ↵Jean-François Milants2021-02-031-1/+1
| | | | probably uses more memory than before.
* First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2021-01-101-1/+1
|
* Reduce RAM memory usage by tuning the stack of the stasks and the heap ↵JF2020-07-021-3/+3
| | | | | | allocated for FreeRTOS. Add Monitor to log the stack usage of each task.
* DFU : add timeout detection : abort dfu procedure after 10s without any data ↵JF2020-06-011-1/+1
| | | | from the host.
* Integration of nimble, work in progress.JF2020-04-191-1/+1
| | | | Advertising is working.
* First quick'n'dirty integration of LittleVGL. Needs some cleaning.JF2020-02-081-2/+2
|
* Improve date/time accuracy and handle counter overflow.JF2020-01-121-1/+1
|
* Increase configMINIMAL_STACK_SIZE to fix crash issue caused by freertos timers.JF2020-01-091-1/+1
|
* Improve power consumption and SLEEP mode :JF2020-01-051-2/+2
| | | | | | | - 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)
* Initial commitJF2019-11-171-0/+207