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:
parent
565c9376f1
commit
1e5c46df3d
73 changed files with 104 additions and 102 deletions
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -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
|
# 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.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# LC3 lib requires floating point support in the c-lib NEWLIB is one way of getting that.
|
# LC3 lib requires floating point support in the c-lib.
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
CONFIG_COUNTER=y
|
CONFIG_COUNTER=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
CONFIG_LZ4=y
|
CONFIG_LZ4=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
CONFIG_HEAP_MEM_POOL_SIZE=16384
|
||||||
|
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=65536
|
||||||
|
|
|
@ -6,7 +6,7 @@ common:
|
||||||
- compression
|
- compression
|
||||||
- lz4
|
- lz4
|
||||||
min_ram: 64
|
min_ram: 64
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: one_line
|
type: one_line
|
||||||
|
|
|
@ -6,7 +6,7 @@ CONFIG_COUNTER_MAXIM_DS3231=y
|
||||||
CONFIG_COUNTER_INIT_PRIORITY=65
|
CONFIG_COUNTER_INIT_PRIORITY=65
|
||||||
|
|
||||||
# Minimal libc doesn't have strftime()
|
# 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
|
# 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
|
# your RTC has already been synchronized and you want to keep its
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
name: Maxim DS3231 RTC
|
name: Maxim DS3231 RTC
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -94,7 +94,7 @@ TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`:
|
||||||
.. code-block:: kconfig
|
.. code-block:: kconfig
|
||||||
|
|
||||||
CONFIG_CPP=y
|
CONFIG_CPP=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_TENSORFLOW_LITE_MICRO=y
|
CONFIG_TENSORFLOW_LITE_MICRO=y
|
||||||
|
|
||||||
Note that the CMSIS-NN kernel sample demonstrates how to use CMSIS-NN optimized kernels with
|
Note that the CMSIS-NN kernel sample demonstrates how to use CMSIS-NN optimized kernels with
|
||||||
|
|
|
@ -20,7 +20,7 @@ tests:
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- qemu_x86
|
- qemu_x86
|
||||||
tags: tensorflow
|
tags: tensorflow
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample.tensorflow.helloworld.cmsis_nn:
|
sample.tensorflow.helloworld.cmsis_nn:
|
||||||
tags: tensorflow
|
tags: tensorflow
|
||||||
platform_allow: mps3_an547
|
platform_allow: mps3_an547
|
||||||
|
|
|
@ -107,7 +107,7 @@ TensorFlow, you must enable the below Kconfig options in your :file:`prj.conf`:
|
||||||
.. code-block:: kconfig
|
.. code-block:: kconfig
|
||||||
|
|
||||||
CONFIG_CPP=y
|
CONFIG_CPP=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_TENSORFLOW_LITE_MICRO=y
|
CONFIG_TENSORFLOW_LITE_MICRO=y
|
||||||
|
|
||||||
Training
|
Training
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
CONFIG_CPP=y
|
CONFIG_CPP=y
|
||||||
CONFIG_STD_CPP17=y
|
CONFIG_STD_CPP17=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
CONFIG_SENSOR=y
|
CONFIG_SENSOR=y
|
||||||
CONFIG_NETWORKING=n
|
CONFIG_NETWORKING=n
|
||||||
CONFIG_MAIN_STACK_SIZE=4096
|
CONFIG_MAIN_STACK_SIZE=4096
|
||||||
|
|
|
@ -9,7 +9,7 @@ CONFIG_ENTROPY_GENERATOR=y
|
||||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
CONFIG_INIT_STACKS=y
|
CONFIG_INIT_STACKS=y
|
||||||
CONFIG_HW_STACK_PROTECTION=y
|
CONFIG_HW_STACK_PROTECTION=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_SNTP=y
|
CONFIG_SNTP=y
|
||||||
CONFIG_JSON_LIBRARY=y
|
CONFIG_JSON_LIBRARY=y
|
||||||
CONFIG_POSIX_CLOCK=y
|
CONFIG_POSIX_CLOCK=y
|
||||||
|
|
|
@ -4,7 +4,7 @@ sample:
|
||||||
common:
|
common:
|
||||||
tags: net mqtt cloud
|
tags: net mqtt cloud
|
||||||
harness: net
|
harness: net
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED && !CONFIG_NATIVE_LIBC
|
||||||
extra_args: USE_DUMMY_CREDS=1
|
extra_args: USE_DUMMY_CREDS=1
|
||||||
tests:
|
tests:
|
||||||
sample.net.cloud.aws_iot_mqtt:
|
sample.net.cloud.aws_iot_mqtt:
|
||||||
|
|
|
@ -47,7 +47,7 @@ CONFIG_DNS_RESOLVER=y
|
||||||
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
||||||
CONFIG_DNS_SERVER1="8.8.8.8"
|
CONFIG_DNS_SERVER1="8.8.8.8"
|
||||||
CONFIG_DNS_RESOLVER_ADDITIONAL_BUF_CTR=2
|
CONFIG_DNS_RESOLVER_ADDITIONAL_BUF_CTR=2
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
CONFIG_INIT_STACKS=y
|
CONFIG_INIT_STACKS=y
|
||||||
CONFIG_NET_SHELL=y
|
CONFIG_NET_SHELL=y
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
description: MQTT sample app to Azure cloud
|
description: MQTT sample app to Azure cloud
|
||||||
name: mqtt-azure
|
name: mqtt-azure
|
||||||
|
|
|
@ -49,7 +49,7 @@ CONFIG_NET_TC_TX_COUNT=6
|
||||||
CONFIG_NET_TC_RX_COUNT=4
|
CONFIG_NET_TC_RX_COUNT=4
|
||||||
CONFIG_NET_CONFIG_INIT_TIMEOUT=10
|
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_IPV4_COUNT=4
|
||||||
CONFIG_NET_IF_MAX_IPV6_COUNT=4
|
CONFIG_NET_IF_MAX_IPV6_COUNT=4
|
||||||
|
|
|
@ -7,5 +7,5 @@ CONFIG_ETH_MCUX_PTP_CLOCK_SRC_HZ=25000000
|
||||||
CONFIG_ETH_MCUX_RX_BUFFERS=6
|
CONFIG_ETH_MCUX_RX_BUFFERS=6
|
||||||
CONFIG_ETH_MCUX_TX_BUFFERS=4
|
CONFIG_ETH_MCUX_TX_BUFFERS=4
|
||||||
CONFIG_NET_GPTP_STATISTICS=y
|
CONFIG_NET_GPTP_STATISTICS=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
|
|
|
@ -6,6 +6,6 @@ CONFIG_NET_GPTP_CLOCK_ACCURACY_25MS=y
|
||||||
#CONFIG_ETH_MCUX_RX_BUFFERS=6
|
#CONFIG_ETH_MCUX_RX_BUFFERS=6
|
||||||
#CONFIG_ETH_MCUX_TX_BUFFERS=8
|
#CONFIG_ETH_MCUX_TX_BUFFERS=8
|
||||||
CONFIG_NET_GPTP_STATISTICS=y
|
CONFIG_NET_GPTP_STATISTICS=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NET_GPTP_INIT_LOG_PDELAY_REQ_ITV=-3
|
CONFIG_NET_GPTP_INIT_LOG_PDELAY_REQ_ITV=-3
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Main
|
# Main
|
||||||
CONFIG_MAIN_STACK_SIZE=2048
|
CONFIG_MAIN_STACK_SIZE=2048
|
||||||
|
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
||||||
CONFIG_NET_TCP=n
|
CONFIG_NET_TCP=n
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_MBEDTLS=y
|
CONFIG_MBEDTLS=y
|
||||||
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
||||||
CONFIG_MAIN_STACK_SIZE=2536
|
CONFIG_MAIN_STACK_SIZE=2536
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
description: BSD Sockets big HTTP download example
|
description: BSD Sockets big HTTP download example
|
||||||
name: big_http_download
|
name: big_http_download
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
harness: net
|
harness: net
|
||||||
min_ram: 32
|
min_ram: 32
|
||||||
min_flash: 128
|
min_flash: 128
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Generic networking options
|
# Generic networking options
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NET_IPV6=y
|
CONFIG_NET_IPV6=y
|
||||||
CONFIG_NET_UDP=y
|
CONFIG_NET_UDP=y
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
sample:
|
sample:
|
||||||
description: TBD
|
description: TBD
|
||||||
name: TBD
|
name: TBD
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Generic networking options
|
# Generic networking options
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NET_UDP=y
|
CONFIG_NET_UDP=y
|
||||||
|
|
||||||
# Socket
|
# Socket
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
sample:
|
sample:
|
||||||
description: TBD
|
description: TBD
|
||||||
name: TBD
|
name: TBD
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Networking config
|
# Networking config
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
description: BSD Sockets API dumb HTTP server example
|
description: BSD Sockets API dumb HTTP server example
|
||||||
name: socket_dumb_http_server
|
name: socket_dumb_http_server
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
harness: net
|
harness: net
|
||||||
min_ram: 32
|
min_ram: 32
|
||||||
min_flash: 96
|
min_flash: 96
|
||||||
|
|
|
@ -4,7 +4,7 @@ sample:
|
||||||
common:
|
common:
|
||||||
harness: net
|
harness: net
|
||||||
depends_on: netif
|
depends_on: netif
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
tests:
|
tests:
|
||||||
sample.net.sockets.echo:
|
sample.net.sockets.echo:
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_MAIN_STACK_SIZE=1200
|
CONFIG_MAIN_STACK_SIZE=1200
|
||||||
|
|
||||||
# Networking config
|
# Networking config
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
description: BSD Sockets API TCP echo server sample using non-blocking sockets
|
description: BSD Sockets API TCP echo server sample using non-blocking sockets
|
||||||
name: socket_echo_async
|
name: socket_echo_async
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
harness: net
|
harness: net
|
||||||
platform_allow: qemu_x86
|
platform_allow: qemu_x86
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_MAIN_STACK_SIZE=1200
|
CONFIG_MAIN_STACK_SIZE=1200
|
||||||
CONFIG_POSIX_API=y
|
CONFIG_POSIX_API=y
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ common:
|
||||||
tags:
|
tags:
|
||||||
- net
|
- net
|
||||||
- socket
|
- socket
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
tests:
|
tests:
|
||||||
sample.net.sockets.echo_async_select:
|
sample.net.sockets.echo_async_select:
|
||||||
extra_configs:
|
extra_configs:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
||||||
CONFIG_NET_TCP=n
|
CONFIG_NET_TCP=n
|
||||||
|
|
|
@ -81,7 +81,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: nrf52840dk_nrf52840
|
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:
|
sample.net.sockets.echo_client.b91_802154:
|
||||||
extra_args: OVERLAY_CONFIG="overlay-802154.conf"
|
extra_args: OVERLAY_CONFIG="overlay-802154.conf"
|
||||||
platform_allow: tlsr9518adk80d
|
platform_allow: tlsr9518adk80d
|
||||||
|
@ -92,7 +92,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: tlsr9518adk80d
|
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:
|
sample.net.sockets.echo_client.kw41z_openthread:
|
||||||
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
||||||
slow: true
|
slow: true
|
||||||
|
@ -100,7 +100,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: frdm_kw41z
|
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:
|
sample.net.sockets.echo_client.userspace:
|
||||||
extra_args:
|
extra_args:
|
||||||
- CONFIG_USERSPACE=y
|
- CONFIG_USERSPACE=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
# Disable TCP and IPv4 (TCP disabled to avoid heavy traffic)
|
||||||
CONFIG_NET_TCP=n
|
CONFIG_NET_TCP=n
|
||||||
|
|
|
@ -92,7 +92,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: nrf52840dk_nrf52840
|
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:
|
sample.net.sockets.echo_server.b91_openthread:
|
||||||
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
||||||
slow: true
|
slow: true
|
||||||
|
@ -100,7 +100,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: tlsr9518adk80d
|
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:
|
sample.net.sockets.echo_server.kw41z_openthread:
|
||||||
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
extra_args: OVERLAY_CONFIG="overlay-ot.conf"
|
||||||
slow: true
|
slow: true
|
||||||
|
@ -108,7 +108,7 @@ tests:
|
||||||
- net
|
- net
|
||||||
- openthread
|
- openthread
|
||||||
platform_allow: frdm_kw41z
|
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:
|
sample.net.sockets.echo_server.e1000:
|
||||||
extra_args: OVERLAY_CONFIG="overlay-e1000.conf"
|
extra_args: OVERLAY_CONFIG="overlay-e1000.conf"
|
||||||
tags: net
|
tags: net
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_MAIN_STACK_SIZE=1536
|
CONFIG_MAIN_STACK_SIZE=1536
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Networking config
|
# Networking config
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
description: BSD Sockets API HTTP GET example
|
description: BSD Sockets API HTTP GET example
|
||||||
name: socket_http_get
|
name: socket_http_get
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
harness: net
|
harness: net
|
||||||
min_ram: 32
|
min_ram: 32
|
||||||
min_flash: 80
|
min_flash: 80
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
# Networking config
|
# Networking config
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ sample:
|
||||||
name: tcp
|
name: tcp
|
||||||
tests:
|
tests:
|
||||||
sample.net.socket.tcp:
|
sample.net.socket.tcp:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
harness: net
|
harness: net
|
||||||
platform_allow: qemu_x86
|
platform_allow: qemu_x86
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -37,4 +37,4 @@ CONFIG_LOG_BACKEND_NET=y
|
||||||
CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"
|
CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"
|
||||||
|
|
||||||
# Get newlib by default as it has proper time function support
|
# Get newlib by default as it has proper time function support
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -9,11 +9,11 @@ sample:
|
||||||
name: syslog_net
|
name: syslog_net
|
||||||
tests:
|
tests:
|
||||||
sample.net.syslog.with_timefuncs:
|
sample.net.syslog.with_timefuncs:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NEWLIB_LIBC=y
|
- CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
sample.net.syslog.ipv4_only:
|
sample.net.syslog.ipv4_only:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NET_IPV6=n
|
- CONFIG_NET_IPV6=n
|
||||||
- CONFIG_NET_CONFIG_NEED_IPV6=n
|
- CONFIG_NET_CONFIG_NEED_IPV6=n
|
||||||
|
@ -21,18 +21,18 @@ tests:
|
||||||
- CONFIG_NET_CONFIG_PEER_IPV6_ADDR=""
|
- CONFIG_NET_CONFIG_PEER_IPV6_ADDR=""
|
||||||
- CONFIG_LOG_BACKEND_NET_SERVER="192.0.2.1:514"
|
- CONFIG_LOG_BACKEND_NET_SERVER="192.0.2.1:514"
|
||||||
sample.net.syslog.ipv6_only:
|
sample.net.syslog.ipv6_only:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NET_IPV4=n
|
- CONFIG_NET_IPV4=n
|
||||||
- CONFIG_NET_CONFIG_NEED_IPV4=n
|
- CONFIG_NET_CONFIG_NEED_IPV4=n
|
||||||
- CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
|
- CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
|
||||||
- CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
|
- CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
|
||||||
sample.net.syslog.no_autostart:
|
sample.net.syslog.no_autostart:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
|
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
|
||||||
sample.net.syslog.runtime_srv_addr:
|
sample.net.syslog.runtime_srv_addr:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
|
- CONFIG_LOG_BACKEND_NET_AUTOSTART=n
|
||||||
- CONFIG_LOG_BACKEND_NET_SERVER=""
|
- CONFIG_LOG_BACKEND_NET_SERVER=""
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_POSIX_API=y
|
CONFIG_POSIX_API=y
|
||||||
CONFIG_EVENTFD=y
|
CONFIG_EVENTFD=y
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ sample:
|
||||||
description: Extended POSIX (Linux) API eventfd() example
|
description: Extended POSIX (Linux) API eventfd() example
|
||||||
name: eventfd
|
name: eventfd
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC
|
||||||
tags: posix
|
tags: posix
|
||||||
platform_exclude: m2gl025_miv
|
platform_exclude: m2gl025_miv
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# General config
|
# General config
|
||||||
CONFIG_MAIN_STACK_SIZE=1088
|
CONFIG_MAIN_STACK_SIZE=1088
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_POSIX_API=y
|
CONFIG_POSIX_API=y
|
||||||
CONFIG_SNTP=y
|
CONFIG_SNTP=y
|
||||||
CONFIG_NET_CONFIG_CLOCK_SNTP_INIT=y
|
CONFIG_NET_CONFIG_CLOCK_SNTP_INIT=y
|
||||||
|
|
|
@ -2,7 +2,8 @@ sample:
|
||||||
description: POSIX API gettimeofday() example (with SNTP)
|
description: POSIX API gettimeofday() example (with SNTP)
|
||||||
name: gettimeofday
|
name: gettimeofday
|
||||||
common:
|
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
|
harness: net
|
||||||
min_ram: 32
|
min_ram: 32
|
||||||
min_flash: 96
|
min_flash: 96
|
||||||
|
|
|
@ -8,6 +8,6 @@ CONFIG_SENSOR=y
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
|
|
||||||
# Need float format support
|
# Need float format support
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
CONFIG_CBPRINTF_FP_SUPPORT=y
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
name: DHT Sensor Sample
|
name: DHT Sensor Sample
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
|
@ -2,7 +2,7 @@ CONFIG_LOG=y
|
||||||
CONFIG_I2C=y
|
CONFIG_I2C=y
|
||||||
CONFIG_SENSOR=y
|
CONFIG_SENSOR=y
|
||||||
CONFIG_PM_DEVICE=n
|
CONFIG_PM_DEVICE=n
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
|
|
||||||
CONFIG_FDC2X1X_TRIGGER_GLOBAL_THREAD=n
|
CONFIG_FDC2X1X_TRIGGER_GLOBAL_THREAD=n
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CONFIG_ADC=y
|
CONFIG_ADC=y
|
||||||
CONFIG_SENSOR=y
|
CONFIG_SENSOR=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
CONFIG_CBPRINTF_FP_SUPPORT=y
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
name: Grove Light Sensor
|
name: Grove Light Sensor
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CONFIG_ADC=y
|
CONFIG_ADC=y
|
||||||
CONFIG_SENSOR=y
|
CONFIG_SENSOR=y
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
CONFIG_REQUIRES_FLOAT_PRINTF=y
|
||||||
CONFIG_CBPRINTF_FP_SUPPORT=y
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
name: Grove Temperature Sensor
|
name: Grove Temperature Sensor
|
||||||
tests:
|
tests:
|
||||||
|
|
|
@ -63,7 +63,7 @@ int main(void)
|
||||||
|
|
||||||
/* display temperature on LCD */
|
/* display temperature on LCD */
|
||||||
glcd_cursor_pos_set(glcd, 0, 0);
|
glcd_cursor_pos_set(glcd, 0, 0);
|
||||||
#ifdef CONFIG_NEWLIB_LIBC_FLOAT_PRINTF
|
#ifdef CONFIG_REQUIRES_FLOAT_PRINTF
|
||||||
sprintf(row, "T:%.2f%cC",
|
sprintf(row, "T:%.2f%cC",
|
||||||
sensor_value_to_double(&temp),
|
sensor_value_to_double(&temp),
|
||||||
223 /* degree symbol */);
|
223 /* degree symbol */);
|
||||||
|
@ -75,7 +75,7 @@ int main(void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NEWLIB_LIBC_FLOAT_PRINTF
|
#ifdef CONFIG_REQUIRES_FLOAT_PRINTF
|
||||||
printf("Temperature: %.2f C\n", sensor_value_to_double(&temp));
|
printf("Temperature: %.2f C\n", sensor_value_to_double(&temp));
|
||||||
#else
|
#else
|
||||||
printk("Temperature: %d\n", temp.val1);
|
printk("Temperature: %d\n", temp.val1);
|
||||||
|
|
|
@ -53,7 +53,7 @@ CONFIG_LOG=y
|
||||||
CONFIG_HAWKBIT_LOG_LEVEL_INF=n
|
CONFIG_HAWKBIT_LOG_LEVEL_INF=n
|
||||||
|
|
||||||
#General Config
|
#General Config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
CONFIG_LOG_BUFFER_SIZE=4096
|
CONFIG_LOG_BUFFER_SIZE=4096
|
||||||
|
|
||||||
#Generate HEX output
|
#Generate HEX output
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
common:
|
common:
|
||||||
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
filter: CONFIG_FULL_LIBC_SUPPORTED
|
||||||
sample:
|
sample:
|
||||||
description: Hawkbit Firmware Over-the-Air (FOTA)
|
description: Hawkbit Firmware Over-the-Air (FOTA)
|
||||||
name: hawkbit
|
name: hawkbit
|
||||||
|
|
|
@ -35,4 +35,4 @@ CONFIG_JSON_LIBRARY=y
|
||||||
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=y
|
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=y
|
||||||
CONFIG_TFM_QCBOR_PATH="DOWNLOAD"
|
CONFIG_TFM_QCBOR_PATH="DOWNLOAD"
|
||||||
|
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_REQUIRES_FULL_LIBC=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue