Skip to content

Commit d284dec

Browse files
authored
Update README.md
1 parent 9c03660 commit d284dec

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ This library provides a default FreeRTOS configuration file named `FreeRTOSConfi
1818
User can provide his own FreeRTOS configuration file at sketch level by adding his configuration in a file named `STM32FreeRTOSConfig.h`.
1919

2020
Heap allocation schemes are provided by FreeRTOS, see [Memory allocation implementations included in the RTOS source](https://www.freertos.org/a00111.html).
21-
By default, the `heap_3.c` is used. It can be changed thanks a define in the configuration file:
21+
To extend those schemes a thread-safe heap allocation using C runtime (Newlib) has been added based on Dave Nadler work:
22+
23+
http://www.nadler.com/embedded/newlibAndFreeRTOS.html
24+
25+
By default, the `heap_useNewlib.c` is used. It can be changed thanks a define in the configuration file:
2226
```
23-
/* Default (3) Memory allocation implementations (heap_[1-5].c) */
24-
/*#define configMEMMANG_HEAP_NB 3*/
27+
/* Define memory allocation implementations to use:
28+
* 1 to 5 for heap_[1-5].c
29+
* -1 for heap_useNewlib.c
30+
* Default -1 see heap.c
31+
*/
2532
```
2633

2734
## Limitations
@@ -44,4 +51,4 @@ By default, the `heap_3.c` is used. It can be changed thanks a define in the con
4451
| [STM32F746G-DISCOVERY](http://www.st.com/en/evaluation-tools/32f746gdiscovery.html) | PASSED | PASSED | PASSED | PASSED | PASSED | PASSED |
4552
| [Nucleo L053R8](http://www.st.com/en/evaluation-tools/nucleo-l053r8.html) | PASSED | PASSED | PASSED | PASSED | PASSED | FAILED |
4653
| [Nucleo L152RE](http://www.st.com/en/evaluation-tools/nucleo-l152re.html) | PASSED | PASSED | PASSED | PASSED | PASSED | PASSED |
47-
| [B-L475E-IOT01A](http://www.st.com/en/evaluation-tools/b-l475e-iot01a.html) | PASSED | PASSED | PASSED | PASSED | PASSED | PASSED |
54+
| [B-L475E-IOT01A](http://www.st.com/en/evaluation-tools/b-l475e-iot01a.html) | PASSED | PASSED | PASSED | PASSED | PASSED | PASSED |

0 commit comments

Comments
 (0)