Skip to content

Commit d304e94

Browse files
committed
[Telink] avoid using NEWLIB_LIBC (use PICOLIB)
1 parent cda4887 commit d304e94

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

config/telink/chip-module/Kconfig.defaults

-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ config COMMON_LIBC_MALLOC_ARENA_SIZE
8686
default 20716 if SOC_RISCV_TELINK_TL321X || SOC_SERIES_RISCV_TELINK_B9X_RETENTION
8787
default 12288
8888

89-
choice LIBC_IMPLEMENTATION
90-
default NEWLIB_LIBC
91-
endchoice
92-
9389
config MBEDTLS_ENTROPY_ENABLED
9490
bool
9591
default y

src/platform/telink/CHIPDevicePlatformConfig.h

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@
145145
#if !defined(CONFIG_CHIP_MALLOC_SYS_HEAP) && defined(CONFIG_NEWLIB_LIBC)
146146
/// Use mallinfo() to obtain the heap usage statistics exposed by SoftwareDiagnostics cluster attributes.
147147
#define CHIP_DEVICE_CONFIG_HEAP_STATISTICS_MALLINFO 1
148+
#else
149+
#define CHIP_DEVICE_CONFIG_HEAP_STATISTICS_MALLINFO 0
148150
#endif // !defined(CONFIG_CHIP_MALLOC_SYS_HEAP) && defined(CONFIG_NEWLIB_LIBC)
149151
#endif // CHIP_DEVICE_CONFIG_HEAP_STATISTICS_MALLINFO
150152

0 commit comments

Comments
 (0)