samples: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC

Instead of forcing use of NEWLIB_LIBC, select any available complete C
library implementation. Add CONFIG_REQUIRES_FLOAT_PRINTF and adjust
CONFIG_LIBC_MALLOC_ARENA_SIZE as needed.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-09-28 15:27:11 -07:00 committed by Alberto Escolar
commit 1e5c46df3d
73 changed files with 104 additions and 102 deletions

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -4,5 +4,5 @@ CONFIG_LIBLC3=y
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
# inctease stack size for that thread.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
CONFIG_NEWLIB_LIBC=y
# LC3 lib requires floating point support in the c-lib.
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -1,3 +1,3 @@
CONFIG_COUNTER=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y

View file

@ -1,3 +1,4 @@
CONFIG_LZ4=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=65536

View file

@ -6,7 +6,7 @@ common:
- compression
- lz4
min_ram: 64
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
harness: console
harness_config:
type: one_line

View file

@ -6,7 +6,7 @@ CONFIG_COUNTER_MAXIM_DS3231=y
CONFIG_COUNTER_INIT_PRIORITY=65
# Minimal libc doesn't have strftime()
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Optional step that syncs RTC and local clock. Don't enable this if
# your RTC has already been synchronized and you want to keep its

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
name: Maxim DS3231 RTC
tests:

View file

@ -94,7 +94,7 @@ TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`:
.. code-block:: kconfig
CONFIG_CPP=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_TENSORFLOW_LITE_MICRO=y
Note that the CMSIS-NN kernel sample demonstrates how to use CMSIS-NN optimized kernels with

View file

@ -20,7 +20,7 @@ tests:
integration_platforms:
- qemu_x86
tags: tensorflow
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample.tensorflow.helloworld.cmsis_nn:
tags: tensorflow
platform_allow: mps3_an547

View file

@ -107,7 +107,7 @@ TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`:
.. code-block:: kconfig
CONFIG_CPP=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_TENSORFLOW_LITE_MICRO=y
Training

View file

@ -14,7 +14,7 @@
# ==============================================================================
CONFIG_CPP=y
CONFIG_STD_CPP17=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_SENSOR=y
CONFIG_NETWORKING=n
CONFIG_MAIN_STACK_SIZE=4096

View file

@ -9,7 +9,7 @@ CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_INIT_STACKS=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_SNTP=y
CONFIG_JSON_LIBRARY=y
CONFIG_POSIX_CLOCK=y

View file

@ -4,7 +4,7 @@ sample:
common:
tags: net mqtt cloud
harness: net
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED && !CONFIG_NATIVE_LIBC
extra_args: USE_DUMMY_CREDS=1
tests:
sample.net.cloud.aws_iot_mqtt:

View file

@ -47,7 +47,7 @@ CONFIG_DNS_RESOLVER=y
CONFIG_DNS_SERVER_IP_ADDRESSES=y
CONFIG_DNS_SERVER1="8.8.8.8"
CONFIG_DNS_RESOLVER_ADDITIONAL_BUF_CTR=2
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_INIT_STACKS=y
CONFIG_NET_SHELL=y

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
description: MQTT sample app to Azure cloud
name: mqtt-azure

View file

@ -49,7 +49,7 @@ CONFIG_NET_TC_TX_COUNT=6
CONFIG_NET_TC_RX_COUNT=4
CONFIG_NET_CONFIG_INIT_TIMEOUT=10
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_NET_IF_MAX_IPV4_COUNT=4
CONFIG_NET_IF_MAX_IPV6_COUNT=4

View file

@ -7,5 +7,5 @@ CONFIG_ETH_MCUX_PTP_CLOCK_SRC_HZ=25000000
CONFIG_ETH_MCUX_RX_BUFFERS=6
CONFIG_ETH_MCUX_TX_BUFFERS=4
CONFIG_NET_GPTP_STATISTICS=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y

View file

@ -6,6 +6,6 @@ CONFIG_NET_GPTP_CLOCK_ACCURACY_25MS=y
#CONFIG_ETH_MCUX_RX_BUFFERS=6
#CONFIG_ETH_MCUX_TX_BUFFERS=8
CONFIG_NET_GPTP_STATISTICS=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_NET_GPTP_INIT_LOG_PDELAY_REQ_ITV=-3

View file

@ -1,7 +1,7 @@
# Main
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
CONFIG_NET_TCP=n

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MAIN_STACK_SIZE=2536

View file

@ -2,7 +2,7 @@ sample:
description: BSD Sockets big HTTP download example
name: big_http_download
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
harness: net
min_ram: 32
min_flash: 128

View file

@ -1,6 +1,6 @@
# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_NET_IPV6=y
CONFIG_NET_UDP=y

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample:
description: TBD
name: TBD

View file

@ -1,6 +1,6 @@
# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_NET_UDP=y
# Socket

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample:
description: TBD
name: TBD

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Networking config
CONFIG_NETWORKING=y

View file

@ -2,7 +2,7 @@ sample:
description: BSD Sockets API dumb HTTP server example
name: socket_dumb_http_server
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
harness: net
min_ram: 32
min_flash: 96

View file

@ -4,7 +4,7 @@ sample:
common:
harness: net
depends_on: netif
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
tests:
sample.net.sockets.echo:
tags:

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_MAIN_STACK_SIZE=1200
# Networking config

View file

@ -2,7 +2,7 @@ sample:
description: BSD Sockets API TCP echo server sample using non-blocking sockets
name: socket_echo_async
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
harness: net
platform_allow: qemu_x86
tags:

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_MAIN_STACK_SIZE=1200
CONFIG_POSIX_API=y

View file

@ -7,7 +7,7 @@ common:
tags:
- net
- socket
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
tests:
sample.net.sockets.echo_async_select:
extra_configs:

View file

@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
CONFIG_NET_TCP=n

View file

@ -81,7 +81,7 @@ tests:
- net
- openthread
platform_allow: nrf52840dk_nrf52840
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_client.b91_802154:
extra_args: OVERLAY_CONFIG="overlay-802154.conf"
platform_allow: tlsr9518adk80d
@ -92,7 +92,7 @@ tests:
- net
- openthread
platform_allow: tlsr9518adk80d
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_client.kw41z_openthread:
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
slow: true
@ -100,7 +100,7 @@ tests:
- net
- openthread
platform_allow: frdm_kw41z
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_client.userspace:
extra_args:
- CONFIG_USERSPACE=y

View file

@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
CONFIG_NET_TCP=n

View file

@ -92,7 +92,7 @@ tests:
- net
- openthread
platform_allow: nrf52840dk_nrf52840
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_server.b91_openthread:
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
slow: true
@ -100,7 +100,7 @@ tests:
- net
- openthread
platform_allow: tlsr9518adk80d
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_server.kw41z_openthread:
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
slow: true
@ -108,7 +108,7 @@ tests:
- net
- openthread
platform_allow: frdm_kw41z
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
sample.net.sockets.echo_server.e1000:
extra_args: OVERLAY_CONFIG="overlay-e1000.conf"
tags: net

View file

@ -1,6 +1,6 @@
# General config
CONFIG_MAIN_STACK_SIZE=1536
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Networking config
CONFIG_NETWORKING=y

View file

@ -2,7 +2,7 @@ sample:
description: BSD Sockets API HTTP GET example
name: socket_http_get
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
harness: net
min_ram: 32
min_flash: 80

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
# Networking config
CONFIG_NETWORKING=y

View file

@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_NETWORKING=y

View file

@ -3,7 +3,7 @@ sample:
name: tcp
tests:
sample.net.socket.tcp:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
harness: net
platform_allow: qemu_x86
tags:

View file

