mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-05 22:11:04 +08:00
feat(kconfig): Add option to kconfig
Add option to enable reent function.
This commit is contained in:
12
components/freertos/Kconfig
Normal file
12
components/freertos/Kconfig
Normal file
@ -0,0 +1,12 @@
|
||||
menu "FreeRTOS"
|
||||
|
||||
config FREERTOS_ENABLE_REENT
|
||||
bool "Enable \"reent\" function"
|
||||
default n
|
||||
select NEWLIB_ENABLE
|
||||
help
|
||||
Enable "reent" function and FreeRTOS should use "reent" function of newlib.
|
||||
|
||||
The configuration will enable newlib.
|
||||
|
||||
endmenu
|
@ -65,6 +65,8 @@
|
||||
#ifndef FREERTOS_CONFIG_H
|
||||
#define FREERTOS_CONFIG_H
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
* Application specific definitions.
|
||||
*
|
||||
@ -140,5 +142,9 @@ configKERNEL_INTERRUPT_PRIORITY setting. Here 15 corresponds to the lowest
|
||||
NVIC value of 255. */
|
||||
#define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15
|
||||
|
||||
#ifdef CONFIG_FREERTOS_ENABLE_REENT
|
||||
#define configUSE_NEWLIB_REENTRANT 1
|
||||
#endif
|
||||
|
||||
#endif /* FREERTOS_CONFIG_H */
|
||||
|
||||
|
Reference in New Issue
Block a user