@ -37,4 +37,4 @@ CONFIG_LOG_BACKEND_NET=y
CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"
# Get newlib by default as it has proper time function support
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -9,11 +9,11 @@ sample:
name: syslog_net
tests:
sample.net.syslog.with_timefuncs:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_REQUIRES_FULL_LIBC=y
sample.net.syslog.ipv4_only:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
extra_configs:
- CONFIG_NET_IPV6=n
- CONFIG_NET_CONFIG_NEED_IPV6=n
@ -21,18 +21,18 @@ tests:
- CONFIG_NET_CONFIG_PEER_IPV6_ADDR=""
- CONFIG_LOG_BACKEND_NET_SERVER="192.0.2.1:514"
sample.net.syslog.ipv6_only:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
extra_configs:
- CONFIG_NET_IPV4=n
- CONFIG_NET_CONFIG_NEED_IPV4=n
- CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
- CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
sample.net.syslog.no_autostart:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
extra_configs:
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
sample.net.syslog.runtime_srv_addr:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
extra_configs:
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
- CONFIG_LOG_BACKEND_NET_SERVER=""

View file

@ -1,5 +1,5 @@
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_POSIX_API=y
CONFIG_EVENTFD=y

View file

@ -2,7 +2,7 @@ sample:
description: Extended POSIX (Linux) API eventfd() example
name: eventfd
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
tags: posix
platform_exclude: m2gl025_miv
integration_platforms:

View file

@ -1,6 +1,6 @@
# General config
CONFIG_MAIN_STACK_SIZE=1088
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_POSIX_API=y
CONFIG_SNTP=y
CONFIG_NET_CONFIG_CLOCK_SNTP_INIT=y

View file

@ -2,7 +2,8 @@ sample:
description: POSIX API gettimeofday() example (with SNTP)
name: gettimeofday
common:
filter: ( TOOLCHAIN_HAS_NEWLIB == 1 and not CONFIG_SOC_FAMILY_INTEL_ADSP )
filter: ( CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
and not CONFIG_SOC_FAMILY_INTEL_ADSP )
harness: net
min_ram: 32
min_flash: 96

View file

@ -8,6 +8,6 @@ CONFIG_SENSOR=y
CONFIG_GPIO=y
# Need float format support
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_CBPRINTF_FP_SUPPORT=y

View file

@ -5,7 +5,7 @@
#
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
name: DHT Sensor Sample
tests:

View file

@ -1 +1 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -1 +1 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -1 +1 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -1 +1 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -1 +1 @@
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -2,7 +2,7 @@ CONFIG_LOG=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_PM_DEVICE=n
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_FDC2X1X_TRIGGER_GLOBAL_THREAD=n

View file

@ -1,5 +1,5 @@
CONFIG_ADC=y
CONFIG_SENSOR=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_CBPRINTF_FP_SUPPORT=y

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
name: Grove Light Sensor
tests:

View file

@ -1,5 +1,5 @@
CONFIG_ADC=y
CONFIG_SENSOR=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_CBPRINTF_FP_SUPPORT=y

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
name: Grove Temperature Sensor
tests:

View file

@ -63,7 +63,7 @@ int main(void)
/* display temperature on LCD */
glcd_cursor_pos_set(glcd, 0, 0);
#ifdef CONFIG_NEWLIB_LIBC_FLOAT_PRINTF
#ifdef CONFIG_REQUIRES_FLOAT_PRINTF
sprintf(row, "T:%.2f%cC",
sensor_value_to_double(&temp),
223 /* degree symbol */);
@ -75,7 +75,7 @@ int main(void)
#endif
#ifdef CONFIG_NEWLIB_LIBC_FLOAT_PRINTF
#ifdef CONFIG_REQUIRES_FLOAT_PRINTF
printf("Temperature: %.2f C\n", sensor_value_to_double(&temp));
#else
printk("Temperature: %d\n", temp.val1);

View file

@ -53,7 +53,7 @@ CONFIG_LOG=y
CONFIG_HAWKBIT_LOG_LEVEL_INF=n
#General Config
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y
CONFIG_LOG_BUFFER_SIZE=4096
#Generate HEX output

View file

@ -1,5 +1,5 @@
common:
filter: TOOLCHAIN_HAS_NEWLIB == 1
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
description: Hawkbit Firmware Over-the-Air (FOTA)
name: hawkbit

View file

@ -35,4 +35,4 @@ CONFIG_JSON_LIBRARY=y
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=y
CONFIG_TFM_QCBOR_PATH="DOWNLOAD"
CONFIG_NEWLIB_LIBC=y
CONFIG_REQUIRES_FULL_LIBC=y